KR900006975B1 - Method of detecting data transmission speed in data terminal equipment - Google Patents

Method of detecting data transmission speed in data terminal equipment Download PDF

Info

Publication number
KR900006975B1
KR900006975B1 KR1019870012159A KR870012159A KR900006975B1 KR 900006975 B1 KR900006975 B1 KR 900006975B1 KR 1019870012159 A KR1019870012159 A KR 1019870012159A KR 870012159 A KR870012159 A KR 870012159A KR 900006975 B1 KR900006975 B1 KR 900006975B1
Authority
KR
South Korea
Prior art keywords
data
terminal
modem
transmission speed
port
Prior art date
Application number
KR1019870012159A
Other languages
Korean (ko)
Other versions
KR890007527A (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 KR1019870012159A priority Critical patent/KR900006975B1/en
Publication of KR890007527A publication Critical patent/KR890007527A/en
Application granted granted Critical
Publication of KR900006975B1 publication Critical patent/KR900006975B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code

Abstract

The method for detecting the data transmission speed with some command input comprises steps; (a) initialising data I/O port; (b) transmitting the low width of start bit corresponding to A or a command to the MODEM; (c) determining the transmission speed of the A or a and setting start, data, no parity, and stop bits of the data format to buffer register; (d) checking and transmitting the data bit at serial receiving port; (e) storing the received character and setting the start, data even parity, and stop bits to the buffer resistor; (f) checking high state of the serial receiving port to check T or t; and (g) determining the data pattern for transmission speed corresponding transmission to stored A or a or T or t value.

Description

데이타 전송속도의 자동감지 방법Automatic detection method of data transmission speed

제1도는 종래의 데이타 경로 선택 실시예시도.Figure 1 illustrates a conventional data path selection embodiment.

제2도는 본 발명에 따른 회로도.2 is a circuit diagram according to the present invention.

제3도는 본 발명에 따른 자동보호모드 흐름도3 is an automatic protection mode flow chart according to the present invention.

제4도는 본 발명에 따른 데이타 모드 흐름도4 is a data mode flow chart according to the present invention.

제5도는 본 발명에 따른 A 또는 a문자의 전송데이타 포멧 파형도.5 is a transmission data format waveform diagram of the letter A or a according to the present invention.

제6도는 본 발명에 따른 A,T 또 a,t 코멘드 조합 테이블.6 is an A, T or a, t command combination table according to the present invention.

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

10 : RS-232C콘덱터 20 : 마이콤10: RS-232C Concentrator 20: Micom

30 : 모뎀 40 : DAA30: modem 40: DAA

본 발명은 모뎀(Modem)과 퍼스널컴퓨터(이하 "PC"라 칭함)의 연결에서 데이타 전송시 전송속도 감지방법에 관한 것으로서, 특히 소정 코멘드를 순차적으로 키입력할시 전송속도를 자동적으로 감지할 수 있는 데이타 전송속도의 자동감지 방법에 관한 것이다.The present invention relates to a method for detecting a transmission rate during data transmission in a connection between a modem and a personal computer (hereinafter referred to as a "PC"). In particular, the present invention can automatically detect a transmission speed when a predetermined command is sequentially inputted. The present invention relates to an automatic detection method of a data transmission rate.

종래의 모뎀의 데이타 전송속도의 감지는 시스템을 리세트 한후에 전송속도 모드에 따라 최초로 누를 키를 미리 정해두고, 그 키를 누르면 입력된 키를 해석하여 이에따라 전송속도가 결정되어 감지된다. 이는 마이콤의 소프트웨어에 의해 처리되어 왔었다. 그리고 데이타 경로는 제1도와 같이 2입력 1출력(2/1) 멀티플렉셔(MUX)를 사용하여 데이타 경로를 선택하여 왔었으며, 각 모드는 제1도의(1a)도-(1d)도와 같다. 즉, (1a)도는 자동 보우 모드예이고, (1b)도는 코멘드 모드이며, (1c)도는 체크모드이고, (1d)도는 데이타모드이다.In the conventional modem, the data transmission speed is detected by resetting the system according to the transmission mode after the system is reset, and when the key is pressed, the input key is interpreted and the transmission speed is determined accordingly. This has been handled by Mycom's software. The data path has been selected using a two input one output (2/1) multiplexer (MUX) as shown in FIG. 1, and each mode is the same as (1a)-(1d) in FIG. That is, (1a) is an automatic bow mode example, (1b) is a command mode, (1c) is a check mode, and (1d) is a data mode.

(1a)도의 자동 보우 모드에서 수행해야 할일은 RS-232C큰넥터(CE)와 연결된 단말기(DTE)로부터 전송되어 온 데이타 비트를 수신단(Rx)을 통해 단말기(DTE)로 되돌리면서 데이타 전송속도를 감지한다.In the auto bow mode of (1a), the data bit transmitted from the terminal (DTE) connected to the RS-232C large connector (CE) is returned to the terminal (DTE) through the receiving terminal (Rx). Detect.

(1b)도의 코멘드 모드는 마이콤(μ-com)에서 RS-232C콘넥터(CE)를 통해 단말기(DTE)로 들어온 문자를 다시 RS-232C큰덱터(CE)의 송신단(Tx)을 마이콤으로 통해 되돌리면서 단말기(DTE)에서는 상기 문자 조합에 의한 명령을 수행하고 응답을 내보낸다.The command mode of (1b) returns the characters entered from the microcomputer (μ-com) through the RS-232C connector (CE) to the terminal (DTE) and the transmitter (Tx) of the RS-232C large decker (CE) to the microcomputer. In the meantime, the terminal DTE performs the command based on the character combination and sends a response.

(1c)도의 체크 모드에서는 모뎀MODEM)이 상대편 모뎀(MODEM)과 연결을 시도할 때 수신한 수신데이타(RxD)의 상태를 감지하는데 사용되며, 마이콤의 입력포트(C7)을 통해 수신데이타(RxD)신호를 감지하고 있다.In the check mode of (1c), the modem MODEM is used to detect the state of the received data (RxD) received when the modem attempts to connect with the other modem (MODEM), and the receive data (RxD) through the input port C7 of the microcomputer. The signal is detected.

(1d)의 데이타 모드는 단말기(DTE) 또는 마이콤으로부터 보내진 데이타를 모뎀(MODEM)으로 보냄과 동시에 그 데이타를 마이콤에서 감시하고, 또 모뎀(MODEM)이 수신한 데이타를 단말기(DTE) 또는 마이콤으로 보낸다. 여기서 마이콤이 모뎀(MODEM)으로 전송하는 데이타를 감시하는 이유는 사용자가 데이타모드에서 코멘드 모드로 전환하고자 할때 이를 체크하여 수행하기 위한 것이며, 마이콤이 모뎀(MODEM)으로부터 수신한 데이타를 감시하는 이유는 수신한 데이타가 소정시간 이상 계속 논리 "0"인가를 체크하기위한 것이다. 만약, 모뎀(MODEM)이 긴 영역 디스 컨넥트(Long Space Disconnect)가 설정되어 있어 소정시간 이상 논리 "0"를 받으면 모뎀(MODEM)의 연결은 끊어진다.The data mode of (1d) sends data sent from the terminal (DTE) or the microcomputer to the modem and simultaneously monitors the data from the microcomputer and monitors the data received by the modem to the terminal (DTE) or the microcomputer. send. Here, the reason why the microcomputer monitors the data transmitted to the modem is to check and execute when the user wants to switch from the data mode to the command mode. The reason the microcomputer monitors the data received from the modem. Is for checking whether the received data is a logic " 0 " for more than a predetermined time. If the modem has a long space disconnect and a logic “0” is received for a predetermined time or more, the modem is disconnected.

전기한 바와 같이 종래는 항상 시스템을 리세트한 후에야 전송속도를 알 수 있으므로 번거로움이 있었으며, 데이타 경로를 선택할 때 별개의 다수 멀티플렉셔를 사용해야 하므로 시스템 구성 자체가 복잡해지는문제점이 있었다.As described above, there is a problem in that the transmission speed is always known after resetting the system, and the system configuration itself is complicated because a separate multiplexer must be used when selecting a data path.

따라서 본 발명의 목적은 데이타의 전송속도를 소정 코멘드 입력과 동시에 자동으로 감지하는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for automatically detecting a data transmission speed simultaneously with a predetermined command input.

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

제2도는 본 발명에 따른 회로도로서, 단말기(도시하지 않았음)과 연결되는 RS-232C콘넥터(10)와, 상기 RS-232C콘넥터(10)와 접속되어 RS-232C 방식의 전송레벨에 맞도록 ±12V 전압으로 수신데이타를 라인 리시빙(Receiving)하는 낸드게이트(21)와, 상기 RS-232C콘넥터(10)와 접속되어 RS-232C 방식의 레벨을 TTL레벨(5V)로 송신데이타를 라인 드라이빙(Driving)하는 인버터(22)와, 상기 낸드게이트(21)와 인버터(22)를 통해 명령어 및 송수신되는 정보를 받아 프로그램에 의해 미리 분석하여 데이타 경로 선택을 위한 제어신호를 발생하고 기설정된 테이블에서 비교하여 전송속도를 자동으로 결징하는 마이콤(20)과, 상기마이콤(20)으로부터 설정된 전송속도에 따라 송신할 디지탈 정보를 변조하여 아나로그 신호로 출력하고 수신 신호를 복조하여 디지탈 신호로 상기 마이콤(20)에 입력되어 처리되도륵 디지탈 신호와 아아나로그 신호를 변복조하는 모뎀(30)과, 공중선(Co)과 연결되어 상기 모뎀(30)과의 데이타 전송에 매칭을 이루는 DAA(40)로 구성된다.2 is a circuit diagram according to the present invention, which is connected to a RS-232C connector 10 connected to a terminal (not shown) and the RS-232C connector 10 to match a transmission level of an RS-232C method. NAND gate 21 for receiving line receiving data at a voltage of ± 12 V, and the RS-232C connector 10 connected to the NAND gate 21 to transmit TTL level (5V). The controller 22 receives the command and the information transmitted / received through the inverter 22 and the NAND gate 21 and the inverter 22, and analyzes in advance by a program to generate a control signal for selecting a data path, and then, in the preset table. In comparison, the microcomputer 20 automatically determines the transmission speed, and modulates the digital information to be transmitted according to the transmission speed set by the microcom 20, outputs the analog signal, demodulates the received signal, and converts the received signal into a digital signal. 20) mouth on Is doedo reuk treatment is associated with a digital signal and Alas and modem 30 to the modem logs the signal, the antenna (Co) comprises a DAA (40) forming the matching of the data transmission and the modem 30.

제3도는 본 발명에 따른 사동 보오(Auto Baud) 모드 흐름도이고, 제4도는 본 발명에 따른 데이타 모드 흐름도이다.3 is a flowchart of an auto baud mode according to the present invention, and FIG. 4 is a flowchart of a data mode according to the present invention.

제5도는 본 발명에 따른 "A","a" 문자의 데이타 전송 포멧 파형도이고, 제6도는 본 발명에 따른 A,T또는 a,t코멘드 조합 테이블도이다5 is a waveform diagram of a data transmission format of "A" and "a" characters according to the present invention, and FIG. 6 is a table of A, T or a, t command combinations according to the present invention.

따라서 본 발명의 구체적 일실시예를 재2-6도를 참조하여 상세히 설명하면, 단말기 또는 퍼스널컴퓨터의 출력이 RS-232C콘넥터(10)를 통해 라인 드라이버인 인버터(22)를 통하면 5V에 의해 구동되어 TTL레벨신호로 변환되고, 상기 데이타 마이콤(10)의 직렬 수신포트(A5)로 입력되어 이 신호는 마이콤(20)의 프로그램 처리에 의한 데이타 경로선택에 따라 마이콤(20)의 출력포트(B0)나 직렬 전송포트(B3)로 출력된다.Therefore, a specific embodiment of the present invention will be described in detail with reference to FIGS. 2-6 again. When the output of the terminal or personal computer is passed through the inverter 22 which is a line driver through the RS-232C connector 10, It is driven and converted into a TTL level signal, which is input to the serial receiving port A5 of the data micom 10, and this signal is output to the output port of the microcomputer 20 according to the data path selection by the program processing of the microcomputer 20. Output via B0) or serial transfer port (B3).

상기에서 출력만(B0)으로 출력원 신호는 모뎀(30)에 의해서 변조되어 모뎀(30)의 전송만(TxD)에 입력되고, 그러고 직렬 전송 포트(B3)로 출력된 신호는 라인 리시버인 낸드게이트(21)를 통해 RS-232C콘넥터(l0)로 입력된다. 한편 모뎀(30)의 수신단(RxA)으로는 DAA(40)로부터 받은 신호를 모뎀(30)에서 변조하여 출력단(RxD)을 통해 출력한다. 상기 모뎀(30)의 출력단(RxD)으로,부터 출력원 신호를 마이콤(20)의 입출력 포트(A4)로 받아 제어하여 직렬정송 포트(B3)를 통해 낸드게이트(2l)를 거치면 RS-232C레벨(±12V)이 되어 RS-232C콘넥터(10)로 입력된다.The output source signal is modulated by the modem 30 by the output only (B0) and input to the transmission (TxD) of the modem 30 only, and the signal output to the serial transmission port B3 is NAND, which is a line receiver. It is input to the RS-232C connector 10 through the gate 21. On the other hand, the reception terminal RxA of the modem 30 modulates the signal received from the DAA 40 by the modem 30 and outputs it through the output terminal RxD. The output terminal RxD of the modem 30 receives the output source signal from the input / output port A4 of the microcomputer 20 and controls the RS-232C level through the NAND gate 2l through the serial transmission port B3. It becomes (± 12V) and is input to RS-232C connector (10).

상기 RS-232C콘넥터(10)로부터 받은 신호를 단말기 및 퍼스널컴퓨터로 보내어 진다.The signal received from the RS-232C connector 10 is sent to a terminal and a personal computer.

데이타 전송속도 자동 감지를 제3도를 참조하여 구체적으로 살펴보면 다음과 같다. 시스템의 전원을 온함과 동시에 (3a)과정에서 마이콤(20)은 입출력 포트를 초기화시킨다. 그리고 단말기에서 명령어 "A"나"a"를 키입력하면 RS-232C큰덱더(10)와 인버터(22)를 통해 TTL레벨로 드라이빙되어 마이콤(20)이 직렬수신 포트(A5)로 입럭된다. 이때 입력되는 파형 신호는 제5도와 같이 소정의 폭의 마크(MARK)와 스페이스(SPACE)로 직렬 수신 포트(A5)로 입력되면 마이콤(20)은 (3b)과정에서 체크하여 "로우"인가를 검색한다. 여기서 "로우" 상태는 제5도의 데이타 포멧에서 스타트 비트 "로우" 상태를 체크하는 것으로 (3b)과정에서 "로우"일때 (3c)과정에서 직렬 전송 포트(B3)를 "로우"로 하고,(3d)과정에서 스타트 비트의 "로우" 폭을 측정하기 위해 마이콤(20) 내부 카운터를 l증가시킨다. 상기 (3d)과정에서 "로우"폭을 카운팅하여 제5도에서 스타트 비트가 끝나는 "하이" 상태가 될때 직렬수신포트(A5)가 (3e)과정에서 "하이"인가를체크한다.The automatic detection of data rate will be described in detail with reference to FIG. At the same time the system is powered on, the microcomputer 20 initializes the input / output port in step 3a. When the terminal inputs the command "A" or "a" in the terminal, the microcomputer 20 is driven to the TTL level through the RS-232C large decker 10 and the inverter 22 and the microcomputer 20 is input to the serial receiving port A5. At this time, if the input waveform signal is input to the serial receiving port A5 by the mark MARK and the space SPACE having a predetermined width as shown in FIG. 5, the microcomputer 20 checks in step 3b to determine whether the signal is "low". Search. Here, the "low" state checks the start bit "low" state in the data format of FIG. 5, when it is "low" in step (3b), the serial transmission port B3 is set to "low" in step (3c), ( In step 3d), the internal counter of the microcomputer 20 is increased to measure the "low" width of the start bit. When the "low" width is counted in step (3d), and the "high" state is reached in the fifth bit, the serial reception port A5 checks whether "high" in step (3e).

상기 (3e)과정에서 "하이"일때 (3f)과정에서 마이콤(20)의 직렬 전송 포트(B3)로 "하이"를 출력하여 낸드게이트(21)에서 TTL레벨을 ±12의 RS-232C레벨로 변환한 후 RS-232C콘넥터(10)를 통해 단말기로 송출한다. 이어서 (39)과정에서 상기 카운트 값을 기준테이블 값과 비교하여 단말기는 전송속도를 감지할 수있으며, 이에 해망하는 스타트 비트로 전송속도가 결정되면 스타트 비트 다음의 비트 패턴이 1000…가 되므로 "1"다음의 "0"를 새로운 스타트 비트로 간주하면 이하의 전체 비트는 1스타트 비트, 6데이타 비트, 노패리티(No paRity), 1스톱 비트 (1Stop Bit)의 값을 마이콤(20)의 내부 UART(동기/비동기 송수신기)의 레지스터의 버퍼에 세팅한다. 그리고 (3h) 과정에서 제5도와 같이 데이타 비트 "로우" 폭을 체크하여 "로우"일때 (3i)과정에서 직렬 전송 포트(B3)로 "로우"를 송출하여 RS-232C콘넥터(10)를 통해 단말기에서 인식하도록 하고, 상기 (3h)과정에서 "로우"가 아닐때 "하이" 신호를 (3j)과정에서 직렬 전송 포트(B3)를 통해 송출하여 단말기에서 인식하도록 한후(3k)과정에서 마이콤(30) "A"에 대한 1문자가 모두 수신했는가를 UART(동기/비동기 송수신기)의 스테이터스(Status) 레지스터로부터 읽어 체크한다.When "high" in the process (3e) outputs "high" to the serial transmission port (B3) of the microcomputer 20 in the process (3f) to the TTL level at the NAND gate 21 to the RS-232C level of ± 12 After conversion, it is sent to the terminal through the RS-232C connector (10). Subsequently, in step 39, the terminal may detect the transmission speed by comparing the count value with a reference table value. When the transmission speed is determined as a desired start bit, the bit pattern following the start bit is 1000... If "0" after "1" is regarded as a new start bit, the following all bits are set to 1 start bit, 6 data bits, no paRity, and 1 stop bit. To the buffer of the register of the internal UART (synchronous / asynchronous transceiver). In step 3h, when the data bit " low " width is checked as shown in FIG. 5, when it is " low ", " low " is sent to the serial transmission port B3 in step 3i and the RS-232C connector 10 When the terminal recognizes the signal and transmits the signal "high" when the signal is not "low" in the process (3h) through the serial transmission port B3 in the process (3j), the terminal recognizes the signal by the microcom (3k) process. 30) Check if all characters of “A” have been received from the status register of the UART (synchronous / asynchronous transceiver).

여기서 1문자가 모두 수신했을때(31)과정에서 입력한 1문자가 "A"인지 또는 "a"인지를 헥스데이타로(41H)와 (61H)로부터 체크한다. 여기서 41H일때 "A"이고, "61H"일때 "a"임을 판정하여 소정 메모리 영역에(3m)과정에서 "A" 또는 "a"를 저장한다. 상기 마이콤(20) 내부의 UART(동기/비동기 송수신기)를 사용하면 받아들인 데이타에 따라서 읽어들인 값이 다르게 되므로 이 값을 마이콤(20) 내부의 소정 램(RAM)에 저장해두고,(3n)과정에서 다시 UART를 1스타트 비트,7데이타 비트, 이븐(Even) 패리티비트, 1스톱 비트로 저장해 두고 다음 문자인 "t" 또는 "T"를 읽어들이는데, (3o)과정에서 마이콤(20) 직렬 수신 포트(A5)가 "하이"인가를 체크하여 "하이"일때 (3p)과정에서 직렬 전송 포트(B3)로 "하이"를 출력하여 RS-232C콘넥터(10)를 통해 단말기 측으로 송신하고, 상기(3o)과정에서 직렬 수신 포트(A5)가 "로우"일때 직렬 전송 포트(B3)로 "로우"를 출력한 후(3R)과정에서 1문자를 모두 받았는가를 체크하여 1문자를 모두 받았을때 (3s)과정에서 상기 받은 데이타가 "T" 또는 "t"인지를 체크하여 아닐때는 상기 (3b)이전 과정으로 궤환되지단 "T" 또는 "t"일때 제6도의 테이블과 같이 이전의 "A" 또는 "a"문자와 조합을 이룬다.Here, when one character is received, it is checked from hex data 41H and 61H whether one character input in the process (31) is "A" or "a". Here, it is determined that "A" is 41H and "a" is "61H", and "A" or "a" is stored in the predetermined memory area (3m). When the UART (synchronous / asynchronous transceiver) inside the microcomputer 20 is used, the read value is different according to the received data, so the value is stored in a predetermined RAM in the microcomputer 20, and (3n). Stores UART as 1 start bit, 7 data bit, Even parity bit, 1 stop bit, and reads the next character "t" or "T". Check whether the port A5 is "high", and when it is "high", output "high" to the serial transmission port B3 in the process (3p) and transmit it to the terminal through the RS-232C connector 10, and ( When the serial receiving port (A5) is "low" in the process 3o) After outputting "low" to the serial transmission port (B3) (3R), check whether all 1 characters are received. If it is not checked by checking whether the received data is "T" or "t" in step 3s), return to the previous step (3b). In the case of "T" or "t", it is combined with the previous letter "A" or "a" as shown in the table of FIG.

예를 들어 첫번째 값이 30H이고 패리티 에러이면 단말기 데이타 전송 포멧을 1스타트 비트, 7데이타 비트, 오드(odd) 패리티 비트,1스톱 비트가 된다. 상기한 바와 같이 코멘드 "AT"가 입력하게 되면 전송속도를 자동으로 감지할 수 있고, 종래 제l도에서 멀티플렉셔(MUX)에서 복잡하게 수행되었던 코멘드 모드는 제3도에서 (3a)과정을 제외한 (3b)과정부터 수행하면 되며, 체크 모드는 마이콤(20)의 입출력포트(A4)의 상태만 감지하면 된다. 데이타 모드는 제4도와 같이 수행되는 것으로 마이콤(20)이 (4a)과정에서 직렬수신 포트(A5)가 "로우"인가를 체크하여 "로우"일때 출력 포트(B0)로 "로우"를 출력하며,(4a)과정에서"하이"일때 (4c)과정에서 출력 포트(B0)로 "하이"를 출력한다. 상기 (4b,4c)과정에 따라 (4d)과정에서 한문자를 받았는가를 체크하여 한문자를 다 받았을때 (4e)과정에서 코멘드 모드로 들어가야 하는지를 체크하여 코멘드 모드일때 상기 제3도의 (3b)과정으로 들어가고 상기 (4d,4e)과정에서 한문자를 받지 않았거나코멘드 모드로 들어가지 않았을시 (4f)과정에서 마이콤(20)의 입출력 포트(A4)를 감시하여 "하이"인가를체크한다.For example, if the first value is 30H and a parity error, the terminal data transmission format is 1 start bit, 7 data bits, odd parity bit, and 1 stop bit. As described above, when the command "AT" is inputted, the transmission speed can be automatically detected, and the command mode, which has been complicatedly performed in the multiplexer (MUX) in FIG. 1, is not shown in FIG. The process may be performed from (3b), and the check mode only needs to detect the state of the input / output port A4 of the microcomputer 20. The data mode is performed as shown in FIG. 4 and the microcomputer 20 outputs "low" to the output port B0 when the serial receiving port A5 is "low" in the process (4a). When "high" in (4a), "high" is output to the output port B0 in (4c). According to the process (4b, 4c), check whether one character is received in the process (4d) and check whether it should enter the command mode in the process (4e). When entering and not receiving a single character in the above (4d, 4e) process or entering the command mode (4f), the input and output port (A4) of the microcomputer 20 is monitored to check "high".

상기 입출력 포트(A4) "하이"일때 (49)과정에서 직렬 전송 포트(B3)로 "하이"를 출력하고, "로우"일때(4h)과정에서 "로우"를 출력하여 낸드게이트(21)에서 TTL로 변환한 후 RS-232C콘넥터(10)를 통해 단말기로 출력한다. 상기 (4h)과정으로 입출력 포트(A4)가 1.6이상 계속 "로우"일때 (4i)과정에서 이를 체크하여 모뎀(30)를 끊고 1.6초 이내이면 상기 (4a)과정으로 궤환된다. 그리고 제2도에서 RS-232C콘넥터(10)와, 라인 리시버 및 드라이버인 인버터(22)와 낸드게이트(21) 구성은 300,1200,2400bps의 외부 접속 형태모뎀의 구성이지만 빌트인 형 모뎀(Built-in Type Modem)의 경우는 UART/BRG을 원칩으로 한 통신콘트롤러(예 "i8250")로 대체할 수 있다·When the input / output port A4 is “high”, the NAND gate 21 outputs “high” to the serial transmission port B3 in step 49, and outputs “low” in the process of “low” (4h). After converting to TTL and output to the terminal through the RS-232C connector (10). If the input / output port A4 is " low " for more than 1.6 in step (4h), it checks this in step (4i), disconnects the modem 30, and returns to step (4a) if it is within 1.6 seconds. In FIG. 2, the RS-232C connector 10, the line receiver and driver inverter 22, and the NAND gate 21 are 300, 1200, 2400 bps external connection type modems, but the built-in modem (Built- in Type Modem) can be replaced by a communication controller (eg "i8250") with one chip UART / BRG.

상술한 바와 같이 전송속도를 감지하기 위해서 시스템을 리세트 않고도 "A","T" 또는 "a","t"의 두 키이만 순서대로 입력하면 자동으로 전송속도와 패리티를 알 수 있는 잇점이 있다.As described above, if only two keys of "A", "T" or "a", "t" are input in order without resetting the system to detect the transmission speed, the transmission speed and parity can be known automatically. have.

Claims (1)

모뎀 단말기의 데이타 전송속도 자동감지 방법에 있어서, 상기 모뎀으로 데이타를 전송하기 위한 데이타 입출력 포트를 초기화하는 제1단계(3a)와, 상기 제1단계(3a)로부터 상기 입출력포트를 읽어 A 또는 a코멘드에 대한 스타트 비트의 "로우"폭을 체크 카운팅하여 상기 단말기로 전송하는 제2단계(3b-3d)와, 상기 제2단계(3b-3d)의 "로우"의 스타트 비트가 끝나는 시점인 "하이"상태를 체크하여 상기 단말기로 전송하고 상기 카운팅 값으로 A 또는 a에 대한 전송속도를 결정하며 상기 카운팅한 A 또는 a에 대한 데이타포멧의 1스타트, 6데이타, 노패리트, 1스톱 비트를 동기/비동기 송수신 버퍼 레지스터에 세팅하는 제3단계(3e-3g)와. 상기 제3단계(3e-3g)로부터 상기 코멘드를 읽어들이는 직렬수신포트에서 데이타 비트의 상태를 체크하여 상기 단말기로 전송하고 1문자를 모두 수신했는가를 체크하는 제4단계(3h-3k)와, 상기 제4단계(3h-3k)로부터 1문자를 모두 수신했을때 "A" 또는 "a"인가를 체크하여 저장하고 다시 동기/비동기송수신 버퍼 레지스터에 1스타드, 7데이타, 이븐 패리티 1스톱 비트를 세팅하는 제5단계(31-3m)와, 상기 제5단계(31-3m)로부터 T 또는 t를 인식하기 위해 직렬 수신 입력 포트의 "하이" 상태를 체크하여 단말기로 전송하며 1문자 모두 받았는가를 체크하는 제6단계(3o-3R)와, 상기 제6단계(3o-3R)로부터 T 또는 t인가를 체크하는 제7단계(3s)와, 상기 제5단계(31-3m)에서 저장된 "A" 또는 "a"값과 제7단계(3s)의 "T" 또는 "t"문자의 값으로부터 패리티 유무로 해당 전송속도의 데이타 패턴을 결정하는 제8단계(3t)로이루어짐을 특징으로 하는 데이타 전송속도의 자동감지 방법.A method for automatically detecting a data transmission speed of a modem terminal, comprising: a first step (3a) of initializing a data input / output port for transmitting data to the modem, and reading the input / output port from the first step (3a) or A or a The second time (3b-3d) of checking and counting the "low" width of the start bit for the command, and the "start" of the "low" of the second step (3b-3d) end " Checks the status "high" and transmits to the terminal and determines the transmission rate for A or a by the counting value and synchronizes 1 start, 6 data, no parity, and 1 stop bit of the data format for the counted A or a. Step 3 (3e-3g) setting in the asynchronous transmit / receive buffer register. A fourth step (3h-3k) of checking the status of the data bit in the serial receiving port reading the command from the third step (3e-3g) and transmitting it to the terminal and checking whether all characters have been received; When one character is received from the fourth step (3h-3k), it checks and stores whether it is "A" or "a", and again, 1 start, 7 data, even parity 1 stop bit in the synchronous / asynchronous transmission / reception buffer register. In order to recognize the T or t from the fifth step (31-3m) and the fifth step (31-3m) to set the "high" state of the serial receiving input port is sent to the terminal and received one character Is stored in the sixth step (3o-3R) to check the value, the seventh step (3s) to check whether T or t from the sixth step (3o-3R), and the fifth step (31-3m) Data pattern of the corresponding baud rate with or without parity from the value of "A" or "a" and the value of the letter "T" or "t" in the seventh step (3s) How the automatic sensing of the data transmission rate, characterized by made of an step 8 (3t) of determining.
KR1019870012159A 1987-10-31 1987-10-31 Method of detecting data transmission speed in data terminal equipment KR900006975B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019870012159A KR900006975B1 (en) 1987-10-31 1987-10-31 Method of detecting data transmission speed in data terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019870012159A KR900006975B1 (en) 1987-10-31 1987-10-31 Method of detecting data transmission speed in data terminal equipment

Publications (2)

Publication Number Publication Date
KR890007527A KR890007527A (en) 1989-06-20
KR900006975B1 true KR900006975B1 (en) 1990-09-25

Family

ID=19265631

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019870012159A KR900006975B1 (en) 1987-10-31 1987-10-31 Method of detecting data transmission speed in data terminal equipment

Country Status (1)

Country Link
KR (1) KR900006975B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100438980B1 (en) * 2001-05-02 2004-07-03 엘지산전 주식회사 Automatic baud rate detection apparatus and method of asynchronous communication

Also Published As

Publication number Publication date
KR890007527A (en) 1989-06-20

Similar Documents

Publication Publication Date Title
CA1287905C (en) Method and apparatus for detecting a rate of data transmission
US6157689A (en) Automatic speed detection for asynchronous serial communications
US5159684A (en) Data communication interface integrated circuit with data-echoing and non-echoing communication modes
CN108011692A (en) A kind of data communications method for microcontroller
US4891783A (en) Data terminal device
US5021777A (en) Mode-selectable communications system
US7720138B2 (en) Communication system
KR900006975B1 (en) Method of detecting data transmission speed in data terminal equipment
US7142592B2 (en) Determining speed of a digital signal in a serial transmission line
US5748887A (en) Inter-processor asynchronous serial communication transmission/reception apparatus using each other's memories
CN110989451B (en) Detection control method based on multi-point touch and remote control shared detection control system
JPS63257836A (en) Data transmission system
JPH03500956A (en) Message start identification method in process control networks
JPH07264263A (en) Serial communication interface device
JP2523874B2 (en) Asynchronous serial data transmission device
JP3329229B2 (en) AT command receiving method
JPH05260563A (en) Centralized automatic metering device
KR100778876B1 (en) Device for Detecting Auto baudrate and Method for the same
JP2623816B2 (en) Signal transmission method
JP2924209B2 (en) Data transfer device and data transfer method
KR0167910B1 (en) Remote data service unit controlling apparatus
JP2776355B2 (en) Keyboard interface circuit
JPH11355386A (en) Serial interface and modem using it
JP2838325B2 (en) Automatic data bit length discriminator
JPS6141013B2 (en)

Legal Events

Date Code Title Description
A201 Request for examination
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: 20020826

Year of fee payment: 13

LAPS Lapse due to unpaid annual fee