KR100261028B1 - Structure of protocol between tcu and terminal - Google Patents

Structure of protocol between tcu and terminal Download PDF

Info

Publication number
KR100261028B1
KR100261028B1 KR1019980019378A KR19980019378A KR100261028B1 KR 100261028 B1 KR100261028 B1 KR 100261028B1 KR 1019980019378 A KR1019980019378 A KR 1019980019378A KR 19980019378 A KR19980019378 A KR 19980019378A KR 100261028 B1 KR100261028 B1 KR 100261028B1
Authority
KR
South Korea
Prior art keywords
field
data
message
byte
terminal
Prior art date
Application number
KR1019980019378A
Other languages
Korean (ko)
Other versions
KR19990086411A (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 KR1019980019378A priority Critical patent/KR100261028B1/en
Publication of KR19990086411A publication Critical patent/KR19990086411A/en
Application granted granted Critical
Publication of KR100261028B1 publication Critical patent/KR100261028B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE: A structure of a protocol between a TCU(Terminal Control Unit) and a terminal and its method are provided so that complete data transmission can be achieved by performing data transmission between the TCU and the terminal in an asynchronous transmission mode using RS-232C connection, and by cross-checking a data message and an ACK message. CONSTITUTION: A data is transmitted/received between a TCU and a terminal according to an asynchronous transmission mode using RS-232C connection. Here, the TCU controls the terminal between the terminal and a host computer. A data message for transmitting the data and an ACK message for transmitting the data message without an error are cross-checked. The data message includes control bytes and data bytes. The data bytes compose a data field and the control bytes compose a header. The ACK message includes a message type field, a sequence field, an oxFF field, a brake field and an error code field. In order to distinguish consecutively-transmitted or received message units, a brake signal is added. Due to the complete data transmission, the user can perform a telephone access to the host computer through a telephone line by using a modem. In addition, the user can use his/her terminal regardless of distance. When the user moves to a different place, if the user needs to use the host computer, he/she can access to the host computer through a modem of a general computer. As a result, the user can conveniently use the protocol structure in any place.

Description

티씨유와 단말기 사이의 프로토콜 구조 및 그 처리방법Protocol structure between TC and terminal and its processing method

본 발명은 티씨유와 단말기 사이의 프로토콜 구조 및 그 처리방법에 관한 것으로서, 더 상세하게는 단말기와 호스트 컴퓨터 사이에서 단말기를 제어하는 제어기 역할을 하는 티씨유(Terminal Control Unit)와 단말기 사이에 데이터 송수신을 RS-232C 연결에 의한 비동기방식으로 행하되 데이터를 전송하는 데이터 메시지와 에러가 없이 데이터 메시지의 전송을 가능케 하는 ACK 메시지를 상호 크로스 체크함으로써 완벽한 데이터 전송이 가능하여 모뎀(MODEM)을 이용해서 전화선을 통해 접속할 수 있고 거리 제한없이 단말기를 사용할 수 있는 티씨유(TCU)와 단말기 사이의 프로토콜 구조 및 그 처리방법에 관한 것이다.The present invention relates to a protocol structure between a UE and a terminal and a processing method thereof, and more particularly, data transmission and reception between a terminal control unit and a terminal serving as a controller for controlling the terminal between the terminal and the host computer. Is performed asynchronously by RS-232C connection, but cross-checks data message to transmit data and ACK message to enable data message transmission without error. The present invention relates to a protocol structure between a TCU and a terminal which can be accessed through a terminal and can use a terminal without a distance limitation, and a processing method thereof.

IBM, FACOM 등의 대형 컴퓨터에 자료를 저장해 놓고 원격지에서 단말기를 이용하여 대형 컴퓨터의 자료를 조회하고 입력하는 업무를 하는 경우에 단말기를 설치할 장소가 널리 분포되어 있어서 대형 컴퓨터에서는 첨부된 도면 도 1처럼 단말기(14)를 많이 연결하여 사용할 수 있도록 하기 위하여 단말기(14)와 호스트 컴퓨터(10) 사이에 여러 대의 단말기(14)를 제어하는 역할을 하는 TCU((12), Terminal Control Unit)라는 제어기를 사용한다.When the data is stored in a large computer such as IBM and FACOM, and the data is retrieved and input from a large computer using a terminal from a remote location, the place where the terminal is to be installed is widely distributed. In order to connect and use a large number of terminals 14, a controller called a TCU (12, Terminal Control Unit) is used to control a plurality of terminals 14 between the terminal 14 and the host computer 10. use.

종래에는 TCU(12)와 단말기(14) 사이에 동축선(Coaxial Cable)을 이용하여 연결하였다.Conventionally, the TCU 12 and the terminal 14 are connected by using a coaxial cable.

이 경우 자료 전송은 정확하나 거리의 제한이 있게 마련이다.In this case, data transmission is accurate, but there is a limit of distance.

특히 모뎀(MODEM)의 접속이 불가능하므로 원격지에서 호스트 컴퓨터(10)를 사용하려면 TCU(12)를 원격지에 설치해야만 하나 일반적으로 TCU(12) 장비가 고가이어서 단말기(14) 수에 관계없이 원격지마다 설치하는 것이 불가능하였다.In particular, since the modem cannot be connected, the TCU 12 must be installed remotely in order to use the host computer 10 remotely. However, since the TCU 12 equipment is expensive, every remote site regardless of the number of terminals 14 It was impossible to install.

이러한 점에 착안하여 원격지에서 호스트 컴퓨터(10)를 사용할 때 단말기(14)만을 원격지에 두고 사용할 수 있도록 하기 위하여 TCU(12)와 단말기(14) 사이의 연결을 일반적으로 통신에 많이 사용되고 MODEM 사용이 가능한 비동기방식(Asynchronous)의 RS-232C를 사용하게 되었다.With this in mind, when using the host computer 10 at a remote location, the connection between the TCU 12 and the terminal 14 is generally used for communication, and MODEM usage is generally used so that only the terminal 14 can be used at a remote location. Asynchronous RS-232C is now available.

그런데 동축선을 사용할 경우는 자료 전송시에 유실이 없어 높은 신뢰성을 제공해 주지만, RS-232C 비동기 통신 방식은 신뢰성이 떨어지고 특히 MODEM을 이용해서 전화선을 통하여 접속하였을 경우에는 자료 전송시에 신뢰성이 더욱 떨어지는 문제점이 있었다.In case of using coaxial cable, there is no loss in data transmission, which provides high reliability.However, RS-232C asynchronous communication method is less reliable, especially when connected via telephone line using MODEM. There was a problem.

상술한 문제점을 해결하기 위하여 TCU와 단말기 사이의 통신 규약을 안출하게 된 것으로, 본 발명은 티씨유((TCU),Terminal Control Unit)와 단말기 사이에 데이터 송수신을 RS-232C 연결에 의한 비동기 방식으로 행하되 데이터를 전송하는 데이터 메시지와 에러가 없이 데이터 메시지의 전송을 가능케 하는 ACK 메시지를 상호 크로스 체크함으로써 완벽한 데이터 전송이 가능하여 모뎀(MODEM)을 이용해서 전화선을 통해 접속할 수 있고 거리 제한없이 단말기를 사용할 수 있는 티씨유(TCU)와 단말기 사이의 프로토콜 구조 및 그 처리방법을 제공하는 데 그 목적이 있다.In order to solve the above problems, a communication protocol between the TCU and the terminal is devised. The present invention provides an asynchronous method for transmitting and receiving data between a terminal control unit (TCU) and the terminal through an RS-232C connection. Cross-check the data message to transmit the data and the ACK message to transmit the data message without error. The perfect data transmission is possible. You can use the modem to connect through the telephone line. The purpose of the present invention is to provide a protocol structure between the TCU and a terminal and a processing method thereof.

상술한 목적을 달성하기 위하여, 본 발명은 TCU와 다수개의 단말기 사이가 비동기 방식의 RS-232C로 연결되어, 데이터 전송을 하는 데이터 메시지와 에러가 없이 데이터 전송을 가능케 하는 ACK 메시지로 구성되되;In order to achieve the above object, the present invention is composed of an asynchronous RS-232C connection between the TCU and a plurality of terminals, a data message for data transmission and an ACK message for enabling data transmission without errors;

데이터 메시지는;The data message;

입력받을 데이터의 처리방법을 결정하는 1바이트의 메시지 타입 필드와, TCU에 연결된 단말기의 포트넘버를 나타내는 1바이트의 디바이스 필드와, 송수신되는 프레임 순서를 나타내는 1바이트의 시퀀스 필드와, 메시지 타입 필드에서 데이터 필드까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되는 1바이트의 체크 썸 필드와, 호스트 컴퓨터와 단말기의 연결 상태 및 송수신 상태를 표시하는 1바이트의 플래그 및 세션 필드와, 메시지 타입 필드부터 데이터 필드까지의 바이트 수를 나타내는 1바이트의 렌스 필드와, 리퀘스트/리스폰스 유니트의 헤더 넘버가 0인 1바이트의 RH0 필드와, 리퀘스트/리스폰스 유니트의 헤더 넘버가 1인 1바이트의 RH1 필드와, n바이트의 데이터 필드와, 송수신되는 메시지 단위를 구분하기 위하여 단말기에서 TCU로 데이터를 보낼 경우 사용되는 브레이크 필드나 TCU에서 단말기로 데이터를 보낼 경우 사용되는 1바이트의 oxFF 필드의 순서로 구성되고;In the 1-byte message type field that determines how to process input data, a 1-byte device field that indicates the port number of the terminal connected to the TCU, a 1-byte sequence field that indicates the frame order to be transmitted and received, and a message type field. A one-byte check thumb field used to determine whether there is an abnormality in the transmission / reception data by XORing the code to the data field, and a one-byte flag and session field indicating the connection status and transmission / reception status of the host computer and the terminal. A 1-byte lance field indicating the number of bytes from the message type field to the data field, a 1-byte RH0 field with a header number of 0 for the request / response unit, and 1 byte for a header number of 1 for the request / response unit. Terminal to distinguish the RH1 field, the n-byte data field, and the message unit to be transmitted and received A break field used when sending data from the TCU to a TCU or an oxFF field of 1 byte used when sending data from the TCU to the terminal;

ACK 메시지는,The ACK message is

입력받을 데이터의 처리방법을 결정하는 1바이트의 메시지 타입 필드와, 송수신되는 데이터에 대한 에러 유무를 나타내는 1바이트의 에러 코드 필드와, 송수신되는 프레임 순서를 나타내는 1바이트의 시퀀스 필드와, 메시지 타입 필드에서 체크 썸까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되는 1바이트의 체크 썸 필드와, 송수신되는 메시지 단위를 구분하기 위하여 단말기에서 TCU로 데이터를 보낼 경우 사용되는 브레이크 필드나 TCU에서 단말기로 데이터를 보낼 경우 사용되는 1바이트의 oxFF 필드의 순서로 구성됨을 특징으로 하는 티씨유(TCU)와 단말기 사이의 프로토콜 구조를 제공하고자 한다.1 byte message type field for determining input data processing method, 1 byte error code field indicating whether there is an error for data to be transmitted and received, 1 byte sequence field indicating frame order to be transmitted and received, and message type field A break used to send data from the terminal to the TCU in order to distinguish between a check byte field of 1 byte used to determine whether there is an abnormality in the transmission / reception data by XORing a code from the checksum to the check thumb. It is intended to provide a protocol structure between a TCU and a terminal, which is configured in the order of a 1-byte oxFF field used when sending data from a field or a TCU to a terminal.

상술한 목적을 달성하기 위하여, 본 발명은 TCU와 단말기 사이에 데이터 송수신을 RS-232C 연결에 의한 비동기 방식으로 행하되, 데이터를 전송하는 데이터 메시지와 에러가 없이 데이터 메시지의 전송을 가능케 하는 ACK 메시지를 상호 크로스 체크하고 연속 송수신되는 메시지 단위를 구분하기 위하여 메시지 끝에 브레이크 신호를 첨가하여 보냄을 특징으로 하는 티씨유(TCU)와 단말기 사이의 프로토콜 처리방법을 제공하고자 한다.In order to achieve the above object, the present invention performs a data transmission and reception between the TCU and the terminal in an asynchronous manner by the RS-232C connection, the data message for transmitting the data and the ACK message that enables the transmission of the data message without errors The present invention provides a protocol processing method between a TCU and a terminal, which includes sending a break signal at the end of a message in order to cross check each other and distinguish message units continuously transmitted and received.

도 1은 본 발명이 적용되는 망 구성도,1 is a network configuration to which the present invention is applied,

도 2a, 도 2b는 본 발명에 따른 프로토콜의 메시지별 구조도,2A and 2B are structural diagrams of messages of a protocol according to the present invention;

도 3은 도 2a 및 도 2b의 프로토콜 흐름도,3 is a protocol flow diagram of FIGS. 2A and 2B;

도 4a, 도 4b는 본 발명의 다른 실시예에 따른 프로토콜의 메시지별 구조도,4A and 4B are structural diagrams of messages of a protocol according to another embodiment of the present invention;

도 5는 도 4a 및 도 4b의 프로토콜 흐름도.5 is a protocol flow diagram of FIGS. 4A and 4B.

<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>

10: 호스트 컴퓨터, 12: TCU, 14: 단말기, 20: 데이터 메시지, 21,41: 메시지 타입, 22: 디바이스, 23,43: 시퀀스, 24,44: 체크 썸, 25: 플래그 및 세션, 26: 렌스, 27: RH0, 28: RH1, 29: 데이터, 30,45: 브레이크, 31: 렌스 하이, 32: 렌스 로, 34,46: oxFF, 35,47: 헤더, 40: ACK 메시지, 42: 에러 코드.10: host computer, 12: TCU, 14: terminal, 20: data message, 21, 41: message type, 22: device, 23, 43: sequence, 24, 44: check thumb, 25: flag and session, 26: Lance, 27: RH0, 28: RH1, 29: Data, 30, 45: Brake, 31: Lance High, 32: Lance Low, 34,46: oxFF, 35, 47: Header, 40: ACK Message, 42: Error code.

이하 본 발명을 첨부된 도면 도 2 내지 도 5를 참고로 하여 설명하면 다음과 같다.Hereinafter, the present invention will be described with reference to the accompanying drawings, FIGS. 2 to 5.

도 2a, 도 2b는 본 발명에 따른 프로토콜의 메시지별 구조도, 도 3은 도 2a 및 도 2b의 프로토콜 흐름도, 도 4a, 도 4b는 본 발명의 다른 실시예에 따른 프로토콜의 메시지별 구조도, 도 5는 도 4a 및 도 4b의 프로토콜 흐름도이다.2A and 2B are message-specific structure diagrams of a protocol according to the present invention, FIG. 3 is a protocol flow chart of FIGS. 2A and 2B, and FIGS. 4A and 4B are message-specific structure diagrams of a protocol according to another embodiment of the present invention. 5 is a protocol flow diagram of FIGS. 4A and 4B.

먼저 본 발명의 기본적인 구성인 프로토콜의 구조를 살펴보면, TCU(12)와 다수개의 단말기(14) 사이가 비동기 방식의 RS-232C로 연결되어, 데이터 전송을 하는 데이터 메시지(20)와 에러가 없이 데이터 전송을 가능케 하는 ACK 메시지(40)로 구성되되;First, referring to the structure of the protocol, which is a basic configuration of the present invention, the TCU 12 and the plurality of terminals 14 are connected by an asynchronous RS-232C, and the data message 20 for data transmission and data without errors. An ACK message 40 to enable transmission;

(Ⅰ) 데이터 메시지(20)는;(I) the data message 20;

(ⅰ) 입력받을 데이터의 처리방법을 결정하는 1바이트의 메시지 타입 필드(21)와, (ⅱ) TCU(12)에 연결된 단말기(14)의 포트넘버를 나타내는 1바이트의 디바이스 필드(22)와, (ⅲ) 송수신되는 프레임 순서를 나타내는 1바이트의 시퀀스 필드(23)와, (ⅳ) 메시지 타입 필드(21)에서 데이터 필드(29)까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되는 1바이트의 체크 썸 필드(24)와, (ⅴ) 호스트 컴퓨터(10)와 단말기(12)의 연결 상태 및 송수신 상태를 표시하는 1바이트의 플래그 및 세션 필드(25)와, (ⅵ) 메시지 타입 필드(21)부터 데이터 필드(29)까지의 바이트 수를 나타내는 1바이트의 렌스 필드(26)와, (ⅶ) 리퀘스트/리스폰스 유니트의 헤더 넘버가 0인 1바이트의 RH0 필드(27)와, (ⅷ) 리퀘스트/리스폰스 유니트의 헤더 넘버가 1인 1바이트의 RH1 필드(28)와, (ⅸ) n바이트의 데이터 필드(29)와, (ⅹ) 송수신되는 메시지 단위를 구분하기 위하여 단말기(14)에서 TCU(12)로 데이터를 보낼 경우 사용되는 브레이크 필드(30)나 TCU(12)에서 단말기(14)로 데이터를 보낼 경우 사용되는 1바이트의 oxFF 필드(34)의 순서로 구성되고;(Iii) a one-byte message type field 21 for determining a method of processing data to be input, (ii) a one-byte device field 22 indicating a port number of a terminal 14 connected to the TCU 12; (I) XOR of the code of the 1-byte sequence field 23 indicating the frame order to be transmitted / received and (i) the message from the message type field 21 to the data field 29 determines whether there is an abnormality in the transmitted / received data. A check byte field 24 of one byte to be used in case of use, (i) a one byte flag and session field 25 indicating a connection state and a transmission / reception state of the host computer 10 and the terminal 12, (Iii) a one-byte lance field 26 representing the number of bytes from the message type field 21 to the data field 29, and (iii) a one-byte RH0 field with a header number of zero for the request / response unit. 27) and (iii) one-byte RH1 header with a header number of 1 for the request / response unit. A break field 30 is used to send data from the terminal 14 to the TCU 12 in order to distinguish between the code 28 and the (i) n-byte data field 29 and (i) the message unit to be transmitted and received. Or a 1-byte oxFF field 34 used when sending data from the TCU 12 to the terminal 14;

(Ⅱ) ACK 메시지(40)는;(II) the ACK message 40;

(ⅰ) 입력받을 데이터의 처리방법을 결정하는 1바이트의 메시지 타입 필드(41)와, (ⅱ) 송수신되는 데이터에 대한 에러 유무를 나타내는 값으로 1바이트의 에러 코드 필드(42)와, (ⅲ) 송수신되는 프레임 순서를 나타내는 1바이트의 시퀀스 필드(43)와, (ⅳ) 메시지 타입 필드(41)에서 체크 썸 필드(44)까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되는 1바이트의 체크 썸 필드(44)와, (ⅴ) 송수신되는 메시지 단위를 구분하기 위하여 단말기(14)에서 TCU(12)로 데이터를 보낼 경우 사용되는 브레이크 필드(45)나 TCU(12)에서 단말기(14)로 데이터를 보낼 경우 사용되는 1바이트의 oxFF 필드(46)의 순서로 구성됨을;(Iii) a one-byte message type field 41 for determining a method of processing data to be input, and (ii) a one-byte error code field 42 as a value representing the presence or absence of an error for data to be transmitted and received, In the case where abnormality of transmission / reception data is judged by XORing the code of the 1 byte sequence field 43 indicating the frame order to be transmitted / received and the code from the message type field 41 to the check thumb field 44 The break field 45 or the TCU 12 used to transmit data from the terminal 14 to the TCU 12 in order to distinguish between a check byte field 44 of one byte and a message unit to be transmitted and received. In the order of one byte of the oxFF field 46 which is used when sending data to the terminal 14;

특징으로 한다.It features.

이하 본 발명을 좀더 상세하게 설명하면, TCU(12)와 다수개의 단말기(14) 사이에는 비동기 방식의 RS-232C로 연결되고, 데이터 전송을 하는 데이터 메시지(20)와 에러가 없이 데이터 전송을 가능케 하는 ACK 메시지(40)로 프로토콜이 구성된다.Hereinafter, the present invention will be described in more detail. The TCU 12 and the plurality of terminals 14 are connected by asynchronous RS-232C and enable data transmission without error with the data message 20 for data transmission. The protocol consists of an ACK message 40.

데이터 메시지(20)는 제어(컨트롤) 바이트와 데이터 바이트들로 구성되되, 데이터 바이트는 데이터 필드(29)를 구성하고 제어 바이트는 나머지 필드인 헤더(Header)를 구성한다.The data message 20 consists of a control (control) byte and data bytes, the data byte making up the data field 29 and the control byte making up the remaining field, a header.

메시지 타입 필드(21)는 입력받을 데이터의 처리방법을 결정하는 명령으로 크기는 1바이트(8bit)이고, 디바이스 필드(22)는 TCU(12)에 연결된 단말기(14)의 포트넘버(Port No)를 나타내며 역시 1바이트이다.The message type field 21 is a command for determining a method of processing data to be input. The size is 1 byte (8 bits), and the device field 22 is a port number of the terminal 14 connected to the TCU 12. It is also 1 byte.

시퀀스(Sequence) 필드(23)는 송수신되는 프로토콜의 프레임 순서를 나타내는 1바이트이고, 체크 썸(Check Sum) 필드(24)는 메시지 타입 필드(21)에서 데이터 필드(29)까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되고 1바이트이다.The Sequence field 23 is 1 byte indicating the frame order of the protocol to be transmitted and received, and the Check Sum field 24 is obtained by XORing the code from the message type field 21 to the data field 29. The value is used to determine whether there is an abnormality in transmission / reception data and is 1 byte.

플래그 및 세션 필드(25)는 호스트 컴퓨터(10)와 사용중인 단말기(14)의 연결 상태를 표시하는 세션(Session)과 호스트 컴퓨터(10)와 사용중인 단말기(14)의 송수신(Send/Receive) 상태를 표시하는 플래그(Flag)로 구성되고 1바이트이며, 렌스(Length) 필드(26)는 메시지 타입 필드(21)부터 데이터 필드(29)까지의 총 바이트 수를 나타내는 1바이트이다.The flag and session fields 25 indicate a session indicating a connection state between the host computer 10 and the terminal 14 in use, and send / receive between the host computer 10 and the terminal 14 in use. It is composed of a flag indicating a status and is one byte. The length field 26 is one byte indicating the total number of bytes from the message type field 21 to the data field 29.

RH0 필드(27)는 리퀘스트/리스폰스 유니트(Request/Response Unit)의 헤더(Header) 넘버가 0인 1바이트이고, RH1 필드(28)는 리퀘스트/리스폰스 유니트의 헤더 넘버가 1인 1바이트이다.The RH0 field 27 is 1 byte in which the header number of the request / response unit is 0, and the RH1 field 28 is 1 byte in which the header number of the request / response unit is 1.

데이터 필드(29)는 스크린(Screen), 프린트(Print), 상황(Status) 등의 데이터를 갖는 n바이트이다.The data field 29 is n bytes having data such as a screen, a print, a status, and the like.

송수신되는 메시지 단위를 구분하기 위하여 브레이크 필드(30)는 단말기(14)에서 TCU(12)로 데이터를 보낼 경우 사용되고, oxFF 필드(34)는 TCU(12)에서 단말기(14)로 데이터를 보낼 경우 사용되는 1바이트이다.The break field 30 is used to transmit data from the terminal 14 to the TCU 12 in order to distinguish the transmitted and received message units, and the oxFF field 34 is used to transmit data from the TCU 12 to the terminal 14. One byte is used.

oxFF 필드(34)의 경우 앞의 ox는 16진수를 나타내고 뒤의 FF는 그 숫자를 나타낸다.In the case of the oxFF field 34, the first ox represents a hexadecimal number and the second FF represents a number.

다음 ACK 메시지(40) 중에서 메시지 타입 필드(41), 시퀀스 필드(43), oxFF 필드(46) 및 브레이크 필드(45)는 데이터 메시지(20)에서 상술하였으므로 약하고, 에러 코드 필드(42)는 송수신 데이터에 대한 에러 유무를 나타내는 값으로 1바이트이다.Among the following ACK messages 40, the message type field 41, sequence field 43, oxFF field 46 and break field 45 are weak as described above in the data message 20, and the error code field 42 is transmitted and received. 1 byte indicating the presence or absence of data error.

체크 썸 필드(44)는 메시지 타입 필드(41)에서 체크 썸 필드(44)까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되는 1바이트이다.The check thumb field 44 is a value obtained by XORing a code from the message type field 41 to the check thumb field 44, and is one byte used to determine whether there is an abnormality in transmission / reception data.

이와 같이 구성된 프로토콜의 처리방법은, TCU(12)와 단말기(14) 사이에 데이터 송수신을 RS-232C 연결에 의한 비동기 방식으로 행하되, 데이터를 전송하는 데이터 메시지(20)와 에러가 없이 데이터 메시지(20)의 전송을 가능케 하는 ACK 메시지(40)를 상호 크로스 체크하고 연속 송수신되는 메시지 단위를 구분하기 위하여 메시지 끝에 브레이크 신호를 첨가하여 보냄을 특징으로 하는 것으로 도 3은 단말기에서 본 그 흐름도이다.In the protocol processing method configured as described above, data transmission and reception between the TCU 12 and the terminal 14 is performed asynchronously by an RS-232C connection, but the data message 20 for transmitting data and the data message without error ( Figure 3 is a flow chart as seen from the terminal characterized in that the cross-check the ACK message 40 to enable the transmission of 20) and to add a break signal at the end of the message to distinguish the message unit that is continuously transmitted and received.

1프레임의 메시지 전송이 끝나면 처리가 시작되어 먼저 체크 썸을 행한다.When the message transmission of one frame is completed, processing starts and a check thumb is performed first.

체크 썸에서 이상(Error)이 생기면 송수신된 바이트 수를 기준 바이트수(XByte)와 비교하여 크면 데이터 메시지(20)이므로 데이터 메시지(20)를 재송신하라고 송신하고 난 다음 브레이크 신호를 송신한 후 종료한다.If an error occurs in the check thumb, the number of transmitted / received bytes is larger than the standard number of bytes (XByte), so if it is a data message 20, the data message 20 is sent to be retransmitted. .

작거나 같으면 ACK 메시지(40)이므로 ACK 메시지(40)를 재송신하라고 송신하고 난 다음 브레이크 신호를 송신한 후 종료한다.If it is smaller than or equal to ACK message 40, the ACK message 40 is transmitted to be retransmitted, and then the break signal is transmitted and then terminated.

체크 썸에서 이상이 없으면 메시지 타입의 하나인 재시작 메시지(처음 연결되어 송신된 메시지)인가를 체크하여 Yes면 메시지 타입의 하나인 ACK 재시작을 송신하고 난 다음 브레이크 신호를 송신한 후 종료하고, No면 즉 재시작 메시지가 아니면 ACK 메시지(40)인가를 체크한다.If there is no error in the check thumb, check whether it is a restart message (the first message connected and sent) that is one of the message types, and if it is Yes, send an ACK restart, which is one of the message types, send the break signal, and then exit. In other words, if it is not a restart message, it is checked whether it is an ACK message 40.

ACK 메시지(40)이면 바이트 수인 렌스를 체크하여 이상이 있으면 제어 바이트에 이상이 있는 것이므로 헤더 에러를 송신하고 그후 브레이크 신호를 송신한 다음 종료한다.If the ACK message 40 checks the lance, which is the number of bytes, and if there is an error, the control byte has an error. Therefore, a header error is transmitted, and then a break signal is transmitted and then terminated.

렌스에 이상이 없으면 다시 프레임 순서인 시퀀스와 데이터의 이상유무를 판단하는 에러코드를 체크하여 이상이 없으면 ACK 메시지를 처리하여 종료하고 이상이 있으면 ACK 메시지가 배드(Bad)가 났다는 것을 송신한 후 브레이크 신호를 송신한 다음 종료한다.If there is no error in the lens, check the sequence that is the frame order and the error code to determine whether there is an error.If there is no error, process the ACK message and terminate.If there is an error, send the message that the ACK message is bad. Sends the brake signal and ends.

ACK 메시지(40)인가를 체크하여 ACK 메시지(40)가 아니면 즉 데이터 메시지(20)인 것으로 메시지 타입을 체크하여 메시지 타입이 틀리면 메시지 타입이 에러라는 것을 송신한 후 브레이크 신호를 송신한 다음 종료하고, 메시지 타입이 같으면 단말기(14)의 포트 넘버인 디바이스와 프레임 순서인 시퀀스값을 저장하고 에러 코드에 이상이 없음을 송신한 후 브레이크 신호를 송신하여 데이터 메시지를 처리하여 종료한다.If the message type is not the ACK message 40, that is, the data message 20 is checked, and if the message type is wrong, the message type is an error. If the message types are the same, the device which is the port number of the terminal 14 and the sequence value which are the frame order are stored, and when the error code is not transmitted, the break signal is transmitted and the data message is processed to finish.

종료되면 다시 1프레임이 메시지가 전송되고 상술한 흐름이 반복되어 프로토콜이 처리된다.When finished, a message is transmitted one frame again, and the above-described flow is repeated to process the protocol.

이상에서와 같이 데이터 메시지(20)와 ACK 메시지(40) 사이에 상호 크로스 체크가 행해져 에러없이 데이터 송신이 가능한 것이고 메시지 끝에는 브레이크 신호가 송신되어 연속 송수신되는 메시지 단위를 구분할 수 있는 것이다.As described above, cross-checking is performed between the data message 20 and the ACK message 40 so that data transmission can be performed without error, and a break signal is transmitted at the end of the message to distinguish a message unit that is continuously transmitted and received.

연속 송수신되는 메시지 단위를 구분하기 위한 다른 방법으로 데이터 메시지(20)안에 메시지 길이(Message Length, 31,32)를 송신하여 수신측에서 메시지 길이 단위로 메시지를 구분하게 할 수도 있다.As another method for distinguishing message units that are continuously transmitted and received, message lengths 31 and 32 may be transmitted in the data message 20 so that the receiving side may divide the message in units of message lengths.

상기한 처리방법을 실현하는 프로토콜의 구조를 살펴보면, 도 4a 및 도 4b에서 데이터 메시지(20) 및 ACK 메시지(40)중 헤더 필드(35,47)는 데이터 메시지(20)냐 ACK 메시지(40)냐를 결정하는 1바이트이고, 데이터 메시지(20)의 렌스 하이 필드(31)는 렌스 하이 필드(31)에서 데이터 필드(29)까지의 바이트수중 하이 바이트에서 일정한 16진수를 OR한 값으로 1바이트이며, 렌스 로 필드(32)는 렌스 하이 필드(31)에서 데이터 필드(29)까지의 바이트 수중에서 로 바이트 값으로 1바이트이다.Referring to the structure of the protocol for realizing the above-described processing method, the header fields 35 and 47 of the data message 20 and the ACK message 40 in FIG. 4A and FIG. 4B are the data message 20 or the ACK message 40. It is 1 byte for determining whether or not, the lance high field 31 of the data message 20 is the value obtained by ORing a constant hexadecimal number from the high byte among the number of bytes from the lance high field 31 to the data field 29, The lance low field 32 is one byte in the low byte value in the number of bytes from the lance high field 31 to the data field 29.

또한 oxFF 필드(34,46)는 단말기(14)에서 TCU(12)로 데이터를 보낼 경우에만 사용되는 1바이트이다.Also, the oxFF fields 34 and 46 are 1 byte used only when data is sent from the terminal 14 to the TCU 12.

그 외 메시지 타입 필드(21,41), 디바이스 필드(22), 시퀀스 필드(23,43), 체크 썸 필드(24,44), 플래그 및 세션 필드(25), 데이터 필드(29), 에러 코드 필드(42)는 상술한 바 있으므로 약하고, 단 체크 썸 필드(24)는 렌스 하이 필드(31)에서 데이터 필드(29)까지의 코드를 XOR한 값이다.Other message type fields (21, 41), device fields (22), sequence fields (23, 43), check thumb fields (24, 44), flag and session fields (25), data fields (29), error codes The field 42 is weak as described above, except that the check thumb field 24 is a value obtained by XORing a code from the lance high field 31 to the data field 29.

도 5는 흐름도로서 도 3과의 차이점은 체크 썸 하기 전에 스타트 코드를 행하여 데이터 메시지(20)인가 ACK 메시지(40)인가를 구별하여 데이터 메시지(20)이면 렌스 체크를 행한다는 것이다.FIG. 5 is a flowchart, which is different from FIG. 3 in that the start code is executed before the checksum, and whether the data message 20 or the ACK message 40 is distinguished.

그리고 종료 전에 연속 송수신되는 메시지 단위를 구분하기 위하여 브레이크 신호를 송신하지 않음을 알 수 있다.In addition, it can be seen that a break signal is not transmitted to distinguish between message units continuously transmitted and received before termination.

이와 같은 프로토콜 처리방법은 브레이크 신호의 중복 사용에 따른 문제점이 없는 장점이 있다.Such a protocol processing method has an advantage that there is no problem due to the overlapping use of brake signals.

이상에서 살펴본 바와 같이 본 발명은 TCU와 단말기 사이에 데이터 송수신을 RS-232C 연결에 의한 비동기 방식으로 행하되, 데이터를 전송하는 데이터 메시지와 에러가 없이 데이터 메시지의 전송을 가능케 하는 ACK 메시지를 상호 크로스 체크함으로써 완벽한 데이터 전송이 가능하여 모뎀(MODEM)을 이용해서 전화선을 통해 접속할 수 있고 거리 제한없이 단말기를 사용할 수 있어 이동중인 사용자가 호스트 컴퓨터를 사용해야 하는 경우에 특별한 장치가 장착되지 않은 컴퓨터만으로 모뎀을 통한 전화접속을 할 수 있으므로 지방 지점, 대리점 관리, 재택 근무, 보험 모집 등의 이동 근무 업무에 편리하게 사용될 수 있는 유용한 발명인 것이다.As described above, the present invention performs data transmission and reception between the TCU and the terminal in an asynchronous manner by an RS-232C connection, but cross-checks the data message for transmitting data and the ACK message for enabling data message transmission without error. This enables perfect data transmission, which can be accessed via a telephone line using a modem, and the terminal can be used without any distance limitation. It is a useful invention that can be conveniently used for mobile work such as local branches, agency management, telecommuting, insurance recruitment, etc. can be dialed.

Claims (4)

TCU(12)와 다수개의 단말기(14) 사이가 비동기 방식의 RS-232C로 연결되어, 데이터 전송을 하는 데이터 메시지(20)와 에러가 없이 데이터 전송을 가능케 하는 ACK 메시지(40)로 구성되되;The TCU 12 and the plurality of terminals 14 are connected by an asynchronous RS-232C, and include a data message 20 for data transmission and an ACK message 40 for enabling data transmission without error; (Ⅰ) 데이터 메시지(20)는;(I) the data message 20; (ⅰ) 입력받을 데이터의 처리방법을 결정하는 1바이트의 메시지 타입 필드(21)와, (ⅱ) TCU(12)에 연결된 단말기(14)의 포트넘버를 나타내는 1바이트의 디바이스 필드(22)와, (ⅲ) 송수신되는 프레임 순서를 나타내는 1바이트의 시퀀스 필드(23)와, (ⅳ) 메시지 타입 필드(21)에서 데이터 필드(29)까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되는 1바이트의 체크 썸 필드(24)와, (ⅴ) 호스트 컴퓨터(10)와 단말기(12)의 연결 상태 및 송수신 상태를 표시하는 1바이트의 플래그 및 세션 필드(25)와, (ⅵ) 메시지 타입 필드(21)부터 데이터 필드(29)까지의 바이트 수를 나타내는 1바이트의 렌스 필드(26)와, (ⅶ) 리퀘스트/리스폰스 유니트의 헤더 넘버가 0인 1바이트의 RH0 필드(27)와, (ⅷ) 리퀘스트/리스폰스 유니트의 헤더 넘버가 1인 1바이트의 RH1 필드(28)와, (ⅸ) n바이트의 데이터 필드(29)와, (ⅹ) 송수신되는 메시지 단위를 구분하기 위하여 단말기(14)에서 TCU(12)로 데이터를 보낼 경우 사용되는 브레이크 필드(30)나 TCU(12)에서 단말기(14)로 데이터를 보낼 경우 사용되는 1바이트의 oxFF 필드(34)의 순서로 구성되고;(Iii) a one-byte message type field 21 for determining a method of processing data to be input, (ii) a one-byte device field 22 indicating a port number of a terminal 14 connected to the TCU 12; (I) XOR of the code of the 1-byte sequence field 23 indicating the frame order to be transmitted / received and (i) the message from the message type field 21 to the data field 29 determines whether there is an abnormality in the transmitted / received data. A check byte field 24 of one byte to be used in case of use, (i) a one byte flag and session field 25 indicating a connection state and a transmission / reception state of the host computer 10 and the terminal 12, (Iii) a one-byte lance field 26 representing the number of bytes from the message type field 21 to the data field 29, and (iii) a one-byte RH0 field with a header number of zero for the request / response unit. 27) and (iii) one-byte RH1 header with a header number of 1 for the request / response unit. A break field 30 is used to send data from the terminal 14 to the TCU 12 in order to distinguish between the code 28 and the (i) n-byte data field 29 and (i) the message unit to be transmitted and received. Or a 1-byte oxFF field 34 used when sending data from the TCU 12 to the terminal 14; (Ⅱ) ACK 메시지(40)는;(II) the ACK message 40; (ⅰ) 입력받을 데이터의 처리방법을 결정하는 1바이트의 메시지 타입 필드(41)와, (ⅱ) 송수신되는 데이터에 대한 에러 유무를 나타내는 값으로 1바이트의 에러 코드 필드(42)와, (ⅲ) 송수신되는 프레임 순서를 나타내는 1바이트의 시퀀스 필드(43)와, (ⅳ) 메시지 타입 필드(41)에서 체크 썸 필드(44)까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되는 1바이트의 체크 썸 필드(44)와, (ⅴ) 송수신되는 메시지 단위를 구분하기 위하여 단말기(14)에서 TCU(12)로 데이터를 보낼 경우 사용되는 브레이크 필드(45)나 TCU(12)에서 단말기(14)로 데이터를 보낼 경우 사용되는 1바이트의 oxFF 필드(46)의 순서로 구성됨을;(Iii) a one-byte message type field 41 for determining a method of processing data to be input, and (ii) a one-byte error code field 42 as a value representing the presence or absence of an error for data to be transmitted and received, In the case where abnormality of transmission / reception data is judged by XORing the code of the 1 byte sequence field 43 indicating the frame order to be transmitted / received and the code from the message type field 41 to the check thumb field 44 The break field 45 or the TCU 12 used to transmit data from the terminal 14 to the TCU 12 in order to distinguish between a check byte field 44 of one byte and a message unit to be transmitted and received. In the order of one byte of the oxFF field 46 which is used when sending data to the terminal 14; 특징으로 하는 TCU와 단말기 사이의 프로토콜 구조.Characterized in that the protocol structure between the TCU and the terminal. 제 1 항에 있어서, 상기 데이터 메시지(20)는;The method of claim 1, wherein the data message (20) is; (ⅰ) 데이터 메시지(20)냐 ACK 메시지(40)냐를 결정하는 1바이트인 헤더 필드(35)와, (ⅱ) 렌스 하이 필드(31)에서 데이터 필드(29)까지의 바이트 수중에 하이 바이트에서 일정한 16진수를 OR한 값으로 1바이트인 렌스 하이 필드(31)와, (ⅲ) 렌스 하이 필드(31)에서 데이터 필드(29)까지의 바이트 수에서 로 바이트 값으로 1바이트인 렌스 로 필드(32)와, (ⅳ) 상기 메시지 타입 필드(21)와, (ⅴ) 상기 디바이스 필드(22)와, (ⅵ) 상기 시퀀스 필드(23)와, (ⅶ) 렌스 하이 필드(31)에서 데이터 필드(29)까지의 코드를 XOR한 값으로 송수신 데이터의 이상유무를 판단할 경우에 사용되는 상기 체크 썸 필드(24)와, (ⅷ) 상기 플래그 및 세션 필드(25)와, (ⅸ) 상기 데이터 필드(29)와, (ⅹ) 단말기(14)에서 TCU(12)로 데이터를 보낼 경우에만 사용되는 상기 oxFF 필드(34)의 순서로 구성되고;(Iii) the header field 35, which is one byte for determining whether the data message 20 or the ACK message 40, and (ii) the high byte in the number of bytes from the lance high field 31 to the data field 29; A lance high field 31 having a value of OR of a fixed hexadecimal number, and a (1) lance low field having 1 byte as a low byte value from the number of bytes from the lance high field 31 to the data field 29. 32), (i) the message type field 21, (i) the device field 22, (i) the sequence field 23, and (i) the data field in the lance high field 31. The check thumb field 24, (i) the flag and session field (25), and (i) the data, which are used to determine whether there is an abnormality in transmission / reception data at a value obtained by XORing the code up to (29). Field 29 and (i) the oxFF field 34 used only when sending data from the terminal 14 to the TCU 12; 상기 ACK 메시지(40)는;The ACK message (40); (ⅰ) 데이터 메시지(20)냐 ACK 메시지(40)냐를 결정하는 1바이트인 헤더 필드(47)와, (ⅱ) 상기 메시지 타입 필드(41)와, (ⅲ) 상기 에러 코드 필드(42)와, (ⅳ) 상기 시퀀스 필드(43)와, (ⅴ) 상기 체크 썸 필드(44)와, (ⅵ) 단말기(14)에서 TCU(12)로 데이터를 보낼 경우에만 사용되는 상기 oxFF 필드(46)의 순서로 구성됨을;(Iii) a header field 47 which is one byte for determining whether a data message 20 or an ACK message 40, (ii) the message type field 41, and (iii) the error code field 42; (Iii) the sequence field 43, (iii) the check thumb field 44, and (iii) the oxFF field 46 which is used only when sending data from the terminal 14 to the TCU 12. Consisting of the order of; 특징으로 하는 TCU와 단말기 사이의 프로토콜 구조.Characterized in that the protocol structure between the TCU and the terminal. TCU(12)와 단말기(14) 사이에 데이터 송수신을 RS-232C 연결에 의한 비동기 방식으로 행하되, 데이터를 전송하는 데이터 메시지(20)와 에러가 없이 데이터 메시지(20)의 전송을 가능케 하는 ACK 메시지(40)를 상호 크로스 체크하고 연속 송수신되는 메시지 단위를 구분하기 위하여 메시지 끝에 브레이크 신호를 첨가하여 보냄을 특징으로 하는 TCU(12)와 단말기(14) 사이의 프로토콜 처리방법.Data transmission and reception between the TCU 12 and the terminal 14 in an asynchronous manner by an RS-232C connection, but the data message 20 for transmitting data and the ACK message for enabling the transmission of the data message 20 without errors. A protocol processing method between the TCU (12) and the terminal (14), characterized in that cross-checking (40) with each other and adding a break signal at the end of the message in order to distinguish message units that are continuously transmitted and received. 제 3 항에 있어서, 상기 브레이크 신호 대신에 연속 송수신되는 메시지 단위를 구분하기 위해 데이터 메시지(20) 안에 메시지 길이를 송신함을 특징으로 하는 TCU(12)와 단말기(14) 사이의 프로토콜 처리방법.The method according to claim 3, wherein the message length is transmitted in a data message (20) to distinguish message units continuously transmitted and received instead of the break signal.
KR1019980019378A 1998-05-28 1998-05-28 Structure of protocol between tcu and terminal KR100261028B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980019378A KR100261028B1 (en) 1998-05-28 1998-05-28 Structure of protocol between tcu and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980019378A KR100261028B1 (en) 1998-05-28 1998-05-28 Structure of protocol between tcu and terminal

Publications (2)

Publication Number Publication Date
KR19990086411A KR19990086411A (en) 1999-12-15
KR100261028B1 true KR100261028B1 (en) 2000-07-01

Family

ID=19537826

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980019378A KR100261028B1 (en) 1998-05-28 1998-05-28 Structure of protocol between tcu and terminal

Country Status (1)

Country Link
KR (1) KR100261028B1 (en)

Also Published As

Publication number Publication date
KR19990086411A (en) 1999-12-15

Similar Documents

Publication Publication Date Title
EP0826282B1 (en) Data adapter
US5012489A (en) Method for sending a plurality of data channels over a single communications line
US5553075A (en) Packet data protocol for wireless communication
US4751510A (en) Method and system for controlling a network of modems
US5574723A (en) Remote provisioning of telephone channel unit using inband digital code sequences transmitted over tandem link
US4323728A (en) Conversion circuit arrangement and method for switching digital encoded signals
CA1314612C (en) Packet switching system
US5613065A (en) Information broadcasting system having reception error minimizing facility
JPS6113846A (en) Data format detector
KR100261028B1 (en) Structure of protocol between tcu and terminal
US7020156B2 (en) Multiple device communications
EP0389165B1 (en) Fiber optic data link system
US5388109A (en) Data communications device with resident link adapter
EP0389182B1 (en) Transmitter and receiver for data link system
JPH06224968A (en) Conversion method for isdn lapb and isdn lapd frames, and system thereof
KR920009376B1 (en) Method for transmitting serially between radio phones
KR100248516B1 (en) Method for controlling polling in bidirectional catv converter
US4837810A (en) Telephone switch center with control of individual devices
FI109074B (en) Abonnentmultiplexeringsanordning
KR100631238B1 (en) Data communication method between terminals in a packet based communication network
KR100236791B1 (en) Control method of multi point access communication system by transmitting line detecting circuit
JPS63129748A (en) Digital data communication system
MXPA97001432A (en) Ad adapter
KR20050039957A (en) Method for operating synchronous serial communication in which master and slave are fixed
JPS61126846A (en) Break signal processing method

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee