KR910003245B1 - Method for processing escape sequence in packet assembler/disassembler system - Google Patents

Method for processing escape sequence in packet assembler/disassembler system Download PDF

Info

Publication number
KR910003245B1
KR910003245B1 KR1019880006495A KR880006495A KR910003245B1 KR 910003245 B1 KR910003245 B1 KR 910003245B1 KR 1019880006495 A KR1019880006495 A KR 1019880006495A KR 880006495 A KR880006495 A KR 880006495A KR 910003245 B1 KR910003245 B1 KR 910003245B1
Authority
KR
South Korea
Prior art keywords
escape
data
packet
character
pad
Prior art date
Application number
KR1019880006495A
Other languages
Korean (ko)
Other versions
KR890017909A (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 KR1019880006495A priority Critical patent/KR910003245B1/en
Publication of KR890017909A publication Critical patent/KR890017909A/en
Application granted granted Critical
Publication of KR910003245B1 publication Critical patent/KR910003245B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/43Assembling or disassembling of packets, e.g. segmentation and reassembly [SAR]

Abstract

The method detects the escape sequences while the esacpe character is received, and stops the transmission of echo mask and data temperarily unit the reception of the escape sequences is completed then the character array data of the escape sequences is transmitted in one packet and the echo service is maked. The method includes steps: (A) checking the escape character when the letter data is received; (B) storing the present pad variable in first and resetting it in second; (c) releasing the data trasmission restrictions and driving an escape timer for receiving the escape sequence; and (D) stopping the echo service to the escape sequences which are received during the driving period of the escape timer and assembling the sequences in one packet.

Description

패드시스템에서의 이스케이프 시퀀스 처리방법How to handle escape sequences in pad systems

제1도는 종래의 데이타 처리 흐름도.1 is a conventional data processing flow diagram.

제2도는 본 발명을 수행하기 위한 패드시스템의 하드웨어 구성도.2 is a hardware diagram of a pad system for carrying out the present invention.

제3도는 본 발명을 수행하기 위한 패드시스템의 소프트웨어 구성도.3 is a software configuration diagram of a pad system for carrying out the present invention.

제4도는 본 발명을 따른 이스케이프 시퀀스 처리 흐름도.4 is an escape sequence processing flowchart according to the present invention.

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

10 : 클럭 발생기 20 : 중앙처리장치10: clock generator 20: central processing unit

30 : 디코더 구동부 40 : 디코더30: decoder driving unit 40: decoder

50 : 타이머 60 : 스위치 및 LED50: timer 60: switch and LED

70 : 직력 입출력부 80 : 속도 조절부70: linear input / output unit 80: speed control unit

90 : 롬 100 : 백업램90: ROM 100: Backup RAM

110 : 램 120 : 백업부110: RAM 120: Backup unit

본 발명은 패드시스템에서의 이스케이프 시퀀스 처리방법에 관한 것으로, 특히 구동시계에 의한 이스케이프 시퀀스의 문자열 데이타를 처리하는 방법에 관한 것이다.The present invention relates to an escape sequence processing method in a pad system, and more particularly, to a method of processing character string data of an escape sequence by a driving clock.

일반적으로 패드(PAD : Packet Assembler/Disassembler)시스템은 패킷형태로 데이타를 송수신할 수 없는 일반 단말기(비패킷 단말기)를 수용하기 위한 패킷망 기능을 수행하는 시스템을 말하는데, 일반 단말기로부터 출력되는 문자열을 패킷형태로 조합하여 패킷망으로 전용하거나, 또는 역으로 패킷망으로부터 수신된 패킷을 분해하여 문자열로 변환한후 일반 단말기 측으로 출력하는 기능을 수행한다. 그리고 이스케이프 캐릭터(Escape Character)란 연속되는 1자 또는 2자이상의 문자들이 그들 고유의 부호와 다른 부호로 표현되어 특정 기능을 수행하기 위한 문자열을 의미한다. 이때 이스케이프 시퀀스(Escape Sequence)라 함은 터미널에서 특수한 제어정보를 가리키기 위해 발생시키는 이스케이프 캐릭터와 이스케이프 캐릭터에 뒤따르는 1개 이상의 캐릭터 열을 말한다. 상기 이스케이프 시퀀스 캐릭터 열을 감지하면, 상기 패드시스템은 상기 캐릭터 열 각각에 대하여 에코(echo)하지 않고 이들을 동일한 패킷내에 모아 전송해야 한다.In general, a PAD (Packet Assembler / Disassembler) system is a system that performs a packet network function for accommodating general terminals (non-packet terminals) that cannot transmit or receive data in the form of packets. It combines the data into a packet network, or conversely, it decomposes the packet received from the packet network, converts it into a string, and outputs it to the general terminal. In addition, an escape character refers to a string for performing a specific function by successive one or two or more characters represented by different codes from their own codes. In this case, the escape sequence refers to an escape character generated by the terminal to indicate special control information and one or more strings following the escape character. When the escape sequence character strings are detected, the pad system should collect them in the same packet and transmit them without echoing each of the character strings.

제1도는 종래의 패드시스템에서 데이바 처리 흐름도로서 그 동작은 하기와 같다.1 is a flowchart of a data processing in a conventional pad system, the operation of which is as follows.

먼저 패드시스템은 (A1)단계에서 비패킷 단말기로부터 데이타를 수신한후, (A2)단계에서 변수 2의 상태를 검사한다. 상기 변수 2란 입력데이타를 에코할 것인지 아니면 에코하지 않을 것인지를 결정하기 위한 변수로서, 패드변수 "2"가 리세트 상태일시는 에코하지 않으며, 패드변수 "2"가 세트 상태일시에만 에코한다. 여기서 에코서비스(echo service)란 패드시스템에 접속된 비패킷 단말기로부터 데이타 수신시, 수신데이타를 다시 비패킷 단말기로 재송신하는 기능을 말한다. 상기 패드시스템과 접속되는 비패킷 단말기에는 프로그램 등을 전송하는 호스트 터미널(host terminal)과 운용자에 의해 데이타를 전송하는 데이타 터미널(Data Terminal Equipment)등이 있다. 이때 상기 패드시스템은 비패킷 단말기가 호스트 터미널인 경우 수신데이타에 대한 에코서비스를 수행하지 않지만, 데이타 터미널인 경우 운영자가 발생하는 데이타를 다시 터미널로 에코하여 터미널의 모니터상에 표시되도록 서비스하게 된다. 이때 상기 패드변수 "2"란 에코서비스 유무를 결정하는 변수로서, 비패킷 단말기의 형태에 따라 미리 상기 패드변수 2의 상태를 세트하여 서비스 동작을 수행한다.First, the pad system receives data from the non-packet terminal in step A1, and then checks the state of variable 2 in step A2. The variable 2 is a variable for determining whether or not to echo the input data. The variable 2 does not echo when the pad variable "2" is in the reset state, and echoes only when the pad variable "2" is in the set state. Here, the echo service refers to a function of retransmitting the received data back to the non-packet terminal when receiving data from the non-packet terminal connected to the pad system. The non-packet terminal connected to the pad system includes a host terminal for transmitting a program and the like and a data terminal for transmitting data by an operator. At this time, if the non-packet terminal is a host terminal, the pad system does not perform an echo service on the received data, but in the case of a data terminal, the operator echoes the generated data back to the terminal and displays it on the monitor of the terminal. In this case, the pad variable "2" is a variable for determining whether or not there is an echo service, and sets the state of the pad variable 2 in advance according to the type of the non-packet terminal to perform a service operation.

그러므로 상기 (A2)단계에서 상기 패드변수 2가 세트 상태일시에는 (A3)단계에서 수신데이타를 다시 비패킷 단말기로 전송하여 에코서비스 수행하고, 상기 패드변수 "2"가 리세트 상태일시에는 수신데이타의 에코서비스를 행하지 않는다. 이후 패드시스템은 (A4)단계에서 패드데이타 전송조건 유무를 결정하여, 전송 조건일시는 (A5)단계로 진행하여 데이타 전송 서비스를 실행하고, 전송조건이 아닐시는 (A6)단계로 진행하여 입력데이타를 일시 저장한다. 여기서 패드시스템의 전송 조건은 마지막 문자 데이타 수신후 일정 시간이 경과하는 경우(idle timer가 경과된 경우), 캐리지 리턴키 등의 데이타 전송 문자가 수신된 경우, 브레이트(break)신호가 수신된 경우, 패드 커맨드(PAD Command)상태로 천이된 경우 등이 된다. 또한 상기 패드시스템에서는 패킷크기(Packet size)를 일정한 크기(표준 128byte)로 제한하는데, 상기와 같은 별도의 데이타 전송조건이 발생하지 않더라도 상기 패킷크기를 넘으면 패드시스템은 데이타를 전송한다.Therefore, when the pad variable 2 is set in step (A2), the reception data is transmitted to the non-packet terminal again in step (A3) to perform an echo service, and when the pad variable "2" is in the reset state, the reception data is performed. Does not provide eco-services. After that, the pad system determines the presence or absence of the pad data transfer condition in step (A4), and proceeds to step (A5) to execute the data transfer service at the transfer condition and enters the step (A6) when it is not a transfer condition. Temporarily save the data. Here, the transmission condition of the pad system is when a certain time has elapsed since the reception of the last character data (if an idle timer has elapsed), when a data transmission character such as a carriage return key is received, or when a break signal is received. This is the case when a transition is made to a pad command state. In addition, the pad system limits the packet size to a certain size (standard 128 bytes). Even if the separate data transfer condition does not occur, the pad system transmits data when the pad size exceeds the packet size.

그러나 상기와 같은 종래의 패드시스템에서는 이스케이프 시퀀스 처리를 보통의 데이타와 동일하게 처리하여 이스케이프 캐릭터 열을 감지할 수 없었다. 그러므로 이스케이프 시퀀스로 들어오는 여러 캐릭터 열 중간에 패킷크기가 넘었을 경우 동일한 패킷에 이스케이프 캐릭터 열을 포함시켜 전송할 수 없는 경우가 발생될 수 있었고, 이로인하여 수신측에서는 이스케이프 시퀀스를 인지하지 못하거나 다른 데이타로 잘못 인지하는 경우가 발생할 수 있었다. 또한 상기 패드변수 "2"가 세트되어 있는 경우, 특정 기능 수행을 위해 입력한 상기 이스케이프 케릭터도 해당 비패킷 단말기로 에코서비스를 함으로써, 패킷조립에 불필요한 데이타를 에코서비스하여 혼란을 야기하는 문제점이 있었다.However, in the conventional pad system as described above, the escape sequence cannot be detected by processing the escape sequence in the same manner as the normal data. Therefore, if the packet size is exceeded in the middle of the multiple character strings coming into the escape sequence, it may be impossible to transmit the escape string by including the escape character string in the same packet. Acknowledgment could occur. In addition, when the pad variable "2" is set, the escape character inputted to perform a specific function also performs an echo service to the corresponding non-packet terminal, thereby causing confusion by echo service unnecessary data for packet assembly. .

따라서 본 발명의 목적은 패드시스템에서 이스케이프 시퀀스를 감지하고 상기 이스케이프 시퀀스를 동일 패킷으로 조립하여 전송할 수 있는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for detecting an escape sequence in a pad system and assembling the escape sequence into the same packet.

본 발명의 또다른 목적은 이스케이프 시퀀느 감지시 이스케이프 시퀀스를 해당 비패킷 단말기로 에코서비스하지 않을 수 있는 방법을 제공함에 있다.It is another object of the present invention to provide a method in which an escape sequence may not be echo serviced to a corresponding non-packet terminal upon detection of an escape sequence.

이하 본 발명을 도면을 참조하여 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the drawings.

제2도는 본 발명을 수행하기 위한 시스템도로서, 클럭신호를 발생하는 클럭 발생기(10)와, 콜(call) 및 시스템을 제어하는 중앙처리장치(20)와, 상기 중앙연산처리장치(20)에서 나오는 신호를 제어하여 후술하는 디코더(40)를 디라이빙하는 디코더 구동부(30)와, 디코딩 로직에 의해 각종 칩 및 I/O를 제어하는 디코더(40)와, 상기 중앙처리장치(20) 계수 타이머에 의해 인터럽트를 발생시키는 타이머(50)와, 시스템의 기능을 선택하는 디프(DIP)스위치와 에러 및 사용자의 사용여부를 나타내는 스위치 및 LED(60)와, 상기 중앙처리장치(20)의 제어하에 비패켓 단말기와 문자열 데이타의 비동기 및 동기전송을 하는 직렬 입출력부(70)와, 상기 중앙처리장치(20)의 제어하에 비패킷 단말기의 전송속도를 조절하는 속도 조절부(80)와, 패드시스템의 각종 프로그램을 저장하고 있는 롬(90)과, 시스템의 파라메타 등을 저장시켜 전원오프(power off)시에도 데이타 보존이 기능한 백업램(100)과, 프로그램 수행중에 발생되는 각종 플래그 및 데이타를 쌓아두는 버퍼로 사용되는 램(110)과, 전원오프(power off)시에도 백업램(110)의 데이타를 보존시키는 백업부(120)으로 구성되어 있다. 상기와 같은 패드시스템의 구성은 공지의 구성으로 비패킷 단말로부터 수신되는 문자 데이타를 패킷으로 조립하여 패킷망으로 전송하고, 패킷망으로부터 수신되는 패킷을 분해하여 패킷단말로 전송하는 기능을 수행한다.2 is a system diagram for carrying out the present invention, which includes a clock generator 10 for generating a clock signal, a central processing unit 20 for controlling a call and a system, and the central processing unit 20. A decoder driver 30 for controlling the signal from the decoder to de-live the decoder 40 to be described later, a decoder 40 for controlling various chips and I / Os by decoding logic, and the central processing unit 20. A timer 50 for generating an interrupt by a counting timer, a dip (DIP) switch for selecting a function of the system, a switch and an LED (60) indicating an error and whether the user is used, and the central processing unit (20) A serial input / output unit 70 for asynchronous and synchronous transmission of the non-packet terminal and character string data under control, a speed adjusting unit 80 for adjusting the transmission speed of the non-packet terminal under the control of the central processing unit 20, Save various programs of pad system The ROM 90 is used as a backup RAM 100 for storing data even when the system is powered off by storing the ROM 90, and a buffer for storing various flags and data generated during program execution. RAM 110 and a backup unit 120 for storing data of the backup RAM 110 even when the power off (power off). The configuration of the pad system as described above performs a function of assembling text data received from a non-packet terminal into a packet, transmitting the packet data to a packet network, and decomposing the packet received from the packet network to a packet terminal.

제3도는 패드시스템의 소프트웨어 구성도로서, 패드와 접속하는 비패킷 단말(Asynchronous Terminal TERM1-TERM8)과의 데이타의 송수신 인터페이스 처리를 하는 송신 및 수신데이타 처리모듈(1, 2), X.28처리모듈(3), X.29처리모듈(4)과, 패킷레벨 처리를 하는 패킷레벨 처리모듈(5)과, 링크레벨 처리를 하는 링크레벨 처리모듈(5) 및 패킷레벨의 데이타를 처리하는 단말 또는 패킷망과의 데이타 송수신 인터페이스 처리를 하는 링크 송신 및 수신 처리모듈(7, 8)로 구성되어 있다.3 is a software configuration diagram of the pad system. The transmission and reception data processing modules (1, 2) and X.28 processing for performing data transmission / reception interface processing with an asynchronous terminal TERM1-TERM8 connected to the pad. Module 3, X.29 processing module 4, packet level processing module 5 for packet level processing, link level processing module 5 for link level processing, and terminal for processing packet level data Or a link transmission and reception processing module (7, 8) for performing data transmission / reception interface processing with the packet network.

상기 구성중 송신 데이타 처리모듈(1)은 비패킷 단말로 송신할 데이타를 처리하고, 수신데이타 처리모듈(2)는 비패킷 단말에어 수신되는 데이타를 처리하고, X.28 처리모듈(3)은 X.28패드 명령어(PAD Command) 및 서비스 시그널을 처리하며, X.29 처리모듈(4)은 호(CALL) 진행중 상대방으로부터 오는 X.29 패드 메세지를 처리한다. 레벨 3을 구현한 모듈인 패킷레벨 처리모듈(5)은 X.25 레벨을 구현한 모듈로 패킷의 생성 분해 및 흐름제어(flow Control)을 담당한다. 또한 링크레벨 처리모듈(6)은 X.25 레벨 2를 구현한 모듈로 링크레벨의 데이타 송수신 및 에러 제어를 담당하고, 링크수신모듈(7)은 패킷 단말 또는 패킷망을 통한 패킷 데이타의 구성을 갖는 데이타 프레임을 수신 처리하며, 링크 송신 모듈(8)은 상기 데이타 프레임의 송신을 담당한다. 상기의 소프트웨어 구성중에서 본 발명의 처리를 수행하는 모듈은 수신데이타 처리모듈(2)이다.In the above configuration, the transmission data processing module 1 processes data to be transmitted to the non-packet terminal, the reception data processing module 2 processes data received by the non-packet terminal, and the X.28 processing module 3 It handles the X.28 PAD Command and Service signals, and the X.29 Processing Module 4 processes the X.29 Pad messages from the other party during the call. The packet level processing module 5, which is a module implementing level 3, is a module implementing the X.25 level and is in charge of generation decomposition and flow control of packets. In addition, the link level processing module 6 is a module that implements X.25 level 2 and is responsible for link level data transmission and error control, and the link reception module 7 has a configuration of packet data through a packet terminal or a packet network. Receive processing of data frames, and the link transmission module 8 is responsible for the transmission of the data frames. In the above software configuration, the module for performing the process of the present invention is a reception data processing module (2).

제4도는 본 발명에 따른 이스케이프 시퀀스 처리 흐름도로서 상기 비패킷 단말기로부터 문자 데이타 수신시 이스케이프 캐릭터인가 검사하는 제1과정(B1, B2)과, 상기 제1과정에서 이스케이프 캐릭터일시 에코서비스의 상태를 나타내는 현재의 패드변수를 저장한 후, 패드변수를 리세트하는 제2과정(B3)과, 상기 제2과정 수행후 데이타 전송조건을 해제하고 이스케이프 시퀀스 수신을 위한 이스케이프 타이머를 구동하는 제3과정(B4)과, 상기 제3과정 수행후 이스케이프 타이머 구동 주기내에 수신되는 이스케이프 시퀀스에 대하여 에코서비스를 중지하는 동시에 하나의 패킷으로 조립하며, 이스케이프 타이머 구동 완료시 이스케이프 시퀀스의 수신종료로 하여 상기 패드변수 및 전송조건을 복구하고 리턴하는 제4과정(B5)과, 상기 제1과정에서 일반 문자 데이타일시 상기 패드변수의 상태에 따라 세트 상태일시 에코서비스를 수행하고 리세트 상태일시 에코서비스를 수행하지 않는 제5과정(B5, B6)과, 상기 제5과정 수행후 데이타 전송조건의 상태에 따라 수신 문자 데이타를 패킷으로 조립하거나 패킷망으로 조립된 패킷데이타를 전송하고 리턴하는 제6과정(B8-B10)으로 이루어진다.4 is a flowchart illustrating an escape sequence process according to the present invention, which shows the first steps (B1, B2) of checking whether an escape character is received when receiving character data from the non-packet terminal, and the state of an escape character temporary echo service in the first step. A second process (B3) of resetting the pad variable after storing the current pad variable, and a third process (B4) of releasing the data transfer condition and driving an escape timer for receiving an escape sequence after performing the second process (B4). ), And stops the echo service for the escape sequence received within the escape timer driving period after the third process, and assembles it into a single packet, and when the completion of the escape timer is completed, the pad variable and the transmission are completed. A fourth process (B5) for restoring and returning a condition; A fifth process (B5, B6) which performs a set state temporary echo service according to the state of the pad variable at tile time and does not perform a reset state temporary echo service, and according to the state of data transmission condition after performing the fifth process A sixth process (B8-B10) is performed to assemble received text data into packets or to transmit and return packet data assembled into a packet network.

상술한 구성에 의거 본 발명을 제2, 3, 4도를 참조하여 상세히 설명한다.Based on the above configuration, the present invention will be described in detail with reference to FIGS.

먼저 비패킷 단말(TERM1-TERM8)중의 임의 단말이 문자 데이타를 발생하면, 중앙처리장치(20)는 (B1)단계에서 직렬 입출력부(70)를 통하여 해당 문자 데이타를 읽은 후, (B2)단계에서 입력된 문자 데이타가 이스케이프 캐릭터(Escape Caracter)인가 검사한다.First, when any terminal among the non-packet terminals TERM1-TERM8 generates text data, the CPU 20 reads the corresponding text data through the serial input / output unit 70 in step (B1), and then (B2). Check if the character data entered in Escape is an escape character.

이때 상기 수신 문자 데이타가 이스케이프 캐릭터일 경우는 이후 특정 기능을 수행하기 위하여 연속되는 문자열 데이타인 이스케이프 시퀀스를 수신할 수 있도록 (33)단계로 진행한다. 상기 이스케이프 시퀀스라 함은 부호 확정 절차에서 사용하는 비트의 열로서, 패드시스템에 특정 기능을 수행하기 위하여 이스케이프 캐릭터로 시작하는 2조이상의 부호조합을 이루는 시퀀스를 말한다. 따라서 이스케이프 캐릭터 다음에는 이스케이프 시퀀스의 문자 열이 연달아 수신되며, 이 경우에는 에코서비스를 수행하지 않는다. 그러므로 상기 (B2)단계에서 수신 문자 데이타가 이스케이프 캐릭터 일시는 (B3)단계로 진행하여 에코서비스의 유무를 나타내는 현재의 패드변수 2값을 램(110)에 일시 저장한 후, 이스케이프 시퀀스의 문자열 데이타가 에코서비스를 받지 못하도록 패드변수 2값을 리세트시켜 에코 마스크(echo mask)시킨다.In this case, when the received character data is an escape character, the process proceeds to step 33 to receive an escape sequence that is continuous string data in order to perform a specific function. The escape sequence is a string of bits used in a code determination procedure, and refers to a sequence of two or more sets of code combinations starting with an escape character to perform a specific function in a pad system. Therefore, after the escape character, a string of escape sequences is received in sequence, in which case no echo service is performed. Therefore, in step (B2), the received character data proceeds to step (B3), and temporarily stores the current pad variable 2 value indicating whether an echo service is present in RAM 110, and then character string data of the escape sequence. The echo pad is reset by resetting the pad variable 2 so that the echo service is not received.

여기서 상기 패드변수 2는 비패킷 단말의 형태에 따라 수신되는 문자 데이타를 해당 비패킷 단말로 재전송하는 에코서비스의 유무를 결정하는 변수이다. 따라서 상기 패드변수 2가 세트되어 있으면, 중앙처리장치(20)은 직렬 입출력부(70)를 통해 수신되는 데이타를 해당 비패킷 단말로 다시 에코서비스하게 된다. 그러면 해당 비패킷 단말의 모니터에는 자신이 발생한 문자 데이타가 표시된다. 그러나 특정기능을 수행하기 위한 이스케이프 시퀀스는 패킷데이타와는 무관하므로 에코서비스의 동작은 불필요하게 된다.Here, the pad variable 2 is a variable for determining whether there is an echo service for retransmitting the received text data to the corresponding non-packet terminal according to the type of the non-packet terminal. Therefore, if the pad variable 2 is set, the CPU 20 echoes data received through the serial input / output unit 70 back to the corresponding non-packet terminal. Then, the character data generated by the non-packet terminal monitor is displayed. However, since the escape sequence for performing a specific function is independent of the packet data, the operation of the echo service becomes unnecessary.

상기와 같이 패드변수 2를 리세트 시킨후, 상기 중앙처리장치(20)에서 (84)단계에서 이스케이프 시퀀스의 문자열 데이타를 완전하게 수신할 때까지 전송되지 못하도록 데이타 전송조건을 해제시키며, 타이머(50)를 제어하여 이스케이프 타이머(Escape Timer)를 구동한다. 상기 데이타 전송 조건을 패드시스템에서 상기한 바와같이 패킷크기로 문자 데이타의 조립이 완료되거나, 마지막 문자 데이타 입력후 일정시간 경과, 데이타 전송문자 수신(carriage return key 수신), 브레이크 신호 수신, 패드 명령어 상태로 천이되는 경우에 발생된다. 상기 이스케이프 캐릭터가 수신되면 다수개의 문자열로 이스케이프 시퀀스가 수신된다. 이러한 경우 이스케이프 캐릭터 수신 시점에서 상기와 같은 전송조건이 발생하게 되면, 이스케이프 시퀀스와 무관하게 패킷이 구성되므로 에러가 발생된다. 따라서 (B4)단계에서는 이스케이프 캐릭터 수신시 이스케이프 시퀀스를 한 패킷에 모아 전송할 수 있도록 전 문자열 데이타를 수신할때까지 전송 조건을 해제시킨다.After resetting the pad variable 2 as described above, the CPU 20 releases the data transfer condition so that the CPU 20 cannot transmit the string data of the escape sequence until the string data of the escape sequence is completely received in step 84. ) To start the Escape Timer. As described above, in the pad system, assembling of text data is completed in the packet system, or a certain time has elapsed since the last text data is input, a data transmission character is received, a brake signal is received, a pad command is received. Occurs when transitions to. When the escape character is received, an escape sequence is received as a plurality of strings. In this case, if the above transmission condition occurs at the time of receiving the escape character, an error occurs because the packet is configured regardless of the escape sequence. Therefore, in step (B4), when the escape character is received, the transmission condition is released until all the string data is received so that the escape sequence can be collected and transmitted in one packet.

또한 상기 (B4)단계에서는 이스케이프 시퀀스의 수신 시간을 설정하기 위하여 이스케프 타이머를 동작시킨다. 이때 상기 이스케이프 타이머는 이스케이프 시퀀스 열 캐릭터를 인지하기 위한 구동시계로 소정 주기동안 동작하는데, 상기 이스케이프 타이머가 구동하고 있는 동안 입력하는 캐릭터 열은 이스케이프 시퀀스로 간주하여 이스케이프 시퀀스 서비스를 수행한다. 그리고 이스케이프 타이머가 구동완료(time out)되었을시까지 데이타 입력이 없으면 이스케이프 시퀀스 열 캐릭터가 모두 입력한 것으로 간주한다. 예를들면, 상기 이스케이프 타이머의 구동시간 값은 200㎳단위, 즉 200㎳×n(n=1…27)으로 할 수 있다.In addition, in step (B4), the escape timer is operated to set the reception time of the escape sequence. In this case, the escape timer operates as a driving clock for recognizing an escape sequence string character, and the character string input while the escape timer is running is regarded as an escape sequence to perform an escape sequence service. If no data is input until the escape timer has timed out, all escape sequence string characters are assumed to have been entered. For example, the driving time value of the escape timer may be set in units of 200 ms, that is, 200 ms × n (n = 1… 27).

따라서 (B5)단계에서는 이스케이프 타이머 구동증에(200㎳ 이내) 열 캐릭터가 입력하는가를 검사하는 것으로, 이스케이프 타이머 구동시간 내에 데이타가 입력하면 진행하여 램(110)에 이스케이프 시퀀스의 문자열 데이타를 하나의 패킷으로 모아 저장하며, 다음 문자 데이타 수신을 위해 이스케이프 타이머를 재구동시킨후 (B1)단계로 되돌아가며, 구동시간내에 데이타가 입력하지 않으면 이스케이프 시퀀스 열 캐릭터의 입력 종료로 간주하여 램(110)에 저장하고 있는 패드변수 "2"값을 원위치하고 해제된 전송데이타 조건을 복구시킨후 (B1)단계로 되돌아간다. 즉, 상기 (B5)단계에서는 이스케이프 타이머를 구동시키며, 이스케이프 타이머가 구동되는 동안 중앙처리장치(20)는 에코서비스를 마스크한 후 이스케이프 시퀀스로 수신되는 문자 데이타를 하나의 패킷에 모아 램(110)에 저장하며, 이스케이프 타이머가 종료될때까지 문자 데이타가 수신되지 않으면 이스케이프 시퀀스의 수신을 종료한 것으로 판판하여, 상기 (B3)단계에서 리세트시킨 패드변수 2의 값을 원상태로 복구하고, 상기 (B4)단계에서 해제한 전송 조건을 원위치시키는 동시에 타이머(50)를 제어하여 이스케이프 타이머의 구동을 중지시킨다.Therefore, in the step (B5), it is checked whether the column character inputs to the escape timer driver's drive (within 200 ms). If the data is input within the escape timer driver's driving time, the character string data of the escape sequence is transferred to the RAM 110. The packet is collected and stored, and after restarting the escape timer to receive the next character data, the process returns to step (B1). If the data is not input within the driving time, the RAM sequence 110 is regarded as the end of the input of the escape sequence string character. The stored pad variable "2" is returned to its original position, and the released transfer data condition is restored. That is, in step (B5), the escape timer is driven, and while the escape timer is driven, the central processing unit 20 masks the echo service and collects the character data received in the escape sequence into one packet. If the character data is not received until the escape timer expires, it is determined that the reception of the escape sequence has been terminated, and the value of the pad variable 2 reset in the step (B3) is restored to the original state. At the same time, the transfer condition canceled in step 1 is controlled, and the timer 50 is controlled to stop driving the escape timer.

그러나 상기 (B2)단계에서 이스케이프 캐릭터가 아닐시는 일반 문자 데이타이므로, 중앙처리장치(20)는 (B6)단계에서 패드변수 "2"값의 상태를 검사한다. 이때 상기 (B6)단계에서 패드변수 2값이 세트 상태일시는 (B7)단계에서 해당 비패킷 단말측으로 에코서비스를 수행한다. 이 경우 중앙처리장치(20)는 해당 비패킷 단말측으로 직렬 입출력부(70)를 통해 수신데이타를 재전송하며, 이로 인해 해당 비패킷 단말과 모니터에는 전송한 문자 데아타가 표시된다. 그러나 패드변수 2값이 리세트 상태일시에는 에코서비스를 하지 않는다. 이후 중앙처리장치(20)는 (B8)단계에서 데이타 전송조건인가 검사하는데, 상기한 바와같은 데이타 전송조건이 아니면 (B9)단계로 진행하여 수신 문자 데이타를 램(110)에 패킷형태로 저장한다. 그러나 상기 (B8)단계에서 데이타 전송조건으로 판단되면(B10)단계에서 지금까지 수신하여 패킷형태로 조립한 문자 데이타들을 직렬 입출력부(70)를 통해 패킷망으로 출력하여 데이타 전송 서비스를 한다.However, since the normal character data is not the escape character in the step (B2), the central processing unit 20 checks the state of the pad variable "2" value in the step (B6). At this time, when the pad variable 2 value is set in step (B6), the echo service is performed to the corresponding non-packet terminal in step (B7). In this case, the CPU 20 retransmits the received data through the serial input / output unit 70 to the corresponding non-packet terminal side, and thus the non-packet terminal and the monitor display the transmitted character data. However, when the pad variable 2 value is reset, no echo service is performed. Thereafter, the central processing unit 20 checks whether the data transfer condition is performed in step (B8). If the data transfer condition is not described above, the CPU 20 proceeds to step (B9) and stores the received text data in the RAM 110 in the form of a packet. . However, if it is determined in step (B8) that the data transmission condition (B10) in step (B10) and the character data assembled so far in the form of a packet through the serial input and output unit 70 to output the data transmission service.

상술한 바와같이 패드시스템에서 이스케이프 캐릭터 수신시 이스케이프 시퀀스를 감지하고, 상기 이스케이프 시퀀스를 수신 완료할때까지 에코 마스크 및 데이타 전송을 일시 정지하므로서, 동일 패킷내에 이스케이프 시퀀스의 문자열 데이타를 하나의 패킷에 모아 전송할 수 있는 동시에 송신측 단말로 에코서비스를 마스크시킬수 있어 패드를 이용하는 송수신측의 이스케이프 시퀀스 기능을 보장할 수 있는 이점이 있다.As described above, the pad system detects an escape sequence upon receiving an escape character and pauses echo mask and data transmission until the escape sequence is completed, thereby collecting string data of an escape sequence in one packet. Echo service can be masked to the transmitting terminal at the same time, which can transmit and guarantee the escape sequence function of the transmitting and receiving side using the pad.

Claims (1)

비패킷 단말기로부터 발생되는 문자 데이타를 패킷 형태로 조립하는 패드시스템의 데이타 처리 방법에 있어서, 상기 비패킷 단말기로부터 문자데이타 수신시 이스케이프 캐릭터인가 검사하는 제1과정(B1, B2)과, 상기 제1과정에서 이스케이프 캐릭터일시 에코서비스의 상태를 나타내는 현재의 패드변수를 저장한 후, 패드변수를 리세트하는 제2과정(B3)과, 상기 제2과정 수행후 데이타 전송 조건을 해제하고 이스케이프 시퀀스 수신을 위한 이스케이프 타이머를 구동하는 제3과정(B4)과, 상기 제3과정 수행후 이스케이프 타이머 구동 주기내에 수신되는 이스케이프 시퀀스에 대하여 에코서비스를 중지하는 동시에 하나의 패킷으로 조립하며, 이스케이프 타이머 구동 완료시 이스케이프 시퀀스의 수신 종료로 하여 상기 패드변수 및 전송조건을 복구하고 리턴하는 제4과정(85)과, 상기 제1과정에서 일반 문자 데이타 일시 상기 패드변수의 상태에 따라 세트 상태일시 에코서비스를 수행하며 리세트 상태일시 에코서비스를 수행하지 않는 제5과정(B6, B7)과, 상기 제5과정 수행후 데이타 전송조건의 상태에 따라 수신 문자 데이타를 패킷으로 조립하거나 패킷망으로 조립된 패킷데이타를 전송하고 리턴하는 제6과정(B8-B10)으로 이루어짐을 특징으로 하는 패드시스템의 이스케이프 시퀀스 처리방법.A data processing method of a pad system for assembling text data generated from a non-packet terminal into a packet form, the method comprising: first steps (B1 and B2) of checking whether an escape character is received when receiving text data from the non-packet terminal; In the process, after storing the current pad variable indicating the state of the escape character temporary echo service, the second process (B3) of resetting the pad variable, and after performing the second process, cancels the data transmission condition and receives the escape sequence. The third process (B4) for driving the escape timer for the step, and the escape sequence received within the escape timer driving period after performing the third process, assembling into a single packet at the same time to stop the echo service, escaping when the escape timer is completed Restoring the pad variable and the transfer condition by ending reception of the sequence A fourth process (85), and a fifth process (B6, B7) which performs the set state temporary echo service according to the state of the pad variable at the time of the general character data and does not perform the reset state temporary echo service in the first process. And a sixth process (B8-B10) for assembling the received text data into packets or transmitting and returning the assembled packet data to the packet network according to the state of the data transmission condition after performing the fifth process. How to handle escape sequences in your system.
KR1019880006495A 1988-05-31 1988-05-31 Method for processing escape sequence in packet assembler/disassembler system KR910003245B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019880006495A KR910003245B1 (en) 1988-05-31 1988-05-31 Method for processing escape sequence in packet assembler/disassembler system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019880006495A KR910003245B1 (en) 1988-05-31 1988-05-31 Method for processing escape sequence in packet assembler/disassembler system

Publications (2)

Publication Number Publication Date
KR890017909A KR890017909A (en) 1989-12-18
KR910003245B1 true KR910003245B1 (en) 1991-05-24

Family

ID=19274834

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019880006495A KR910003245B1 (en) 1988-05-31 1988-05-31 Method for processing escape sequence in packet assembler/disassembler system

Country Status (1)

Country Link
KR (1) KR910003245B1 (en)

Also Published As

Publication number Publication date
KR890017909A (en) 1989-12-18

Similar Documents

Publication Publication Date Title
CA1243730A (en) Wireless computer modem
EP0183273A2 (en) Serial interface system flexibly applicable to a one-to-plurality connection
CN107748509B (en) ASI communication slave machine implementation method based on single chip microcomputer transceiving control
US5021777A (en) Mode-selectable communications system
JP2818164B2 (en) Data signal transmission method and apparatus
KR910003245B1 (en) Method for processing escape sequence in packet assembler/disassembler system
US4590924A (en) Endoscope system
KR101794761B1 (en) Digital Data Communication Module and its Data Simulator
JPS59134943A (en) Data communication system
JP2001297016A (en) Instruction execution system
JPH0417455B2 (en)
KR910008445B1 (en) Call release method
JPH0723030A (en) Series data communication equipment
JP2585541B2 (en) Multiple message processing method
KR940005212B1 (en) Telex line control apparatus and controlling method thereof
SU1481791A1 (en) Data transmission and processing simulator
KR970002399B1 (en) State assignment for stable drive of bus arbitration information
JPH0210623B2 (en)
JP2558728B2 (en) Abnormal interrupt processing device
JPS57202150A (en) Reception information checking method
JPH0568071A (en) Data transmission system
JP2910071B2 (en) Communications system
JPH0683186B2 (en) Data communication method
JPS5776621A (en) Data processing system having input and output system
JPS63245094A (en) Remote supervisory and controlling equipment

Legal Events

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

Payment date: 20070409

Year of fee payment: 17

EXPY Expiration of term