KR100302599B1 - Data changing method for universal serial bus - Google Patents

Data changing method for universal serial bus Download PDF

Info

Publication number
KR100302599B1
KR100302599B1 KR1019980058199A KR19980058199A KR100302599B1 KR 100302599 B1 KR100302599 B1 KR 100302599B1 KR 1019980058199 A KR1019980058199 A KR 1019980058199A KR 19980058199 A KR19980058199 A KR 19980058199A KR 100302599 B1 KR100302599 B1 KR 100302599B1
Authority
KR
South Korea
Prior art keywords
host
command
peripheral device
data
ack
Prior art date
Application number
KR1019980058199A
Other languages
Korean (ko)
Other versions
KR20000042109A (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 KR1019980058199A priority Critical patent/KR100302599B1/en
Publication of KR20000042109A publication Critical patent/KR20000042109A/en
Application granted granted Critical
Publication of KR100302599B1 publication Critical patent/KR100302599B1/en

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • H04L5/0055Physical resource allocation for ACK/NACK

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

본 발명은 유에스비의 정보 교환 방법에 관한 것으로, 종래의 방법에 있어서는 호스트 피씨가 유에스비를 통해 주변기기에 명령을 보내고 그에 대한 데이터를 수신하는 동안 매 신호 또는 데이터 수신시마다 응답(ACK)신호를 전송하도록 되어있기 때문에, 실제 명령 및 데이터 전송을 위한 시간외에 응답신호 전송을 위한 시간(최대 3msec)이 더 소요되어 실제 교환하는 정보량에 비해서 버스의 유휴 시간이 상당히 길고, 불필요한 버스의 활동(activation)이 많아지는 문제점이 있었다. 따라서, 본 발명은 호스트 피씨와 주변기기 상호간에 신호 또는 데이터를 수신할 경우, 매번 그에 대한 응답신호(ACK)를 전송하지 않고, 주변기기에서 호스트 피씨로의 실제 데이터 전송이 완료된 후 그에 대한 상태 메시지를 수신할 경우에만 응답신호(ACK)를 전송하여 데이터 전송 작업이 완료되도록 함으로써, 유에스비의 유휴 시간과 불필요한 활동을 줄여주게 되어 주변기기들과의 정보 교환 속도를 향상시키는 효과가 있다.The present invention relates to a method of exchanging information of a USB, and in the conventional method, a host PC sends a command to a peripheral device through a USB and transmits an acknowledgment (ACK) signal every time or data is received. Therefore, it takes more time (up to 3msec) for response signal transmission in addition to the time for actual command and data transmission, so that the idle time of the bus is considerably longer and unnecessary bus activation increases compared to the amount of information actually exchanged. There was a problem. Therefore, in the present invention, when receiving a signal or data between the host PC and the peripheral device, instead of transmitting an acknowledgment signal (ACK) for it each time, after receiving the status message about the actual data transmission from the peripheral device to the host PC In this case, the data transmission task is completed by transmitting the response signal ACK only, thereby reducing the idle time and unnecessary activity of the USB, thereby improving the speed of information exchange with peripheral devices.

Description

유에스비의 정보 교환 방법{DATA CHANGING METHOD FOR UNIVERSAL SERIAL BUS}Information exchange method of USS {DATA CHANGING METHOD FOR UNIVERSAL SERIAL BUS}

본 발명은 유에스비의 정보 교환 방법에 관한 것으로, 특히 유에스비(USB : Universal Serial Bus)에 연결되어 있는 주변기기들과 호스트 피씨와의 정보 교환시 버스의 유휴 시간(idle time)을 감소시키고, 불필요한 버스의 활동(activation)을 줄여 유에스비를 통한 주변기기들과의 정보교환 속도를 향상시키고 전력 소비를 감소시킬 수 있는 유에스비의 정보 교환 방법에 관한 것이다.The present invention relates to a method of exchanging information of the USB, in particular, to reduce the idle time of the bus when exchanging information with the host PC and peripheral devices connected to the USB (Universal Serial Bus) (USB), The present invention relates to a method of exchanging information with UBS which can reduce the power consumption by reducing activation and speeding up information exchange with peripheral devices.

도1은 유에스비에 의한 호스트 피씨와 주변기기들의 네트워크 예를 보인 구성도로서, 이에 도시된 바와 같이 유에스비 네트워크에서는 유에스비(100)에 직접 연결되거나 확장 허브(102)를 통해 최대 127개 까지의 주변기기의 연결이 가능하게 된다.FIG. 1 is a block diagram showing a network of host PCs and peripherals by USB. As shown in FIG. 1, in the USB network, a connection of up to 127 peripheral devices is directly connected to the USB 100 or through an expansion hub 102. This becomes possible.

도2는 종래의 유에스비를 통한 호스트 피씨와 주변기기들간의 정보 교환 과정을 보인 상태도로서, 유에스비를 통해 호스트 피씨가 확장 허브를 포함한 주변기기들과 정보 교환을 할 때는 일반적으로 다음과 같은 세가지 과정에 의해 정보를 교환하게 된다.2 is a state diagram illustrating a process of exchanging information between a host PC and peripheral devices through a conventional USB. When the host PC exchanges information with peripheral devices including an expansion hub through a USB, information is generally performed by the following three processes. Will be exchanged.

즉, 호스트 피씨가 주변기기로 데이터를 요청하는 명령 셋업 과정(①)과; 상기 명령을 수신한 주변기기가 그에 대한 데이터를 호스트 피씨로 전송하는 데이터 전송 과정(②)과; 상기 수신된 데이터가 호스트 피씨가 요구한 명령에 부합되는가를 판단하여 그에 대한 상태 메시지를 전달하는 상태 메시지 전송과정(③)으로 나뉘어져 있다.That is, the command setup process (①) for the host PC to request data to the peripheral device; A data transmission process (②) in which the peripheral device receiving the command transmits data on the host PC; It is divided into a status message transmission process (③) for determining whether the received data meets a command requested by the host PC and delivering a status message therefor.

이를 좀 더 구체적으로 설명하면 다음과 같다.If this is explained in more detail as follows.

먼저, 명령 셋업 과정(①)은 호스트 피씨가 유에스비를 통해서 주변기기에게 명령(COMMAND)을 보낸다.First, in the command setup process (①), the host PC sends a command to the peripheral device through the USB.

이에 따라, 상기 명령(COMMAND)을 수신한 주변기기도 마찬가지로 유에스비를 통해 소정시간(최대 3msec) 내에 호스트 피씨에게 명령(command)을 에러없이 잘 받았다는 응답(ACK)신호를 보낸다(①').Accordingly, the peripheral device that receives the command (COMMAND) likewise sends a response (ACK) signal that received a command (Error) well to the host PC within a predetermined time (up to 3msec) via the USB (① ').

다음, 상기와 같이 응답(ACK) 신호를 전송한 주변기기는 다시 소정시간(최대 3msec) 내에 상기 명령(COMMAND)에 대응하는 데이터를 유에스비를 통해 호스트 피씨에 보내고(②), 이를 수신한 호스트 피씨는 소정시간(최대 3msec) 내에 상기 데이터를 에러없이 잘 받았다는 응답(ACK)신호를 보낸다(②').Then, the peripheral device that transmits the ACK signal as described above sends the data corresponding to the command COMMAND to the host PC again through the USB within the predetermined time (maximum 3msec) (②), and the host PC receiving the Within a predetermined time (maximum 3msec), an acknowledgment (ACK) signal indicating that the data was received well without error is transmitted (② ').

다음, 호스트 피씨는 상기와 같이 주변기기로 명령을 셋업하여 그에 대한 응답신호(ACK) 및 데이터를 전송받으면, 그 과정이 제대로 수행되었는지 확인한 후 수신 데이터가 요청 명령에 해당하는 내용이면 그에 따른 상태 메시지(STATUS)를 주변기기로 보내게 된다(③).Next, when the host PC sets up the command to the peripheral device as described above and receives the response signal (ACK) and data thereof, the host PC checks whether the process is performed properly, and if the received data corresponds to the request command, the status message ( STATUS) is sent to the peripheral device (③).

이에 따라, 주변기기는 호스트 피씨로 부터 받은 최종 상태 메시지(STATUS)에 에러가 없다는 응답(ACK)신호를 다시 호스트 피씨로 되돌려 주면 모든 정보의 교환이 끝나게 된다.Accordingly, the peripheral device returns an acknowledgment signal (ACK) indicating that there is no error in the final status message received from the host PC, and the exchange of all information is completed.

참고적으로, 호스트 피씨 또는 주변기기에서 유에스비를 통해 신호 또는 데이터를 전송할 때, 한 신호를 전송한 후 다음 신호를 전송하기 까지는 최대 3msec의 시간이 소요되는데, 이 시간은 최대 속도로 전송할 경우 9Kbyte의 정보량에 해당되며저속 전송일 경우는 560byte의 정보량에 해당 되는 것으로 하나의 기본정보를 교환할 때 필요한 시간은 총 15msec가 걸리게 되는 것이다.For reference, when transmitting a signal or data through the USB to the host PC or peripheral device, it takes up to 3msec time after transmitting one signal and transmitting the next signal, which is 9Kbyte information amount when transmitting at the maximum speed. In case of low-speed transmission, it corresponds to the amount of information of 560byte. The time required for exchanging one basic information takes 15msec in total.

이와 같이, 상기 종래의 방법에 있어서는 호스트 피씨가 유에스비를 통해 주변기기에 명령을 보내고 그에 대한 데이터를 수신하는 동안 매 신호 또는 데이터 수신시마다 응답(ACK)신호를 전송하도록 되어있기 때문에, 실제 명령 및 데이터 전송을 위한 시간외에 응답신호 전송을 위한 시간(최대 3msec)이 더 소요되어 실제 교환하는 정보량에 비해서 버스의 유휴 시간이 상당히 길고, 불필요한 버스의 활동(activation)이 많아지는 문제점이 있었다.As such, in the conventional method, since the host PC sends a command to the peripheral device through the USB and receives the data therefor, the host PC transmits an acknowledgment signal every time or data is received. In addition to the time required for the transmission of the response signal (up to 3msec) is more than the actual amount of information, the bus idle time is significantly longer than the amount of information exchanged, there was a problem that the unnecessary bus activity (activation) increases.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창출한 것으로, 호스트 피씨와 주변기기 상호간에 신호 또는 데이터를 수신할 경우, 매번 그에 대한 응답신호(ACK)를 전송하지 않고, 주변기기에서 호스트 피씨로의 실제 데이터 전송이 완료된 후 그에 대한 상태 메시지를 수신할 경우에만 응답신호(ACK)를 전송하여 데이터 전송 작업이 완료되도록 함으로써, 유에스비의 유휴 시간과 불필요한 활동을 줄여주게 되어 주변기기들과의 정보 교환 속도를 향상시키는 유에스비의 정보 교환 방법을 제공 하는데 그 목적이 있다.Accordingly, the present invention has been made to solve the above-mentioned conventional problems. When receiving a signal or data between the host PC and the peripheral device, the host PC does not transmit an acknowledgment signal (ACK) for it each time. After the actual data transmission is completed, a response signal (ACK) is transmitted only when receiving a status message, thereby completing the data transmission operation, thereby reducing the idle time and unnecessary activity of the USB so that information is exchanged with peripheral devices. The purpose is to provide a method of exchanging information of the USB to improve the speed.

도1은 유에스비에 의한 호스트 피씨와 주변기기들의 네트워크 예를 보인 구성도.1 is a configuration diagram showing a network example of the host PC and peripherals by the USB.

도2는 종래의 유에스비를 통한 호스트 피씨와 주변기기들간의 정보 교환 과정을 보인 상태도.Figure 2 is a state diagram showing a process of exchanging information between the host PC and the peripherals through the conventional USB.

도3은 본 발명에 의해 호스트 피씨와 주변기기들간의 정보 교환 과정을 보인 상태도.Figure 3 is a state diagram showing the information exchange process between the host PC and the peripherals according to the present invention.

이와 같은 목적을 달성하기 위한 본 발명은, 호스트 피씨가 유에스비를 통해 주변기기로 명령을 셋업하는 명령 셋업 과정과; 상기 셋업 명령을 수신한 주변기기는 그 명령을 해석하여 응답신호(ACK)의 전송없이 그 명령에 상당하는 데이터를 바로호스트 피씨로 전송하는 데이터 전송 과정과; 상기 데이터를 전송 받은 호스트 피씨는 응답신호(ACK)의 전송없이 그 데이터가 명령에 부합되는 내용인지 판단하여, 그에 따른 상태 메시지(STATUS)를 바로 주변기기로 전송하는 상태메시지 전송 과정과; 상기 상태 메시지를 수신한 주변기기는 에러가 없음을 의미하는 메시지일 경우 응답(ACK)신호를 호스트 피씨에 전송하여 데이터 전송 과정을 완료하는 응답신호 전송 과정으로 이루어짐으로써 달성되는 것으로, 본 발명에 따른 실시예를 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다.In order to achieve the above object, the present invention includes a command setup process for setting up a command to a peripheral device through a USB PC; The peripheral device receiving the setup command interprets the command and transmits data corresponding to the command directly to the host PC without transmitting a response signal (ACK); The host PC receiving the data determines whether the data corresponds to a command without transmitting an acknowledgment (ACK), and transmits a status message corresponding to the command directly to the peripheral device; When the peripheral device receiving the status message is a message indicating that there is no error, the peripheral device is achieved by transmitting a response (ACK) signal to the host PC to complete the data transmission process. An example will be described in detail with reference to the accompanying drawings.

도3은 본 발명에 의해 호스트 피씨와 주변기기들간의 정보 교환 과정을 보인 상태도로서, 이에 도시한 바와 같이 일단, 호스트 피씨가 유에스비를 통해 주변기기로 명령(COMMAND)을 전송한다(⑪).FIG. 3 is a state diagram illustrating a process of exchanging information between a host PC and peripheral devices according to the present invention. As shown in FIG. 3, the host PC transmits a command COMMAND to a peripheral device through the USB.

이에 따라, 상기 명령을 전송받은 주변기기는 소정시간(최대 3msec)내에 호스트 피씨로 부터 받은 명령(COMMAND)을 해석하여 그 명령에 상당하는 데이터를 호스트 피씨로 되돌려 주게 된다(⑫).Accordingly, the peripheral device receiving the command interprets the command COMMAND received from the host PC within a predetermined time (up to 3 msec) and returns data corresponding to the command to the host PC (⑫).

즉, 종래의 경우에는 호스트 피씨로부터 명령을 수신한 주변기기는 그에 대한 응답신호(ACK)를 전송한 다음에 데이터를 전송하였다.That is, in the conventional case, the peripheral device receiving a command from the host PC transmits data after transmitting a response signal (ACK) thereto.

다시 말해, 호스트 피씨와 주변기기 간에 오가는 모든 신호에 대해서 정상적으로 수신되었는지 비정상으로 수신되었는지를 통보하는 응답신호(ACK 또는 NACK)를 전송한 후, 비정상으로 수신되었을 경우는 그 신호를 다시 전송하도록 요구하고, 정상적으로 수신되었을 경우(ACK 신호를 전송할 경우)는 즉시 그 명령에 대한 데이터를 전송하였다.In other words, after transmitting a response signal (ACK or NACK) for all signals coming and going between the host PC and the peripheral device whether or not normally received, if the abnormal reception is requested to transmit the signal again, When normally received (if transmitting an ACK signal) immediately transmitted data for the command.

물론, 호스트 피씨도 데이터가 비정상 수신되었을 경우 NACK 신호를 출력하여 다시 데이터 전송을 요구하고, 정상 수신되었을 경우 ACK 신호를 출력한 후 바로 그에 대한 상태 신호를 출력하였다.Of course, the host PC also outputs a NACK signal when the data is abnormally received and requests data transmission again, and outputs a status signal immediately after outputting the ACK signal when the data is normally received.

그러나, 본 발명에서는 상기와 같이 모든 송수신 신호에 대한 정상,비정상을 알리는 신호(ACK, NACK)전송 과정을 거치지 않고, 명령이 해석되면 그에 대한 데이터를 바로 전송하고, 그 데이터를 요구한 호스트 피씨도 역시 수신한 데이터와 명령에 부합하는 내용인지를 판단하여 그 결과에 대한 상태 메시지만을 출력하도록 하는 것이다.However, the present invention does not go through the normal and abnormal signal (ACK, NACK) transmission process for all transmission and reception signals as described above, if the command is interpreted immediately transmits the data for it, and the host PC requesting the data also In addition, it determines whether the contents correspond to the received data and command and outputs only a status message about the result.

즉, 소프트웨어적으로 호스트 피씨와 주변기기간에 매 신호 전송시마다 그에 대한 응답신호(ACK 또는 NACK)를 전송하던 과정을 생략하는 것이다.That is, the process of transmitting a response signal (ACK or NACK) for each signal transmission between the host PC and the peripheral period is omitted.

이에 따라, 상기 데이터를 전송 받은 호스트 피씨는 그 데이터가 명령에 부합되는 내용인지를 판단하여 소정시간(최대 3msec)내에 그에 대한 상태 메시지(STATUS)를 다시 주변기기로 보내고, 그 상태 메시지를 받은 주변기기는 에러가 없을 경우 응답(ACK)신호를 호스트 피씨에 보내어(⑬) 정보 교환을 완료하게 된다.Accordingly, the host PC receiving the data determines whether the data corresponds to the command, and sends a status message (STATUS) thereof to the peripheral device within a predetermined time (maximum 3 msec), and the peripheral device receiving the status message is received. If there is no error, an acknowledgment (ACK) is sent to the host PC to complete the information exchange.

물론, 상기 상태 메시지가 에러가 있을 경우에는 데이터를 다시 전송하고, 그에 대한 상태 메시지를 다시 수신하여 에러가 없으면 응답신호(ACK)를 보내고 작업을 완료하는 것이다.Of course, if there is an error in the status message, the data is retransmitted, and the status message is received again, and if there is no error, a response signal ACK is transmitted and the operation is completed.

이상에서 설명한 바와 같이 본 발명 유에스비의 정보 교환 방법은 호스트 피씨와 주변기기 상호간에 신호 또는 데이터를 수신할 경우, 매번 그에 대한응답신호(ACK)를 전송하지 않고, 주변기기에서 호스트 피씨로의 실제 데이터 전송이 완료된 후 그에 대한 상태 메시지를 수신할 경우에만 응답신호(ACK)를 전송하여 데이터 전송 작업이 완료되도록 함으로써, 유에스비의 유휴 시간과 불필요한 활동을 줄여주게 되어 주변기기들과의 정보 교환 속도를 향상시키는 효과가 있다.As described above, in the information exchange method of the present invention, when the signal or data is received between the host PC and the peripheral device, the actual data transmission from the peripheral device to the host PC is not transmitted. After the completion of the data transmission task is completed by sending an acknowledgment (ACK) only when receiving a status message about it, reducing the idle time and unnecessary activities of the USB to improve the speed of information exchange with peripheral devices have.

Claims (1)

호스트 피씨가 유에스비를 통해 주변기기로 명령을 셋업하는 명령 셋업 과정과; 상기 셋업 명령을 수신한 주변기기는 그 명령을 해석하여 응답신호(ACK)의 전송없이 그 명령에 상당하는 데이터를 바로 호스트 피씨로 전송하는 데이터 전송 과정과; 상기 데이터를 전송 받은 호스트 피씨는 응답신호(ACK)의 전송없이 그 데이터가 명령에 부합되는 내용인지 판단하여, 그에 따른 상태 메시지(STATUS)를 바로 주변기기로 전송하는 상태메시지 전송 과정과; 상기 상태 메시지를 수신한 주변기기는 에러가 없음을 의미하는 메시지일 경우 응답(ACK)신호를 호스트 피씨에 전송하여 데이터 전송 과정을 완료하는 응답신호 전송 과정으로 이루어진 것을 특징으로 하는 유에스비의 정보 교환 방법.A command setup process in which the host PC sets up a command to the peripheral device through the USB; The peripheral device receiving the setup command interprets the command and transmits data corresponding to the command directly to the host PC without transmitting a response signal (ACK); The host PC receiving the data determines whether the data corresponds to a command without transmitting an acknowledgment (ACK), and transmits a status message corresponding to the command directly to the peripheral device; The peripheral device receiving the status message comprises a response signal transmission process of completing a data transmission process by transmitting a response (ACK) signal to the host PC when the message means that there is no error.
KR1019980058199A 1998-12-24 1998-12-24 Data changing method for universal serial bus KR100302599B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980058199A KR100302599B1 (en) 1998-12-24 1998-12-24 Data changing method for universal serial bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980058199A KR100302599B1 (en) 1998-12-24 1998-12-24 Data changing method for universal serial bus

Publications (2)

Publication Number Publication Date
KR20000042109A KR20000042109A (en) 2000-07-15
KR100302599B1 true KR100302599B1 (en) 2001-09-22

Family

ID=19565354

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980058199A KR100302599B1 (en) 1998-12-24 1998-12-24 Data changing method for universal serial bus

Country Status (1)

Country Link
KR (1) KR100302599B1 (en)

Also Published As

Publication number Publication date
KR20000042109A (en) 2000-07-15

Similar Documents

Publication Publication Date Title
US5063494A (en) Programmable data communications controller
US20070245059A1 (en) Bus Connection Device
JPS6376540A (en) Communication terminal equipment
KR100302599B1 (en) Data changing method for universal serial bus
KR20040043198A (en) Bus system and bus interface
JPS6126706B2 (en)
KR100525677B1 (en) Apparatus and method for duplication of communication control module
JP3345102B2 (en) Method of resetting a combined module and system using this method
KR950010483B1 (en) The method transmitting a message for an electronic exchanger
JPH01147939A (en) Robot control system
JPH01297591A (en) Setting and processing system for system timepiece
JPS62286152A (en) Controller for input and output device
JP2804614B2 (en) Data transmission method
JPS5887621A (en) Information transmission and reception system
JP2004246750A (en) Usb communication method
JP2639248B2 (en) Communication interface device
JPS6329862A (en) Data communication system
CN113949490A (en) Communication method between relay protection device boards
CA1066440A (en) Time division multiplexed loop communication system with dynamic allocation of channels
JPS60124146A (en) Data transmission system
JPS6249742A (en) Data transmitting/receiving system
JPH0614089A (en) Communication method for transmission i/o terminal
JPH04329378A (en) Automatic test system for power source control device
JPS61231648A (en) Serial interface system
JPH0648473B2 (en) Message transmission / reception processing method

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: 20050620

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee