KR20220016710A - Method for determining whether an external device is connected, and an electronic device supporting the same - Google Patents
Method for determining whether an external device is connected, and an electronic device supporting the same Download PDFInfo
- Publication number
- KR20220016710A KR20220016710A KR1020200097002A KR20200097002A KR20220016710A KR 20220016710 A KR20220016710 A KR 20220016710A KR 1020200097002 A KR1020200097002 A KR 1020200097002A KR 20200097002 A KR20200097002 A KR 20200097002A KR 20220016710 A KR20220016710 A KR 20220016710A
- Authority
- KR
- South Korea
- Prior art keywords
- comparator
- output signal
- terminal
- electronic device
- ear connector
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
-
- 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
-
- 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/1016—Earpieces of the intra-aural type
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R5/00—Stereophonic arrangements
- H04R5/04—Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2420/00—Details of connection covered by H04R, not provided for in its groups
- H04R2420/05—Detection of connection of loudspeakers or headphones to amplifiers
Abstract
Description
본 문서의 다양한 실시 예들은, 외부 장치의 연결 유무를 판단하는 방법 및 이를 지원하는 전자 장치에 관한 것이다.Various embodiments of the present document relate to a method of determining whether an external device is connected and an electronic device supporting the same.
멀티미디어 기술의 발전으로 전자 장치(예: 스마트 폰)는 통화 기능, 음악 재생 기능, 동영상 재생 기능 등의 다양한 기능을 사용자에게 제공할 수 있다. 예를 들어, 전자 장치는 오디오 신호의 입력 또는 출력을 사용자에게 지원하기 위하여 이어 커넥터(ear connector) 내에 이어 폰 플러그(earphone plug)가 삽입되는 경우, 이어 폰과 연결되며, 연결된 이어 폰을 통해 다양한 기능을 제공할 수 있다.With the development of multimedia technology, an electronic device (eg, a smart phone) may provide a user with various functions, such as a call function, a music playback function, and a video playback function. For example, when an earphone plug is inserted into an ear connector to support input or output of an audio signal to a user, the electronic device is connected to the earphone, and is connected to various types of audio signals through the connected earphone. function can be provided.
기존에는 표준화 추세에 따라, 전자 장치에 6핀 이어 커넥터(6pin ear connector)를 사용하였지만, 대량 생산 및 가격 절감 등의 이유로 6핀 이어 커넥터 대신 5핀 이어 커넥터(5pin ear connector)의 사용 필요성이 대두됨과 동시에, 5핀 이어 커넥터의 침수 성능과 관련된 문제점이 제시되었다.In the past, according to the standardization trend, a 6-pin ear connector was used for electronic devices, but the need to use a 5-pin ear connector instead of a 6-pin ear connector is emerging for reasons such as mass production and cost reduction. At the same time, problems related to the submersion performance of the 5-pin ear connector were presented.
기존의 5핀 이어 커넥터에 이어 폰 플러그가 삽입되는 경우, 입력 신호가 전자 장치의 코덱(CODEC) 및 프로세서(processor)에 각각 인가되었으며, 그 중 프로세서는 인가되는 입력 신호를 ADC 단자를 통해 인가 받을 수 있다. 그러나, 프로세서는 ADC 단자를 통해 인가되는 입력 신호에 대한 동작을 즉각적으로 수행할 수 없기 때문에, 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되는 동작을 수행할 수 있다. 프로세서는 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되어, 이어 폰 플러그와 이어 커넥터 간의 연결 상태(예: 이어 폰과 전자 장치의 연결 유무 및 이어 커넥터 내부의 상태)를 확인할 수 있다. 다만, 상기 프로세서가 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되는 동작을 수행함에 따라, 전자 장치의 소모 전류 성능이 열화되는 문제점이 발생할 수 있다.When an earphone plug is inserted into the existing 5-pin ear connector, input signals are respectively applied to a CODEC and a processor of the electronic device, among which the processor receives the applied input signal through the ADC terminal. can However, since the processor cannot immediately perform an operation on an input signal applied through the ADC terminal, an operation of periodically switching from a sleep mode to a wake up mode may be performed. . The processor periodically goes from sleep mode to wake up mode, so that the connection status between the earphone plug and the ear connector (e.g., whether the earphone is connected to the electronic device and the state inside the ear connector) can be checked. However, as the processor periodically performs an operation of switching from a sleep mode to a wake up mode, current consumption performance of the electronic device may deteriorate.
본 문서에 개시되는 다양한 실시예들은, 전자 장치는 5핀 이어 커넥터에 이어 폰 플러그가 삽입되는 경우, 5핀 이어 커넥터에 포함된 복수 개의 단자 중 좌측 감지 단자를 통해 입력 신호를 수신하고, 수신한 입력 신호를 한 쌍의 비교기에 각각 인가할 수 있다. 전자 장치는 각각의 입력 신호를 수신한 한 쌍의 비교기를 통해 지정된 조건을 기반으로 각각의 출력 신호를 출력할 수 있다. 전자 장치의 프로세서는 인터럽트 단자를 통해 각각의 출력 신호를 수신하고, 수신한 출력 신호를 기반으로 이어 폰 플러그와 이어 커넥터 간의 연결 상태를 즉각적으로 판단할 수 있다.According to various embodiments disclosed in this document, when an earphone plug is inserted into a 5-pin ear connector, the electronic device receives an input signal through a left sensing terminal among a plurality of terminals included in the 5-pin ear connector, and receives the received signal. An input signal may be applied to a pair of comparators, respectively. The electronic device may output each output signal based on a specified condition through a pair of comparators receiving each input signal. The processor of the electronic device may receive each output signal through the interrupt terminal, and may immediately determine a connection state between the earphone plug and the ear connector based on the received output signal.
본 발명의 다양한 실시예에 따른 전자 장치는 이어 폰의 플러그가 삽입되는 이어 커넥터, 상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기 및 상기 제1 비교기 및 상기 제2 비교기와 전기적으로 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하는 프로세서를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure includes an ear connector into which a plug of an earphone is inserted, an input signal applied from a first terminal connected to a sensing terminal included in the ear connector and a first electrical path through a first electrical path, and a second terminal. A first comparator that compares a reference voltage according to an applied first specified condition to output a first output signal, a third connected to the sensing terminal through a second electrical path branched from a point of the first electrical path A second comparator outputting a second output signal by comparing an input signal applied from a terminal and a reference voltage according to a second specified condition applied from a fourth terminal, and the first comparator and the second comparator are electrically connected, , based on a first output signal output from the first comparator and a second output signal output from the second comparator, a processor for determining a connection state with the plug of the earphone.
본 발명의 다양한 실시예에 따른 전자 장치는 이어 폰의 플러그가 삽입되는 이어 커넥터, 상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호와 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호와 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기, 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 제3 출력 신호를 출력하는 게이트(gate) 및 상기 게이트로부터 출력되는 제3 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 확인하는 프로세서를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure includes an ear connector into which a plug of an earphone is inserted, an input signal applied from a first terminal connected through a first electrical path to a sensing terminal included in the ear connector, and a second terminal. A first comparator that compares a reference voltage according to an applied first specified condition to output a first output signal, a third connected to the sensing terminal through a second electrical path branched from a point of the first electrical path a second comparator that compares an input signal applied from a terminal with a reference voltage according to a second specified condition applied from a fourth terminal, and outputs a second output signal, and is connected to the first comparator and the second comparator; Based on a first output signal output from the first comparator and a second output signal output from the second comparator, a gate outputting a third output signal, and a third output signal output from the gate , a processor for checking a connection state with the plug of the earphone.
본 발명의 다양한 실시예에 따른 전자 장치는 디스플레이, 이어 폰의 플러그가 삽입되는 이어 커넥터, 상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기; 및 상기 디스플레이, 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하고, 상기 판단 결과를 상기 디스플레이를 통해 출력하는 프로세서를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure includes a display, an ear connector into which a plug of an earphone is inserted, an input signal applied from a first terminal connected to a sensing terminal included in the ear connector through a first electrical path, and a second A first comparator that compares a reference voltage according to a first specified condition applied from a terminal and outputs a first output signal, and is connected to the sensing terminal through a second electrical path branched from one point of the first electrical path a second comparator outputting a second output signal by comparing the input signal applied from the third terminal and the reference voltage according to the second specified condition applied from the fourth terminal; and a plug of the earphone connected to the display, the first comparator, and the second comparator, based on a first output signal output from the first comparator and a second output signal output from the second comparator and a processor that determines the connection state of the , and outputs the determination result through the display.
본 문서에 개시되는 다양한 실시 예에 따르면, 외부 장치의 연결 유무를 판단하는 방법 및 이를 지원하는 전자 장치는, 좌측 감지 단자를 통해 입력 신호를 수신하고, 수신한 입력 신호를 한 쌍의 비교기에 각각 인가하고, 지정된 조건을 기반으로 한 쌍의 비교기가 출력하는 출력 신호를 프로세서의 인터럽트 단자를 통해 수신함으로써, 프로세서가 이어 폰 플러그와 이어 커넥터 간의 연결 상태를 확인하기 위하여, 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되는 동작을 수행하지 않기 때문에, 전자 장치의 소모 전류 성능이 열화되는 문제점을 해결할 수 있다.According to various embodiments of the present disclosure, a method for determining whether an external device is connected and an electronic device supporting the same receive an input signal through a left sensing terminal, and apply the received input signal to a pair of comparators, respectively In order for the processor to check the connection state between the earphone plug and the ear connector by receiving the output signal output by a pair of comparators through the interrupt terminal of the processor, the processor periodically performs a sleep mode (sleep mode). ) to the wake-up mode is not performed, so a problem in which the current consumption performance of the electronic device deteriorates can be solved.
또한, 프로세서가 인터럽트 단자를 통해 출력 신호를 수신하기 때문에, ADC 포트 제거에 따른 재료비를 절감할 수 있으며, 5핀 이어 커넥터에서의 이물질에 의한 이어 폰의 오인식을 방지할 수 있다. In addition, since the processor receives the output signal through the interrupt terminal, it is possible to reduce the material cost due to the removal of the ADC port, and it is possible to prevent misrecognition of the earphone by foreign substances in the 5-pin ear connector.
이 외에도 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과가 제공될 수 있다.In addition to this, various effects that are directly or indirectly identified through this document may be provided.
도 1은 본 발명의 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 블록도이다.
도 3은 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 방법을 설명하기 위한 순서도이다.
도 4는 본 발명의 일 실시예에 따른, 저항 값에 따른 이어 폰의 연결 유무를 판단하는 방법을 설명하기 위한 도면이다.
도 5는 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 다른 블록도이다.
도 6은 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 다른 순서도이다.
도 7은 본 발명의 일 실시예에 따른, 저항 값에 따른 이어 폰의 연결 유무를 판단하는 다른 방법을 설명하기 위한 도면이다.1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure;
2 is a block diagram of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
3 is a flowchart illustrating a method of determining whether an earphone is connected, according to an embodiment of the present invention.
4 is a diagram for explaining a method of determining whether an earphone is connected according to a resistance value, according to an embodiment of the present invention.
5 is another block diagram of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
6 is another flowchart of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
7 is a diagram for explaining another method of determining whether an earphone is connected according to a resistance value, according to an embodiment of the present invention.
상술한 도면의 설명과 관련하여, 동일 또는 대응되는 구성 요소에 대해서는 동일한 참조 번호가 부여될 수 있다.In relation to the description of the above drawings, the same reference numerals may be assigned to the same or corresponding components.
이하, 첨부된 도면을 참조하여 본 발명의 다양한 실시예들이 설명된다. 설명의 편의를 위하여 도면에 도시된 구성요소들은 그 크기가 과장 또는 축소될 수 있으며, 도시된 바에 의해 한정되는 것은 아니다.Hereinafter, various embodiments of the present invention will be described with reference to the accompanying drawings. For convenience of description, the sizes of the components shown in the drawings may be exaggerated or reduced, and the figures are not limited thereto.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram of an electronic device 101 in a
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 123 is, for example, on behalf of the
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 , and may include, for example, an
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
인터페이스(177)는 전자 장치(101)가 외부 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The
통신 모듈(190)은 전자 장치(101)와 외부 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 establishes a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external device (eg, the
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the
도 2는 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 블록도이다.2 is a block diagram of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
도 2를 참조하면, 전자 장치(200)(예: 도 1의 전자 장치(101))는 이어 커넥터(201)(예: 도 1의 연결 단자(178)), 제1 전기적 경로(203), 제2 전기적 경로(205) , 제1 비교기(207), 제2 비교기(209) 및 프로세서(211)(예: 도 1의 프로세서(120))를 포함할 수 있다. 그러나, 상기 전자 장치(200)의 구성이 이에 한정되는 것은 아니다.Referring to FIG. 2 , the electronic device 200 (eg, the electronic device 101 of FIG. 1 ) includes an ear connector 201 (eg, the
다양한 실시예에 따르면, 상기 전자 장치(200)는 상술한 구성 요소들 중 적어도 하나를 생략할 수 있으며, 적어도 하나의 다른 구성 요소를 포함할 수 있다. 일 예로 상기 전자 장치(200)는 디스플레이(예: 도 1의 디스플레이 모듈(160))를 포함할 수 있다. 상기 전자 장치(200)는 상기 디스플레이를 통해 이어 폰 플러그와 이어 커넥터 간의 연결 상태를 표시할 수 있다.According to various embodiments, the
일 실시예에 따르면, 상기 이어 커넥터(201)는 마이크 입력 및/또는 오디오 출력 기능을 가지는 이어 폰의 플러그를 수용할 수 있는 소켓을 의미할 수 있으며, 상기 이어 커넥터(201)를 통해 상기 전자 장치(200)에는 4극 이어 폰 또는 3극 이어폰이 접속될 수 있다. 상기 4극 이어 폰의 플러그는 마이크 단자, 그라운드 단자, 우측 음향 단자 및 좌측 음향 단자를 포함할 수 있다. 상기 3극 이어 폰의 플러그는 마이크 단자를 제외한 그라운드 단자, 우측 음향 단자 및 좌측 음향 단자를 포함할 수 있다.According to an embodiment, the
일 실시예에 따르면, 상기 이어 커넥터(201)는 4극 이어 폰 플러그의 마이크 단자와 접촉하는 제1 핀, 이어 폰 플러그의 그라운드 단자와 접촉하는 제2 핀, 이어 폰 플러그의 우측 음향 단자와 접촉하는 제3 핀, 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제4 핀 및 제5 핀을 포함할 수 있다. According to an embodiment, the
다른 실시예에 따르면, 상기 이어 커넥터(201)는 3극 이어 폰 플러그의 그라운드 단자와 접촉하는 제1 핀, 제2 핀, 이어 폰 플러그의 우측 음향 단자와 접촉하는 제3 핀, 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제4 핀 및 제5 핀을 포함할 수 있다. According to another embodiment, the
일 실시예에 따르면, 상기 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제5 핀은 좌측 감지(L-detection) 단자일 수 있다. 본 발명에서 언급하는 이어 커넥터(201)는 5핀 이어 커넥터(5pin ear connector)일 수 있다. According to an embodiment, the fifth pin contacting the left acoustic terminal of the earphone plug may be a left-side detection (L-detection) terminal. The
일 실시예에 따르면, 상기 이어 커넥터(201)에 상기 이어 폰 플러그(예: 도 1의 전자 장치(102))가 삽입되는 경우, 상기 이어 커넥터(201)의 감지 단자, 제1 비교기(207) 및 제2 비교기(209)에 인가되고 있는 풀 업(pull-up) 전압이 전압 분배될 수 있다. 보다 자세하게 설명하면, 상기 이어 커넥터(201) 내의 상기 감지 단자, 상기 제1 비교기(207) 및 상기 제2 비교기(209)에는 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다. 상기 감지 단자는 이어 폰 플러그의 좌측 음향 단자와 접촉하는 좌측 감지 단자일 수 있다.According to an embodiment, when the earphone plug (eg, the
일 실시예에 따르면, 상기 이어 커넥터(201) 내에 상기 이어 폰 플러그가 삽입되는 경우, 상기 바이어스 전원과 연결된 풀 업 저항과 이어 폰 플러그에 연결된 풀 다운 저항에 의해 상기 풀 업 전압의 전압이 분배될 수 있다. 이하, 상기 이어 커넥터(201) 내에 상기 이어 폰 플러그가 삽입되어 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다. 상기 입력 신호는 상기 제1 비교기(207) 및 상기 제2 비교기(209) 각각에 인가될 수 있다.일 실시예에 따르면, 상기 제1 비교기(207) 및 상기 제2 비교기(209)는 상기 이어 커넥터(201)의 5개의 핀 중 상기 좌측 감지 단자와 전기적 경로를 통해 연결될 수 있다. 상기 제1 비교기(207)는 상기 좌측 감지 단자와 상기 제1 전기적 경로(203)를 통해 연결될 수 있다. 상기 제2 비교기(209)는 상기 제1 전기적 경로(203)의 일 지점에서 분기되는 제2 전기적 경로(205)를 통해 상기 좌측 감지 단자와 연결될 수 있다.According to an embodiment, when the earphone plug is inserted into the
일 실시예에 따르면, 상기 제1 비교기(207)는 제1 지정된 조건을 기반으로, 상기 입력 신호를 제1 출력 신호로 출력할 수 있다. 상기 제1 비교기(207)는 상기 입력 신호(전압 레벨이 변경된 풀 업 전압)를 상기 제1 전기적 경로(203)를 통해 수신할 수 있다. 상기 제1 비교기(207)는 제1 단자 및 제2 단자 중 하나의 단자를 통해 제1 지정된 조건을 기반으로 하는 기준 전압을 인가 받을 수 있다. 상기 제1 비교기(207)에 포함된 상기 제1 단자가 -극인 경우, 제2 단자는 +극일 수 있다. 반대로 제1 단자가 +극인 경우, 제2 단자는 -극일 수 있다.According to an embodiment, the
상기 제1 지정된 조건은 상기 이어 커넥터(201)와 상기 이어 폰 플러그 간의 연결 유무를 판단하기 위한 기준 전압 정보일 수 있다.The first specified condition may be reference voltage information for determining whether there is a connection between the
예를 들어, 상기 제1 비교기(207)는 +극에 인가되는 상기 제1 지정된 조건에 기반한 기준 전압 레벨이 0.9V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.9V 이상이면 로우(low) 레벨의 신호를 출력할 수 있다. 상기 제1 비교기(207)는 수신하는 입력 신호의 전압 레벨이 0.9V 미만인 경우, 하이(high) 레벨의 신호를 출력할 수 있다. 상기 제1 출력 신호의 레벨은 상기 입력 신호의 전압 레벨 및 상기 기준 전압 레벨을 기반으로 하이 레벨 또는 로우 레벨로 결정될 수 있다.For example, the
다른 예를 들어, 상기 제1 비교기(207)의 -극에 상기 제1 지정된 조건에 기반한 기준 전압이 인가될 수 있다. 이 경우, 상기 제1 전기적 경로를 통해 상기 좌측 감지 단자로부터 입력 신호를 수신하는 단자는 +극일 수 있다. 상기 제1 비교기(207)는 -극에 인가되는 상기 제1 지정된 조건에 기반한 기준 전압 레벨이 0.7V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.7V 이상이면, 하이 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기(201)가 수신하는 입력 신호의 전압 레벨이 0.7V 미만인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. As another example, a reference voltage based on the first specified condition may be applied to the -pole of the
일 실시예에 따르면, 상기 제2 비교기(209)는 제2 지정된 조건을 기반으로, 상기 입력 신호를 제2 출력 신호로 출력할 수 있다. 상기 제2 비교기(209)는 상기 입력 신호를 상기 제2 전기적 경로(205)를 통해 수신할 수 있다. 상기 제2 비교기(209)는 제1 단자 및 제2 단자 중 하나의 단자를 통해 제2 지정된 조건을 기반으로 하는 기준 전압을 인가 받을 수 있다. 상기 제2 비교기(209)에 포함된 상기 제3 단자가 -극인 경우, 제4 단자는 +극일 수 있다. 반대로 제3 단자가 +극인 경우, 제4 단자는 -극일 수 있다. 상기 제2 지정된 조건은 상기 이어 커넥터(201) 내부에 이물질의 유무를 판단하기 위한 기준 전압 정보일 수 있다.According to an embodiment, the
예를 들어, 상기 제2 비교기(209)는 +극에 인가되는 상기 제2 지정된 조건에 기반한 기준 전압 레벨이 0.2V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.2V 이상이면 로우(low) 신호를 출력할 수 있다. 상기 제2 비교기(203)는 수신하는 입력 신호의 전압 레벨이 0.2V 미만인 경우, 하이(high) 신호를 출력할 수 있다. 상기 제2 출력 신호의 레벨은 상기 입력 신호의 전압 레벨 및 상기 기준 전압 레벨을 기반으로 하이 레벨 또는 로우 레벨로 결정될 수 있다.For example, the
다른 예를 들어, 상기 제2 비교기(209)는 -극을 통해 상기 제2 지정된 조건에 기반한 기준 전압을 인가 받을 수 있다. 이 경우, 상기 제2 비교기(209)는 상기 좌측 감지 단자와 연결된 상기 제2 전기적 경로와 연결된 +극을 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기(209)는 -극에 인가되는 상기 제2 지정된 조건에 기반한 기준 전압 레벨이 0.7V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.7V 이상이면, 하이 레벨의 출력 신호를 출력할 수 있다. 상기 제2 비교기(209)가 수신하는 입력 신호의 전압 레벨이 0.7V 미만인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. As another example, the
즉, 상기 제2 비교기(209)가 출력하는 제2 출력 신호의 레벨은 상기 제2 지정된 조건에 따른 기준 전압이 +극 및 -극 중 어느 하나에 인가되는지에 따라 변경될 수 있다. 또한, 상기 이어 커넥터(201) 내에 이물질이 존재할 때의 입력 신호의 전압 레벨과 이물질이 존재하지 않을 때의 입력 신호의 전압 레벨이 다르기 때문에, 상기 입력 신호를 인가받는 상기 제1 비교기(207) 및 상기 제2 비교기(209))로부터 출력되는 출력 신호의 레벨은 변경될 수 있다.That is, the level of the second output signal output by the
일 실시예에 따르면, 상기 프로세서(211)는 상기 제1 비교기(207)가 출력하는 제1 출력 신호 및 상기 제2 비교기(209)가 출력하는 제2 출력 신호를 인터럽트 단자를 통해 수신할 수 있다. 상기 프로세서(211)는 상기 수신한 제1 출력 신호 및 제2 출력 신호의 레벨을 기반으로, 상기 이어 커넥터(201)와 이어 폰 플러그 간의 연결 유무 및 상기 이어 커넥터(201) 내의 이물질 유무 상태를 판단할 수 있다. According to an embodiment, the
상기 이어 커넥터(201)와 이어 폰 플러그 간의 연결 유무 및 상기 이어 커넥터(201) 내의 이물질 유무 상태를 판단하는 동작은 도 4에서 자세하게 설명하도록 한다. The operation of determining whether there is a connection between the
상기와 같이 상기 프로세서(211)는 상기 인터럽트 단자를 통해 출력 신호를 수신함에 따라, 주기적으로 슬립 모드(sleep mode)에서 웨이크 업 모드(wake up mode)로 전환되는 동작을 수행하지 않으므로, 상기 전자 장치(200)의 소모 전류 성능이 열화되는 문제점을 해결할 수 있다.As described above, when the
다양한 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(200))는 이어 폰의 플러그(예: 도 1의 전자 장치(102))가 삽입되는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 이어 커넥터(201)), 상기 이어 커넥터에 포함된 감지 단자(예: 도 4의 제5핀(401e))와 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기(예: 도 2의 제1 비교기(207)), 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기(예: 도 2의 제2 비교기(209)) 및 상기 제1 비교기 및 상기 제2 비교기와 전기적으로 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(211))를 포함할 수 있다.According to various embodiments, the electronic device (eg, the electronic device 101 of FIG. 1 or the
다양한 실시예에 따르면, 상기 이어 커넥터는, 상기 이어 폰의 플러그와 연결되는 5개의 단자를 포함할 수 있다.According to various embodiments, the ear connector may include five terminals connected to the plug of the ear phone.
다양한 실시예에 따르면, 상기 프로세서는, 상기 수신한 제1 출력 신호의 변화를 감지하여, 상기 전자 장치에 대한 상기 이어 폰의 연결 유무를 판단하고, 상기 수신한 제2 출력 신호의 변화를 감지하여, 상기 이어 커넥터 내부의 이물질 유무를 판단할 수 있다.According to various embodiments, the processor detects a change in the received first output signal, determines whether the earphone is connected to the electronic device, and detects a change in the received second output signal. , it is possible to determine whether there is a foreign substance inside the ear connector.
다양한 실시예에 따르면, 상기 제1 지정된 조건은, 상기 제1 비교기에 설정된 조건으로, 상기 전자 장치에 대한 상기 이어 폰 플러그의 연결 유무를 판단하기 위한 기준 전압 정보 및 상기 제2 지정된 조건은, 상기 제2비교기에 설정된 조건으로, 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보를 포함할 수 있다.According to various embodiments, the first specified condition is a condition set in the first comparator, and the reference voltage information for determining whether the earphone plug is connected to the electronic device and the second specified condition include: As a condition set in the second comparator, reference voltage information for determining whether there is a foreign substance inside the ear connector may be included.
다양한 실시예에 따르면, 상기 프로세서는, 상기 수신하는 제1 출력 신호의 전압 레벨이 상기 제1 지정된 조건으로 설정된 기준 전압 이하인 경우, 상기 이어 폰의 플러그가 상기 전자 장치에 연결된 것으로 판단하고,According to various embodiments, the processor determines that the plug of the earphone is connected to the electronic device when the voltage level of the received first output signal is equal to or less than a reference voltage set as the first specified condition,
상기 수신하는 제2 출력 신호의 전압 레벨이 상기 제2 지정된 조건으로 설정된 기준 전압 이하인 경우, 상기 이어 커넥터 내부에 이물질이 존재하지 않는 것으로 판단할 수 있다.When the voltage level of the received second output signal is equal to or less than the reference voltage set as the second specified condition, it may be determined that there is no foreign material inside the ear connector.
다양한 실시예에 따르면, 상기 감지 단자는, 상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 어어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)를 포함할 수 있다.According to various embodiments, the detection terminal may include a left detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
다양한 실시예에 따르면, 상기 프로세서는, 제1 인터럽트 단자를 통해 상기 제1 출력 신호를 수신하고, 제2 인터럽트 단자를 통해 제2 출력 신호를 수신할 수 있다.According to various embodiments, the processor may receive the first output signal through a first interrupt terminal and receive a second output signal through a second interrupt terminal.
다양한 실시예에 따르면 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(200))는 디스플레이(예: 도 1의 디스플레이 모듈(160)), 이어 폰의 플러그(예: 도 1의 전자 장치(102))가 삽입되는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 이어 커넥터(201)), 상기 이어 커넥터에 포함된 감지 단자(예: 도 4의 제5핀(401e))와 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기(예: 도 2의 제1 비교기(207)), 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기(예: 도 2의 제2 비교기(209)) 및 상기 디스플레이, 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하고, 상기 판단 결과를 상기 디스플레이를 통해 출력하는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(211))를 포함할 수 있다.According to various embodiments, the electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 200 of FIG. 2 ) includes a display (eg, the display module 160 of FIG. 1 ) and a plug of an earphone (eg: An ear connector (eg, the connection terminal 178 of FIG. 1 or the ear connector 201 of FIG. 2 ) into which the electronic device 102 of FIG. 1 ) is inserted, and a sensing terminal included in the ear connector (eg, the ear connector of FIG. 4 ) The fifth pin 401e) and the first electrical path (eg, the first electrical path 203 of FIG. 2 ) connected to the input signal applied from the first terminal and the second terminal according to the first specified condition A first comparator (eg, the first comparator 207 of FIG. 2 ) that compares the reference voltage and outputs a first output signal, a second electrical path that is branched from a point of the first electrical path (eg, FIG. 2 ) A second output signal is output by comparing the input signal applied from the third terminal connected to the sensing terminal through the second electrical path 205 of is connected to a second comparator (eg, the second comparator 209 of FIG. 2 ) and the display, the first comparator, and the second comparator, and the first output signal output from the first comparator and the second comparator A processor (eg, the processor 120 of FIG. 1 or the processor of FIG. 2 ) that determines a connection state with the plug of the earphone based on a second output signal output from the device and outputs the determination result through the display (211)) may be included.
다양한 실시예에 따르면, 상기 이어 커넥터는, 상기 이어 폰 플러그와 연결되는 5개의 단자를 포함할 수 있다.According to various embodiments, the ear connector may include five terminals connected to the earphone plug.
다양한 실시예에 따르면, 상기 감지 단자는, 상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 이어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)를 포함할 수 있다.According to various embodiments, the detection terminal may include a left detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
다양한 실시예에 따르면, 상기 제1 지정된 조건은, 상기 제1 비교기에 설정된 조건으로, 상기 전자 장치에 대한 상기 이어 폰 플러그의 연결 유무를 판단하기 위한 기준 전압 정보 및 상기 제2 지정된 조건은, 상기 제2비교기에 설정된 조건으로, 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보를 포함할 수 있다.According to various embodiments, the first specified condition is a condition set in the first comparator, and the reference voltage information for determining whether the earphone plug is connected to the electronic device and the second specified condition include: As a condition set in the second comparator, reference voltage information for determining whether there is a foreign substance inside the ear connector may be included.
다양한 실시예에 따르면, 상기 프로세서는, 상기 수신한 제1 출력 신호의 변화를 감지하여, 상기 전자 장치에 대한 상기 이어 폰의 연결 유무를 판단하고, 상기 수신한 제2 출력 신호의 변화를 감지하여, 상기 이어 커넥터 내부의 이물질 유무를 판단할 수 있다.According to various embodiments, the processor detects a change in the received first output signal, determines whether the earphone is connected to the electronic device, and detects a change in the received second output signal. , it is possible to determine whether there is a foreign substance inside the ear connector.
다양한 실시예에 따르면, 상기 프로세서는, 상기 판단한 이어폰의 연결 유무 및 상기 판단한 이어 커넥터 내부의 이물질 유무에 기반하여, 결정되는 네 개의 연결 상태 중 하나의 상태를 상기 디스플레이를 통해 출력할 수 있다.According to various embodiments, the processor may output, through the display, one of the four connection states determined based on the determined presence or absence of the earphone connection and the determined presence or absence of a foreign object inside the ear connector.
도 3은 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 방법을 설명하기 위한 순서도이다.301 동작에서 전자 장치(예: 도 1의 전자 장치(101))는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 이어 커넥터(201)) 내에 이어 폰 플러그가 삽입되는 경우, 입력 신호를 감지할 수 있다.3 is a flowchart illustrating a method of determining whether an earphone is connected, according to an embodiment of the present invention. In
일 실시예에 따르면, 상기 이어 커넥터 내의 감지 단자, 제1 비교기 및 제2 비교기에는 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다. 상기 이어 커넥터 내에 상기 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치의 바이어스 전원과 연결된 풀 업 저항과 상기 삽입된 이어 폰 플러그의 풀 다운 저항에 의해 상기 풀 업 전압이 전압 분배되어, 전압 레벨이 변경될 수 있다. 이하, 상기 이어 커넥터 내에 상기 이어 폰 플러그가 삽입되어 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다.According to an embodiment, a pull-up voltage by a bias power may be always applied to the sensing terminal, the first comparator, and the second comparator in the ear connector. When the earphone plug is inserted into the ear connector, the pull-up voltage is divided by a pull-up resistor connected to the bias power of the electronic device and a pull-down resistor of the inserted earphone plug, and the voltage level is changed can be Hereinafter, the earphone plug is inserted into the ear connector to initiate a voltage-divided pull-up voltage as an input signal.
303 동작에서 상기 입력 신호는 제1 비교기(예: 도 2의 제1 비교기(207) 및 제2 비교기(예: 도 2의 제2 비교기(209)) 각각에 인가될 수 있다. 상기 제1 비교기는 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 좌측 감지(L-detection) 단자와 연결될 수 있다. 상기 제2 비교기는 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 상기 좌측 감지 단자와 연결될 수 있다. In
즉, 상기 입력 신호는 상기 제1 전기적 경로를 통해 상기 제1 비교기에 인가될 수 있으며, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 제2 비교기에 인가될 수 있다.That is, the input signal may be applied to the first comparator through the first electrical path, and may be applied to the second comparator through a second electrical path branched from one point of the first electrical path.
305 동작에서, 상기 전자 장치는 한 쌍의 비교기를 통해 제1 출력 신호 및 제2 출력 신호를 출력할 수 있다.In
일 실시예에 따르면, 한 쌍의 비교기는 제1 비교기 및 제2 비교기를 포함할 수 있다. 상기 전자 장치는 상기 입력 신호가 인가된 상기 제1 비교기를 통해 제1 지정된 조건을 기반으로 제1 출력 신호를 출력할 수 있다. 상기 제1 지정된 조건은 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 유무를 판단하기 위한 기준 전압 정보일 수 있다. 상기 제1 지정된 조건은 제1 비교기에 설정될 수 있으며, 설정 값에 따라 기준 전압 정보가 변경될 수 있다.According to an embodiment, the pair of comparators may include a first comparator and a second comparator. The electronic device may output a first output signal based on a first specified condition through the first comparator to which the input signal is applied. The first specified condition may be reference voltage information for determining whether the earphone plug and the ear connector are connected. The first specified condition may be set in the first comparator, and the reference voltage information may be changed according to the set value.
일 실시예에 따르면, 상기 제1 비교기는 상기 입력 신호를 인가 받는 경우, 제1 지정된 조건에 따라 상기 제1 출력 신호를 하이(high) 레벨의 출력 신호 또는 로우(low) 레벨의 신호로 출력할 수 있다. According to an embodiment, when the first comparator receives the input signal, it outputs the first output signal as a high-level output signal or a low-level signal according to a first specified condition. can
예를 들어, 상기 제1 지정된 조건에 따른 기준 전압 0.9V가 제1 비교기의 +극에 인가될 수 있다. 상기 제1 비교기는 상기 제1 비교기의 -극과 연결된 제1 전기적 경로를 통해 입력 신호를 수신할 수 있다. 상기 제1 비교기는 수신한 입력 신호의 전압 레벨이 0.7V인 경우, 하이 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기는 수신한 입력 신호의 전압 레벨이 기준 전압 0.9V보다 높은 1V인 경우, 로우 레벨의 신호를 출력할 수 있다. For example, the reference voltage 0.9V according to the first specified condition may be applied to the + pole of the first comparator. The first comparator may receive an input signal through a first electrical path connected to the -pole of the first comparator. The first comparator may output a high level output signal when the voltage level of the received input signal is 0.7V. The first comparator may output a low-level signal when the voltage level of the received input signal is 1V higher than the reference voltage 0.9V.
다른 예를 들어, 제1 지정된 조건에 따른 기준 전압 0.7V가 상기 제1 비교기의 -극에 인가될 수 있다. 상기 제1 비교기는 상기 제1 비교기의 +극과 연결된 제1 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제1 비교기는 상기 입력 신호의 전압 레벨이 0.5V인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기가 인가 받은 입력 신호의 전압 레벨이 기준 전압 0.7V 보다 높은 0.8V인 경우, 하이 레벨의 신호를 출력할 수 있다. As another example, the reference voltage 0.7V according to the first specified condition may be applied to the -pole of the first comparator. The first comparator may receive an input signal through a first electrical path connected to the + electrode of the first comparator. The first comparator may output an output signal of a low level when the voltage level of the input signal is 0.5V. When the voltage level of the input signal applied to the first comparator is 0.8V, which is higher than the reference voltage of 0.7V, the high-level signal may be output.
일 실시예에 따르면, 상기 전자 장치는 상기 좌측 감지 단자와 연결된 제2 전기적 경로를 통해 상기 입력 신호가 인가된 제2 비교기를 통해, 제2 지정된 조건을 기반으로 제2 출력 신호를 출력할 수 있다. 상기 제2 지정된 조건은 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보일 수 있다. 상기 제2 지정된 조건은 제2 비교기에 설정될 수 있으며, 설정 값에 따라 기준 전압 정보가 변경될 수 있다.According to an embodiment, the electronic device may output a second output signal based on a second specified condition through a second comparator to which the input signal is applied through a second electrical path connected to the left sensing terminal. . The second specified condition may be reference voltage information for determining whether there is a foreign substance inside the ear connector. The second specified condition may be set in the second comparator, and the reference voltage information may be changed according to the set value.
일 실시예에 따르면, 제2 비교기는 상기 입력 신호를 인가 받는 경우, 제2 지정된 조건에 따라 상기 제2 출력 신호를 하이(high) 레벨의 신호 또는 로우(low) 레벨의 신호로 출력할 수 있다. 예를 들어, 상기 제2 지정된 조건에 따른 기준 전압 0.2V가 제2 비교기의 +극에 인가될 수 있다. 상기 제2 비교기는 상기 제2 비교기의 -극과 연결된 제2 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기는 상기 입력 신호의 전압 레벨이 0.1V인 경우 하이 레벨의 신호를 출력할 수 있다. 상기 제2 비교기가 수신한 입력 신호의 전압 레벨이 기준 전압 0.2V보다 높은 0.5V인 경우, 로우 레벨의 신호를 출력할 수 있다. According to an embodiment, when receiving the input signal, the second comparator may output the second output signal as a high level signal or a low level signal according to a second specified condition. . For example, the reference voltage 0.2V according to the second specified condition may be applied to the + pole of the second comparator. The second comparator may receive an input signal through a second electrical path connected to the -pole of the second comparator. The second comparator may output a high level signal when the voltage level of the input signal is 0.1V. When the voltage level of the input signal received by the second comparator is 0.5V higher than the reference voltage 0.2V, a low-level signal may be output.
다른 예를 들어, 제2 지정된 조건에 따른 기준 전압 0.5V가 상기 제1 비교기의 -극에 인가될 수 있다. 상기 제2 비교기는 상기 제2 비교기의 +극과 연결된 제2 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기는 상기 입력 신호의 전압 레벨이 0.3V인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. 상기 제2 비교기가 인가 받은 입력 신호의 전압 레벨이 기준 전압 0.5V 보다 높은 0.8V인 경우, 상기 제2 비교기는 하이 레벨의 신호를 출력할 수 있다. As another example, the reference voltage 0.5V according to the second specified condition may be applied to the -pole of the first comparator. The second comparator may receive an input signal through a second electrical path connected to the + electrode of the second comparator. The second comparator may output an output signal of a low level when the voltage level of the input signal is 0.3V. When the voltage level of the input signal applied to the second comparator is 0.8V, which is higher than the reference voltage of 0.5V, the second comparator may output a high-level signal.
307 동작에서, 상기 전자 장치는 상기 제1 출력 신호를 기반으로, 상기 이어 커넥터와 상기 이어 폰 플러그 간의 연결 유무를 확인할 수 있다.In
일 실시예에 따르면, 상기 전자 장치의 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(211))는 제1 인터럽트 단자를 통해 상기 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호의 레벨이 하이(high) 레벨 또는 로우(low) 레벨인지를 확인하여, 상기 이어 커넥터와 상기 이어 폰 플러그의 연결 상태를 확인할 수 있다.According to an embodiment, the processor of the electronic device (eg, the
예를 들어, 상기 프로세서는 제1 지정된 조건에 따른 기준 전압이 +극에 인가되는 제1 비교기로부터 제1 인터럽트 단자를 통해 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 수신한 제1 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 것으로 확인할 수 있다. 상기 프로세서가 수신한 제1 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 연결되지 않은 것으로 확인할 수 있다.For example, the processor may receive the first output signal through the first interrupt terminal from the first comparator to which the reference voltage according to the first specified condition is applied to the + pole. When the level of the received first output signal is a high level signal, the processor may determine that the ear connector and the earphone plug are connected. When the level of the first output signal received by the processor is a low level signal, it may be determined that the ear connector and the earphone plug are not connected.
다른 예를 들어, 상기 프로세서는 제1 지정된 조건에 따른 기준 전압이 -극에 인가되는 제1 비교기로부터 제1 인터럽트 단자를 통해 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제1 비교기로부터 수신한 제1 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 것으로 확인할 수 있다. 상기 프로세서는 상기 제1 비교기로부터 수신한 제1 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 연결되지 않은 것으로 확인할 수 있다. As another example, the processor may receive the first output signal through the first interrupt terminal from the first comparator to which the reference voltage according to the first specified condition is applied to the -pole. When the level of the first output signal received from the first comparator is a low level signal, the processor may determine that the ear connector and the earphone plug are connected. When the level of the first output signal received from the first comparator is a high level signal, the processor may determine that the ear connector and the earphone plug are not connected.
309 동작에서, 상기 전자 장치는 상기 제2 출력 신호를 기반으로, 상기 이어 커넥터 내의 이물질 유무를 확인할 수 있다.In
일 실시예에 따르면, 상기 전자 장치의 프로세서는 상기 제2 비교기로부터 제2 인터럽트 단자를 통해 수신한 제2 출력 신호가 하이 레벨 또는 로우 레벨인지를 확인하여, 상기 이어 커넥터 내의 이물질 유무 상태를 확인할 수 있다.According to an embodiment, the processor of the electronic device may check whether the second output signal received from the second comparator through the second interrupt terminal is at a high level or a low level to check the presence or absence of foreign matter in the ear connector. have.
예를 들어, 상기 프로세서는 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 제2 인터럽트 단자를 통해 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 수신한 제2 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터 내에 이물질이 없는 것으로 확인할 수 있다. 상기 프로세서가 제2 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터 내에 이물질이 존재하는 것으로 확인할 수 있다.For example, the processor may receive the second output signal through the second interrupt terminal from the second comparator to which the reference voltage according to the second specified condition is applied to the + pole. When the level of the received second output signal is a high level signal, the processor may determine that there is no foreign material in the ear connector. When the level of the second output signal is a low level signal, the processor may determine that a foreign material is present in the ear connector.
다른 예를 들어, 상기 프로세서는 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 제2 인터럽트 단자를 통해 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제2 비교기로부터 수신한 제2 출력 신호의 레벨이 로우 레벨의 출력 신호인 경우, 상기 이어 커넥터 내에 이물질이 없는 것으로 확인할 수 있다. 상기 프로세서는 상기 제2 비교기로부터 수신한 제2 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터 내에 이물질이 존재하는 것으로 확인할 수 있다.As another example, the processor may receive the second output signal through the second interrupt terminal from the second comparator to which the reference voltage according to the second specified condition is applied to the + pole. When the level of the second output signal received from the second comparator is the low level output signal, the processor may determine that there is no foreign material in the ear connector. When the level of the second output signal received from the second comparator is a high level signal, the processor may determine that a foreign material is present in the ear connector.
311 동작에서, 상기 전자 장치는 상기 307 동작 및 309 동작에서의 확인 결과를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터가 정상 연결 상태인 것으로 판단할 수 있다.In
일 실시예에 따르면, 상기 전자 장치의 프로세서는 상기 307 동작에서 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 것으로 확인할 수 있고, 상기 309 동작에서 상기 이어 커넥터 내에 이물질이 없는 것으로 확인할 수 있다. 상기 프로세서는 상기 확인 결과를 기반으로 상기 이어 폰 플러그와 상기 이어 커넥터가 정상적으로 연결된 상태인 것을 판단할 수 있다.According to an embodiment, the processor of the electronic device may determine that the ear connector and the earphone plug are connected in
예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 +극에 인가되는 제1 비교기로부터 수신한 제1 출력 신호의 레벨이 하이 레벨인 것을 확인할 수 있다. 또한, 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 수신한 제2 출력 신호의 레벨이 하이 레벨인 것을 확인할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호 및 제2 출력 신호의 레벨이 하이 레벨인 것을 확인하면, 상기 이어 폰 플러그와 이어 커넥터가 정상 연결 상태인 것을 판단할 수 있다. For example, the processor may determine that the level of the first output signal received from the first comparator to which the reference voltage according to the first specified condition is applied to the + pole is the high level. Also, the processor may confirm that the level of the second output signal received from the second comparator to which the reference voltage according to the second specified condition is applied to the + pole is the high level. The processor may determine that the earphone plug and the ear connector are in a normal connection state when it is confirmed that the received first output signal and the second output signal have a high level.
다른 예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 -극에 인가되는 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 -극에 인가되는 제2 비교기로부터 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호 및 제2 출력 신호의 레벨이 로우 레벨인 것으로 확인되면, 상기 이어 폰 플러그와 이어 커넥터가 정상 연결 상태인 것을 판단할 수 있다.As another example, the processor may receive the first output signal from the first comparator to which the reference voltage according to the first specified condition is applied to the -pole. The processor may receive a second output signal from a second comparator to which a reference voltage according to the second specified condition is applied to a negative pole. The processor may determine that the earphone plug and the ear connector are in a normal connection state when it is confirmed that the received first output signal and the second output signal have a low level.
313 동작에서, 상기 프로세서는 상기 307 동작 및 309 동작에서의 확인 결과를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터가 비정상 연결 상태인 것으로 판단할 수 있다.In
일 실시예에 따르면, 상기 프로세서는 상기 307 동작에서 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 것으로 확인할 수 있다. 상기 프로세서는 상기 309 동작에서 상기 이어 커넥터 내에 이물질이 있는 것으로 확인할 수 있다. 상기 프로세서는 상기 확인 결과를 기반으로 상기 이어 폰 플러그와 상기 이어 커넥터가 비정상적으로 연결된 상태인 것을 판단할 수 있다. 즉, 상기 프로세서는 상기 이어 커넥터 내에 존재하는 이물질로 인해 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 상태인 것으로 오 인식한 것을 판단할 수 있다.According to an embodiment, the processor may determine that the ear connector and the earphone plug are connected in
예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 +극에 인가되는 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 또한, 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호의 레벨이 하이 레벨이고, 상기 제2 출력 신호의 레벨이 로우 레벨인 것을 확인하면, 상기 이어 커넥터 내에 존재하는 이물질로 인해 상기 이어 커넥터와 상기 이어 폰 플러그가 연결된 상태인 것으로 오 인식한 것을 판단할 수 있다.For example, the processor may receive the first output signal from the first comparator to which the reference voltage according to the first specified condition is applied to the + pole. Also, the processor may receive a second output signal from a second comparator to which the reference voltage according to the second specified condition is applied to the + pole. When the processor determines that the level of the received first output signal is the high level and the level of the second output signal is the low level, the ear connector and the earphone plug are damaged due to foreign substances present in the ear connector It can be judged that it is erroneously recognized as being in a connected state.
일 실시예에 따르면, 상기 프로세서는 상기 307 동작에서 상기 이어 커넥터와 상기 이어 폰 플러그가 연결되지 않은 것으로 확인하고, 상기 309 동작에서 상기 이어 커넥터 내에 이물질이 있는 것으로 확인할 수 있다. 상기 프로세서는 상기 확인 결과를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터가 비정상적으로 연결된 상태인 것을 판단할 수 있다. 즉, 상기 프로세서는 상기 이어 커넥터 내에 존재하는 이물질로 인해 상기 이어 폰 플러그가 상기 이어 커넥터에 접속되지 않은 상태인 것으로 판단할 수 있다.According to an embodiment, in
예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 -극에 인가되는 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 -극에 인가되는 제2 비교기로부터 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호의 레벨이 하이 레벨이고, 상기 제2 출력 신호의 레벨이 로우 레벨인 것을 확인하는 경우, 상기 이어 커넥터 내에 존재하는 이물질로 인해 상기 이어 폰 플러그가 상기 이어 커넥터에 접속되지 않은 상태인 것으로 판단할 수 있다.For example, the processor may receive a first output signal from a first comparator to which a reference voltage according to the first specified condition is applied to a negative pole. The processor may receive a second output signal from a second comparator to which a reference voltage according to the second specified condition is applied to a negative pole. When the processor determines that the level of the received first output signal is the high level and the level of the second output signal is the low level, the earphone plug is damaged by the foreign material present in the ear connector It can be determined that it is not connected to .
일 실시예에 따르면, 상기 프로세서는 상기 307 동작에서 상기 이어 커넥터와 상기 이어 폰 플러그가 연결되지 않은 것으로 확인하고, 상기 309 동작에서 상기 이어 커넥터 내에 이물질이 없는 것으로 확인할 수 있다. 상기 프로세서는 상기 확인 결과를 기반으로 상기 이어 폰 플러그와 상기 이어 커넥터가 비정상적으로 연결된 상태인 것을 판단할 수 있다. 상기 프로세서는 상기 이어 폰 플러그가 상기 이어 커넥터에 삽입된 상태이지만, 상기 이어 커넥터에 상기 이어 폰 플러그가 이물질이 아닌 다른 요인으로 인해 접속되지 않은 상태인 것으로 판단할 수 있다.According to an embodiment, the processor may determine that the ear connector and the earphone plug are not connected in
예를 들어, 상기 프로세서는 상기 제1 지정된 조건에 따른 기준 전압이 +극에 인가되는 제1 비교기로부터 제1 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 제2 지정된 조건에 따른 기준 전압이 +극에 인가되는 제2 비교기로부터 제2 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제1 출력 신호의 레벨이 로우 레벨이고, 상기 제2 출력 신호의 레벨이 로우 레벨인 것을 확인하는 경우, 상기 이어 폰 플러그가 상기 이어 커넥터에 삽입된 상태이지만, 상기 이어 커넥터에 상기 이어 폰 플러그가 이물질이 아닌 다른 요인(예: 이어 폰 선의 단선)으로 인해 접속되지 않은 상태인 것으로 판단할 수 있다.For example, the processor may receive the first output signal from the first comparator to which the reference voltage according to the first specified condition is applied to the + pole. The processor may receive a second output signal from a second comparator to which the reference voltage according to the second specified condition is applied to the + pole. When the processor determines that the level of the received first output signal is the low level and the level of the second output signal is the low level, the earphone plug is inserted into the ear connector, but the ear connector It may be determined that the earphone plug is not connected due to a factor other than a foreign substance (eg, disconnection of the earphone wire).
도 4는 본 발명의 일 실시예에 따른, 저항 값에 따른 이어 폰의 연결 유무를 판단하는 방법을 설명하기 위한 도면이다.4 is a diagram for explaining a method of determining whether an earphone is connected according to a resistance value, according to an embodiment of the present invention.
도 4를 참조하면, 이어 커넥터(401)(예: 도 2의 이어 커넥터(201))는 제1 핀(401a), 제2 핀(401b), 제3 핀(401c), 제4 핀(401d), 제5 핀(401e)을 포함할 수 있다. Referring to FIG. 4 , the ear connector 401 (eg, the
일 실시예에 따르면, 상기 이어 커넥터(401) 내에 삽입되는 이어 폰 플러그가 4극 이어 폰 플러그인 경우, 상기 제1 핀(401a)은 4극 이어 플러그의 마이크 단자와 접촉할 수 있다. 상기 이어 커넥터 내에 이어폰 플러그가 삽입되는 경우, 전자 장치(예: 도 2의 전자 장치(200))는 상기 제1 핀(401a)을 통해 이어 폰에서 발생된 음을 입력 받을 수 있다.According to an embodiment, when the earphone plug inserted into the
일 실시예에 따르면, 상기 제2 핀(401b)은 상기 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 이어 폰 플러그의 그라운드 단자와 연결될 수 있다. According to an embodiment, the
다른 실시예에 따르면, 상기 이어 커넥터(401) 내에 삽입되는 이어 폰 플러그가 3극 이어 폰 플러그인 경우, 상기 제1 핀(401a) 및 상기 제2 핀(401b)은 상기 3극 이어 폰 플러그의 그라운드 단자와 연결될 수 있다. 이하에서는, 상기 이어 커넥터(401)를 4극 이어 커넥터로 가정하여 서술하도록 한다.According to another embodiment, when the earphone plug inserted into the
일 실시예에 따르면, 상기 제3 핀(401c)은 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치에서 발생된 왼쪽 단의 음이 이어 폰의 좌측 음향 단자를 통해 출력될 수 있도록, 상기 좌측 음향 단자와 연결될 수 있다. 상기 제4 핀(401d)은 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치에서 발생된 오른쪽 단의 음이 이어 폰의 우측 음향 단자를 통해 출력될 수 있도록, 상기 우측 음향 단자와 연결될 수 있다. 상기 제3 핀(401c) 및 상기 제4 핀(401d)은 상기 이어 폰 플러그의 풀 다운(pull down) 저항 R3와 각각 연결될 수 있다. 상기 풀 다운 저항 R3는 상기 이어 커넥터 내에 삽입되는 플러그를 포함하는 외부 장치의 저항 값에 따라 변경될 수 있다.According to an embodiment, the
일 실시예에 따르면, 상기 제5 핀(401e)은 제1 비교기(403)(예: 도 2의 제1 비교기(207))와 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 연결될 수 있고, 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 제2 비교기(405)(예: 도 2의 제2 비교기(209))와 연결될 수 있다. 상기 제5 핀(401e)은 상기 제1 전기적 경로와 제2 전기적 경로로 분기되기 전 지점에서 시리즈(series) 저항 R2와 바이어스 전원과 연결되어 있는 풀 업(pull up) 저항 R1과 회로적으로 연결될 수 있다. 상기 시리즈 저항 R2는 입력 신호의 전압 레벨 범위를 조절하기 위한 저항일 수 있다. 즉, 상기 제5 핀(401e), 제1 비교기 및 제2 비교기에는 상기 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다.According to an embodiment, the
일 실시예에 따르면, 상기 이어 커넥터 내에 외부 장치의 플러그가 삽입되는 경우, 기존에 입력되고 있는 풀 업 전압의 전압 레벨은 상기 바이어스 전원과 연결된 저항 R1과 상기 외부 장치의 저항 값을 가지는 저항 R3와 상기 시리즈 저항 R2를 기반으로 전압 분배되어, 상기 풀 업 전압의 전압 레벨이 결정될 수 있다. 이하, 상기 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다.According to an embodiment, when a plug of an external device is inserted into the ear connector, the voltage level of the previously input pull-up voltage is a resistor R1 connected to the bias power supply and a resistor R3 having a resistance value of the external device. A voltage may be divided based on the series resistor R2 to determine a voltage level of the pull-up voltage. Hereinafter, the voltage-divided pull-up voltage is started as an input signal.
예를 들면, 상기 저항 R1의 값이 470k 옴으로 설정되고, 저항 R2의 값이 10k 옴으로 설정되어 있는 경우, 상기 이어 커넥터(401) 내에 32 옴으로 설정되어 있는 이어 폰의 플러그가 삽입될 수 있다. 상기 바이어스 전원의 전압이 2.5V인 경우, 상기 저항 R1, R2, R3에 설정되어 있는 저항 값을 기반으로, 2.5V의 전압이 분배되어 상기 입력 신호의 전압 레벨이 0.037617V로 결정될 수 있다.For example, when the value of the resistor R1 is set to 470k ohms and the value of the resistor R2 is set to 10k ohms, a plug of an earphone set to 32 ohms can be inserted into the
다른 예를 들어, 상기 이어 커넥터(701) 내에 수분이 유입되어, 상기 이어 커넥터(701) 내부의 저항들이 병렬 회로를 형성하는 경우, 상기 이어 커넥터(701) 내의 저항 값은 300k 옴으로 변경될 수 있다. 상기 수분이 유입된 상태의 이어 커넥터(401) 내에 32 옴으로 설정되어 있는 이어 폰의 플러그가 삽입될 수 있다. 상기 바이어스 전원의 전압이 2.5V인 경우, 상기 저항 R1, R2, R3에 설정되어 있는 저항 값을 기반으로, 2.5V의 전압이 분배되어 상기 입력 신호의 전압 레벨이 0.715385V로 결정될 수 있다.As another example, when moisture flows into the
일 실시예에 따르면, 상기 제1 비교기(403) 및 상기 제2 비교기(405)는 상기 제5 핀(401e)과 연결된 제1 전기적 경로 및 제2 전기적 경로를 통해 상기 입력 신호를 각각 수신할 수 있다. 상기 제1 비교기(403)는 제1 지정된 조건을 기반으로, 상기 입력 신호를 제1 출력 신호로 출력할 수 있다. 상기 제2 비교기(405)는 제2 지정된 조건을 기반으로, 상기 입력 신호를 제2 출력 신호로 출력할 수 있다.According to an embodiment, the
예를 들어, 상기 제1 비교기(403) 및 상기 제2 비교기(405)는 상기 제1 전기적 경로 및 상기 제2 전기적 경로를 통해 전압 레벨이 0.037617V인 입력 신호를 수신할 수 있다. 상기 제2 전기적 경로는 상기 제1 비교기의 -극과 연결될 수 있다. 제1 지정된 조건에 따른 기준 전압 0.9V가 +극에 인가되는 제1 비교기(403)는 하이 레벨의 제1 출력 신호를 출력 할 수 있다. 제2 지정된 조건에 따른 기준 전압 0.2V가 +극에 인가되는 제2 비교기(405)는 하이 레벨의 제2 출력 신호를 출력할 수 있다.For example, the
다른 예를 들어, 상기 제1 비교기(403) 및 상기 제2 비교기(405)는 상기 제5 핀(401e)과 연결된 제1 전기적 경로 및 제2 전기적 경로를 통해 전압 레벨이 0.715385V인 입력 신호를 수신할 수 있다. 제1 지정된 조건에 따른 기준 전압 0.9V가 +극에 인가되는 상기 제1 비교기(403)는 하이 레벨의 제1 출력 신호를 출력 할 수 있다 제2 지정된 조건에 따른 기준 전압 0.2V가 +극에 인가되는 상기 제2 비교기(405)는 로우 레벨의 제2 출력 신호를 출력할 수 있다.As another example, the
일 실시예에 따르면, 상기 프로세서(407)는 인터럽트 단자를 통해 상기 제1 출력 신호 및 상기 제2 출력 신호를 수신하고, 수신한 제1 출력 신호 및 상기 제2 출력 신호를 기반으로, 이어 커넥터(501)와 외부 장치 간의 연결 유무 및 상기 이어 커넥터(501) 내의 이물질 유무를 판단할 수 있다.According to an embodiment, the
예를 들어, 상기 프로세서(407)는 상기 수신한 제1 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터(401)와 상기 외부 장치가 연결된 상태인 것을 판단할 수 있다. 또한, 상기 프로세서(407)는 상기 제2 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터(401) 내에 이물질이 없는 것으로 판단할 수 있다. 상기 프로세서(407) 상기 판단 결과들을 기반으로, 상기 이어 커넥터(401)에 상기 외부 장치가 정상 연결된 상태인 것을 판단할 수 있다.For example, when the level of the received first output signal is a high level signal, the
다른 예를 들어, 상기 프로세서(407)는 상기 수신한 제1 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터(401)와 상기 외부 장치가 연결된 상태인 것을 판단할 수 있다. 또한, 상기 프로세서(407)는 상기 제2 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터(401) 내에 이물질이 존재하는 것으로 판단할 수 있다. 상기 프로세서(407)는 상기 판단 결과들을 기반으로, 상기 이어 커넥터(401) 내에 존재하는 이물질로 인해 상기 외부 장치가 연결된 것으로 오 인식된 상태임을 판단할 수 있다.As another example, when the level of the received first output signal is a high level signal, the
도 5는 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 다른 블록도이다.5 is another block diagram of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
도 5를 참조하면, 상기 전자 장치(500)(예: 도 1의 전자 장치(101))는 이어 커넥터(501)(예: 도 1의 연결 단자(178)), 제1 전기적 경로(503)(예: 도 2의 제1 전기적 경로(203)), 제2 전기적 경로(505)(예: 도 2의 제2 전기적 경로(205)), 제1 비교기(507)(예: 도 2의 제1 비교기(207)), 제2 비교기(509)(예: 도 2의 제2 비교기(209)), 게이트(511) 및 프로세서(53)(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(211))를 포함할 수 있다. 그러나, 상기 전자 장치(200)의 구성이 이에 한정되는 것은 아니다.Referring to FIG. 5 , the electronic device 500 (eg, the electronic device 101 of FIG. 1 ) includes an ear connector 501 (eg, the
다양한 실시예에 따르면, 상기 전자 장치(500)는 상술한 구성 요소들 중 적어도 하나를 생략할 수 있으며, 적어도 하나의 다른 구성 요소를 포함할 수 있다. 일 예로 상기 전자 장치(500)는 디스플레이(예: 도 1의 디스플레이 모듈(160))를 포함할 수 있다. 상기 전자 장치(500)는 상기 제3 출력 신호를 기반으로 확인한 상기 이어 커넥터(501)와 상기 이어 폰 플러그 간의 연결 상태(예: 이어 커넥터와 이어 폰 플러그 간의 연결 유무 및 이어 커넥터 내의 이물질 유무)를 상기 디스플레이를 통해 표시할 수 있다.According to various embodiments, the
일 실시예에 따르면, 상기 이어 커넥터(501)는 마이크 입력 및/또는 오디오 출력 기능을 가지는 이어 폰의 플러그를 수용할 수 있는 소켓을 의미할 수 있으며, 상기 이어 커넥터(501)를 통해 상기 전자 장치(500)에는 4극 이어 폰 또는 3극 이어폰이 접속될 수 있다. 상기 4극 이어 폰의 플러그는 마이크 단자, 그라운드 단자, 우측 음향 단자 및 좌측 음향 단자를 포함할 수 있다. 상기 3극 이어 폰의 플러그는 마이크 단자를 제외한 그라운드 단자, 우측 음향 단자 및 좌측 음향 단자를 포함할 수 있다.According to an embodiment, the
일 실시예에 따르면, 상기 이어 커넥터(501)는 4극 이어 폰 플러그의 마이크 단자와 접촉하는 제1 핀, 이어 폰 플러그의 그라운드 단자와 접촉하는 제2 핀, 이어 폰 플러그의 우측 음향 단자와 접촉하는 제3 핀, 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제4 핀 및 제5 핀을 포함할 수 있다. According to an embodiment, the
다른 실시예에 따르면, 상기 이어 커넥터(501)는 3극 이어 폰 플러그의 그라운드 단자와 접촉하는 제1 핀, 제2 핀, 이어 폰 플러그의 우측 음향 단자와 접촉하는 제3 핀, 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제4 핀 및 제5 핀을 포함할 수 있다. According to another embodiment, the
일 실시예에 따르면, 상기 이어 폰 플러그의 좌측 음향 단자와 접촉하는 제5 핀은 좌측 감지(L-detection) 단자일 수 있다. 본 발명에서 언급하는 이어 커넥터(501)는 5핀 이어 커넥터(5pin ear connector)일 수 있다. According to an embodiment, the fifth pin contacting the left acoustic terminal of the earphone plug may be a left-side detection (L-detection) terminal. The
일 실시예에 따르면, 상기 이어 커넥터(501)에 상기 이어 폰 플러그가 삽입되는 경우, 상기 이어 커넥터(501)의 감지 단자, 제1 비교기(507) 및 제2 비교기(509)에 인가되고 있는 풀 업(pull-up) 전압이 전압 분배될 수 있다. 보다 자세하게 설명하면, 상기 이어 커넥터(501) 내의 상기 감지 단자, 상기 제1 비교기(507) 및 상기 제2 비교기(509)에는 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다. 상기 감지 단자는 이어 폰 플러그의 좌측 음향 단자와 접촉하는 좌측 감지 단자일 수 있다.According to an embodiment, when the earphone plug is inserted into the
일 실시예에 따르면, 상기 이어 커넥터(501) 내에 이어 폰 플러그가 삽입되는 경우, 상기 바이어스 전원과 연결된 풀 업 저항과 이어 폰 플러그에 연결된 풀 다운 저항에 의해 상기 풀 업 전압의 전압이 분배될 수 있다. 이하, 상기 이어 커넥터(501) 내에 상기 이어 폰 플러그가 삽입되어 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다. 상기 입력 신호는 상기 상기 제1 비교기(507) 및 상기 제2 비교기(509) 각각에 인가될 수 있다.일 실시예에 따르면, 상기 제1 비교기(507) 및 상기 제2 비교기(509)는 상기 이어 커넥터(501)의 5개의 핀 중 상기 좌측 감지 단자와 전기적 경로를 통해 연결될 수 있다. 상기 제1 비교기(507)는 상기 좌측 감지 단자와 상기 제1 전기적 경로(503)를 통해 연결될 수 있다. 상기 제2 비교기(509)는 상기 제1 전기적 경로(503)의 일 지점에서 분기되는 제2 전기적 경로(505)를 통해 상기 좌측 감지 단자와 연결될 수 있다.According to an embodiment, when an earphone plug is inserted into the
일 실시예에 따르면, 상기 제1 비교기(507)는 제1 지정된 조건을 기반으로, 상기 입력 신호를 제1 출력 신호로 출력할 수 있다. 상기 제1 비교기(507)는 상기 입력 신호(전압 레벨이 변경된 풀 업 전압)를 상기 제1 전기적 경로(503)를 통해 수신할 수 있다. 상기 제1 비교기(507)는 제1 단자 및 제2 단자 중 하나의 단자를 통해 제1 지정된 조건을 기반으로 하는 기준 전압을 인가 받을 수 있다. 상기 제1 비교기(507)에 포함된 상기 제1 단자가 -극인 경우, 제2 단자는 +극일 수 있다. 반대로 제1 단자가 +극인 경우, 제2 단자는 -극일 수 있다.According to an embodiment, the
상기 제1 지정된 조건은 상기 이어 커넥터(501)와 상기 이어 폰 플러그 간의 연결 유무를 판단하기 위한 기준 전압 정보일 수 있다.The first specified condition may be reference voltage information for determining whether there is a connection between the
예를 들어, 상기 제1 비교기(507)는 +극에 인가되는 상기 제1 지정된 조건에 기반한 기준 전압 레벨이 0.9V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.9V 이상이면 로우(low) 레벨의 신호를 출력할 수 있다. 상기 제1 비교기(507)는 수신하는 입력 신호의 전압 레벨이 0.9V 미만인 경우, 하이(high) 레벨의 신호를 출력할 수 있다. 상기 제1 출력 신호의 레벨은 상기 입력 신호의 전압 레벨 및 상기 기준 전압 레벨을 기반으로 하이 레벨 또는 로우 레벨로 결정될 수 있다.For example, the
일 실시예에 따르면, 상기 제2 비교기(509)는 제2 지정된 조건을 기반으로, 상기 입력 신호를 제2 출력 신호로 출력할 수 있다. 상기 제2 비교기(509)는 상기 입력 신호를 상기 제2 전기적 경로(505)를 통해 수신할 수 있다. 상기 제2 비교기(509)는 제1 단자 및 제2 단자 중 하나의 단자를 통해 제2 지정된 조건을 기반으로 하는 기준 전압을 인가 받을 수 있다. 상기 제2 비교기(509)에 포함된 상기 제3 단자가 -극인 경우, 제4 단자는 +극일 수 있다. 반대로 제3 단자가 +극인 경우, 제4 단자는 -극일 수 있다. 상기 제2 지정된 조건은 상기 이어 커넥터(501) 내부에 이물질의 유무를 판단하기 위한 기준 전압 정보일 수 있다.According to an embodiment, the
예를 들어, 상기 제2 비교기(509)는 +극에 인가되는 상기 제2 지정된 조건에 기반한 기준 전압 레벨이 0.2V 인 경우, 상기 수신하는 입력 신호의 전압 레벨이 0.2V 이상이면 로우(low) 신호를 출력할 수 있다. 상기 제2 비교기(509)는 수신하는 입력 신호의 전압 레벨이 0.2V 미만인 경우, 하이(high) 신호를 출력할 수 있다. 상기 제2 출력 신호의 레벨은 상기 입력 신호의 전압 레벨 및 상기 기준 전압 레벨을 기반으로 하이 레벨 또는 로우 레벨로 결정될 수 있다.For example, the
일 실시예에 따르면, 상기 게이트(511)는 상기 제1 비교기(507)가 출력한 제1 출력 신호 및 상기 제2 비교기(509)가 출력한 제2 출력 신호를 인가 받을 수 있다. 상기 게이트(511)는 앤드 게이트(and gate)일 수 있다.According to an embodiment, the
일 실시예에 따르면, 상기 게이트(511)는 상기 제1 출력 신호의 레벨 및 상기 제2 출력 신호의 레벨에 기반하여 제3 출력 신호를 출력할 수 있다. According to an embodiment, the
예를 들면, 상기 게이트(511)는 상기 제1 출력 신호의 레벨이 하이 레벨이고, 상기 제2 출력 신호의 레벨이 하이 레벨인 경우, 하이 레벨의 제3 출력 신호를 출력할 수 있다. 다른 예를 들면, 상기 게이트(511)는 상기 제1 출력 신호의 레벨이 하이 레벨이고, 상기 제2 출력 신호의 레벨이 로우 레벨인 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.For example, when the level of the first output signal is a high level and the level of the second output signal is a high level, the
일 실시예에 따르면, 상기 프로세서(513)는 인터럽트 단자를 통해 상기 게이트(511)로부터 제3 출력 신호를 수신할 수 있다. 상기 프로세서(513)는 상기 제3 출력 신호를 기반으로, 상기 이어 커넥터(501)와 이어 폰 플러그 간의 연결 유무 및 상기 이어 커넥터(501) 내의 이물질 유무 상태를 판단할 수 있다. 상기 이어 커넥터(501)와 이어 폰 플러그 간의 연결 유무 및 상기 이어 커넥터(501) 내의 이물질 유무 상태를 판단하는 동작은 도 6에서 자세하게 설명하도록 한다.According to an embodiment, the
예를 들어, 상기 프로세서(513)는 수신한 제3 출력 신호의 레벨이 하이 레벨인 경우, 상기 이어 커넥터(501)와 상기 이어 폰 플러그가 정상 연결 상태인 것을 확인할 수 있다. 다른 예를 들어, 상기 프로세서(513)는 수신한 제3 출력 신호의 레벨이 로우 레벨인 경우, 상기 이어 커넥터(501)와 상기 이어 폰 플러그가 비정상 연결 상태인 것을 확인할 수 있다.For example, when the level of the received third output signal is a high level, the
다양한 실시예에 따르면, 상기 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(200))는 이어 폰의 플러그(예: 도 1의 전자 장치(102))가 삽입되는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 5의 이어 커넥터(501)), 상기 이어 커넥터에 포함된 감지 단자(예: 도 4의 제5핀(401e))와 제1 전기적 경로(예: 도 5의 제1 전기적 경로(503))를 통해 연결된 제1 단자로부터 인가되는 입력 신호와 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기(예: 도 5의 제1 비교기(507)), 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 5의 제2 전기적 경로(505))를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호와 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기(예: 도 5의 제2 비교기(509)), 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 제3 출력 신호를 출력하는 게이트(gate)(예: 도 5의 게이트(511)) 및 상기 게이트로부터 출력되는 제3 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 확인하는 프로세서(예: 도 1의 프로세서(120) 또는 도 5의 프로세서(513))를 포함할 수 있다.According to various embodiments, the electronic device (eg, the electronic device 101 of FIG. 1 or the
다양한 실시예에 따르면, 상기 프로세서는, 상기 게이트로부터 수신한 제3 출력 신호를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 상태가 정상 연결 상태인 제1 상태 및 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 상태가 비정상 연결 상태인 제2 상태 중 하나를 확인할 수 있다.According to various embodiments, the processor may include a first state in which the connection state between the earphone plug and the ear connector is a normal connection state and the earphone plug and the ear based on the third output signal received from the gate. One of the second states in which the connection state of the connector is an abnormal connection state may be checked.
다양한 실시예에 따르면, 상기 이어 커넥터는, 상기 이어 폰 플러그와 연결되는 5개의 단자를 포함할 수 있다.According to various embodiments, the ear connector may include five terminals connected to the earphone plug.
다양한 실시예에 따르면, 상기 감지 단자는, 상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 이어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)를 포함할 수 있다.According to various embodiments, the detection terminal may include a left detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
다양한 실시예에 따르면, 상기 게이트는, 앤드 게이트(AND gate)를 포함할 수 있다.According to various embodiments, the gate may include an AND gate.
다양한 실시예에 따르면, 상기 전자 장치는, 디스플레이를 더 포함하고, 상기 프로세서는, 상기 디스플레이를 통해 상기 확인 결과를 출력할 수 있다.According to various embodiments, the electronic device may further include a display, and the processor may output the confirmation result through the display.
다양한 실시예에 따르면, 상기 프로세서는, 상기 게이트로부터 인터럽트 단자를 통해 상기 제3 출력 신호를 수신할 수 있다.According to various embodiments, the processor may receive the third output signal from the gate through an interrupt terminal.
도 6은 본 발명의 일 실시예에 따른, 이어 폰의 연결 유무를 판단하는 전자 장치의 다른 순서도이다.6 is another flowchart of an electronic device for determining whether an earphone is connected, according to an embodiment of the present invention.
601 동작에서 전자 장치(예: 도 1의 전자 장치(101))는 이어 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 이어 커넥터(201)) 내에 이어 폰 플러그가 삽입되는 경우, 입력 신호를 감지할 수 있다.In
일 실시예에 따르면, 상기 이어 커넥터 내의 감지 단자, 제1 비교기 및 제2 비교기에는 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다. 상기 이어 커넥터 내에 상기 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치의 바이어스 전원과 연결된 풀 업 저항과 상기 삽입된 이어 폰 플러그의 풀 다운 저항에 의해 상기 풀 업 전압이 전압 분배되어, 전압 레벨이 변경될 수 있다. 이하, 상기 이어 커넥터 내에 상기 이어 폰 플러그가 삽입되어 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다.According to an embodiment, a pull-up voltage by a bias power may be always applied to the sensing terminal, the first comparator, and the second comparator in the ear connector. When the earphone plug is inserted into the ear connector, the pull-up voltage is divided by the pull-up resistor connected to the bias power of the electronic device and the pull-down resistor of the inserted earphone plug, and the voltage level is changed can be Hereinafter, the earphone plug is inserted into the ear connector to initiate a voltage-divided pull-up voltage as an input signal.
603 동작에서 상기 입력 신호는 제1 비교기(예: 도 2의 제1 비교기(209)) 및 제2 비교기(예: 도 2의 제2 비교기(209))에 각각 인가될 수 있다. 상기 제1 비교기는 제1 전기적 경로(예: 도 2 제1 전기적 경로(203))를 통해 좌측 감지(L-detection) 단자와 연결될 수 있다. 상기 제2 비교기는 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 상기 좌측 감지 단자와 연결될 수 있다. In
즉, 상기 입력 신호는 상기 제1 전기적 경로를 통해 상기 제1 비교기에 인가될 수 있으며, 상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 제2 비교기에 인가될 수 있다.That is, the input signal may be applied to the first comparator through the first electrical path, and may be applied to the second comparator through a second electrical path branched from one point of the first electrical path.
605 동작에서, 상기 전자 장치는 상기 제1 비교기를 통해 제1 지정된 조건을 기반으로 제1 출력 신호를 출력할 수 있다. 상기 제1 지정된 조건은 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 유무를 판단하기 위한 기준 전압 정보일 수 있다. 상기 제1 지정된 조건은 제1 비교기에 설정될 수 있으며, 설정 값에 따라 기준 전압 정보가 변경될 수 있다.In
일 실시예에 따르면, 상기 제1 비교기는 상기 입력 신호를 인가받는 경우, 제1 지정된 조건에 따라 상기 제1 출력 신호를 하이(high) 레벨의 출력 신호 또는 로우(low) 레벨의 신호로 출력할 수 있다. According to an embodiment, the first comparator may output the first output signal as a high-level output signal or a low-level signal according to a first specified condition when the input signal is applied. can
예를 들어, 상기 제1 지정된 조건에 따른 기준 전압 0.9V가 제1 비교기의 +극에 인가될 수 있다. 상기 제1 비교기는 상기 제1 비교기의 -극과 연결된 제1 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제1 비교기는 인가 받은 입력 신호의 전압 레벨이 0.7V인 경우, 하이 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기는 수신한 입력 신호의 전압 레벨이 기준 전압 0.9V보다 높은 1V인 경우, 로우 레벨의 신호를 출력할 수 있다. For example, the reference voltage 0.9V according to the first specified condition may be applied to the + pole of the first comparator. The first comparator may receive an input signal through a first electrical path connected to the -pole of the first comparator. When the voltage level of the applied input signal is 0.7V, the first comparator may output an output signal of a high level. The first comparator may output a low-level signal when the voltage level of the received input signal is 1V higher than the reference voltage 0.9V.
다른 예를 들어, 제1 지정된 조건에 따른 기준 전압 0.7V가 상기 제1 비교기의 -극에 인가될 수 있다. 상기 제1 비교기는 상기 제1 비교기의 +극과 연결된 제1 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제1 비교기는 인가 받은 입력 신호의 전압 레벨이 0.5V인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. 상기 제1 비교기는 인가 받은 입력 신호의 전압 레벨이 기준 전압 0.7V 보다 높은 0.8V인 경우, 하이 레벨의 신호를 출력할 수 있다. As another example, the reference voltage 0.7V according to the first specified condition may be applied to the -pole of the first comparator. The first comparator may receive an input signal through a first electrical path connected to the + electrode of the first comparator. The first comparator may output a low-level output signal when the voltage level of the applied input signal is 0.5V. The first comparator may output a high level signal when the voltage level of the applied input signal is 0.8V higher than the reference voltage 0.7V.
607 동작에서, 상기 전자 장치는 제2 비교기를 통해 제2 지정된 조건을 기반으로 제2 출력 신호를 출력할 수 있다. In
일 실시예에 따르면, 상기 제2 비교기는 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 입력 신호를 인가 받을 수 있다. 상기 제2 지정된 조건은 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보일 수 있다. 상기 제2 지정된 조건은 제2 비교기에 설정될 수 있으며, 설정 값에 따라 기준 전압 정보가 변경될 수 있다.According to an embodiment, the second comparator may receive the input signal through a second electrical path branched from one point of the first electrical path. The second specified condition may be reference voltage information for determining whether there is a foreign substance inside the ear connector. The second specified condition may be set in the second comparator, and the reference voltage information may be changed according to the set value.
일 실시예에 따르면, 상기 제2 비교기는 상기 입력 신호를 수신하는 경우, 제2 지정된 조건에 따라 상기 제2 출력 신호를 하이(high) 레벨의 신호 또는 로우(low) 레벨의 신호로 출력할 수 있다. 예를 들어, 상기 제2 지정된 조건에 따른 기준 전압 0.2V가 제2 비교기의 +극에 인가될 수 있다. 상기 제2 비교기는 상기 제2 비교기의 -극과 연결된 제2 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기는 상기 입력 신호의 전압 레벨이 0.1V인 경우 하이 레벨의 신호를 출력할 수 있다. 상기 제2 비교기는 수신한 입력 신호의 전압 레벨이 기준 전압 0.2V보다 높은 0.5V인 경우, 로우 레벨의 신호를 출력할 수 있다. According to an embodiment, when the second comparator receives the input signal, it may output the second output signal as a high level signal or a low level signal according to a second specified condition. have. For example, the reference voltage 0.2V according to the second specified condition may be applied to the + pole of the second comparator. The second comparator may receive an input signal through a second electrical path connected to the -pole of the second comparator. The second comparator may output a high level signal when the voltage level of the input signal is 0.1V. The second comparator may output a low-level signal when the voltage level of the received input signal is 0.5V higher than the reference voltage 0.2V.
다른 예를 들어, 제2 지정된 조건에 따른 기준 전압 0.5V가 상기 제1 비교기의 -극에 인가될 수 있다. 상기 제2 비교기는 상기 제2 비교기의 +극과 연결된 제2 전기적 경로를 통해 입력 신호를 인가 받을 수 있다. 상기 제2 비교기는 수신한 입력 신호의 전압 레벨이 0.3V인 경우, 로우 레벨의 출력 신호를 출력할 수 있다. 상기 제2 비교기가 수신한 입력 신호의 전압 레벨이 기준 전압 0.5V 보다 높은 0.8V인 경우, 상기 제2 비교기는 하이 레벨의 신호를 출력할 수 있다. As another example, the reference voltage 0.5V according to the second specified condition may be applied to the -pole of the first comparator. The second comparator may receive an input signal through a second electrical path connected to the + electrode of the second comparator. The second comparator may output a low-level output signal when the voltage level of the received input signal is 0.3V. When the voltage level of the input signal received by the second comparator is 0.8V, which is higher than the reference voltage of 0.5V, the second comparator may output a high-level signal.
609 동작에서, 상기 전자 장치는 게이트(예: 도 5의 게이트(511))를 통해 제1 출력 신호 및 제2 출력 신호를 기반으로 제3 출력 신호를 출력할 수 있다. In
일 실시예에 따르면, 상기 전자 장치는 제1 출력 신호 및 제2 출력 신호를 인가 받은 게이트를 통해 하이 레벨(high) 레벨의 제3 출력 신호 또는 로우(low) 레벨의 제3 출력 신호를 출력할 수 있다. 상기 게이트는 앤드 게이트(and gate)일 수 있다.According to an embodiment, the electronic device may output a high level third output signal or a low level third output signal through a gate to which the first output signal and the second output signal are applied. can The gate may be an AND gate.
예를 들어, 상기 게이트는 상기 제1 지정된 조건에 따른 기준 전압이 +극에 인가된 제1 비교기로부터 하이 레벨의 제1 출력 신호를 인가 받을 수 있다. 또한, 상기 게이트는 상기 제2 지정된 조건에 따른 기준 전압이 +극이 인가된 제2 비교기로부터 하이 레벨의 제2 출력 신호를 인가 받을 수 있다. 상기 게이트는 상기 수신한 제1 출력 신호 및 상기 2 출력 신호의 레벨이 하이 레벨인 경우, 하이 레벨의 제3 출력 신호를 출력할 수 있다.For example, the gate may receive a high level first output signal from a first comparator to which the reference voltage according to the first specified condition is applied to the + pole. In addition, the gate may receive a high level second output signal from a second comparator to which the + pole of the reference voltage according to the second specified condition is applied. The gate may output a high level third output signal when the received first output signal and the second output signal have a high level.
다른 예를 들어, 상기 게이트는 상기 수신한 제1 출력 신호 및 상기 제2 출력 신호의 레벨이 하나라도 로우 레벨인 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.As another example, when at least one of the received first output signal and the second output signal has a low level, the gate may output a low-level third output signal.
다른 실시예에 따르면, 상기 게이트는 노 알 게이트(nor gate)일 수 있다. 예를 들어, 상기 노 알 게이트는 상기 제1 지정된 조건에 따른 기준 전압이 -극에 인가된 제1 비교기로부터 로우 레벨의 제1 출력 신호를 인가 받을 수 있다. 또한, 상기 노 알 게이트는 상기 제2 지정된 조건에 따른 기준 전압이 -극에 인가된 제2 비교기로부터 로우 레벨의 제2 출력 신호를 인가 받을 수 있다. 상기 게이트는 상기 수신한 제1 출력 신호 및 상기 2 출력 신호의 레벨이 로우 레벨인 경우, 하이 레벨의 제3 출력 신호를 출력할 수 있다.According to another embodiment, the gate may be a nor gate. For example, the NO-R gate may receive a low-level first output signal from a first comparator to which a reference voltage according to the first specified condition is applied to a negative pole. Also, the NO-R gate may receive a low-level second output signal from a second comparator to which the reference voltage according to the second specified condition is applied to a negative pole. The gate may output a high level third output signal when the received first output signal and the second output signal have a low level.
다른 예를 들어, 상기 노 알 게이트는 상기 인가 받은 제1 출력 신호 및 상기 제2 출력 신호의 레벨이 하나라도 하이 레벨인 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.As another example, when at least one of the applied first output signal and the second output signal has a high level, the NOR gate may output a low-level third output signal.
611 동작에서, 상기 전자 장치는 상기 제3 출력 신호를 기반으로, 상기 이어 커넥터와 상기 이어 폰 플러그의 연결 상태를 확인할 수 있다.In
일 실시예에 따르면, 상기 전자 장치의 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(209))는 인터럽트 단자를 통해 제3 출력 신호를 수신할 수 있다. 상기 프로세서는 상기 수신한 제3 출력 신호의 레벨을 기반으로, 상기 이어 커넥터와 상기 이어 폰 플러그의 연결 상태를 확인할 수 있다. According to an embodiment, the processor of the electronic device (eg, the
예를 들어, 상기 게이트가 앤드 게이트(and gate)일 수 있다. 상기 프로세서는 상기 게이트로부터 인터럽트 단자를 통해 수신한 제3 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 정상 연결 상태인 것을 확인할 수 있다.For example, the gate may be an AND gate. When the level of the third output signal received from the gate through the interrupt terminal is a high level signal, the processor may determine that the ear connector and the earphone plug are in a normal connection state.
다른 예를 들어, 상기 프로세서가 상기 수신한 제3 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 비정상 연결 상태인 것을 확인할 수 있다. 즉, 상기 프로세서는 상기 수신한 제3 출력 신호의 레벨을 기반으로 이어 커넥터와 이어 폰 플러그의 연결 상태를 확인할 수 있다.As another example, when the level of the third output signal received by the processor is a low level signal, it may be confirmed that the ear connector and the earphone plug are in an abnormal connection state. That is, the processor may check the connection state of the ear connector and the earphone plug based on the level of the received third output signal.
또 다른 예를 들어, 상기 게이트가 노 알 게이트(nor gate)일 수 있다. 상기 프로세서는 상기 노 알 게이트로부터 상기 제3 출력 신호를 수신할 수 있다. 상기 프로세서는 제3 출력 신호의 레벨이 로우 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 비정상 연결 상태인 것을 확인할 수 있다. 상기 프로세서는 상기 수신한 제3 출력 신호의 레벨이 하이 레벨의 신호인 경우, 상기 이어 커넥터와 상기 이어 폰 플러그가 정상 연결 상태인 것을 확인할 수 있다.As another example, the gate may be a nor gate. The processor may receive the third output signal from the NO R gate. When the level of the third output signal is the low level signal, the processor may determine that the ear connector and the earphone plug are in an abnormal connection state. When the level of the received third output signal is a high level signal, the processor may determine that the ear connector and the earphone plug are in a normal connection state.
즉, 도 6은 상기 프로세서가 상기 게이트로부터 인터럽트 단자를 통해 수신한 제3 출력 신호의 레벨을 기반으로, 이어 커넥터와 이어 폰 플러그의 연결 상태를 확인할 수 있다 따라서, 상기 프로세서는 상기 제1 비교기로부터 출력되는 상기 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 상기 제2 출력 신호를 기반으로, 이어 커넥터와 이어 폰 플러그 간의 연결 상태를 판단하는 동작을 수행하지 않을 수 있다.That is, in FIG. 6 , the processor can check the connection state of the ear connector and the earphone plug based on the level of the third output signal received from the gate through the interrupt terminal. An operation of determining a connection state between an ear connector and an earphone plug may not be performed based on the first output signal outputted and the second output signal outputted from the second comparator.
도 7은 본 발명의 일 실시예에 따른, 저항 값에 따른 이어 폰의 연결 유무를 판단하는 다른 방법을 설명하기 위한 도면이다.7 is a diagram for explaining another method of determining whether an earphone is connected according to a resistance value, according to an embodiment of the present invention.
도 7을 참조하면, 이어 커넥터(701)(예: 도 2의 이어 커넥터(201))는 제1 핀(701a), 제2 핀(701b), 제3 핀(701c), 제4 핀(701d), 제5 핀(701e)을 포함할 수 있다. Referring to FIG. 7 , the ear connector 701 (eg, the
일 실시예에 따르면, 상기 이어 커넥터(701) 내에 삽입되는 이어 폰 플러그가 4극 이어 폰 플러그인 경우, 상기 제1 핀(701a)은 4극 이어 플러그의 마이크 단자와 접촉할 수 있다. 상기 이어 커넥터 내에 이어폰 플러그가 삽입되는 경우, 전자 장치(예: 도 2의 전자 장치(200))는 상기 제1 핀(701a)을 통해 이어 폰에서 발생된 음을 입력 받을 수 있다.According to an embodiment, when the earphone plug inserted into the
일 실시예에 따르면, 상기 제2 핀(701b)은 상기 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 이어 폰 플러그의 그라운드 단자와 연결될 수 있다. According to an embodiment, the
다른 실시예에 따르면, 상기 이어 커넥터(701) 내에 삽입되는 이어 폰 플러그가 3극 이어 폰 플러그인 경우, 상기 제1 핀(701a) 및 상기 제2 핀(701b)은 상기 3극 이어 폰 플러그의 그라운드 단자와 연결될 수 있다. 이하에서는, 상기 이어 커넥터(701)를 4극 이어 커넥터로 가정하여 서술하도록 한다.According to another embodiment, when the earphone plug inserted into the
일 실시예에 따르면, 상기 제3 핀(701c)은 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치에서 발생된 왼쪽 단의 음이 이어 폰의 좌측 음향 단자를 통해 출력될 수 있도록, 상기 좌측 음향 단자와 연결될 수 있다. 상기 제4 핀(701d)은 이어 커넥터 내에 이어 폰 플러그가 삽입되는 경우, 상기 전자 장치에서 발생된 오른쪽 단의 음이 이어 폰의 우측 음향 단자를 통해 출력될 수 있도록, 상기 우측 음향 단자와 연결될 수 있다. 상기 제3 핀(701c) 및 상기 제4 핀(701d)은 상기 이어 폰 플러그의 풀 다운(pull down) 저항 R3와 각각 연결될 수 있다. 상기 풀 다운 저항 R3는 상기 이어 커넥터 내에 삽입되는 플러그를 포함하는 외부 장치의 저항 값에 따라 변경될 수 있다.According to an embodiment, the
일 실시예에 따르면, 상기 제5 핀(701e)은 제1 비교기(703)(예: 도 2의 제1 비교기(207))와 제1 전기적 경로(예: 도 2의 제1 전기적 경로(203))를 통해 연결될 수 있고, 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로(예: 도 2의 제2 전기적 경로(205))를 통해 제2 비교기(705)(예: 도 2의 제2 비교기(209))와 연결될 수 있다. 상기 제5 핀(701e)은 상기 제1 전기적 경로와 제2 전기적 경로로 분기되기 전 지점에서 시리즈(series) 저항 R2 및 풀 업(pull up) 저항 R1과 연결될 수 있다. 상기 시리즈 저항 R2는 입력 신호의 전압 레벨 범위를 조절하기 위한 저항일 수 있다. 즉, 상기 제5 핀(701e), 제1 비교기 및 제2 비교기에는 상기 바이어스 전원에 의한 풀 업 전압이 항상 인가될 수 있다.According to an embodiment, the
일 실시예에 따르면, 상기 이어 커넥터 내에 외부 장치의 플러그가 삽입되는 경우, 기존에 입력되고 있는 풀 업 전압 상기 바이어스 전원과 연결된 저항 R1과 상기 외부 장치의 저항 값을 가지는 저항 R3와 상기 시리즈 저항 R2를 기반으로 전압 분배되어, 상기 풀 업 전압의 전압 레벨이 결정될 수 있다. 이하, 상기 전압 분배된 풀 업 전압을 입력 신호로 개시하도록 한다.According to an exemplary embodiment, when a plug of an external device is inserted into the ear connector, a resistor R1 connected to the bias power source and a resistor R1 connected to the bias power supply that are previously inputted, a resistor R3 having a resistance value of the external device, and the series resistor R2 By dividing the voltage based on , the voltage level of the pull-up voltage may be determined. Hereinafter, the voltage-divided pull-up voltage is started as an input signal.
예를 들면, 상기 저항 R1의 값이 470k 옴으로 설정되고, 저항 R2의 값이 33k 옴으로 설정되어 있는 경우, 상기 이어 커넥터(701) 내에 저항 값이 12k 옴으로 설정되어 있는 오픈 케이블(open cable)의 플러그가 삽입될 수 있다. 상기 바이어스 전원의 전압이 2.5V인 경우, 상기 저항 R1, R2, R3에 설정되어 있는 저항 값을 기반으로, 2.5V의 전압이 분배되어 입력 신호의 전압 레벨이 0.157282V로 결정될 수 있다.For example, when the value of the resistor R1 is set to 470k ohm and the value of the resistor R2 is set to 33k ohm, the open cable in which the resistance value is set to 12k ohm in the ear connector 701 ) can be inserted. When the voltage of the bias power supply is 2.5V, a voltage of 2.5V is divided based on the resistance values set in the resistors R1, R2, and R3, so that the voltage level of the input signal is determined to be 0.157282V.
다른 예를 들어, 상기 이어 커넥터(701) 내에 수분이 유입되어, 상기 이어 커넥터(701) 내부의 저항들이 병렬 회로를 형성하는 경우, 상기 이어 커넥터(701) 내의 저항 값은 300k 옴으로 변경될 수 있다. 상기 수분이 유입된 상태의 이어 커넥터(401) 내에 12k 옴으로 설정되어 있는 오픈 케이블의 플러그가 삽입될 수 있다. 상기 바이어스 전원의 전압이 2.5V인 경우, 상기 저항 R1, R2, R3에 설정되어 있는 저항 값을 기반으로, 2.5V의 전압이 분배되어 입력 신호의 전압 레벨이 0.746451V로 결정될 수 있다.As another example, when moisture flows into the
일 실시예에 따르면, 상기 제1 비교기(703) 및 상기 제2 비교기(705)는 상기 제5 핀(701e)과 연결된 제1 전기적 경로 및 제2 전기적 경로를 통해 입력 신호를 각각 인가 받을 수 있다. 상기 제1 비교기(703)는 제1 지정된 조건을 기반으로 제1 출력 신호를 출력할 수 있다. 상기 제2 비교기(705)는 제2 지정된 조건을 기반으로 제2 출력 신호를 출력할 수 있다.According to an embodiment, the
예를 들어, 상기 제1 비교기(703)는 제1 전기적 경로를 통해 전압 레벨이 0.157282V인 입력 신호를 인가 받을 수 있다. 상기 제1 전기적 경로는 상기 제1 비교기(703)의 -극과 연결되어 있을 수 있다. 상기 제1 비교기(703)는 제1 지정된 조건에 따른 기준 전압 0.9V가 +극을 통해 인가되는 경우, 하이 레벨의 제1 출력 신호를 출력할 수 있다. 또한, 상기 제2 비교기(705)는 제2 전기적 경로를 통해 전압 레벨이 0.157282V인 입력 신호를 인가 받을 수 있다. 상기 제2 전기적 경로는 상기 제2 비교기(705)의 -극과 연결되어 있을 수 있다. 상기 제2 비교기(705)는 제2 지정된 조건에 따른 기준 전압 0.2V가 +극을 통해 인가되는 경우, 하이 레벨의 제2 출력 신호를 출력할 수 있다.For example, the
다른 예를 들어, 상기 제1 비교기(703)는 제1 전기적 경로를 통해 전압 레벨이 0.746451V인 입력 신호를 인가 받을 수 있다. 상기 제1 전기적 경로는 상기 제1 비교기(703)의 -극과 연결되어 있을 수 있다. 상기 제1 비교기(703)는 제1 지정된 조건에 따른 기준 전압 0.9V가 +극을 통해 인가되는 경우, 하이 레벨의 제1 출력 신호를 출력 할 수 있다. 또한, 상기 제2 비교기(705)는 제2 전기적 경로를 통해 전압 레벨이 0.746451V인 입력 신호를 인가 받을 수 있다. 상기 제2 전기적 경로는 상기 제2 비교기(705)의 -극과 연결되어 있을 수 있다. 상기 제2 비교기(705)는 제2 지정된 조건에 따른 기준 전압 0.2V가 +극을 통해 인가되는 경우, 로우 레벨의 제2 출력 신호를 출력할 수 있다.As another example, the
일 실시예에 따르면, 게이트(707)는 상기 제1 출력 신호 및 상기 제2 출력 신호를 인가 받을 수 있다. 상기 게이트(707)는 상기 인가 받은 제1 출력 신호의 레벨 및 제2 출력 신호의 레벨을 기반으로, 제3 출력 신호를 출력할 수 있다. 상기 게이트(707)는 앤드 게이트(and gate)일 수 있다.According to an embodiment, the
예를 들어, 상기 게이트(707)가 상기 제1 비교기(703)로부터 하이 레벨의 제1 출력 신호 및 상기 제2 비교기(705)로부터 하이 레벨의 제2 출력 신호를 수신한 경우, 하이 레벨을 가지는 제3 출력 신호를 출력할 수 있다. 다른 예를 들어, 상기 게이트(707)는 상기 인가 받은 제1 출력 신호 및 제2 출력 신호에서 로우 레벨의 신호가 하나라도 존재하는 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.For example, when the
다른 실시예에 따르면, 상기 게이트(707)는 노 알 게이트(nor gate)일 수 있다. 예를 들어, 상기 노 알 게이트는 제1 지정된 조건에 따라 기준 전압이 -극을 통해 인가되는 제1 비교기(703)로부터 로우 레벨의 제1 출력 신호를 인가 받을 수 있다. 또한, 상기 노 알 게이트는 제2 지정된 조건에 따라 기준 전압이 -극을 통해 인가되는 제2 비교기(705)로부터 로우 레벨의 제2 출력 신호를 인가 받을 수 있다. 상기 노 알 게이트는 상기 제1 출력 신호 및 상기 제2 출력 신호의 레벨이 로우 레벨인 경우, 하이 레벨을 가지는 제3 출력 신호를 출력할 수 있다. 다른 예를 들어, 상기 게이트(707)는 상기 인가 받은 제1 출력 신호 및 제2 출력 신호에서 하이 레벨의 신호가 하나라도 존재하는 경우, 로우 레벨의 제3 출력 신호를 출력할 수 있다.According to another embodiment, the
일 실시예에 따르면, 프로세서(709)는 인터럽트 단자를 통해 상기 게이트(707)로부터 출력된 제3 출력 신호를 수신할 수 있다. 상기 프로세서(709)는 상기 인가 받은 제3 출력 신호를 기반으로 상기 이어 커넥터(701)와 상기 외부 장치 간의 연결 상태를 확인할 수 있다.According to an embodiment, the
예를 들어, 상기 프로세서(709)는 수신한 제3 출력 신호의 레벨이 하이 레벨인 경우, 상기 이어 커넥터(701)와 상기 외부 장치의 플러그가 정상 연결 상태인 것을 확인할 수 있다. 다른 예를 들어, 상기 프로세서(709)는 인가 받은 제3 출력 신호의 레벨이 로우 레벨인 경우, 상기 이어 커넥터(701)와 상기 외부 장치의 플러그가 비정상 연결 상태인 것을 확인할 수 있다.For example, when the level of the received third output signal is a high level, the
다른 실시예에 따르면, 상기 프로세서(709)는 상기 확인 결과를 상기 전자 장치의 디스플레이(미도시)를 통해 표시할 수 있다. According to another embodiment, the
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but it should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A , B, or C" each may include any one of, or all possible combinations of, items listed together in the corresponding one of the phrases. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish an element from other elements in question, and may refer elements to other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.According to various embodiments of the present document, one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101) may be implemented as software (eg, the program 140) including For example, a processor (eg, processor 120 ) of a device (eg, electronic device 101 ) may call at least one command among one or more commands stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be provided as included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store™) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly between smartphones (eg: smartphones) and online. In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.
Claims (20)
이어 폰의 플러그가 삽입되는 이어 커넥터;
상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기;
상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기; 및
상기 제1 비교기 및 상기 제2 비교기와 전기적으로 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하는 프로세서를 포함하는 전자 장치.In an electronic device,
an ear connector into which the plug of the earphone is inserted;
outputting a first output signal by comparing an input signal applied from a first terminal connected to a sensing terminal included in the ear connector and a first electrical path and a reference voltage according to a first specified condition applied from a second terminal a first comparator;
By comparing an input signal applied from a third terminal connected to the sensing terminal through a second electrical path branched from one point of the first electrical path and a reference voltage according to a second specified condition applied from a fourth terminal, a second comparator for outputting a second output signal; and
It is electrically connected to the first comparator and the second comparator, and is connected to a plug of the earphone based on a first output signal output from the first comparator and a second output signal output from the second comparator An electronic device comprising a processor for determining a state.
상기 이어 커넥터는,
상기 이어 폰의 플러그와 연결되는 5개의 단자를 포함하는 전자 장치.According to claim 1,
The ear connector is
and five terminals connected to the plug of the earphone.
상기 프로세서는,
상기 수신한 제1 출력 신호의 변화를 감지하여, 상기 전자 장치에 대한 상기 이어 폰의 연결 유무를 판단하고,
상기 수신한 제2 출력 신호의 변화를 감지하여, 상기 이어 커넥터 내부의 이물질 유무를 판단하는 전자 장치.According to claim 1,
The processor is
detecting a change in the received first output signal to determine whether the earphone is connected to the electronic device;
An electronic device for detecting a change in the received second output signal to determine whether there is a foreign substance inside the ear connector.
상기 제1 지정된 조건은,
상기 제1 비교기에 설정된 조건으로, 상기 전자 장치에 대한 상기 이어 폰 플러그의 연결 유무를 판단하기 위한 기준 전압 정보; 및
상기 제2 지정된 조건은,
상기 제2비교기에 설정된 조건으로, 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보인 전자 장치.According to claim 1,
The first specified condition is,
reference voltage information for determining whether the earphone plug is connected to the electronic device under the condition set in the first comparator; and
The second specified condition is,
The electronic device which is reference voltage information for determining the presence or absence of foreign substances inside the ear connector under the condition set in the second comparator.
상기 프로세서는,
상기 수신하는 제1 출력 신호의 전압 레벨이 상기 제1 지정된 조건으로 설정된 기준 전압 이하인 경우, 상기 이어 폰의 플러그가 상기 전자 장치에 연결된 것으로 판단하고,
상기 수신하는 제2 출력 신호의 전압 레벨이 상기 제2 지정된 조건으로 설정된 기준 전압 이하인 경우, 상기 이어 커넥터 내부에 이물질이 존재하지 않는 것으로 판단하는 전자 장치.5. The method of claim 4,
The processor is
When the voltage level of the received first output signal is less than or equal to the reference voltage set under the first specified condition, it is determined that the plug of the earphone is connected to the electronic device,
When the voltage level of the received second output signal is equal to or less than the reference voltage set as the second specified condition, the electronic device determines that there is no foreign substance inside the ear connector.
상기 감지 단자는,
상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 어어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)인 전자 장치.According to claim 1,
The sensing terminal is
An electronic device that is a left detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
상기 프로세서는,
제1 인터럽트 단자를 통해 상기 제1 출력 신호를 수신하고, 제2 인터럽트 단자를 통해 제2 출력 신호를 수신하는 전자 장치.According to claim 1,
The processor is
An electronic device that receives the first output signal through a first interrupt terminal and receives a second output signal through a second interrupt terminal.
이어 폰의 플러그가 삽입되는 이어 커넥터;
상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호와 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기;
상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호와 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기;
상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 제3 출력 신호를 출력하는 게이트(gate); 및
상기 게이트로부터 출력되는 제3 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 확인하는 프로세서를 포함하는 전자 장치.In an electronic device,
an ear connector into which the plug of the earphone is inserted;
outputting a first output signal by comparing an input signal applied from a first terminal connected to a sensing terminal included in the ear connector and a first electrical path with a reference voltage according to a first specified condition applied from a second terminal a first comparator;
By comparing an input signal applied from a third terminal connected to the sensing terminal through a second electrical path branched from one point of the first electrical path and a reference voltage according to a second specified condition applied from a fourth terminal, a second comparator for outputting a second output signal;
A gate connected to the first comparator and the second comparator for outputting a third output signal based on a first output signal output from the first comparator and a second output signal output from the second comparator ); and
and a processor configured to check a connection state with a plug of the earphone based on a third output signal output from the gate.
상기 프로세서는,
상기 게이트로부터 수신한 제3 출력 신호를 기반으로, 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 상태가 정상 연결 상태인 제1 상태 및 상기 이어 폰 플러그와 상기 이어 커넥터의 연결 상태가 비정상 연결 상태인 제2 상태 중 하나를 확인하는 전자 장치.9. The method of claim 8,
The processor is
Based on the third output signal received from the gate, a first state in which the connection state between the earphone plug and the ear connector is a normal connection state, and a second state in which the connection state between the earphone plug and the ear connector is an abnormal connection state An electronic device that checks one of two states.
상기 이어 커넥터는,
상기 이어 폰 플러그와 연결되는 5개의 단자를 포함하는 전자 장치.9. The method of claim 8,
The ear connector is
and five terminals connected to the earphone plug.
상기 감지 단자는,
상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 이어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)인 전자 장치.9. The method of claim 8,
The sensing terminal is
an electronic device that is a left-side detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
상기 게이트는,
앤드 게이트(AND gate)인 전자 장치.9. The method of claim 8,
The gate is
An electronic device that is an AND gate.
디스플레이를 더 포함하고,
상기 프로세서는, 상기 디스플레이를 통해 상기 확인 결과를 출력하는 전자 장치.9. The method of claim 8,
further comprising a display;
The processor is configured to output the confirmation result through the display.
상기 프로세서는,
상기 게이트로부터 인터럽트 단자를 통해 상기 제3 출력 신호를 수신하는 전자 장치.9. The method of claim 8,
The processor is
The electronic device receives the third output signal from the gate through an interrupt terminal.
디스플레이;
이어 폰의 플러그가 삽입되는 이어 커넥터;
상기 이어 커넥터에 포함된 감지 단자와 제1 전기적 경로를 통해 연결된 제1 단자로부터 인가되는 입력 신호 및 제2 단자로부터 인가되는 제1 지정된 조건에 따른 기준 전압을 비교하여, 제1 출력 신호를 출력하는 제1 비교기;
상기 제1 전기적 경로의 일 지점에서 분기되는 제2 전기적 경로를 통해 상기 감지 단자와 연결되는 제3 단자로부터 인가되는 입력 신호 및 제4 단자로부터 인가되는 제2 지정된 조건에 따른 기준 전압을 비교하여, 제2 출력 신호를 출력하는 제2 비교기; 및
상기 디스플레이, 상기 제1 비교기 및 상기 제2 비교기와 연결되며, 상기 제1 비교기로부터 출력되는 제1 출력 신호 및 상기 제2 비교기로부터 출력되는 제2 출력 신호를 기반으로, 상기 이어 폰의 플러그와의 연결 상태를 판단하고, 상기 판단 결과를 상기 디스플레이를 통해 출력하는 프로세서를 포함하는 전자 장치.In an electronic device,
display;
an ear connector into which the plug of the earphone is inserted;
outputting a first output signal by comparing an input signal applied from a first terminal connected to a sensing terminal included in the ear connector and a first electrical path and a reference voltage according to a first specified condition applied from a second terminal a first comparator;
By comparing an input signal applied from a third terminal connected to the sensing terminal through a second electrical path branched from one point of the first electrical path and a reference voltage according to a second specified condition applied from a fourth terminal, a second comparator for outputting a second output signal; and
It is connected to the display, the first comparator, and the second comparator, and based on a first output signal output from the first comparator and a second output signal output from the second comparator, and a processor for determining a connection state and outputting the determination result through the display.
상기 이어 커넥터는,
상기 이어 폰 플러그와 연결되는 5개의 단자를 포함하는 전자 장치.16. The method of claim 15,
The ear connector is
and five terminals connected to the earphone plug.
상기 감지 단자는,
상기 이어 커넥터에 포함된 복수 개의 단자 중 상기 이어 폰 플러그에 포함된 좌측 음향 단자와 연결되는 좌측 감지 단자(L-detection)인 전자 장치.16. The method of claim 15,
The sensing terminal is
an electronic device that is a left-side detection terminal (L-detection) connected to a left sound terminal included in the earphone plug among a plurality of terminals included in the ear connector.
상기 제1 지정된 조건은,
상기 제1 비교기에 설정된 조건으로, 상기 전자 장치에 대한 상기 이어 폰 플러그의 연결 유무를 판단하기 위한 기준 전압 정보; 및
상기 제2 지정된 조건은,
상기 제2 비교기에 설정된 조건으로, 상기 이어 커넥터 내부의 이물질 유무를 판단하기 위한 기준 전압 정보인 전자 장치.16. The method of claim 15,
The first specified condition is,
reference voltage information for determining whether the earphone plug is connected to the electronic device under the condition set in the first comparator; and
The second specified condition is,
The electronic device which is reference voltage information for determining whether there is a foreign substance inside the ear connector under the condition set in the second comparator.
상기 프로세서는,
상기 수신한 제1 출력 신호의 변화를 감지하여, 상기 전자 장치에 대한 상기 이어 폰의 연결 유무를 판단하고,
상기 수신한 제2 출력 신호의 변화를 감지하여, 상기 이어 커넥터 내부의 이물질 유무를 판단하는 전자 장치.16. The method of claim 15,
The processor is
detecting a change in the received first output signal to determine whether the earphone is connected to the electronic device;
An electronic device for detecting a change in the received second output signal to determine whether there is a foreign substance inside the ear connector.
상기 프로세서는,
상기 판단한 이어폰의 연결 유무 및 상기 판단한 이어 커넥터 내부의 이물질 유무에 기반하여, 결정되는 네 개의 연결 상태 중 하나의 상태를 상기 디스플레이를 통해 출력하는 전자 장치.
20. The method of claim 19,
The processor is
The electronic device outputs, through the display, one of the four connection states determined based on the determined presence or absence of the earphone connection and the determined presence or absence of a foreign substance inside the ear connector.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020200097002A KR20220016710A (en) | 2020-08-03 | 2020-08-03 | Method for determining whether an external device is connected, and an electronic device supporting the same |
PCT/KR2021/009682 WO2022030847A1 (en) | 2020-08-03 | 2021-07-27 | Method for determining connection or not of external device, and electronic device supporting same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020200097002A KR20220016710A (en) | 2020-08-03 | 2020-08-03 | Method for determining whether an external device is connected, and an electronic device supporting the same |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20220016710A true KR20220016710A (en) | 2022-02-10 |
Family
ID=80117385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020200097002A KR20220016710A (en) | 2020-08-03 | 2020-08-03 | Method for determining whether an external device is connected, and an electronic device supporting the same |
Country Status (2)
Country | Link |
---|---|
KR (1) | KR20220016710A (en) |
WO (1) | WO2022030847A1 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101900680B1 (en) * | 2012-07-18 | 2018-11-08 | 삼성전자 주식회사 | Ear-phone System and Ear-phone Device and Portable Device supporting the same |
TWI520626B (en) * | 2013-12-02 | 2016-02-01 | 緯創資通股份有限公司 | Pin detecting circuit for microphone and pin detecting method thereof |
KR20160052405A (en) * | 2014-10-31 | 2016-05-12 | 페어차일드 세미컨덕터 코포레이션 | Audio crosstalk calibration switch |
KR102391940B1 (en) * | 2015-06-24 | 2022-04-28 | 삼성전자 주식회사 | Electronic apparatus and method for preventing misperception of ear phone inserting of the same |
US10951973B2 (en) * | 2017-03-09 | 2021-03-16 | Huawei Technologies Co., Ltd. | Headset, terminal, and control method |
-
2020
- 2020-08-03 KR KR1020200097002A patent/KR20220016710A/en unknown
-
2021
- 2021-07-27 WO PCT/KR2021/009682 patent/WO2022030847A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2022030847A1 (en) | 2022-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230259188A1 (en) | Electronic device comprising connector | |
KR20220054108A (en) | Method and electronic device for providing fast charging | |
KR20200026583A (en) | In and out port and electronic device including the same | |
KR20220016710A (en) | Method for determining whether an external device is connected, and an electronic device supporting the same | |
KR20230016363A (en) | Electronic device for controlling processing period of usage state information about battery and operating method thereof | |
KR20220019391A (en) | Electronic device and method for controlling charging thereof | |
KR20220048827A (en) | Method of requesting replacement of stylus pen tip and electronic device supporting the same | |
KR20220139606A (en) | Electronic device for detecting an accessory | |
KR20200102256A (en) | Electronic device including logic circuit for determining connecting state of connector | |
US20230350474A1 (en) | Power supply circuit and electronic device comprising same | |
US20230420960A1 (en) | Electronic device including battery pack, and operation method of electronic device | |
US20230420973A1 (en) | Electronic device method for controlling charging current for multiple batteries based on sensing resistors | |
KR20220013110A (en) | Electronic device, and method for measuring voltage of battery in electronic device | |
KR20220136725A (en) | Electronic device for identifying connection of an external power source and method of operating the same | |
KR20230057668A (en) | Electronic device, and method for protecting a battery in electronic device | |
KR20240000999A (en) | Electronic device and method for controlling charging current for multiple batteries based on sensing resistor | |
KR20220124482A (en) | Electronic device including circuit for identifying device and dentifying thereof | |
KR20220123994A (en) | Electronic apparatus and method for controlling power supply of the same | |
KR20230052176A (en) | Electronic device for controlling operation state using operational amplifier and method of operating the same | |
KR20220117670A (en) | Electronic device and method for controlling the electronic device | |
KR20230018630A (en) | Electronic device and operation method thereof | |
KR20230030733A (en) | Electronic device comprising plural audio devices and controlling method of the same | |
KR20220152779A (en) | Electronic device and method for updating of external electronic device using the same | |
KR20220124006A (en) | Power supply device and method for controlling power supply of the same | |
KR20230035869A (en) | An apparatus and method for performing matching between electronic devices |