DOI QR코드

DOI QR Code

충돌검지 다중접속 프로토콜에 의한 2선식 RS232C 직렬통신 인터페이스 구현

Implementation of two wire RS232C Serial Communication Interface using CSMA protocol

  • 한경호 (단국대학교 전기제어시스템공학부) ;
  • 최천원 (단국대학교 전기제어시스템공학부)
  • 발행 : 2003.05.01

초록

본 논문에서는 충돌검지 다중 접속 프로토콜을 적용하여 기존의 3선식 RS232C직렬 통신 포트를 2선식 공통 통신채널에 접속하여 다중접속을 가능하게 하는 인터페이스의 구현을 다루었다. 기존의 3선식 RS232C직렬 통신포트의 하드웨어의 변경 없이 송신데이터와 수신데이터를 공통데이터 선으로 결합하는 인터페이스회로에 의하여 2선으로 구성하였다. 2선식 연결방법에 의하여 다수의 호스트가 공통선로에 연결되는 경우2개 이상의 호스트가동시에 데이터를 전송할 경우 데이터의 충돌이 발생한다. 이를 감지하기 위하여 전송 데이터를 궤환하여 비교하고 전송데이터의 왜곡 여부로 데이터 충돌을 검지한다. 데이터의 재전송시 충돌 확률을 낮추기 위하여 여러 가지 재전송 모델링을 제시하였으며 각 방법에 대한 실험결과를 통하여 성능을 비교하였다. 본 연구의 결과는 기존의 RS232C 기기의 회로를 거의 변경하지 많고 다중접속이 가능하게 함으로 기존의 각종기기 및 설비를 단일 통신선로에 의한 네트워크에 연결하는 데 응용될 수 있다.

In this paper, we implemented 2-wire (data gnd) RS232C serial communication interface by applying the Collision Sensing Multiple Access(CSMA) Protocol. The transmitting and receiving wires of RS232C pert are connected together by the interface circuit forming data wire without hardware modification On two-wired common channel connection simultaneous transmission Don mere than two hosts causes data collision. The collision is detected by loop-back test of transmission data comparing with the fed back data to detect the data distortion. Various models are adopted to reduce the probability of retransmitted data collision and experiments show the performance of each cases. Due to allowing multiple hosts to be accessed through the common communication channel with minimum circuit addition the result of this paper can be easily applied for conventional RS232C instruments and machines to connect to the single data communication line.

키워드

참고문헌

  1. ANSI/IEEE, "ANSI/IEEE 802.3, Information technology Local and metropolitan arm network, Part3 : Carrier Sense Multiple Access with Collision Detection(CSMA/CD) access method and physical layer specifications", IEEE, 1993.
  2. Heinz-Gerd Hegering and Alfred Lapple, "Ethernet Building Communications Infrastructure", Addison Wesley, 1993.
  3. Green, 'Data Communications", Longman Scientific & Technical, 1992.
  4. William Stallings, 'Data and computer communications", 회중당, 1987.
  5. Stephen B. Wicker, "Error Control Systems for Digital Communication and Storage", Printce Hall, 1991.
  6. 이욱양, "C 프로그래머를 위한 시리얼 컴뮤니케이션", 가남사, 1990.
  7. 김석주, "C로 하드웨어 주무르기", 가메출판사, 1997.
  8. 편집부, "RS232C 인터페이스 응용사례집", 가남사, 1991.
  9. 이소베도시오, "C언어와 RS-232C/CP-IB", 다다미디어, 1993.