KR0154606B1 - Communication line data analysis - Google Patents
Communication line data analysisInfo
- Publication number
- KR0154606B1 KR0154606B1 KR1019950014230A KR19950014230A KR0154606B1 KR 0154606 B1 KR0154606 B1 KR 0154606B1 KR 1019950014230 A KR1019950014230 A KR 1019950014230A KR 19950014230 A KR19950014230 A KR 19950014230A KR 0154606 B1 KR0154606 B1 KR 0154606B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- communication
- communication device
- microprocessor
- transmitted
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/06—Generation of reports
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/24—Handling requests for interconnection or transfer for access to input/output bus using interrupt
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
- G06F13/4286—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0002—Serial port, e.g. RS232C
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
- Communication Control (AREA)
Abstract
본 발명은 직렬통신선로상에서 전송되는 모든 데이터 및 제어라인의 상태를 순차적으로 검출 및 저장한 다음 사용자의 선택에 따라 표시장치에 표시해 줄 수 있도록 된 직렬통신장치의 통신선로 데이터분석장치에 관한 것으로, RS-232 통신을 하고 있는 2개의 통신장치로 구성된 시스템에 있어 통신장치간에 데이터 송수신과 함께 이를 마이크로프로세서의 제어에 따라 메모리에 저장시켜 놓은 다음 필요할 때 표시장치로 출력시킬 수 있도록 구성되어 있다.The present invention relates to a communication line data analysis device of a serial communication device which is capable of sequentially detecting and storing the state of all data and control lines transmitted on a serial communication line, and then displaying them on a display device according to a user's selection. In a system consisting of two communication devices performing RS-232 communication, data is transmitted and received between communication devices, and stored in memory under the control of a microprocessor, and then output to the display device when necessary.
따라서 통신프로그램의 오류에 의해 올바른 데이터 전송이 이루어지지 않을 경우 통신선로상에서 전송되었던 데이터와 그 타이밍을 분석하여 데이터 전송상의 문제점을 해결할 수 있는 효과가 있다.Therefore, when the correct data transmission is not made due to an error of the communication program, it is possible to solve the data transmission problem by analyzing the data and the timing of the data transmitted on the communication line.
Description
제1도는 본 발명의 구성도.1 is a block diagram of the present invention.
제2도는 본 발명에 따른 흐름도이다.2 is a flow chart according to the present invention.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
1,2 : 통신장치 3,4 : 데이터 송수신선로1,2: communication device 3,4: data transmission / reception line
5∼8 : 제어신호 송수신선로 9,10 : RS-232 수신기5 to 8: control signal transmission line 9,10: RS-232 receiver
11 : 마이크로프로세서 12 : 입력포트11: microprocessor 12: input port
13 : 메모리 14 : 키보드13: memory 14: keyboard
15 : 표시장치15: display device
본 발명은 직렬통신선로상에서 전송되는 모든 데이터 및 제어라인의 상태를 순차적으로 검출 및 저장한 다음 사용자의 선택에 따라 표시장치에 표시해 줄 수 있도록 된 직렬통신장치의 통신선로 데이터분석장치에 관한 것이다.The present invention relates to a communication line data analysis device of a serial communication device which is capable of sequentially detecting and storing the state of all data and control lines transmitted on a serial communication line, and then displaying them on a display device according to a user's selection.
통상 CCITT의 권고에 따라 미국의 EIA(전자산업협의회)가 정한 규격인 RS-232 통신을 하고 있는 2개의 장치, 예컨대 컴퓨터와 컴퓨터 또는 컴퓨터와 계측장비로 구성된 통신시스템에 있어 상호간에 직렬로 데이터전송을 하고 있다.Serial transmission of data between two devices in a communication system composed of two devices, such as a computer and a computer, or a computer and a measuring instrument, which performs RS-232 communication, which is usually a standard set by the EIA of the United States in accordance with CCITT's recommendation. Doing
그러나 통신프로그램의 오류에 의하여 올바른 데이터 전송이 이루어지지 않을 경우 사용자가 이를 알지 못하게 되면 그릇된 정보에 따라 파생되는 여러 가지 문제가 발생될 수 있으나 종래에는 단순히 송신장치와 수신장치간에 제어신호에 따라 데이터를 주고받는 전송동작만 이루어지는 문제점이 있었다.However, if the correct data transmission is not made due to an error of the communication program, if the user does not know this, various problems may be derived depending on the wrong information. There was a problem that only the sending and receiving operations.
본 발명은 상기한 문제점을 해결하기 위하여 발명한 것으로, 통신선로상에서 전송동작이 이루어질 때 두 통신장치간에 전송동작을 수행함과 함께 전송되는 데이터와 그 시간을 순차적으로 검출하여 저장하여 놓고 필요한 경우에는 저장시켜 놓았던 데이터와 시간을 출력시켜 분석하므로써 전송도중 발생되었던 오류를 찾아낼 수 있고 그에 따라 오류원인을 해결하는데 도움을 줄 수 있도록 된 직렬통신장치의 통신선로 데이터분석장치를 제공하고자 함에 발명의 목적이 있다.The present invention has been invented to solve the above problems, and when the transmission operation is performed on the communication line, while performing the transmission operation between the two communication devices, the data and the time to be transmitted are sequentially detected and stored and stored if necessary The purpose of the present invention is to provide a communication line data analysis device of a serial communication device that can find out errors that occurred during transmission by outputting and analyzing the data and time that have been set up, and thus help to solve the cause of the error. have.
이하 본 발명의 구성 및 작용효과를 예시도면에 의거하여 상세히 설명하면 다음과 같다.Hereinafter, the configuration and operation of the present invention will be described in detail with reference to the accompanying drawings.
본 발명은 제1통신장치(1)와 제2통신장치(2)간에 데이터 송수신선로(3)(4)와 제어신호 송수신선로(5∼8)에 의해 연결된 통신시스템에 있어서, 상기 데이터 송수신선로(3)(4)에서 발생되는 데이터 신호는 RS-232 수신기(9)(10)를 매개로 하여 마이크로프로세서(11)의 데이터 및 어드레스 단자(D/A)와 인터럽트단자(INT1)(INT2)에 인가되도록 연결되고 상기 제어신호 송수신선로(5∼8)에서 전송되는 제어신호는 입력포트(12)를 매개하여 마이크로프로세서(11)의 데이터 및 어드레스 단자(D/A)에 인가되도록 연결됨과 더불어 마이크로프로세서(11)의 제어에 따라 기억되도록 메모리(13)가 연결되는 한편, 상기 메모리(13)에 저장된 데이터는 키보드(14)의 조작에 의한 마이크로프로세서(11)의 제어에 따라 표시장치(15)로 출력되도록 연결된 구조로 되어 있다.The present invention relates to a communication system connected between a first communication device (1) and a second communication device (2) by a data transmission / reception line (3) (4) and a control signal transmission / reception line (5 to 8). (3) The data signals generated in (4) are transmitted via the RS-232 receivers (9) and (10) through the data and address terminals (D / A) and the interrupt terminals (INT 1 ) of the microprocessor (11). 2 ) is connected to be applied to the control signal transmission and reception lines (5 to 8) transmitted to the data and address terminal (D / A) of the microprocessor 11 via the input port (12). In addition, the memory 13 is connected to be stored under the control of the microprocessor 11, while the data stored in the memory 13 is displayed under the control of the microprocessor 11 by the operation of the keyboard 14 It is structured so as to be output to (15).
미설명 부호16은 데이터 및 어드레스버스를 나타낸다.Reference numeral 16 denotes a data and address bus.
제1도는 본 발명의 구성도를 나타낸 것이다.1 is a block diagram of the present invention.
제1, 제2통신장치(1)(2)는 도시되지 않은 컴퓨터 또는 계측장비 등에 설치되어 RS-232C규격에 따른 직렬데이터 전송시 입출력장치로서 사용되는 것으로, 제1통신장치(1)의 데이터 출력단(TX)은 제2통신장치(2)의 데이터 수신단(RX)에 연결되고, 제2통신장치(2)의 데이터 출력단(TX)은 제1통신장치(1)의 데이터 수신단(RX)에 연결되어 각 통신장치(1)(2)간에 데이터 송수신동작이 이루어지되 일측의 송신동작이 이루어지면 타측의 통신장치는 그 송신동작이 종료될 때까지 수신동작만 수행하도록 되어 있는 것이다. 그리고 제어신호 출력단(RTS)은 데이터를 전송할 준비가 되어 있음을 타측의 통신장치에 알려주는 신호가 출력되는 단자이다. 제어신호수신단(CTS)은 사용자 응용프로그램의 요청에 의해 터미날 응용프로그램에 의하여 데이터 전송이 이루어지게 되는데, 이때 터미날 응용프로그램은 모뎀과의 통신회선을 전송모드로 설정하여야 하고, 이를 위하여 터미날 응용프로그램은 상기 제어신호 단자(RTS)가 셋트되도록 인터럽트서비스루틴에게 모뎀제어 호출을 하게 할 때 터미날 응용프로그램은 통신장치가 송신할 준비를 다 갖추었다는 표시로서 응답하는 송신준비완료신호를 타측의 통신장치로부터 수신하는 단자이다. 또한 제어신호수신단(DTR)은 통신장치가 송수신이 가능한 상태로 되어 있음을 알리는 제어신호 즉 데이터를 전송할 준비가 되어 있다는 것을 알리는 제어신호가 타측의 통신장치로 출력되는 단자이다. 그리고 제어신호수신단(DSR)은 통신장치가 동작가능상태에 있어서 제어신호를 주고받을 준비가 되어 있다는 것을 알리는 신호가 출력되는 단자이다.The first and second communication devices (1) and (2) are installed in a computer or measuring equipment (not shown) and used as input / output devices for serial data transmission in accordance with the RS-232C standard, and the data of the first communication device (1). The output terminal TX is connected to the data receiving terminal RX of the second communication device 2, and the data output terminal TX of the second communication device 2 is connected to the data receiving terminal RX of the first communication device 1. When the data transmission / reception operation is performed between the communication devices 1 and 2 in connection with each other, and the transmission operation of one side is performed, the communication device of the other side is to perform only the reception operation until the transmission operation is completed. The control signal output terminal (RTS) is a terminal for outputting a signal informing the other communication device that it is ready to transmit data. The control signal receiver (CTS) transmits data by a terminal application program at the request of a user application program. In this case, the terminal application program should set the communication line with the modem to the transmission mode. When the interrupt service routine makes a modem control call to set the control signal terminal (RTS), the terminal application receives a transmission ready signal from the other communication device in response to an indication that the communication device is ready to transmit. Terminal. In addition, the control signal receiver DTR is a terminal for outputting a control signal indicating that the communication device is ready to transmit and receive, that is, a control signal indicating that the data is ready to be transmitted to the other communication device. The control signal receiving terminal (DSR) is a terminal for outputting a signal indicating that the communication device is ready to send and receive a control signal in an operable state.
통신장치(1)(2)들은 상기한 제어신호의 상태에 따라 데이터 송수신선로(3)(4)를 통해 데이다를 송수신하는 동작이 이루어지게 되며, 이와 동시에 데이터 송수신선로(3)(4)상의 데이터는 각각 RS-232 수신기(9)(10)를 매개로 메모리(13)에 저장된다.The communication devices 1 and 2 are operated to transmit and receive data through the data transmission and reception lines 3 and 4 according to the state of the control signal, and at the same time, the data transmission and reception lines 3 and 4 Data is stored in the memory 13 via the RS-232 receivers 9 and 10, respectively.
상기 RS-232 수신기(9)(10)의 출력 일단은 마이크로프로세서(11)의 인터럽트단자(INT1)(INT2)에 연결되고 다른 출력단들은 버스(16)를 통해 마이크로프로세서(11)의 데이터/어드레스 단자(D/A)에 연결됨과 더불어 메모리(13)와 키보드(14) 및 표시장치(15)에 각각 연결되고, 또한 입력포트(12)의 출력단도 상기 버스(16)를 통해 메모리(13)에 연결되어 있다.One end of the output of the RS-232 receiver (9) 10 is connected to the interrupt terminal (INT 1 ) (INT 2 ) of the microprocessor 11 and the other output terminal is the data of the microprocessor 11 through the bus (16) In addition to being connected to the / address terminal (D / A), and connected to the memory 13, the keyboard 14 and the display device 15, respectively, and also the output terminal of the input port 12 through the bus (16) 13).
여기서 RS-232 수신기(9)(10)는 RS-232규격에 의거 통신장치(1)(2)간의 데이터 송수신선로(3)(4)에서 전송되는 직렬데이터를 마이크로프로세서(11)의 제어에 따라 수신하여 출력할 수 있도록 된 것이다.Here, the RS-232 receiver (9) 10 controls the serial data transmitted from the data transmission / reception line (3) (4) between the communication device (1) (2) based on the RS-232 standard to the control of the microprocessor (11). It can be received and output accordingly.
이와같이 구성된 본 발명의 작용을 제2도의 흐름도에 의거하여 설명하면 다음과 같다.Referring to the operation of the present invention configured as described above with reference to the flow chart of FIG.
먼저 데이터 송수신선로(3)(4)에서 데이터 전송이 이루어지고 있을 때 이를 검출하여 저장하는 동작에 대해 설명한다. 사용자가 통신장치(1)(2)들간에 전송되는 데이터를 저장시키고자 할 때 키보드(14)를 조작하여 상기 데이터의 저장개시를 명령한다. 이에 따라 마이크로프로세서(11)는 인터럽트단자(INT1)(INT2)를 스캔하여 인터럽트신호가 들어와 있는지 여부를 판단한다.First, an operation of detecting and storing data transmission when data transmission is performed in the data transmission / reception lines 3 and 4 will be described. When the user wishes to store data transmitted between the communication apparatuses 1 and 2, the keyboard 14 is operated to command the start of storing the data. Accordingly, the microprocessor 11 scans the interrupt terminal INT 1 (INT 2 ) to determine whether an interrupt signal is input.
인터럽트단자(INT1)에 인터럽트신호가 들어와 있으면 RS-232 수신기(9)가 제1통신장치(1)로부터 제2통신장치(2)로 전송되는 데이터 신호를 수신하고 있는 것으로 판단하여 RS-232 수신기(9)로부터 출력되는 상기 데이터 신호를 메모리(13)에 저장한다.If an interrupt signal is input to the interrupt terminal INT 1 , the RS-232 receiver 9 determines that the data signal transmitted from the first communication device 1 to the second communication device 2 is received and is then RS-232. The data signal output from the receiver 9 is stored in the memory 13.
이와 마찬가지로 인터럽트단자(INT2)에 인터럽트신호가 들어와 있으면 제2통신장치(2)에서 제1통신장치(1)로 데이터전송이 이루어지고 있음을 판단하여 그 데이터를 RS-232 수신기(10)를 통해 읽어들여 메모리(13)에 저장한다.Similarly, if an interrupt signal is input to the interrupt terminal INT 2 , it is determined that data transmission is being made from the second communication device 2 to the first communication device 1, and the RS-232 receiver 10 is transferred to the first communication device 1. Read through and store in memory 13.
이와 같은 저장동작은 인터럽트신호가 들어올때까지 통신장치(1)(2)들 간에 데이터 전송이 종료되었을때에는 키보드(14)를 통해 입력되는 저장종료명령을 기다린다. 이때 저장종료명령이 들어오지 않게되면 인터럽트신호의 입력여부를 판단하는 단계로 돌아가서 인터럽트신호의 입력여하에 따라 다음 동작을 수행할 수 있도록 대기하고, 저장종료명령이 들어오면 초기상태로 돌아가서 다음 명령을 대기한다.This storage operation waits for a storage termination command input through the keyboard 14 when data transmission between the communication devices 1 and 2 is completed until an interrupt signal is input. At this time, if the save end command does not come in, it returns to the step of judging whether the interrupt signal is input and waits for the next operation according to the input of the interrupt signal.If the save end command comes in, it returns to the initial state and waits for the next command. do.
한편 위와 같은 동작에 의거 메모리(13)에 저장해 놓은 데이터를 표시장치(15)를 통해 출력시켜 보고자 할 경우에는 키보드(14)를 조작하여 메모리(13)내의 데이터 출력명령을 준다. 이때의 출력명령은 덤프(DUMP) 명령으로서 이 명령에 따라 메모리(13)에 저장되어 있던 데이터는 표시장치(15)를 통해 출력되어지게 되며, 사용자는 출력된 데이터를 분석하여 통신장치(1)(2)간에 전송된 데이터의 오류여부를 확인할 수 있게 된다.On the other hand, when the user wants to output the data stored in the memory 13 through the display device 15 according to the above operation, the keyboard 14 is operated to give a data output command in the memory 13. At this time, the output command is a dump command. The data stored in the memory 13 is output through the display device 15 according to the command. The user analyzes the output data and the communication device 1 It is possible to check whether or not the data transmitted between (2) is in error.
상기한 바와 같이 본 발명은 직렬통신장치들간에 송수신되는 데이터를 검출하여 분석할 필요성이 있을 때 키보드를 통해 저장개시명령을 부여해 놓으면 필요한 기간동안에 송수신되었던 데이터와 그에 따른 제어신호들이 순차적으로 저장되어지므로 이를 출력시켜 분석하게 되면 통신상의 오류를 찾아낼 수 있는 장점이 있다.As described above, in the present invention, when it is necessary to detect and analyze data transmitted and received between serial communication devices, if a storage start command is given through a keyboard, data transmitted and received during the required period and control signals thereof are sequentially stored. Analyzing this output has the advantage of finding communication errors.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019950014230A KR0154606B1 (en) | 1995-05-31 | 1995-05-31 | Communication line data analysis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019950014230A KR0154606B1 (en) | 1995-05-31 | 1995-05-31 | Communication line data analysis |
Publications (2)
Publication Number | Publication Date |
---|---|
KR960042379A KR960042379A (en) | 1996-12-21 |
KR0154606B1 true KR0154606B1 (en) | 1998-11-16 |
Family
ID=19416140
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019950014230A KR0154606B1 (en) | 1995-05-31 | 1995-05-31 | Communication line data analysis |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR0154606B1 (en) |
-
1995
- 1995-05-31 KR KR1019950014230A patent/KR0154606B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR960042379A (en) | 1996-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63228844A (en) | Method of data coupling between asynchronous interface, data module and asynchronous peripherals | |
US5454084A (en) | Method and apparatus for controlling bus in computer system to which expansion unit is connectable | |
US6777624B2 (en) | Electronic balance with a remote error reporting via the internet and a display for informing a user of corrective measures from a remote service center | |
KR0154606B1 (en) | Communication line data analysis | |
US5748887A (en) | Inter-processor asynchronous serial communication transmission/reception apparatus using each other's memories | |
US6356583B1 (en) | Device and method for controlling the baud rate between a portable telephone and an external device | |
US6229866B1 (en) | Apparatus for detecting errors in asynchronous data receiver and transmitter | |
KR950005074A (en) | Data communication system and apparatus for the system | |
KR910003505A (en) | Communication method between central processing units | |
JP2835907B2 (en) | Communication error analyzer for PLC network | |
US11158186B2 (en) | System for controlling a plurality of devices using a CNC device | |
KR19980051705A (en) | Packet Board Test Method of Electronic Switch | |
KR970056512A (en) | Device for detecting information transmission speed of modem for data terminal | |
JP3261266B2 (en) | Fire detector | |
KR900006975B1 (en) | Method of detecting data transmission speed in data terminal equipment | |
KR100217738B1 (en) | Computer communication speed improving method of keyphone | |
JPH09190591A (en) | Radio meter-inspection system | |
KR100262609B1 (en) | A learning data monitoring device and method for vehicles | |
JP2898025B2 (en) | I / O terminal | |
JPH08142457A (en) | Printing device, method for displaying message and printing system | |
KR930005124B1 (en) | Image data page end mark checking method | |
KR970000680B1 (en) | A exchange system | |
JP2507969B2 (en) | Parity error detection method test method | |
KR0174979B1 (en) | System having interface function between different central processing units and control method thereof | |
KR950014155B1 (en) | Apparatus and method of direct communication for key-pad |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20010629 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |