KR20060112053A - Connection detecting method of usb device and the same processing portable terminal - Google Patents

Connection detecting method of usb device and the same processing portable terminal Download PDF

Info

Publication number
KR20060112053A
KR20060112053A KR1020050034433A KR20050034433A KR20060112053A KR 20060112053 A KR20060112053 A KR 20060112053A KR 1020050034433 A KR1020050034433 A KR 1020050034433A KR 20050034433 A KR20050034433 A KR 20050034433A KR 20060112053 A KR20060112053 A KR 20060112053A
Authority
KR
South Korea
Prior art keywords
terminal
usb
usb connector
controller
portable terminal
Prior art date
Application number
KR1020050034433A
Other languages
Korean (ko)
Other versions
KR100659986B1 (en
Inventor
김민철
Original Assignee
(주)케이티에프테크놀로지스
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by (주)케이티에프테크놀로지스 filed Critical (주)케이티에프테크놀로지스
Priority to KR1020050034433A priority Critical patent/KR100659986B1/en
Publication of KR20060112053A publication Critical patent/KR20060112053A/en
Application granted granted Critical
Publication of KR100659986B1 publication Critical patent/KR100659986B1/en

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E04BUILDING
    • E04FFINISHING WORK ON BUILDINGS, e.g. STAIRS, FLOORS
    • E04F15/00Flooring
    • E04F15/12Flooring or floor layers made of masses in situ, e.g. seamless magnesite floors, terrazzo gypsum floors
    • E04F15/14Construction of joints, e.g. dividing strips
    • E04F15/142Dividing strips or boundary strips

Abstract

A method for detecting connection of a USB(Universal Serial Bus) device and a portable terminal performing the same are provided to prevent a wrong operation caused by irregular voltage supplied from a host terminal, and to protect damage of a USB port or components of connected portable terminal in case that the voltage supplied from the host terminal is higher than a reference value. A portable terminal comprises a USB connector(410), a controller(430), and a signal transmitter(440). The USB connector(410), combined with a host device via a cable, includes one and more data terminals and a ground terminal for data transmission with the host device. The controller(430) controls the USB connector(410) for the data transmission in case that the host device is combined with the USB connector(410). The signal transmitter(440), whose one end is combined with the ground terminal and whose other end is combined with the controller(430), transmits a current signal of an arbitrary size to the controller(430) if combined with the host device via the USB connector(410).

Description

유에스비 장치의 연결 인식 방법 및 그 방법을 수행하는 휴대용 단말기{Connection detecting method of USB device and the same processing portable terminal}Connection detecting method of USB device and the same processing portable terminal

도 1은 일반적인 휴대용 단말기와 호스트 단말기간의 유에스비(USB)를 이용한 통신 방법을 간략하게 도시한 블록도.1 is a block diagram briefly illustrating a communication method using a USB between a typical portable terminal and a host terminal.

도 2는 본 발명의 바람직한 일 실시예에 따른 유에스비(USB)를 포함한 휴대용 단말기의 구성을 간략히 도시한 블록도. 2 is a block diagram schematically showing the configuration of a portable terminal including a USB (USB) according to an embodiment of the present invention.

도 3은 본 발명의 바람직한 일 실시예에 따른 신호 전달부의 회로 구성을 간략히 도시한 회로도. 3 is a circuit diagram briefly illustrating a circuit configuration of a signal transmission unit according to an exemplary embodiment of the present invention.

도 4는 휴대용 단말기와 호스트 단말기의 유에스비(USB)를 이용한 통신방법을 간략히 도시한 블록도.Figure 4 is a simplified block diagram illustrating a communication method using a USB terminal of the portable terminal and the host terminal (USB).

본 발명은 휴대용 단말기에 관한 것으로, 특히 유에스비(USB : Universal Serial Bus)장치의 연결을 인식하는 휴대용 단말기에 관한 것이다. The present invention relates to a portable terminal, and more particularly, to a portable terminal that recognizes a connection of a universal serial bus (USB) device.

유에스비(USB)는 컴팩, DEC, IBM, 인텔, 마이크로소프트, NEC, 노텔(Notel)의 7개 회사에 의해 개발된 보편적 통신 버스 규격으로서, 호스트 단말기(예를 들어,퍼스널 컴퓨터)와 주변 기기(예를 들어, 휴대용 단말기, 오디오플레이어, 조이스틱, 키보드, 전화, 스캐너 및 프린터 등)간의 플러그 앤 플레이 인터페이스이다. USB is a universal communication bus specification developed by seven companies: Compaq, DEC, IBM, Intel, Microsoft, NEC, and Nortel. Its host terminal (e.g., personal computer) and peripherals ( For example, it is a plug and play interface between portable terminals, audio players, joysticks, keyboards, phones, scanners, and printers.

초기의 버스 규약에서 발전하여, 호스트 단말기에서 최대 127개의 주변 장치들을 쉽게 통합시키기 위한 개념으로 확장된 유에스비(USB) 1.0 규격에서 알 수 있듯이 유에스비(USB) 기술의 주요 목표는 주변 장치들과의 용이한 확장성, 주변 장치들과의 저가의 통신 및 데이터 전송이 가능하도록 하는 것이다. Advancing from earlier bus conventions, the main goal of USB technology is to provide easy access to peripherals, as can be seen in the USB 1.0 specification, which is extended to the concept of easily integrating up to 127 peripherals in a host terminal. It also provides scalability, low cost communication and data transfer with peripherals.

그리하여 현재, 유에스비(USB)는 마스터/슬레이브(Master/slaver) 개념을 적용 호스트 단말기와 각 주변 장치간의 직접적인 연결이나 허브(HUB)를 통한 연결을 지원하기 위해, 각각의 단말에 기본적인 시리얼버스(즉, 직렬버스) 형태로 구성되어 제공되고 있다.Thus, at present, USB adopts the concept of master / slave. In order to support a direct connection between a host terminal and each peripheral device or a connection through a hub, a basic serial bus (i.e. And serial bus).

예를 들어, 호스트 단말기와 유에스비(USB)를 통하여 휴대용 단말기 등의 주변 장치가 결합되면, 결합된 주변 장치는 유에스비(USB)를 통해 호스트 단말기로부터 전원을 공급받을 수 있다.For example, when a host device and a peripheral device such as a portable terminal are coupled through the USB, the combined peripheral device may receive power from the host terminal through the USB.

일반적으로 호스트 단말기(예를 들어 컴퓨터)에서 유에스비(USB)장치에 인가되는 전압은 5V로 지정되어 있다. 그러나, 일부 조립식 컴퓨터 등의 호스트 단말기는 조립 특성에 따라 상이한 전압(예를 들어 9V, 12V 등)을 인가하거나 균일하지 않은 전압(예를 들어, 불균일하게 변동되는 전압)이 인가되도록 하는 경우가 있다. 이와 같은 경우, 휴대용 단말기의 유에스비(USB) 포트(port)가 손상되는 원인이 되거나, 오동작의 원인이 될 수도 있다. 물론, 유에스비 포트의 손상 및 과전압의 인가로 인해 휴대용 단말기에 화재가 발생하거나 구성 부품들이 손상되는 원인도 될 수 있다.In general, the voltage applied to the USB device in the host terminal (for example, a computer) is specified as 5V. However, some terminal terminals such as prefabricated computers may apply different voltages (eg, 9V, 12V, etc.) or non-uniform voltages (eg, unevenly varying voltages) depending on assembly characteristics. . In such a case, the USB port of the portable terminal may be damaged or a malfunction may be caused. Of course, damage to the USB port and application of overvoltage may cause a fire to the portable terminal or damage to components.

상술한 문제점들은 휴대용 단말기에만 국한되는 것은 아니며, 유에스비(USB)를 통신 수단으로 사용하는 모든 주변 기기들에서도 공통적으로 나타나고 있다.The above-mentioned problems are not limited to portable terminals, and are common to all peripheral devices using USB as a communication means.

따라서, 상술한 문제점을 해결하기 위한 본 발명의 목적은 호스트 단말기로부터의 전압 인가 여부 및/또는 인가되는 전압의 크기에 관계없이 안정적으로 유에스비(USB) 기기 연결 여부를 인식할 수 있는 유에스비 장치의 연결 인식 방법 및 그 방법을 수행하는 휴대용 단말기를 제공하는 것이다.Accordingly, an object of the present invention for solving the above problems is to connect a USB device capable of stably recognizing whether a USB device is connected regardless of whether the voltage is applied from the host terminal and / or the magnitude of the applied voltage. A recognition method and a portable terminal for performing the method are provided.

본 발명의 다른 목적은 호스트 단말기로부터 인가되는 전압이 불규칙한 경우에도 이로 인한 오작동을 방지할 수 있는 유에스비 장치의 연결 인식 방법 및 그 방법을 수행하는 휴대용 단말기를 제공하는 것이다.Another object of the present invention is to provide a method for recognizing a connection of a USB apparatus and a portable terminal for performing the method, even when the voltage applied from the host terminal is irregular.

본 발명의 또 다른 목적은 호스트 단말기로부터 인가되는 전압이 기준치보다 크거나 불규칙한 전압인 경우에도 유에스비 포트의 손상이나 연결된 휴대용 단말기 구성 부품의 보호가 가능한 유에스비 장치의 연결 인식 방법 및 그 방법을 수행하는 휴대용 단말기를 제공하는 것이다.Still another object of the present invention is a method for recognizing a connection of a USB device capable of damaging a USB port or protecting a connected portable terminal component even when a voltage applied from a host terminal is greater than or equal to a reference value and a portable device performing the method. It is to provide a terminal.

본 발명의 또 다른 목적은 휴대용 단말기에 구비된 접지 단자를 유에스비 장 치의 연결 여부를 인식할 수 있는 디텍션(detection) 핀으로 이용함으로써 휴대용 단말기의 단가를 감소시킬 수 있는 유에스비 장치의 연결 인식 방법 및 그 방법을 수행하는 휴대용 단말기를 제공하는 것이다.Still another object of the present invention is to use a grounding terminal provided in a portable terminal as a detection pin capable of recognizing whether a USB device is connected or not, thereby reducing the unit cost of the portable terminal, and a method for recognizing the connection of a USB terminal. It is to provide a portable terminal for performing the method.

본 발명의 또 다른 목적들은 이하의 실시예에 대한 설명을 통해 쉽게 이해될 수 있을 것이다.Still other objects of the present invention will be readily understood through the following description of the embodiments.

상기 목적을 달성하기 위하여, 본 발명의 일 측면에 따르면, 휴대용 단말기에 있어서, 케이블을 통해 호스트 장치와 결합되고, 상기 호스트 장치와의 데이터 송수신을 위한 하나 이상의 데이터 단자 및 접지 단자를 포함하는 유에스비 커넥터; 상기 호스트 장치가 상기 유에스비 커넥터에 결합된 경우 상기 데이터 송수신을 위해 상기 유에스비 커넥터를 제어하는 제어부; 및 상기 접지 단자와 일단이 결합되고, 상기 제어부와 타 일단이 결합되며, 상기 유에스비 커넥터를 통해 상기 호스트 장치가 결합되면 상기 제어부로 임의의 크기의 전류 신호를 송출하는 신호 전달부를 포함하되, 상기 제어부는 상기 감지 신호에 의해 상기 호스트 장치의 결합 여부를 판단하는 휴대용 단말기를 제공한다.In order to achieve the above object, according to an aspect of the present invention, in the portable terminal, a USB connector coupled to the host device via a cable, including one or more data terminals and ground terminals for data transmission and reception with the host device ; A controller configured to control the USB connector for transmitting and receiving the data when the host device is coupled to the USB connector; And a signal transmission unit configured to couple one end to the ground terminal, the other end to the control unit, and the control unit and the other end to transmit a current signal having an arbitrary size to the control unit when the host device is coupled through the USB connector. Provides a portable terminal for determining whether the host device is coupled based on the detection signal.

상기 신호 전달부는 하나 이상의 트랜지스터와 상기 트랜지스터의 베이스 단 또는 상기 접지 단자로 인가되는 제1 인가 전압과 상기 트랜지스터의 컬렉터 단 또는 상기 제어부로 인가되는 제2 인가 전압과 미리 설정된 하나 이상의 저항으로 구성되는 것을 특징으로 한다.The signal transfer unit includes one or more transistors, a first applied voltage applied to the base terminal or the ground terminal of the transistor, a second applied voltage applied to the collector terminal of the transistor, or the controller, and one or more predetermined resistors. It features.

상기 제1 인가 전압에 상응하는 전류가 상기 베이스 단으로 입력되는 경우 상기 트랜지스터가 턴 온 되어 상기 제2 인가 전압에 상응하는 전류가 상기 트랜지스터의 이미터단으로 출력되며(즉, 이미터 단을 통해 접지측으로 흐르게되며), 상기 유에스비 커넥터를 통해 상기 호스트 장치와 결합됨으로써 상기 제1 인가 전압에 상응하는 전류가 상기 접지 단자로 출력되는(흐르는) 경우, 상기 트랜지스터가 턴 오프 되어 상기 제2 인가 전압에 상응하는 전류가 상기 제어부로 출력되는 것을 특징으로 한다.When a current corresponding to the first applied voltage is input to the base terminal, the transistor is turned on so that a current corresponding to the second applied voltage is output to the emitter terminal of the transistor (ie, grounded through the emitter terminal. Side), and when the current corresponding to the first applied voltage is outputted (flows) to the ground terminal by being coupled with the host device through the USB connector, the transistor is turned off to correspond to the second applied voltage. The current is output to the control unit.

상기 트랜지스터는 NPN 트랜지스터이고, 상기 신호 전달부는 노이즈 바이패스를 위한 커패시터(capacitor)를 더 포함하는 것을 특징으로 한다.The transistor is an NPN transistor, and the signal transfer unit further includes a capacitor for noise bypass.

상기 신호 전달부는 상기 제어부의 범용 입출력 포트(GPIO)와 결합되는 것을 특징으로 한다.The signal transmission unit may be coupled to a general purpose input / output port (GPIO) of the controller.

이하, 본 발명의 바람직한 실시예를 첨부한 도면들을 참조하여 상세히 설명하기로 한다. 다만, 본 발명의 바람직한 실시예를 설명하기 전에 이해의 편의를 도모하기 위한 관련 도면을 참조하여 종래기술을 간략히 설명한다. 또한, 본 명세서에서 이용되는 숫자(예를 들어, 제1, 제2 등)는 동일 또는 유사한 개체를 구별하기 위한 것일 뿐 이에 의해 권리범위나 그 대상이 제한되는 것은 아니다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, the prior art will be briefly described with reference to the accompanying drawings for the convenience of understanding before describing the preferred embodiment of the present invention. In addition, numbers (eg, first, second, etc.) used in the present specification are for distinguishing the same or similar entities, but the scope of the rights or the objects thereof are not limited thereto.

본 발명에 따른 휴대용 단말기는 이동 통신 단말기, 휴대용 멀티미디어 플레이어, MP3등이 있을 수 있으며, 이외에도 하기에서 설명되는 유에스비 커넥터(210)를 이용해서 데이터 통신을 수행할 수 있는 장치이면 동일하게 적용될 수 있음은 자명하다.The portable terminal according to the present invention may be a mobile communication terminal, a portable multimedia player, an MP3, and the like. In addition, the portable terminal may be equally applicable to any device capable of performing data communication using the USB connector 210 described below. Self-explanatory

도 1은 일반적인 휴대용 단말기와 호스트 단말기간의 유에스비(USB)를 이용한 통신 방법을 간략하게 도시한 블록도이다. FIG. 1 is a block diagram schematically illustrating a communication method using a USB between a general portable terminal and a host terminal.

도 1을 참조하여 일반적인 유에스비 커넥터를 구비한 휴대용 단말기(100)에서 유에스비(USB)를 이용한 호스트 단말기(140)와의 연결 여부를 인식하는 방법을 간단히 설명하도록 한다.Referring to FIG. 1, a method of recognizing whether a portable terminal 100 having a general UBS connector is connected to the host terminal 140 using UBS (USB) will be described.

도 1에서 보여지는 바와 같이, 휴대용 단말기(100)는 유에스비 커넥터(USB connecter: 110), 유에스비 컨트롤러(USB controller: 120), 제어부(130)를 포함한다.As shown in FIG. 1, the portable terminal 100 includes a USB connector 110, a USB controller 120, and a controller 130.

유에스비 커넥터(110)는 유에스비 케이블을 통해 호스트 단말기(140, 예를 들어, 퍼스널 컴퓨터)와 결합된다. 도 1에는 유에스비 케이블이 4핀 단자용으로 예시되었으며, 이에 대응되도록 유에스비 커넥터(110)는 호스트 단말기(140)로부터 전원을 인가받는 전원 단자(예를 들어, VBUS(5V)), 접지 단자(예를 들어, GND), 데이터 송수신을 위한 제1 데이터 단자(예를 들어, D+), 제2 데이터 단자(예를 들어, D-)로 구성된다. The USB connector 110 is coupled to the host terminal 140 (eg, a personal computer) through the USB cable. In FIG. 1, a USB cable is illustrated for a 4-pin terminal, and the USB cable 110 corresponds to a power terminal (eg, VBUS (5V)) and a ground terminal (eg, VBS (5V)) receiving power from the host terminal 140. For example, GND) includes a first data terminal (eg, D +) and a second data terminal (eg, D−) for data transmission and reception.

유에스비 커넥터(USB connecter: 110)의 구조는 유에스비 커넥터(USB connecter: 110)에 유에스비(USB) 케이블이 연결되는 과정에서 전원 단자(예를 들어, VBUS(5V))와 접지 단자(예를 들어, GND)가 제1 데이터 단자(예를 들어, D+)나 제2 데이터 단자(예를 들어, D-) 보다 먼저 유에스비(USB) 케이블과 결합되도록 형 성되어 있다.The structure of the USB connector 110 includes a power terminal (for example, VBUS (5V)) and a ground terminal (for example, in the process of connecting the USB cable to the USB connector 110). GND) is configured to engage with a USB cable before the first data terminal (eg D +) or the second data terminal (eg D-).

휴대용 단말기(100)의 유에스비 커넥터(USB connecter: 110)에 유에스비(USB) 케이블이 결합되어, 호스트 단말기(140)와 연결되면 유에스비 커넥터(USB connecter: 110)의 전원 단자(VBUS)로 5V의 전압이 인가된다. 그러면, 유에스비 컨트롤러(USB controller: 120)는 전원 단자(VBUS)로 인가된 전압이 기준 전압 이상일 경우 유에스비 커넥터(USB connecter: 110)에 유에스비(USB) 케이블을 통해 호스트 단말기(140)와 연결되었음을 인식할 수 있다.The USB cable is coupled to the USB connector 110 of the portable terminal 100, and when connected to the host terminal 140, a voltage of 5V is applied to the power terminal VBUS of the USB connector 110. Is applied. Then, the USB controller 120 recognizes that the USB terminal 120 is connected to the host terminal 140 through the USB cable to the USB connector 110 when the voltage applied to the power terminal VBUS is greater than or equal to the reference voltage. can do.

그러나, 이와 같은 경우 이미 상술한 바와 같이 호스트 단말기(140)로부터의 불규칙한 전원 공급으로 인해 휴대용 단말기(100)의 유에스비 컨트롤러(USB controller: 120)에 불규칙한 전압이 인가되고, 휴대용 단말기(100)는 오동작을 일으키게 된다. However, in this case, as described above, an irregular voltage is applied to the USB controller 120 of the portable terminal 100 due to the irregular power supply from the host terminal 140, and the portable terminal 100 malfunctions. Will cause.

또한, 호스트 단말기(140)로부터 전원 단자(즉, VBUS)에 과전압(예를 들어, 9V, 12V 등)이 인가되고 결과적으로 과전류가 공급되므로, 휴대용 단말기(100)의 유에스비 컨트롤러(USB controller: 120)의 화재가 발생될 수 있는 문제점도 있었다.In addition, since an overvoltage (for example, 9V, 12V, etc.) is applied from the host terminal 140 to the power supply terminal (ie, VBUS) and consequently the overcurrent is supplied, the USB controller of the portable terminal 100 (USB controller) 120 There was also a problem that can cause a fire.

도 2는 본 발명의 바람직한 일 실시예에 따른 유에스비(USB)를 포함한 휴대용 단말기의 구성을 간략히 도시한 블록도이고, 도 3은 본 발명의 바람직한 일 실시예에 따른 신호 전달부의 회로 구성을 간략히 도시한 회로도이며, 도 4는 휴대용 단말기와 호스트 단말기의 유에스비(USB)를 이용한 통신방법을 간략히 도시한 블록 도이다.FIG. 2 is a block diagram schematically illustrating a configuration of a portable terminal including a USB device according to an exemplary embodiment of the present invention, and FIG. 3 is a schematic diagram of a circuit configuration of a signal transmission unit according to an exemplary embodiment of the present invention. 4 is a circuit diagram schematically illustrating a communication method using a USB terminal of a portable terminal and a host terminal.

도 2에 보여지는 바와 같이, 본 발명에 따른 휴대용 단말기(100)는 유에스비 커넥터(USB connector: 210), 유에스비 컨트롤러(USB controller: 220), 제어부(230), 신호 전달부(240)를 포함한다. As shown in FIG. 2, the portable terminal 100 according to the present invention includes a USB connector 210, a USB controller 220, a controller 230, and a signal transmitter 240. .

유에스비 커넥터(USB Connector: 210)는 유에스비(USB) 케이블을 통해 호스트 단말기(140)와 연결되는 곳으로, 호스트 단말기(140)로부터 전원을 인가 받기 위한 전원 단자(예를 들어, VBUS(5V)), 접지 단자(예를 들어, GND), 데이터 송수신을 위한 제 1데이터 단자(예를 들어, D+) 제 2데이터 단자(예를 들어, D-)로 구성된다.The USB connector 210 is connected to the host terminal 140 through a USB cable, and is a power terminal for receiving power from the host terminal 140 (for example, VBUS (5V)). , A ground terminal (eg, GND), a first data terminal (eg, D +) for data transmission and reception, and a second data terminal (eg, D−).

여기서, 데이터 송수신을 위한 제1 데이터 단자와 제 2데이터 단자는 데이터 선을 통하여 유에스비 컨트롤러(USB controller: 220)에 연결되어 있다. 접지 단자는 신호 전달부(240)를 통해 제어부(230)와 연결된다. Here, the first data terminal and the second data terminal for data transmission and reception are connected to the USB controller 220 through a data line. The ground terminal is connected to the control unit 230 through the signal transmission unit 240.

신호 전달부(240)는 도 3에 예시된 바와 같이, 전원 단자, NPN 트랜지스터(transistor), 복수개의 저항(R1, R2), 복수개의 인가 전압(VDD1, VDD2) 및 커패시터(capacitor)를 포함하며, 제어부 (230)와 연결되어 있다. 신호 전달부(240)의 동작 과정은 아래에서 설명하기로 한다.As illustrated in FIG. 3, the signal transmitter 240 includes a power supply terminal, an NPN transistor, a plurality of resistors R1 and R2, a plurality of applied voltages VDD1 and VDD2, and a capacitor. It is connected to the control unit 230. An operation process of the signal transmitter 240 will be described below.

유에스비 컨트롤러(USB controller: 220)는 데이터 송수신을 위해 유에스비 커넥터(210)의 데이터 단자들(D+, D-)과 연결되어, 호스트 단말기(140)와 데이터 송수신 기능을 담당한다. 도 2에는 도시되지 않았으나, 유에스비 컨트롤러(USB controller: 220)는 유에스비(USB)와 전기적인 인터페이스를 담당하는 트랜시버 (Transceiver), 고속의 시리얼(Serial) 데이터 송수신을 위한 SIE(Serial Interface Engine), 제어부(230)와의 인터페이스를 담당하는 인터페이스 부 등의 내부 블록들을 포함할 수 있다. 여기서, 고속 통신을 위한 대부분의 내부 블록은 집적회로(IC : Integrated Circuit)로 구성될 수 있다. The USB controller 220 is connected to the data terminals D + and D- of the USB connector 210 to transmit and receive data, and serves as a data transmission / reception function with the host terminal 140. Although not shown in FIG. 2, the USB controller 220 includes a transceiver that is responsible for an electrical interface with the USB, a serial interface engine (SIE) for transmitting and receiving serial data at high speed, and a controller. Internal blocks such as an interface unit in charge of the interface with the 230 may be included. Here, most internal blocks for high speed communication may be configured as integrated circuits (ICs).

제어부(230)는 신호 전달부(240)를 통해 유에스비 커넥터(USB connector: 210)의 접지 단자와 연결되어, 유에스비 커넥터(USB connector: 210)에 호스트 단말기(150)의 연결 여부를 인식한다. 또한 제어부(230)는 호스트 단말기(150)와 연결된 것으로 인식되면, 유에스비 컨트롤러(USB controller: 220)를 제어하여 제1 및 제2 데이터 단자를 통해 호스트 단말기(140)로부터 입력된 데이터를 제공받는다.The controller 230 is connected to the ground terminal of the USB connector 210 through the signal transmission unit 240 to recognize whether the host terminal 150 is connected to the USB connector 210. In addition, when it is recognized that the controller 230 is connected to the host terminal 150, the controller 230 controls the USB controller 220 to receive data input from the host terminal 140 through the first and second data terminals.

신호 전달부(240)는 유에스비 커넥터(USB connector: 210)의 접지 단자와 제어부(230)의 범용 입출력(GPIO) 포트와 결합되어 유에스비 커넥터(USB connector: 210)에 호스트 단말기의 결합 여부에 상응하는 인가 전압에 상응하는 상이한 전류를 제어부(230)의 범용 입출력(GPIO) 포트에 전달한다. 신호 전달부(240)의 상세한 동작 수행 방법은 하기에서 설명하도록 한다.The signal transmission unit 240 is coupled to the ground terminal of the USB connector 210 and the GPIO port of the controller 230 to correspond to whether the host terminal is coupled to the USB connector 210. Different currents corresponding to the applied voltages are transferred to the GPIO ports of the controller 230. Detailed operations of the signal transmission unit 240 will be described below.

우선, 도 2 및 도 3에 도시된 바와 같이, 유에스비 커넥터(USB connector: 210)에 호스트 단말기(140)가 연결되지 않은 경우의 도 3의 회로 동작 방법에 대해 설명하면 다음과 같다.First, as shown in FIGS. 2 and 3, the circuit operation method of FIG. 3 when the host terminal 140 is not connected to the USB connector 210 will be described.

도 3의 회로에서 도시된 복수개의 저항들은 풀 업(PULL UP)용으로 사용될 수 있으며, 커패시터(capacitor)는 유에스비(USB) 케이블과 결합되는 경우 발생하는 노이즈 성분을 제거하기 위한 바이패스(bypass) 용도로 사용될 수 있다. 또한 NPN 트랜지스터(transistor)가 스위치 또는 증폭기 등 많은 기능을 수행할 수 있으며, 본 발명의 바람직한 일 실시예에서는 NPN 트랜지스터(transistor)에 한정하여 설명하고 있으나, NPN 트랜지스터(transistor) 이외의 동일한 기능의 수행이 가능한 트랜지스터(transistor)가 사용될 수도 있음은 자명하다. A plurality of resistors shown in the circuit of FIG. 3 can be used for pull up, and a capacitor bypasses to remove noise components that occur when combined with a USB cable. Can be used for purposes. In addition, the NPN transistor may perform many functions such as a switch or an amplifier. In an exemplary embodiment of the present invention, the NPN transistor is described as being limited to the NPN transistor, but the same function other than the NPN transistor is performed. It is apparent that this possible transistor may be used.

이하의 설명에서, NPN 트랜지스터(transistor)의 상세한 동작 방법은 당업자에게 자명한 사항이므로 간략히 설명하도록 한다.In the following description, a detailed operation method of the NPN transistor is obvious to those skilled in the art, so it will be briefly described.

도 2에서 보여지는 바와 같이, 유에스비(USB) 케이블이 연결되지 않은 경우, 유에스비 커넥터(USB connecter: 210)의 접지 단자(즉, GND)에 무한대의 저항이 연결된 것과 동일한 상태가 된다. 따라서, 도 3에 도시된 바와 같이 제2 인가 전압(즉, VDD2)에 상응하는 전류는 경로 1을 따라 NPN 트랜지스터(transistor)의 베이스(base) 단으로 흐르게 된다. 즉, NPN 트랜지스터(transistor)의 베이스(base) 단으로 하이 신호(High signal)가 입력된다.As shown in FIG. 2, when the USB cable is not connected, the same state as that of the infinite resistance is connected to the ground terminal (ie, GND) of the USB connector 210. Accordingly, as shown in FIG. 3, a current corresponding to the second applied voltage (ie, VDD2) flows along the path 1 to the base end of the NPN transistor. That is, a high signal is input to the base end of the NPN transistor.

즉, NPN 트랜지스터(transistor)는 베이스(base) 단에 입력되는 제2 인가 전압(즉, VDD2)에 상응하는 전류에 의해 턴 온(turn on)되며, NPN 트랜지스터(transistor)의 컬렉터(collector) 단으로 입력되는 제1 인가 전압(즉, VDD1)에 상응하는 전류는 경로 2를 따라 NPN 트랜지스터의 이미터(emmiter) 단으로 출력된다. That is, the NPN transistor is turned on by a current corresponding to the second applied voltage (that is, VDD2) input to the base terminal, and the collector terminal of the NPN transistor is connected. A current corresponding to the first applied voltage (that is, VDD1) input to is output along the path 2 to the emitter terminal of the NPN transistor.

이로 인해, 제어부(230)의 범용 입출력(GPIO) 포트에는 제1 인가 전압(즉, VDD1)에 상응하는 전류가 입력되지 않는다. 물론, 저항 성분의 대소에 의해 매우 적은 양의 전류가 입력될 수도 있을 것이다. 즉, 제어부(230)의 범용 입출력(GPIO) 포트는 로우 상태(Low status)가 된다. 따라서, 제어부(230)는 범용 입출력(GPIO) 포트의 상태가 로우 상태(Low status)인 것으로서 호스트 단말기(140)가 연결되지 아니하였음을 인식할 수 있다.Therefore, a current corresponding to the first applied voltage (ie, VDD1) is not input to the general purpose input / output (GPIO) port of the controller 230. Of course, a very small amount of current may be input by the magnitude of the resistance component. That is, the general-purpose input / output (GPIO) port of the controller 230 is in a low state. Accordingly, the controller 230 may recognize that the host terminal 140 is not connected as the GPIO port is in a low state.

이와 같은 상태에서, 도 4에서 보여지는 바와 같이, 유에스비 커넥터(USB connecter: 410)를 통해 유에스비(USB) 케이블이 연결되면, 도 3에 도시된 바와 같이 제2 인가 전압(즉, VDD2)에 상응하는 전류는 경로 3을 따라 유에스비 커넥터(USB connecter: 410)의 접지 단자(즉, GND)쪽으로 흐르게 된다. 따라서 NPN 트랜지스터(transistor)의 베이스(base) 단으로 제2 인가 전압(즉, VDD2)에 상응하는 전류가 입력되지 않으며, 결과적으로 NPN 트랜지스터(transistor)의 베이스(base) 단으로 로우 신호(Low signal)가 입력된다.In this state, as shown in FIG. 4, when the USB cable is connected through the USB connector 410, the second voltage corresponds to the second applied voltage (ie, VDD2) as shown in FIG. 3. The current flows along path 3 toward the ground terminal (ie, GND) of the USB connector 410. Therefore, a current corresponding to the second applied voltage (ie, VDD2) is not input to the base terminal of the NPN transistor, and consequently a low signal to the base terminal of the NPN transistor. ) Is entered.

즉, NPN 트랜지스터(transistor)는 로우 신호에 의해 턴 오프(turn off)되며, 제1 인가 전압(즉, VDD1)에 상응하는 전류는 경로 4를 따라 제어부(430)의 범용 입출력(GPIO) 포트로 출력된다. 이는, NPN 트랜지스터가 턴 온 상태에서는 컬렉터(collector)와 이미터(emitter)간에 경로가 형성되어 제1 인가 전압(즉, VDD1)에 상응하는 전류가 경로 2와 같이 접지측으로 흐르게 되나, NPN 트랜지스터가 턴 오프 상태에서는 컬렉터(collector)와 이미터(emitter)간에 경로가 형성되지 않기 때문에 경로 4와 같이 범용 입출력(GPIO) 포트쪽으로 전류가 흐르게 된다.That is, the NPN transistor is turned off by a low signal, and a current corresponding to the first applied voltage (ie, VDD1) is passed to the general-purpose input / output (GPIO) port of the controller 430 along the path 4. Is output. When the NPN transistor is turned on, a path is formed between the collector and the emitter so that a current corresponding to the first applied voltage (that is, VDD1) flows to the ground side like the path 2, but the NPN transistor In the turn-off state, since no path is formed between the collector and the emitter, current flows to the GPIO port as in path 4.

이로 인해, 제어부(230)의 범용 입출력(GPIO) 포트에는 제1 인가 전압(즉, VDD1)에 상응하는 전류가 입력되어 제어부(430)의 범용 입출력(GPIO) 포트는 하이 상태(High status)로 전환된다. 따라서, 제어부(430)는 범용 입출력(GPIO) 포트의 상태가 하이 상태(High status)인 것을 감지함으로써 호스트 단말기(140)가 연결되었음을 인식할 수 있다.As a result, a current corresponding to the first applied voltage (that is, VDD1) is input to the general purpose input / output (GPIO) port of the controller 230, and the general purpose input / output (GPIO) port of the controller 430 is in a high state. Is switched. Accordingly, the controller 430 may recognize that the host terminal 140 is connected by detecting that the state of the general-purpose input / output (GPIO) port is high.

이와 같이, 제어부(430)는 신호 전달부(440)로부터 전류가 입력되는지 여부 또는 입력되는 전류의 크기를 감지하여 유에스비 커넥터(USB connecter: 410)에 호스트 단말기(140)의 연결되었는지 여부를 인식할 수 있다.As such, the controller 430 may recognize whether the host terminal 140 is connected to the USB connector 410 by detecting whether the current is input from the signal transmission unit 440 or the magnitude of the input current. Can be.

상술한 바와 같이, 본 발명은 호스트 단말기로부터의 전압 인가 여부 및/또는 인가되는 전압의 크기에 관계없이 안정적으로 유에스비(USB) 기기 연결 여부를 인식할 수 있는 효과가 있다.As described above, the present invention can stably recognize whether the USB device is connected regardless of whether the voltage is applied from the host terminal and / or the magnitude of the applied voltage.

또한, 본 발명은 호스트 단말기로부터 인가되는 전압이 불규칙한 경우에도 이로 인한 오작동을 방지할 수 있는 효과가 있다.In addition, the present invention has an effect that can prevent the malfunction even when the voltage applied from the host terminal is irregular.

또한, 본 발명은 호스트 단말기로부터 인가되는 전압이 기준치보다 크거나 불규칙한 전압인 경우에도 유에스비 포트의 손상이나 연결된 휴대용 단말기 구성 부품의 보호가 가능한 효과가 있다.In addition, the present invention has the effect that even if the voltage applied from the host terminal is greater than the reference value or irregular voltage can protect the USB port or the connected portable terminal components.

또한, 본 발명은 휴대용 단말기에 구비된 접지 단자를 유에스비 장치의 연결 여부를 인식할 수 있는 디텍션(detection)핀으로 이용함으로써 휴대용 단말기의 단가를 감소시킬 수 있는 효과가 있다.In addition, the present invention has the effect of reducing the unit cost of the portable terminal by using the ground terminal provided in the portable terminal as a detection pin (detection) that can recognize the connection of the USB device.

상기에서는 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당 기술 분야에서 통상의 지식을 가진 자라면 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although the above has been described with reference to a preferred embodiment of the present invention, those skilled in the art to which the present invention pertains without departing from the spirit and scope of the present invention as set forth in the claims below It will be appreciated that modifications and variations can be made.

Claims (6)

휴대용 단말기에 있어서,In a portable terminal, 케이블을 통해 호스트 장치와 결합되고, 상기 호스트 장치와의 데이터 송수신을 위한 하나 이상의 데이터 단자 및 접지 단자를 포함하는 유에스비 커넥터;A USB connector coupled to the host device through a cable, the USB connector including one or more data terminals and a ground terminal for data transmission and reception with the host device; 상기 호스트 장치가 상기 유에스비 커넥터에 결합된 경우 상기 데이터 송수신을 위해 상기 유에스비 커넥터를 제어하는 제어부; 및A controller configured to control the USB connector for transmitting and receiving the data when the host device is coupled to the USB connector; And 상기 접지 단자와 일단이 결합되고, 상기 제어부와 타 일단이 결합되며, 상기 유에스비 커넥터를 통해 상기 호스트 장치가 결합되면 상기 제어부로 임의의 크기의 전류 신호를 송출하는 신호 전달부를 포함하되,One end is coupled to the ground terminal, the other end is coupled to the control unit, and includes a signal transmission unit for transmitting a current signal of any size to the control unit when the host device is coupled through the USB connector, 상기 제어부는 상기 감지 신호에 의해 상기 호스트 장치의 결합 여부를 판단하는 휴대용 단말기.The controller determines whether the host device is coupled based on the detection signal. 제 1항에 있어서, The method of claim 1, 상기 신호 전달부는 하나 이상의 트랜지스터와 상기 트랜지스터의 베이스 단 또는 상기 접지 단자로 인가되는 제1 인가 전압과 상기 트랜지스터의 컬렉터 단 또는 상기 제어부로 인가되는 제2 인가 전압과 미리 설정된 하나 이상의 저항으로 구성되는 휴대용 단말기.The signal transmission unit is a portable device including one or more transistors, a first applied voltage applied to the base terminal or the ground terminal of the transistor, a second applied voltage applied to the collector terminal of the transistor, or the controller, and one or more preset resistors. terminal. 제 2항에 있어서,The method of claim 2, 상기 제1 인가 전압에 상응하는 전류가 상기 베이스 단으로 입력되는 경우 상기 트랜지스터가 턴 온 되어 상기 제2 인가 전압에 상응하는 전류가 상기 트랜지스터의 이미터 단으로 출력되며, When the current corresponding to the first applied voltage is input to the base terminal, the transistor is turned on so that the current corresponding to the second applied voltage is output to the emitter terminal of the transistor, 상기 유에스비 커넥터를 통해 상기 호스트 장치와 결합됨으로써 상기 제1 인가 전압에 상응하는 전류가 상기 접지 단자로 출력되는 경우, 상기 트랜지스터가 턴 오프 되어 상기 제2 인가 전압에 상응하는 전류가 상기 제어부로 출력되는 휴대용 단말기.When the current corresponding to the first applied voltage is output to the ground terminal by being coupled to the host device through the USB connector, the transistor is turned off so that the current corresponding to the second applied voltage is output to the controller. Handheld terminal. 제 2항에 있어서,The method of claim 2, 상기 트랜지스터는 NPN 트랜지스터인 휴대용 단말기.The transistor is a portable terminal of the NPN transistor. 제 2항에 있어서,The method of claim 2, 상기 신호 전달부는 노이즈 바이패스를 위한 커패시터(capacitor)를 더 포함하는 휴대용 단말기.The signal transmission unit further comprises a capacitor (capacitor) for noise bypass. 제 1항에 있어서,The method of claim 1, 상기 신호 전달부는 상기 제어부의 범용 입출력(GPIO) 포트와 결합되는 휴대용 단말기.The signal transmission unit is coupled to a general-purpose input / output (GPIO) port of the control unit.
KR1020050034433A 2005-04-26 2005-04-26 Connection detecting method of USB device and the same processing portable terminal KR100659986B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050034433A KR100659986B1 (en) 2005-04-26 2005-04-26 Connection detecting method of USB device and the same processing portable terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050034433A KR100659986B1 (en) 2005-04-26 2005-04-26 Connection detecting method of USB device and the same processing portable terminal

Publications (2)

Publication Number Publication Date
KR20060112053A true KR20060112053A (en) 2006-10-31
KR100659986B1 KR100659986B1 (en) 2006-12-22

Family

ID=37620458

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050034433A KR100659986B1 (en) 2005-04-26 2005-04-26 Connection detecting method of USB device and the same processing portable terminal

Country Status (1)

Country Link
KR (1) KR100659986B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385018A (en) * 2010-09-06 2012-03-21 鸿富锦精密工业(深圳)有限公司 External equipment connection sensing circuit
KR101345459B1 (en) * 2011-12-28 2014-01-15 주식회사 바이오스페이스 System and method for controlling life recorder
KR101397932B1 (en) * 2007-07-04 2014-05-22 삼성전자주식회사 Method for identifying connected device and electronic device using the same
WO2022114864A1 (en) * 2020-11-26 2022-06-02 삼성전자 주식회사 Electronic device comprising connector

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101397932B1 (en) * 2007-07-04 2014-05-22 삼성전자주식회사 Method for identifying connected device and electronic device using the same
CN102385018A (en) * 2010-09-06 2012-03-21 鸿富锦精密工业(深圳)有限公司 External equipment connection sensing circuit
KR101345459B1 (en) * 2011-12-28 2014-01-15 주식회사 바이오스페이스 System and method for controlling life recorder
WO2022114864A1 (en) * 2020-11-26 2022-06-02 삼성전자 주식회사 Electronic device comprising connector

Also Published As

Publication number Publication date
KR100659986B1 (en) 2006-12-22

Similar Documents

Publication Publication Date Title
US7711870B2 (en) Interface detecting circuit and interface detecting method
JP5283719B2 (en) Electronic equipment and electronic equipment system
TWI764195B (en) Usb interface detection module
US9129065B2 (en) USB device and control method thereof
US8627121B2 (en) USB-on-the-go bi-directional protection circuit
US7802044B2 (en) Pin sharing device and method thereof for a universal asynchronous receiver/transmitter module and a universal serial bus module
TWI492044B (en) System for detecting universal serial bus (usb) device and method thereof
US8542472B2 (en) Protection circuitry for reversible connectors
CN102087624B (en) Circuit structure and method for realizing USB interface functional verification test on the basis of FPGA module
US20100244587A1 (en) Power connection between serial interfaces
US20060045112A1 (en) Device operable as a host
US8862921B1 (en) Apparatus for remote wake-up during dedicated charging mode
US20040268163A1 (en) USB (Universal Serial Bus) interface device
KR20090011171A (en) Mobile phone and method for charging through discernment charging cable
EP3148031B1 (en) Bus interfaces with unpowered termination
US20070075680A1 (en) Charging mode control circuit
KR20130122266A (en) System and apparatus and method for performing charging in host mode
US20110244728A1 (en) Universal serial bus connector and adaptor of the connector
KR100659986B1 (en) Connection detecting method of USB device and the same processing portable terminal
KR20140126491A (en) power supply circuit and method for controlling thereof
KR101291520B1 (en) System and method for protecting low voltage transceiver
US8484402B2 (en) Data transmission interface and electronic device using the same
US20120096286A1 (en) Charging management method, charging control circuit and the host apparatus having the same
US20140334112A1 (en) Motherboard with connector compatible with different interface standards
KR100700532B1 (en) A method for recognizing device connected to universal serial bus port and universal serial bus adaptor

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121204

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20131205

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20141208

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20151207

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee