KR102153384B1 - Power control apparatus for power on or off of usb device from host and method for operating the same - Google Patents

Power control apparatus for power on or off of usb device from host and method for operating the same Download PDF

Info

Publication number
KR102153384B1
KR102153384B1 KR1020130154666A KR20130154666A KR102153384B1 KR 102153384 B1 KR102153384 B1 KR 102153384B1 KR 1020130154666 A KR1020130154666 A KR 1020130154666A KR 20130154666 A KR20130154666 A KR 20130154666A KR 102153384 B1 KR102153384 B1 KR 102153384B1
Authority
KR
South Korea
Prior art keywords
power
signal
usb device
host
command
Prior art date
Application number
KR1020130154666A
Other languages
Korean (ko)
Other versions
KR20150068701A (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 KR1020130154666A priority Critical patent/KR102153384B1/en
Publication of KR20150068701A publication Critical patent/KR20150068701A/en
Application granted granted Critical
Publication of KR102153384B1 publication Critical patent/KR102153384B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter

Abstract

본 발명은 호스트로부터 별도의 전원을 갖는 USB 장치를 켜거나 끌 수 있는 전원 제어 장치 및 이의 작동 방법에 관한 것이다. 이를 위한 본 발명의 전원 제어 장치는, 호스트와 연결된 USB(Universal Serial Bus) 장치에 대해, 호스트에서 인코딩하여 전송한 USB 장치의 전원을 켜거나 끄기 위한 전원 온/오프 신호를 수신하는 수신부; 및 전원 온/오프 신호를 디코딩하고, 디코딩 결과를 근거로 전원부에 대한 전원 제어 신호를 생성하여 전원부로 송신하는 처리부를 포함하며, 전원 온/오프 신호는 호스트와 USB 장치간 데이터 송수신에 사용되는 SETUP 단계, DATA 단계 및 STATUS 단계 중, SETUP 단계의 SETUP 패킷에 포함되어 송신되는 것을 특징으로 한다.The present invention relates to a power control device capable of turning on or off a USB device having a separate power from a host and a method of operating the same. To this end, the power control device of the present invention includes: a receiver configured to receive a power on/off signal for turning on or off power of a USB device encoded and transmitted by a host for a USB (Universal Serial Bus) device connected to a host; And a processing unit that decodes the power on/off signal and generates a power control signal for the power supply unit based on the decoding result and transmits it to the power supply unit, and the power on/off signal is a SETUP used for data transmission and reception between the host and the USB device. Among the steps, the DATA step, and the STATUS step, it is characterized in that it is included in the SETUP packet of the SETUP step and transmitted.

Description

호스트로부터 유에스비 장치의 전원을 온 또는 오프시키기 위한 전원 제어 장치 및 이의 작동 방법{POWER CONTROL APPARATUS FOR POWER ON OR OFF OF USB DEVICE FROM HOST AND METHOD FOR OPERATING THE SAME}[POWER CONTROL APPARATUS FOR POWER ON OR OFF OF USB DEVICE FROM HOST AND METHOD FOR OPERATING THE SAME}

본 발명은 호스트로부터 별도의 전원을 갖는 USB 장치를 켜거나 끌 수 있는 전원 제어 장치 및 이의 작동 방법에 관한 것이다.The present invention relates to a power control device capable of turning on or off a USB device having a separate power from a host and a method of operating the same.

USB(Universal Serial Bus) 장치는 4개의 선을 이용하여 호스트 컴퓨터와 연결된다. 이들 4개의 선 중 2개의 선은 전원(5V, 0V)이며 다른 2개의 선은 데이터+와 데이터- 이다. 이러한 USB 장치는 호스트에 연결되면 일련의 초기화 절차를 통하여 인식되고 그 후, 장치의 번호가 할당되어 통신이 가능하다. 또한, USB 장치는 수동적으로 응답하기만 한다. 이에 따라, 데이터를 쓸 때는 호스트에서 먼저 어느 장치에 데이터를 쓰는 것인지 토큰을 보내 주고 ACK을 받은 다음에 데이터를 쓰도록 되어 있다. 또한 USB 장치는 데이터를 읽을 때, 어느 장치로부터 데이터를 읽을 것인지 토큰을 보내 준 후에 ACK을 받고 나서 데이터가 수신되도록 되어 있다. 이러한 방식은 SD 카드와 비슷하나 USB에서는 다수의 장치가 HUB를 통해 연결될 수 있으므로 별도의 어드레싱이 필요하다는 것이 다르다. 하지만, USB 장치의 이러한 방식은 SD 카드 또한 버스 방식으로 연결되는 경우를 위해 어드레싱이 사용될 수도 있다.USB (Universal Serial Bus) devices are connected to the host computer using 4 wires. Two of these four lines are power (5V, 0V), and the other two are data+ and data-. When such a USB device is connected to the host, it is recognized through a series of initialization procedures, and thereafter, a device number is assigned to enable communication. Also, USB devices only respond passively. Accordingly, when writing data, the host sends a token to which device to write the data first, receives ACK, and then writes the data. In addition, when reading data, a USB device sends a token indicating from which device to read data, and then receives an ACK before receiving the data. This method is similar to an SD card, but in USB, a separate addressing is required because multiple devices can be connected through a HUB. However, in this method of the USB device, addressing may be used when the SD card is also connected by a bus method.

이러한 USB 장치는 1.5Mbps 속도의 Low-Speed, 12Mbps의 Full-Speed 장치, USB2.0에서 규격화된 480Mbps의 High-speed 장치, 그리고 USB3.0 규격에 의한 최대 5Gbps의 Super-Speed 장치로 나눌 수 있다. USB3.0 규격의 경우 5개의 핀이 추가되었다. 하지만 역호환성이 유지되도록 표준화되어 있어 기존의 장치 감지나 초기화 부분은 같이 사용된다. These USB devices can be divided into 1.5Mbps Low-Speed, 12Mbps Full-Speed devices, 480Mbps High-speed devices standardized in USB2.0, and Super-Speed devices up to 5Gbps according to USB3.0 standard. . In the case of USB3.0 standard, 5 pins have been added. However, since it is standardized to maintain backward compatibility, the existing device detection and initialization parts are used together.

이러한 스스로의 전원을 가지는 USB 장치(self-powered USB devices)의 경우, 보통 외부 전원을 사람이 켜거나 꺼주어야 한다. 대부분의 경우 사람이 전원을 켜는 것은 특별히 불편하지는 않으나, 원격으로 호스트에 접속한 경우에는 프로그램을 사용하여 외부 전원을 켜고 끄는 것이 필요하며 일반적인 장치도 USB 인터페이스를 통하여 외부 전원을 자동으로 켤 수 있다면 편리할 것이다.In the case of these self-powered USB devices, a person usually needs to turn the external power on or off. In most cases, it is not particularly inconvenient for a person to turn on the power, but when remotely connected to the host, it is necessary to turn on and off the external power using a program, and it is convenient if the external power can be turned on automatically through the USB interface for general devices. something to do.

이에 관련하여, 발명의 명칭이 "USB 호스트 장치 및 그 전원 관리 방법"인 한국공개특허 제2013-0074055호가 존재한다.In this regard, there is Korean Patent Laid-Open Patent No. 2013-0074055 in which the name of the invention is "USB host device and its power management method".

본 발명은 외부에 별도의 전원을 갖는 USB 장치가 USB 포트를 통해 호스트에 연결되어 있을 때, 호스트를 통한 USB 장치의 전원 온/오프를 가능케 하는 전원 제어 장치 및 이의 작동 방법을 제공하는데 그 목적이 있다.The present invention provides a power control device that enables power on/off of a USB device through the host when a USB device having an external power source is connected to a host through a USB port, and a method of operating the same. have.

또한, 본 발명은 호스트를 통해 USB 장치의 전원 온/오프 상태를 확인할 수 있는 전원 제어 장치 및 이의 작동 방법을 제공하는데 그 목적이 있다.In addition, an object of the present invention is to provide a power control device capable of checking the power on/off state of a USB device through a host and a method of operating the same.

상기와 같은 과제를 해결하기 위한 본 발명의 전원 제어 장치는 호스트와 연결된 USB(Universal Serial Bus) 장치에 대해, 호스트에서 인코딩하여 전송한 USB 장치의 전원을 켜거나 끄기 위한 전원 온/오프 신호를 수신하는 수신부; 및 전원 온/오프 신호를 디코딩하고, 디코딩 결과를 근거로 전원부에 대한 전원 제어 신호를 생성하여 전원부로 송신하는 처리부를 포함하며, 전원 온/오프 신호는 호스트와 USB 장치간 데이터 송수신에 사용되는 SETUP 단계, DATA 단계 및 STATUS 단계 중, SETUP 단계의 SETUP 패킷에 포함되어 송신되는 것을 특징으로 한다.In order to solve the above problems, the power control device of the present invention receives a power on/off signal for turning on or off the power of a USB device encoded and transmitted by the host for a USB (Universal Serial Bus) device connected to the host. A receiving unit; And a processing unit that decodes the power on/off signal and generates a power control signal for the power supply unit based on the decoding result and transmits it to the power supply unit, and the power on/off signal is a SETUP used for data transmission and reception between the host and the USB device. Among the steps, the DATA step, and the STATUS step, it is characterized in that it is included in the SETUP packet of the SETUP step and transmitted.

또한, 처리부는, 수신부를 통해 상기 호스트로부터 전원부에 대한 상태 확인 요청을 수신하면, 전원부에 대한 상태 확인 후, 상태 확인 정보를 상기 호스트로 송신할 수 있다.In addition, when receiving a status check request for the power unit from the host through the reception unit, the processing unit may check the status of the power unit and then transmit status check information to the host.

또한, 상태 확인 요청 정보는, USB 제어 전달에 사용되는 SETUP 단계, DATA 단계 및 STATUS 단계 중, SETUP 단계의 SETUP 패킷에 포함되어 송신될 수 있다.In addition, the status check request information may be included in the SETUP packet of the SETUP step among the SETUP step, the DATA step, and the STATUS step used for USB control transmission and transmitted.

본 발명의 전원 제어 장치 및 이의 작동 방법에 따르면 외부에 별도의 전원을 갖는 USB 장치에 대해, 호스트를 통한 USB 장치의 전원 온/오프가 가능하여, USB 장치에 대해 전원선을 연결해둔 상태에서 필요한 경우에만 전원을 인가할 수 있으므로 전력 소비를 줄일 수 있고, 원격으로 호스트에 접속할 때 직접 USB 장치가 있는 곳까지 이동할 필요 없이 원격으로 USB 장치의 전원을 조작할 수 있는 장점을 갖는다.According to the power control device and its operation method of the present invention, it is possible to turn on/off the power of the USB device through the host for a USB device having a separate power externally, so that it is necessary while the power line is connected to the USB device. Since power can be applied only when the power is applied, power consumption can be reduced, and when connecting to the host remotely, it has the advantage of being able to remotely manipulate the power of the USB device without having to move to the location of the USB device.

또한, 본 발명의 전원 제어 장치 및 이의 작동 방법에 따르면 호스트를 통해 USB 장치의 전원 온/오프 상태를 확인할 수 있는 장점을 갖는다.In addition, according to the power control device and its operating method of the present invention, it is possible to check the power on/off state of the USB device through the host.

도 1은 본 발명의 일 실시예에 따른 USB 장치의 블록도이다.
도 2는 본 발명의 일 실시예에 따른 전원 제어 장치의 블록도이다.
도 3은 제어 전달 통신에 이용되는 SETUP 단계의 흐름에 대한 도면이다.
도 4는 제어 전달 통신에 이용되는 DATA 단계의 흐름에 대한 도면이다.
도 5는 제어 전달 통신에 이용되는 STATUS 단계의 흐름에 대한 도면이다.
도 6은 USB 표준에 따른 SETUP 패킷의 구성을 나타내는 도표이다.
도 7은 USB 표준에 따른 SETUP 패킷의 내용을 나타내는 도표이다.
도 8은 본 발명의 일 실시예에 따른 전원 제어 장치의 작동 방법에 대한 흐름도이다.
도 9는 본 발명의 일 실시예에 따라 호스트에서 USB 장치의 전원을 켜는 방법에 대한 흐름도이다.
1 is a block diagram of a USB device according to an embodiment of the present invention.
2 is a block diagram of a power control device according to an embodiment of the present invention.
3 is a diagram for a flow of a SETUP step used for control transfer communication.
4 is a diagram for a flow of a DATA step used in control transfer communication.
5 is a diagram for a flow of a STATUS step used for control transfer communication.
6 is a diagram showing the configuration of a SETUP packet according to the USB standard.
7 is a diagram showing the contents of a SETUP packet according to the USB standard.
8 is a flowchart illustrating a method of operating a power control device according to an embodiment of the present invention.
9 is a flowchart illustrating a method of turning on a USB device in a host according to an embodiment of the present invention.

본 발명을 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다. 여기서, 반복되는 설명, 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능, 및 구성에 대한 상세한 설명은 생략한다. 본 발명의 실시형태는 당 업계에서 평균적인 지식을 가진 자에게 본 발명을 보다 완전하게 설명하기 위해서 제공되는 것이다. 따라서, 도면에서의 요소들의 형상 및 크기 등은 보다 명확한 설명을 위해 과장될 수 있다.
The present invention will be described in detail with reference to the accompanying drawings as follows. Here, repeated descriptions, well-known functions that may unnecessarily obscure the subject matter of the present invention, and detailed descriptions of configurations are omitted. Embodiments of the present invention are provided to more completely explain the present invention to those with average knowledge in the art. Accordingly, the shapes and sizes of elements in the drawings may be exaggerated for clearer explanation.

이하, 도 1 및 도 2를 참조로 본 발명의 실시예에 따른 USB 장치(10)에 대하여 설명하도록 한다. 도 1은 본 발명의 일 실시예에 따른 USB 장치(10)의 블록도이다. 본 발명의 일 실시예에 따른 USB 장치(10)는 전원부(11), 인터페이스 처리부(12) 및 기능 처리부(13)를 포함하여 구성된다. 이하의 실시예에서, USB 장치(10)는 호스트 컴퓨터와 연결된 단자를 통한 전원 공급뿐만 아니라, 별도의 전원부를 통해 전원이 공급되어야 작동되는 USB 장치(10)를 나타낸다.Hereinafter, a USB device 10 according to an embodiment of the present invention will be described with reference to FIGS. 1 and 2. 1 is a block diagram of a USB device 10 according to an embodiment of the present invention. The USB device 10 according to an embodiment of the present invention includes a power supply unit 11, an interface processing unit 12, and a function processing unit 13. In the following embodiments, the USB device 10 represents a USB device 10 that operates only when power is supplied through a separate power supply as well as power through a terminal connected to the host computer.

전원부(11)는 본 발명의 USB 장치(10)에 전원을 공급하는 기능을 한다. 이러한 전원부(11)는 외부 전원 콘센트를 통해 또는 배터리를 통해 전원을 공급할 수 있다. 또한, 예를 들어, 스위치와 같은 전원 버튼을 통해 USB 장치(10)에 전원을 공급 또는 차단할 수 있다.The power supply 11 functions to supply power to the USB device 10 of the present invention. The power supply 11 may supply power through an external power outlet or a battery. Also, for example, power may be supplied to or cut off the USB device 10 through a power button such as a switch.

인터페이스 처리부(12)는 USB 장치(10)와 호스트(20)간의 연결을 담당한다. 즉, 인터페이스 처리부(12)는 예를 들어, 프린터와 같이 USB 선을 통해 호스트 컴퓨터와 연결되고, USB 프로토콜 처리를 통해 장치 인식 및 데이터 송수신을 처리하며 외부 전원을 통해 전원을 공급받는 USB 장치(10)와 소프트웨어 및 하드웨어적인 연결을 수행한다. The interface processing unit 12 is responsible for connection between the USB device 10 and the host 20. That is, the interface processing unit 12 is a USB device 10 that is connected to a host computer through a USB line, such as a printer, processes device recognition and data transmission/reception through USB protocol processing, and receives power through an external power source. ) And software and hardware connection.

또한, 인터페이스 처리부(12)는 본 발명의 전원 제어 장치(100)를 포함하여 구성될 수 있다. 이러한 전원 제어 장치(100)는 호스트를 통한 본 발명의 USB 장치(10)의 전원 온 또는 오프, 그리고 USB 장치(10)의 전원 켜짐 상태 여부를 판단하는 기능을 한다. 이를 위해, 본 발명의 전원 제어 장치(100)는 수신부(110), 처리부(120) 및 송신부(130)를 포함하여 구성될 수 있다.In addition, the interface processing unit 12 may be configured to include the power control device 100 of the present invention. The power control device 100 functions to determine whether the USB device 10 is powered on or off through the host and whether the USB device 10 is powered on. To this end, the power control device 100 of the present invention may be configured to include a receiving unit 110, a processing unit 120, and a transmitting unit 130.

수신부(110)는 호스트(20)와 연결된 USB 장치(10)에 대해, 호스트에서 인코딩하여 전송한 USB 장치(10)의 전원을 켜거나 끄기 위한 전원 온/오프 신호를 수신하는 기능을 한다. 즉, 수신부(110)는 호스트(20)에서 송신한 USB 장치(10)의 전원 인가 또는 차단 요청 신호를 수신하는 기능을 한다. 이러한 전원 온/오프 신호는 호스트(20)에서 만들어 USB 장치(10)로 송신된다. 즉, 호스트(20)와 USB 장치(10) 간의 데이터 송수신은 USB 데이터 송수신에 대한 표준에 따라, 제어 전달, 인터럽트 전달, 등시 전달 및 대량 전달(control transfer, interrupt transfer, isochronous transfer, bulk transfer)로 나누어지는데, 본 발명에서는 전원 신호의 전달을 위해 제어 전달(control transfer)을 사용한다. 여기서, 제어 전달은 일반적으로 SETUP 단계(stage), DATA 단계 및 STATUS 단계를 거쳐 이루어진다. 또한, 여기서 전원 온/오프 신호는 이들 단계 중 SETUP 단계의 SETUP 패킷을 통하여 송신될 수 있다. 이러한 SETUP 패킷에 대한 서술은 도 3 내지 7을 참조로 보다 상세히 이루어진다.The receiver 110 functions to receive a power on/off signal for turning on or off the power of the USB device 10 encoded and transmitted by the host for the USB device 10 connected to the host 20. That is, the receiving unit 110 functions to receive a power supply or cutoff request signal of the USB device 10 transmitted from the host 20. These power on/off signals are made by the host 20 and transmitted to the USB device 10. That is, data transmission/reception between the host 20 and the USB device 10 is according to the standard for USB data transmission/reception, control transfer, interrupt transfer, isochronous transfer, and bulk transfer (control transfer, interrupt transfer, isochronous transfer, bulk transfer). Divided into, in the present invention, control transfer is used to transfer the power signal. Here, control transfer is generally performed through a SETUP stage, a DATA stage, and a STATUS stage. In addition, the power on/off signal may be transmitted through a SETUP packet of the SETUP step among these steps. Description of the SETUP packet is made in more detail with reference to FIGS. 3 to 7.

처리부(120)는 수신부(110)를 통해 수신한 전원 온/오프 신호를 근거로, USB 장치(10)의 전원을 온 또는 오프시키는 기능을 한다. 구체적으로, 처리부(120)는 먼저, 수신부(110)를 통해 수신한 전원 온/오프 신호를 디코딩한다. 즉, 처리부(120)는 디코딩 과정을 통해, 수신부(110)를 통해 수신한 신호가 전원 온/오프 요청 신호인지, 아니면 이하에서 언급되는 상태 확인 요청 신호인지를 판단할 수 있다. 그 후, 이러한 디코딩 결과를 근거로, 전원 온/오프 신호가 수신되면, 처리부(120)는 해당 신호가 전원 인가 요청인지 또는 전원 차단 요청인지를 더 판단한다. 그 후, 처리부(120)는 수신한 전원 인가 요청 또는 전원 차단 요청에 근거하여, 전원부에 대한 전원 제어 신호를 생성한다. 즉, 여기서 전원 제어 신호는 전원부(11)를 통한 전원 인가 또는 차단을 제어하는 신호이다. The processing unit 120 functions to turn on or off the power of the USB device 10 based on the power on/off signal received through the reception unit 110. Specifically, the processing unit 120 first decodes the power on/off signal received through the reception unit 110. That is, the processing unit 120 may determine whether the signal received through the receiving unit 110 is a power on/off request signal or a status check request signal mentioned below through a decoding process. Thereafter, based on the decoding result, when a power on/off signal is received, the processing unit 120 further determines whether the corresponding signal is a power supply request or a power cutoff request. Thereafter, the processing unit 120 generates a power control signal for the power supply unit based on the received power supply request or power cut request. That is, the power control signal here is a signal for controlling power supply or cut-off through the power supply unit 11.

또한, 본 발명의 다른 실시예에 따라, 호스트(20)에서 USB 장치(10)의 전원 인가 상태에 대한 확인을 원한다고 가정하자. 이 때, 호스트(20)는 USB 장치(10)로 전원부(11)에 대한 상태 확인 요청 신호를 송신한다. 이러한 상태 확인 요청 신호는 수신부(110)를 통해 본 발명의 전원 제어 장치(100)에서 수신된다. 이렇게 상태 확인 요청 신호를 수신하면, 처리부(120)는 전원부(11)에 대한 상태 확인 후, 상태 확인 정보를 호스트(20)로 송신한다. 즉, 처리부(120)는 USB 장치(10)에 전원이 인가되어 있는지 또는 차단되어 있는지를 확인한 후, 이에 대한 상태 확인 정보를 송신부(130)를 통해 호스트(20)로 송신한다. 여기서, 상태 확인 요청 신호 는 전원 온/오프 신호와 마찬가지로, SETUP 패킷에 포함되어 송신될 수 있으며, 전원의 상태 정보는 후속하는 DATA 단계의 DATAx 패킷에 의해 전달될 수 있다. 여기서, SETUP 패킷에 대한 서술은 이하에서 도 3 내지 도 7을 참조로 상세히 이루어지므로, 여기선 생략된다.In addition, according to another embodiment of the present invention, assume that the host 20 wants to check the power supply state of the USB device 10. At this time, the host 20 transmits a status check request signal to the power supply 11 to the USB device 10. Such a status check request signal is received by the power control device 100 of the present invention through the receiving unit 110. When receiving the status check request signal in this way, the processing unit 120 transmits the status check information to the host 20 after checking the status of the power supply unit 11. That is, the processing unit 120 checks whether power is applied to the USB device 10 or is cut off, and then transmits the status check information on the USB device 10 to the host 20 through the transmission unit 130. Here, the status check request signal may be included in the SETUP packet and transmitted, like the power on/off signal, and the status information of the power may be transmitted by the DATAx packet of the subsequent DATA step. Here, since the description of the SETUP packet is made in detail with reference to FIGS. 3 to 7 below, it is omitted here.

상술한 본 발명의 전원 제어 장치(100)는 전원부(11)를 통해 전원이 공급되는 것이 아닌 USB 버스에서 공급되는 전류를 이용한다. 즉, 본 발명의 전원 제어 장치(100)는 USB 버스에서 제공하는 전원(5V,0V)를 사용하므로, USB 장치(10) 의 최소 영역만 전원을 공급하고 호스트에서는 특별히 정의된 패킷을 USB 장치(10)에 보냄으로써 전원을 켜거나 끄도록 하는 것이 가능하다. 이를 통해, USB 장치(10)에 전원이 인가되어 있지 않더라도, USB 포트를 통해 USB 장치(10)의 전원의 인가가 가능하다. 또한 USB 장치(10)에 전원이 인가된 상태에서도, 전원부(11)를 이용하는 것이 아닌 USB 포트를 이용하므로, 전원부(11)의 효율적인 운용이 가능하게 된다. The power control device 100 of the present invention described above uses a current supplied from a USB bus rather than power supplied through the power supply unit 11. That is, since the power control device 100 of the present invention uses power (5V, 0V) provided by the USB bus, power is supplied to only the minimum area of the USB device 10, and the host sends a specially defined packet to the USB device ( It is possible to turn the power on or off by sending it to 10). Through this, even if power is not applied to the USB device 10, it is possible to apply power to the USB device 10 through the USB port. In addition, even when power is applied to the USB device 10, since the USB port is used instead of the power supply 11, efficient operation of the power supply 11 is possible.

일반적으로 USB 장치는 자신이 완전히 준비가 된 상태에서 자신의 존재를 호스트에 알리기 위해 풀-업(pull-up) 저항을 인에이블시킨다. 따라서, 상술한 외부 전원을 제어하는 동작은 USB 장치(10)가 준비되기 전에 이루어지게 된다. USB 장치(10)의 일부에만 USB 버스에서 공급하는 전원을 사용하는 것은, 이더넷(Ethernet)에서 Wake on LAN 기능을 구현하기 위해 칩의 최소영역만 전원을 공급하여 특정 패턴이 입력되는 것을 감시하는 것과 비슷하다. 여기서, Wake on LAN 기능은 이더넷에 연결된 PC를 특별히 정의된 매직 패킷을 사용하여 켜는 기능을 의미한다.Typically, USB devices enable pull-up resistors to inform the host of their presence when they are fully ready. Accordingly, the operation of controlling the external power source described above is performed before the USB device 10 is prepared. Using the power supplied from the USB bus for only a part of the USB device 10 is the same as monitoring the input of a specific pattern by supplying power to only the smallest area of the chip to implement the Wake on LAN function in Ethernet. Similar. Here, the Wake on LAN function means a function to turn on the PC connected to Ethernet using a specially defined magic packet.

또한, USB는 고속통신을 위한 차동직렬 선을 사용한다. 그러므로, USB에서 전원을 켜거나 끄게하는 신호를 전달하기 위해, D+, D- 선에 다른 것을 연결하는 것은 바람직하지 않다는 것이 이해되어야 한다. In addition, USB uses a differential serial line for high-speed communication. Therefore, it should be understood that it is undesirable to connect anything else to the D+ or D- wires to carry a signal that causes the USB to power on or off.

마지막으로, USB 장치(10)에 포함된 기능 처리부(13)는 실질적인 USB 장치(10)의 기능 즉, 예를 들어 프린터의 경우 호스트 컴퓨터에서 보내 준 데이터 예를 들어, Postscript, PCL 등을 출력하는 기능을 한다.
Finally, the function processing unit 13 included in the USB device 10 outputs the actual functions of the USB device 10, that is, for example, in the case of a printer, data sent from the host computer, for example, Postscript, PCL, etc. Functions.

이하 도 3 내지 도 7을 참조로, 본 발명의 USB 장치와 호스트간 송수신되는 SETUP 패킷을 더 서술한다. 도 3은 제어 전달 통신에 이용되는 SETUP 단계의 흐름에 대한 도면이다. 도 4는 제어 전달 통신에 이용되는 DATA 단계의 흐름에 대한 도면이다. 도 5는 제어 전달 통신에 이용되는 STATUS 단계의 흐름에 대한 도면이다. 도 6은 USB 표준에 따른 SETUP 패킷의 구성을 나타내는 도표이다. 도 7은 USB 표준에 따른 각 요구(bRequest)에 대한 SETUP 패킷의 내용을 나타내는 도표이다.Hereinafter, a SETUP packet transmitted/received between a USB device and a host according to the present invention will be further described with reference to FIGS. 3 to 7. 3 is a diagram for a flow of a SETUP step used for control transfer communication. 4 is a diagram for a flow of a DATA step used in control transfer communication. 5 is a diagram for a flow of a STATUS step used for control transfer communication. 6 is a diagram showing the configuration of a SETUP packet according to the USB standard. 7 is a diagram showing the contents of a SETUP packet for each request (bRequest) according to the USB standard.

앞서 언급한 바와 같이, USB 장치와 호스트간의 제어 전달 통신은 SETUP, DATA 그리고 STATUS 단계를 거친다. 이들 단계 중, 본 발명의 전원 제어 장치는 SETUP 단계에서 송신 되는 SETUP 패킷에 해당 데이터를 추가하여 전원 관련 명령 전달 기능을 수행할 수 있으며, 전원 상태 확인은 후속하는 DATA 입력 단계를 사용할 수 있다. 즉, 본 발명을 통해 이루어지는 제어 전달은 SETUP 단계만으로 처리가 가능하다. 이러한 SETUP 단계는 도 3에 도시된 바와 같이, SETUP 패킷과 선택적인 DATA(DATA0) 패킷 그리고 ACK 패킷으로 구성된다. 여기서, DATA 입력 단계는 도 4의 윗부분에 도시된 바와 같이 호스트에서 보내 주는 IN 패킷과 장치에서 보내 주는 DATAx(x=0또는1) 또는 STALL, NAK 패킷, 그리고 다시 호스트에서 보내 주는 ACK 패킷으로 구성된다. 그리고, 데이터 입력 단계가 있는 경우에는 STATUS 단계도 포함해야 하는데 도 5에 나타난 바와 같이 호스트가 STATUS 패킷을 보낸 후 길이가 0인 DATA 패킷을 보내고, 장치(USB device)가 ACK를 보내게 되어 있다. 전달될 데이탸의 양이 많은 경우 최대 패킷 크기에 맞추어 중간에 많은 수의 데이터 전달 단계를 거치며 마지막에 STATUS 단계는 한 번 처리된다.As mentioned above, control transfer communication between the USB device and the host goes through the SETUP, DATA, and STATUS steps. Among these steps, the power control device of the present invention may perform a power-related command transmission function by adding corresponding data to the SETUP packet transmitted in the SETUP step, and a subsequent DATA input step may be used to check the power status. That is, control transfer made through the present invention can be processed only by the SETUP step. This SETUP step is composed of a SETUP packet, an optional DATA (DATA0) packet, and an ACK packet, as shown in FIG. 3. Here, the DATA input step consists of an IN packet sent from the host, a DATAx (x=0 or 1) or STALL, NAK packet sent from the device, and an ACK packet sent from the host as shown in the upper part of FIG. do. In addition, if there is a data input step, a STATUS step should also be included. As shown in FIG. 5, after the host sends a STATUS packet, a DATA packet having a length of 0 is sent, and a device (USB device) sends an ACK. If the amount of data to be transferred is large, a large number of data transfer steps are performed in the middle according to the maximum packet size, and the STATUS step is processed once at the end.

또한, 이러한 SETUP 패킷은 도 6에 도시된 것처럼 구성될 수 있다. 도 6에서, bmRequestType은 제어의 방향과 종류, 상대를 나타낸다. bRequest는 실제 제어의 내용을 나타내며 이들 각 속성에 대한 내용은 도 6 및 도 7에 상세히 도시된다.In addition, such a SETUP packet may be configured as shown in FIG. 6. In FIG. 6, bmRequestType indicates the direction, type, and partner of control. bRequest represents the actual content of control, and the content of each of these properties is shown in detail in FIGS. 6 and 7.

전원부를 포함하는 장치의 전원 온과 오프를 위해 RequestType에서 vendor specific한 명령을 정의할 수도 있고 표준에 반영한다면 Standard 타입에 정의할 수도 있다. Standard 타입으로 정의할 경우는 이미 정의되어 있는 bRequest 값 외의 값을 추가하면 된다. 예를 들어 추가되는 명령을 POWER_ON(0xF0)과 POWER_OFF(0xF1)와 같이 정의하고 나머지 값은 0으로 할 수도 있다.Vendor specific commands can be defined in RequestType for power on and off of devices including the power supply, or can be defined in Standard type if reflected in the standard. When defining as standard type, add a value other than the already defined bRequest value. For example, you can define additional commands as POWER_ON(0xF0) and POWER_OFF(0xF1), and set the remaining values to 0.

마찬가지로 호스트에서 USB 장치의 자체 전원의 온/오프 상태를 알기 위해 별도의 새로운 bRequest SETUP 명령을 정의하여(예를 들면 GET_POWER_STATUS(0xF2)) USB 장치에 보내고 IN 토큰을 통해 USB 장치로부터 자체 전원의 상태를 읽어내는 방법이 가능하다(Vendor specific한 request를 사용할 수도 있다).Similarly, to know the on/off status of the USB device's own power by the host, a separate new bRequest SETUP command is defined (e.g. GET_POWER_STATUS(0xF2)) to send to the USB device and the status of its own power from the USB device via IN token. Reading method is possible (Vendor specific request can also be used).

위와 같이 SETUP 패킷을 통해 호스트에서 USB 장치로 별도의 전원을 켜거나 끄도록 하는 메시지를 보내 주면 USB 장치의 칩은 전원부에 신호를 전달하여 전원을 켜거나 끄게 할 수 있다. 이러한 동작은 USB 버스 파워로 동작하는 프로세서를 통해 할 수도 있고 별도 회로를 구현하여 할 수도 있으나 별도로 간단한 회로를 구성하는 것이 전력소모에 있어 훨씬 효율적이고 구현도 간단하다. USB 장치의 외부 전원은 디지털 신호를 통해 켜거나 끄는 것이 가능해야 한다. 이러한 켜거나 끄는 과정은 예를 들어, 릴레이 또는 파워 스위치를 사용하여 구현 가능하다. As above, if the host sends a message to turn on or off the power to the USB device through the SETUP packet, the chip of the USB device can transmit a signal to the power supply to turn the power on or off. This operation can be performed through a processor operating on USB bus power or by implementing a separate circuit, but configuring a separate circuit is much more efficient in terms of power consumption and is simple to implement. The USB device's external power must be capable of being turned on or off via digital signals. This turn-on or turn-off process can be implemented using, for example, a relay or a power switch.

위에 설명한 최소 기능을 위해서 별도의 디지털 회로를 구현하여 처리하는 경우, 이 회로는 앞에 설명된 전원 온/오프 SETUP 패킷을 디코딩하여 시스템 전원을 제어하기 위한 신호를 발생하고 전원 온/오프 상태를 알기 위한 SETUP 패킷을 디코딩하여 ACK 신호로 응답하고, 뒤따르는 IN 패킷에 응답하여 DATA0 패킷을 통해 응답을 해 준 후, STATUS 패킷과 길이가 0인 데이터 패킷에 응답하여 ACK을 올려 보내주는 기능만 하면 된다. 최근의 좀 더 복잡한 USB 장치의 경우에는 자신의 초기화가 다 끝난 후에 풀-업 저항을 인에이블 시킴으로써 호스트에게 자신의 존재를 알리는 경우도 많다. USB 장치가 연결되어 있으나 전원이 켜 있지 않은 경우에는 풀-업 저항이 인에이블되어 있지 않고 어떤 종류(low-speed/full-speed/high-speed/super-speed)인지 알 수 없는 상태에서 전원을 켜야 한다. In the case of implementing and processing a separate digital circuit for the minimum functions described above, this circuit generates a signal to control the system power by decoding the power on/off SETUP packet described above, and to know the power on/off status. After decoding the SETUP packet and responding with an ACK signal, responding to the following IN packet through the DATA0 packet, and then raising the ACK in response to the STATUS packet and the data packet of length 0. In the case of more complicated USB devices in recent years, they often notify the host of their existence by enabling the pull-up resistor after their initialization is complete. If a USB device is connected but not powered on, turn it off without having the pull-up resistor enabled and knowing what kind (low-speed/full-speed/high-speed/super-speed). It should be turned on.

따라서 USB 호스트는 low-speed를 가정하여 링크 속도를 설정한 후 POWER_ON 명령을 보내보고 ACK가 있으면 전원이 켜진 것을 알 수 있고 ACK가 없는 경우는 다시 full-speed를 가정하여 링크 속도를 설정한 후 POWER_ON 명령을 보내어 ACK가 있으면 전원이 켜진 것을 알 수 있다. USB 장치에서도 단순한 부착 상태에서도 이러한 것이 가능하도록 최소기능을 구현해 두어야 한다. 또한, high-speed나 super-speed인 경우에는 별도의 프로토콜을 통해 속도를 올리게 된다. 전원을 끄는 경우는 어떤 장치가 연결되어 있는지 알고 있으므로 보통의 절차를 완료한 후에 마지막으로 POWER_OFF 패킷을 보내면 되고 GET_POWER_STATUS로 확인을 할 수도 있다.
Therefore, the USB host assumes low-speed, sets the link speed, sends the POWER_ON command, and if there is ACK, it knows that the power is turned on. If there is no ACK, it assumes full-speed again and sets the link speed and then POWER_ON. If there is an ACK by sending a command, you know that the power is on. The minimum function should be implemented so that this is possible even in a USB device or even in a simple attached state. Also, in the case of high-speed or super-speed, the speed is increased through a separate protocol. When turning off the power, it knows which device is connected, so you can send the last POWER_OFF packet after completing the normal procedure, and you can also check with GET_POWER_STATUS.

이하 도 8을 참조로, 본 발명의 일 실시예에 따른 전원 제어 장치의 작동 방법을 서술한다. 도 8은 본 발명의 일 실시예에 따른 전원 제어 장치의 작동 방법에 대한 흐름도이다. 이하의 서술에서 도 1 내지 도 7을 참조로 서술한 사항과 중복되는 부분은 명세서의 명료함을 위해 생략된다.Hereinafter, with reference to FIG. 8, a method of operating a power control device according to an embodiment of the present invention will be described. 8 is a flowchart illustrating a method of operating a power control device according to an embodiment of the present invention. In the following description, portions overlapping with those described with reference to FIGS. 1 to 7 are omitted for clarity of the specification.

상술한 바와 같이, 본 발명의 전원 제어 장치는 크게 2가지 실시예로 활용될 수 있다. 이들 실시예 중 제 1 실시예는 본 발명의 전원 제어 장치를 통해, 호스트에서 USB 장치의 전원을 인가 또는 차단하는 것이고, 제 2 실시예는 본 발명의 전원 제어 장치를 통해, 호스트에서 USB 장치의 전원 여부를 판단하는 것이다. 이하의 서술에서 S801 단계 부터 S804 단계는 제 1 실시예에 해당하고, S805 단계 부터 S808 단계는 제 2 실시예에 해당한다. 또한, 이하에서 언급되는 USB 장치는 전원부를 포함하여, 전원부로부터 공급되는 전류 또는 전압을 통해 구동되는 장치를 의미한다.As described above, the power control device of the present invention can be largely used in two embodiments. The first of these embodiments is to apply or cut off the power of the USB device from the host through the power control device of the present invention, and the second embodiment is to control the USB device from the host through the power control device of the present invention. It is to determine whether or not the power supply. In the following description, steps S801 to S804 correspond to the first embodiment, and steps S805 to S808 correspond to the second embodiment. In addition, the USB device mentioned below refers to a device that is driven through a current or voltage supplied from the power supply, including a power supply.

호스트(20)에서 USB 장치의 전원을 온 또는 오프시킬 때, 먼저, 호스트(20)에 의해 전원 제어 장치(100)로 인코딩하여 전송한 전원 온/오프 신호를 송신하는 단계(S801)가 수행된다. 여기서, 전원 온/오프 신호는 위에서 언급한 것처럼, SETUP 패킷에 포함되어 송신되는 신호로서, USB 장치의 전원 인가 또는 전원 차단을 요청하는 신호이다. 또한, SETUP 패킷에 대한 것은 도 3 내지 도 7을 참조로 상세히 언급되었으므로, 여기서 이에 대한 추가적인 서술은 생략한다.When the host 20 turns on or off the power of the USB device, first, a step S801 of transmitting a power on/off signal encoded and transmitted by the host 20 to the power control device 100 is performed. . Here, the power on/off signal is a signal included in the SETUP packet and transmitted as mentioned above, and is a signal requesting power-on or power-off of the USB device. In addition, since the SETUP packet has been described in detail with reference to FIGS. 3 to 7, further description thereof will be omitted.

그 후, 전원 제어 장치(100)에서 S801 단계에서 수신한 전원 온/오프 신호를 디코딩하는 단계(S802)가 수행된다. S802 단계에서는 S801 단계에서 수신한 신호를 디코딩하여, 이 신호가 전원 온/오프 신호인지 상태 확인 요청 신호인지를 판단한다. 이러한 판단 결과, 신호가 전원 온/오프 신호로 판단되면, 신호에 대응하는 전원 온 또는 오프를 위한 전원 제어 신호를 생성한다.Thereafter, a step (S802) of decoding the power on/off signal received in step S801 by the power control device 100 is performed. In step S802, the signal received in step S801 is decoded, and it is determined whether the signal is a power on/off signal or a status check request signal. As a result of this determination, when the signal is determined to be a power on/off signal, a power control signal for power on or off corresponding to the signal is generated.

그 후, 전원 제어 신호를 전원부로 송신하여, 해당 전원 온 또는 오프 과정(S803)을 수행한다. 앞서 언급한 것처럼, 전원 제어 신호는 전원부를 통한 전원 인가 또는 차단을 제어하는 신호이다. 이렇게 전원 제어 신호를 통하여 전원부에 대한 전원 인가 또는 차단을 수행한 후, 전원 제어 장치(100)에서 호스트(20)로 ACK 패킷을 송신하는 단계(S804)가 수행된다.Thereafter, a power control signal is transmitted to the power unit, and the corresponding power on or off process (S803) is performed. As mentioned above, the power control signal is a signal that controls power supply or cut off through the power supply unit. After the power is applied to or cut off the power unit through the power control signal, an ACK packet is transmitted from the power control device 100 to the host 20 (S804).

또한, 다른 실시예에 따라, 호스트(20)에서 USB 장치의 전원 인가 여부를 확인할 때, 먼저 호스트(20)에서 전원 제어 장치(100)로 인코딩하여 전송한 상태 확인 요청 신호를 송신하는 단계(S805)가 수행된다. S805 단계에서 상태 확인 요청 신호는 앞서 S801 단계에서 언급된 전원 온/오프 신호와 마찬가지로, SETUP 패킷에 포함되어 송신된다. 또한, SETUP 패킷에 대한 것은 도 3 내지 도 7을 참조로 상세히 언급되었으므로, 여기서 이에 대한 추가적인 서술은 생략한다.In addition, according to another embodiment, when the host 20 checks whether power is applied to the USB device, first transmitting a status check request signal encoded and transmitted by the host 20 to the power control device 100 (S805). ) Is performed. In step S805, the status check request signal is included in the SETUP packet and transmitted, similar to the power on/off signal mentioned in step S801. In addition, since the SETUP packet has been described in detail with reference to FIGS. 3 to 7, further description thereof will be omitted.

그 후, 수신한 상태 확인 요청 신호를 디코딩한 후(S806), 전원부를 통해 USB 장치에 전원이 온 또는 오프인지에 대한 상태 판단이 수행된다(S807). S807 단계에서, 상태 판단이 완료되면, 이에 대한 정보를 다시 호스트(20)로 송신한다(S808). 그 후 호스트(20)에서 STATUS 패킷과 함께 길이가 0인 데이터 패킷이 오게 되면 ACK 신호로 응답해 준다.Thereafter, after decoding the received status check request signal (S806), a status determination as to whether the USB device is powered on or off is performed through the power supply (S807). In step S807, when the state determination is completed, information about this is transmitted back to the host 20 (S808). Thereafter, when a data packet with a length of 0 along with a STATUS packet comes from the host 20, it responds with an ACK signal.

본 발명에 따른 호스트에서 USB 장치의 자체 전원을 켜는 방법은 도 9와 같다. 일반적으로 USB 장치는 여러 개의 포트 중에서 어떤 포트에 어떠한 장치가 연결되면, 그것을 감지한 후 해당 포트에 파워를 추가한 후 어떤 장치인지 알아낸다. 이러한 과정 이후, USB 장치는 해당 장치에 reset을 명령을 보내고 다시 해당 장치가 무슨 장치인지 Configuration descriptor, Device descriptor, Interface descriptor, Endpoint descriptor들을 판독하게 된다. 이러한 판독 과정을 거쳐 각 인터페이스를 해당하는 드라이버에 연결하는 작업을 수행한다. 여기서, Configuration descriptor는 자체 power, 즉 자가-전원을 가진 장치인지 나와 있지만, 본 발명은 해당 USB 장치가 자가-전원이 있는지도 모르는 상태에서 동작하는 것이므로 플러그-앤-플레이(plug-and-play) 개념이 아니라 주로 원격으로 특정 장치의 전원을 켜고 끄는 것을 목적으로 한다. 이를 위해, 본 발명에 따른 호스트에서 USB 장치의 자체 전원을 켜는 방법은 도 9에 도시된 처리 과정을 통해 수행된다.A method of turning on the power of a USB device in a host according to the present invention is shown in FIG. 9. In general, when a USB device is connected to a certain port among several ports, it detects it, adds power to the port, and finds out which device it is. After this process, the USB device sends a reset command to the corresponding device, and reads the configuration descriptor, device descriptor, interface descriptor, and endpoint descriptor of what device the device is. Through this reading process, each interface is connected to a corresponding driver. Here, the configuration descriptor indicates whether or not the device has its own power, that is, a self-powered device, but the present invention operates in a state where the corresponding USB device does not know whether there is self-power, so the concept of plug-and-play Rather, it's primarily aimed at turning on and off a specific device remotely. To this end, the method of turning on the power of the USB device in the host according to the present invention is performed through the process shown in FIG. 9.

또한, 상술한 것처럼, USB 장치가 연결되어 있으나 전원이 켜 있지 않은 경우에는 연결된 USB가 어떤 종류인지 즉, low-speed, full-speed, high-speed ,super-speed 중 어느 것인지 알 수 없는 상태에서 전원을 켜야 한다. 따라서, 호스트는 먼저, low-speed를 가정하여 링크 속도를 설정한 후 POWER_ON 패킷을 전원 제어 장치로 송신한다.Also, as described above, when a USB device is connected but the power is not turned on, it is not known what type of USB is connected, that is, whether it is low-speed, full-speed, high-speed, or super-speed. Turn on the power. Therefore, the host first sets the link speed assuming low-speed and then transmits a POWER_ON packet to the power control device.

그 후, ACK 신호의 수신 여부를 판단하는 단계(S902)가 수행된다. S902 단계에서, ACK 신호를 수신하였다고 판단되면 제어는 S906 단계로 전달되어 USB 디바이스가 부착되고 전원이 켜졌다고 판단한다. 그렇지 않다면 단계는 S903 단계로 전달한다.Thereafter, a step (S902) of determining whether an ACK signal is received is performed. In step S902, if it is determined that the ACK signal has been received, control is transferred to step S906 to determine that the USB device is attached and the power is turned on. Otherwise, the step passes to step S903.

S903 단계는 ACK 신호를 수신하지 못할 때 수행되는 단계로서, full-speed를 가정하여 링크 속도를 설정한 후 POWER_ON 패킷을 전원 제어 장치로 송신하는 단계이다.Step S903 is a step performed when the ACK signal is not received. After setting the link speed assuming full-speed, the POWER_ON packet is transmitted to the power control device.

그 후, ACK 신호의 수신 여부를 판단하는 단계(S904)가 수행된다. S904 단계에서, ACK신호를 수신하였다고 판단되면, 제어는 S906 단계로 전달되어, USB 디바이스가 부착되고 전원이 켜졌다고 판단하게 된다. 그렇지 않다면, 제어는 S905 단계로 전달된다. After that, a step (S904) of determining whether an ACK signal is received is performed. If it is determined in step S904 that the ACK signal has been received, control is transferred to step S906, where it is determined that the USB device is attached and the power is turned on. Otherwise, control passes to step S905.

S905 단계는 USB 장치가 high-speed 또는 super-speed인지의 판단을 위해, 별도의 프로토콜을 통해 속도를 더 올리게 된다. 속도 증가를 통해 ACK 신호를 수신하게 되면, 제어는 S906 단계로 전달되고, 그렇지 않다면 디바이스의 부착 여부를 알 수 없음으로 판단하게 된다.In step S905, to determine whether the USB device is high-speed or super-speed, the speed is further increased through a separate protocol. When the ACK signal is received through the speed increase, control is transferred to step S906, otherwise it is determined that whether or not the device is attached is unknown.

또한, 전원을 끄는 경우는 어떤 장치가 연결되어 있는지 알고 있으므로 보통의 절차를 완료한 후에 마지막으로 POWER_OFF 패킷을 보내면 되고 GET_POWER_STATUS로 확인을 할 수도 있다.
Also, when turning off the power, it knows which device is connected, so after completing the normal procedure, you can send the last POWER_OFF packet and check with GET_POWER_STATUS.

이상에서와 같이 도면과 명세서에서 최적의 실시예가 개시되었다. 여기서 특정한 용어들이 사용되었으나, 이는 단지 본 발명을 설명하기 위한 목적에서 사용된 것이지 의미 한정이나 특허청구범위에 기재된 본 발명의 범위를 제한하기 위하여 사용된 것은 아니다. 그러므로, 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다.As described above, an optimal embodiment has been disclosed in the drawings and specifications. Although specific terms have been used herein, these are only used for the purpose of describing the present invention, and are not used to limit the meaning or the scope of the present invention described in the claims. Therefore, those of ordinary skill in the art will understand that various modifications and equivalent other embodiments are possible therefrom. Accordingly, the true technical scope of the present invention should be determined by the technical spirit of the appended claims.

10 : USB 장치 100 : 전원 제어 장치
110 : 수신부 120 : 처리부
130 : 송신부
10: USB device 100: power control device
110: receiving unit 120: processing unit
130: transmitter

Claims (10)

호스트와 연결된 USB 장치에 대해, 상기 호스트에서 인코딩하여 전송한 상기 USB 장치의 전원을 켜거나 끄기 위한 전원 온/오프 신호를 수신하는 수신부; 및
상기 전원 온/오프 신호를 디코딩하고, 디코딩 결과를 근거로 상기 USB 장치에 대한 전원 제어 신호를 생성하여 상기 USB 장치의 전원부로 송신하는 처리부;
를 포함하고,
상기 수신부는
상기 호스트로부터 제1 링크 속도가 설정된 상태에서 상기 전원 온/오프 신호를 수신하고,
상기 처리부는
상기 전원 온/오프 신호를 디코딩하여 전원 온/오프 요청 신호 및 상태 확인 요청 신호 중 어느 하나임을 판단하고,
상기 전원 온/오프 신호가 상기 전원 온/오프 요청 신호인 경우,
상기 전원부에 대한 전원 인가 및 전원 차단 중 어느 하나를 수행하기 위한 전원 제어 신호를 포함하는 신호를 상기 전원부에 송신하여 상기 USB 장치의 전원 인가 명령 및 전원 차단 명령 중 어느 하나를 수행하고,
상기 전원 온/오프 신호가 상기 상태 확인 요청 신호인 경우, 상기 상태 확인 요청 신호를 포함하는 신호를 상기 전원부에 송신하여 상기 USB 장치의 전원 인가 여부에 대한 상태 확인 요청 명령을 수행하고,
상기 전원 인가 명령, 상기 전원 차단 명령 및 상기 상태 확인 요청 명령 중 어느 하나를 수행한 결과가 성공인 경우에만, ACK 패킷을 상기 호스트에 회신하고,
상기 호스트는
상기 ACK 패킷을 수신한 경우, 상기 USB 장치의 전원이 인가된 것으로 판단하고, 상기 전원 온/오프 신호에 설정한 링크 속도에 근거하여 상기 USB 장치의 종류를 판단하고,
상기 ACK 패킷을 수신하지 않은 경우, 상기 제1 링크 속도를 제2 링크 속도로 재설정하고 상기 전원 온/오프 신호를 재송신 하는 것을 특징으로 하는, 전원 제어 장치.
A receiver configured to receive a power on/off signal for turning on or off the power of the USB device encoded and transmitted by the host for the USB device connected to the host; And
A processing unit that decodes the power on/off signal, generates a power control signal for the USB device based on the decoding result, and transmits it to a power supply of the USB device;
Including,
The receiver
Receiving the power on/off signal from the host while the first link speed is set,
The processing unit
Decoding the power on/off signal to determine that it is one of a power on/off request signal and a status check request signal,
When the power on/off signal is the power on/off request signal,
Transmitting a signal including a power control signal for performing any one of power application and power cut off to the power unit to the power unit to perform any one of a power supply command and a power cut command of the USB device,
When the power on/off signal is the status check request signal, a signal including the status check request signal is transmitted to the power unit to perform a status check request command for whether the USB device is powered on,
Only when a result of performing any one of the power-on command, the power-off command, and the status check request command is success, an ACK packet is returned to the host,
The host is
When receiving the ACK packet, it is determined that power of the USB device is applied, and the type of the USB device is determined based on a link speed set in the power on/off signal,
When the ACK packet is not received, the first link speed is reset to a second link speed, and the power on/off signal is retransmitted.
삭제delete 삭제delete 청구항 1에 있어서,
상기 전원 온/오프 신호 및 상기 상태 확인 요청 신호는
상기 호스트와 상기 USB 장치간 데이터 송수신에 사용되는 SETUP 단계, DATA 단계 및 STATUS 단계 중, SETUP 단계의 SETUP 패킷에 전원 인가 명령, 전원 차단 명령 및 상태 확인 요청 명령 중 어느 하나가 포함되어 송신되는 것을 특징으로 하는, 전원 제어 장치.
The method according to claim 1,
The power on/off signal and the status check request signal are
Among the SETUP, DATA, and STATUS steps used to transmit and receive data between the host and the USB device, any one of a power-on command, a power-off command, and a status check request command is included and transmitted in a SETUP packet of the SETUP step. As a power control device.
삭제delete 전원 제어 장치의 전원 제어 방법에 있어서,
호스트와 연결된 USB 장치에 대해, 상기 호스트에서 인코딩하여 전송한 상기 USB 장치의 전원을 켜거나 끄기 위한 전원 온/오프 신호를 수신하는 단계; 및
상기 전원 온/오프 신호를 디코딩하고, 디코딩 결과를 근거로 상기 USB 장치에 대한 전원 제어 신호를 생성하여 상기 USB 장치의 전원부로 송신하는 단계;
를 포함하고,
상기 수신하는 단계는
상기 호스트로부터 제1 링크 속도가 설정된 상태에서 상기 전원 온/오프 신호를 수신하고,
상기 송신하는 단계는
상기 전원 온/오프 신호를 디코딩하여 전원 온/오프 요청 신호 및 상태 확인 요청 신호 중 어느 하나임을 판단하고,
상기 전원 온/오프 신호가 상기 전원 온/오프 요청 신호인 경우,
상기 전원부에 대한 전원 인가 및 전원 차단 중 어느 하나를 수행하기 위한 전원 제어 신호를 포함하는 신호를 상기 전원부에 송신하여 상기 USB 장치의 전원 인가 명령 및 전원 차단 명령 중 어느 하나를 수행하고,
상기 전원 온/오프 신호가 상기 상태 확인 요청 신호인 경우, 상기 상태 확인 요청 신호를 포함하는 신호를 상기 전원부에 송신하여 상기 USB 장치의 전원 인가 여부에 대한 상태 확인 요청 명령을 수행하고,
상기 전원 인가 명령, 상기 전원 차단 명령 및 상기 상태 확인 요청 명령 중 어느 하나를 수행한 결과가 성공인 경우에만, ACK 패킷을 상기 호스트에 회신하고,
상기 호스트가 상기 ACK 패킷을 수신한 경우, 상기 USB 장치의 전원이 인가된 것으로 판단하고, 상기 전원 온/오프 신호에 설정한 링크 속도에 근거하여 상기 USB 장치의 종류를 판단하고,
상기 호스트가 상기 ACK 패킷을 수신하지 않은 경우, 상기 호스트가 상기 제1 링크 속도를 제2 링크 속도로 재설정하고 상기 전원 온/오프 신호를 재송신 하는 것을 특징으로 하는, 전원 제어 방법.
In the power control method of the power control device,
Receiving a power on/off signal for turning on or off power of the USB device encoded and transmitted by the host for a USB device connected to a host; And
Decoding the power on/off signal, generating a power control signal for the USB device based on the decoding result, and transmitting the power control signal to the power supply of the USB device;
Including,
The receiving step
Receiving the power on/off signal from the host while the first link speed is set,
The transmitting step
Decoding the power on/off signal to determine that it is one of a power on/off request signal and a status check request signal,
When the power on/off signal is the power on/off request signal,
Transmitting a signal including a power control signal for performing any one of power application and power cut off to the power unit to the power unit to perform any one of a power supply command and a power cut command of the USB device,
When the power on/off signal is the status check request signal, a signal including the status check request signal is transmitted to the power unit to perform a status check request command for whether the USB device is powered on,
Only when a result of performing any one of the power-on command, the power-off command, and the status check request command is success, an ACK packet is returned to the host,
When the host receives the ACK packet, it is determined that the power of the USB device is applied, and the type of the USB device is determined based on a link speed set in the power on/off signal,
When the host does not receive the ACK packet, the host resets the first link speed to a second link speed and retransmits the power on/off signal.
삭제delete 삭제delete 청구항 6에 있어서,
상기 전원 온/오프 신호 및 상기 상태 확인 요청 신호는
상기 호스트와 상기 USB 장치간 데이터 송수신에 사용되는 SETUP 단계, DATA 단계 및 STATUS 단계 중, SETUP 단계의 SETUP 패킷에 전원 인가 명령, 전원 차단 명령 및 상태 확인 요청 명령 중 어느 하나가 포함되어 송신되는 것을 특징으로 하는, 전원 제어 방법.
The method of claim 6,
The power on/off signal and the status check request signal are
Among the SETUP, DATA, and STATUS steps used to transmit and receive data between the host and the USB device, any one of a power-on command, a power-off command, and a status check request command is included and transmitted in a SETUP packet of the SETUP step. To do, power control method.
삭제delete
KR1020130154666A 2013-12-12 2013-12-12 Power control apparatus for power on or off of usb device from host and method for operating the same KR102153384B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020130154666A KR102153384B1 (en) 2013-12-12 2013-12-12 Power control apparatus for power on or off of usb device from host and method for operating the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020130154666A KR102153384B1 (en) 2013-12-12 2013-12-12 Power control apparatus for power on or off of usb device from host and method for operating the same

Publications (2)

Publication Number Publication Date
KR20150068701A KR20150068701A (en) 2015-06-22
KR102153384B1 true KR102153384B1 (en) 2020-09-08

Family

ID=53516079

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020130154666A KR102153384B1 (en) 2013-12-12 2013-12-12 Power control apparatus for power on or off of usb device from host and method for operating the same

Country Status (1)

Country Link
KR (1) KR102153384B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018973A (en) * 2019-04-10 2019-07-16 广州朗国电子科技有限公司 The method of controlling operation thereof and operating control device of electric whiteboard system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005129008A (en) * 2003-09-29 2005-05-19 Sharp Corp Host-side controller, usb system, communication controller, method and system for packet-based communication, and recording medium
KR100633120B1 (en) * 2005-08-19 2006-10-11 엠텍비젼 주식회사 Method for enhancing data bandwidth of mass storage and system therefor
JP2013142908A (en) 2012-01-06 2013-07-22 Canon Inc Electronic apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100711914B1 (en) * 2001-09-15 2007-04-27 엘지전자 주식회사 An apparatus for power saving of USB hub
KR101956527B1 (en) * 2011-12-26 2019-06-24 삼성전자 주식회사 Usb host apparatus and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005129008A (en) * 2003-09-29 2005-05-19 Sharp Corp Host-side controller, usb system, communication controller, method and system for packet-based communication, and recording medium
KR100633120B1 (en) * 2005-08-19 2006-10-11 엠텍비젼 주식회사 Method for enhancing data bandwidth of mass storage and system therefor
JP2013142908A (en) 2012-01-06 2013-07-22 Canon Inc Electronic apparatus

Also Published As

Publication number Publication date
KR20150068701A (en) 2015-06-22

Similar Documents

Publication Publication Date Title
US7349973B2 (en) Data transfer control device, electronic equipment, and data transfer control method
US7085876B2 (en) USB controlling apparatus for data transfer between computers and method for the same
US7150397B2 (en) Dual mode controller for ISO7816 and USB enabled smart cards
US20120290761A1 (en) USB Converter and Related Method
US10482047B2 (en) Slave device connected to master device via I2C bus and communication method thereof
US20080178011A1 (en) Method and apparatus for usb/otg connection providing active hnp requests and saving host power
US20060075152A1 (en) USB attach detection for USB 1.1 and USB OTG devices
US8683097B2 (en) Device connect detection
JP2010086524A (en) Bridge device with function to save power
KR102420530B1 (en) Alternative protocol selection
US9418033B2 (en) Using USB signaling to trigger a device to enter a mode of operation
JP2005032244A (en) Method and device for automatic reset of usb smart card device in mute mode
JPH10301898A (en) Electronic equipment and interface circuit
US10585834B2 (en) I2C device extender for inter-board communication over a single-channel bidirectional link
US7549009B2 (en) High-speed PCI interface system and a reset method thereof
KR102153384B1 (en) Power control apparatus for power on or off of usb device from host and method for operating the same
CN116541329A (en) Data transmission method, device, equipment and medium
US9824046B2 (en) Using USB signaling to trigger a device to enter a mode of operation
JP2008129836A (en) Processing device
KR100980311B1 (en) Usb device system and method for controlling thereof
JP2003337639A (en) Electronic device and adapter device with iso-based connecting terminal
US10120828B2 (en) Bridge for bus-powered peripheral device power management
JP3906838B2 (en) USB compatible digital MFP
US20050273541A1 (en) Circuit and method for adaptively recognizing a data packet in a universal serial bus network device
JP2001067157A5 (en) Computers and their peripheral systems, computer peripherals, computers and their control methods, and computer-readable storage media

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant