KR101113152B1 - Method of sensing abnormal state and controlling of rs485 communication system - Google Patents

Method of sensing abnormal state and controlling of rs485 communication system Download PDF

Info

Publication number
KR101113152B1
KR101113152B1 KR1020100044544A KR20100044544A KR101113152B1 KR 101113152 B1 KR101113152 B1 KR 101113152B1 KR 1020100044544 A KR1020100044544 A KR 1020100044544A KR 20100044544 A KR20100044544 A KR 20100044544A KR 101113152 B1 KR101113152 B1 KR 101113152B1
Authority
KR
South Korea
Prior art keywords
optical
signal
period
frequency
communication system
Prior art date
Application number
KR1020100044544A
Other languages
Korean (ko)
Other versions
KR20110125023A (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 KR1020100044544A priority Critical patent/KR101113152B1/en
Publication of KR20110125023A publication Critical patent/KR20110125023A/en
Application granted granted Critical
Publication of KR101113152B1 publication Critical patent/KR101113152B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/03Arrangements for fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/27Arrangements for networking
    • H04B10/275Ring-type networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Optical Communication System (AREA)

Abstract

본 발명은 RS485 광통신 시스템의 이상 상태 감지 및 제어방법에 관한 것이다. 본 발명에 따르면, 복수의 광 컨버터들이 링모드로 연결되어 있는 RS485 광통신 시스템의 이상 상태 감지 및 제어방법에 있어서, 다른 광 컨버터로부터 입력되는 광 신호의 주파수를 감지하는 단계, 제1 주파수를 가지는 광 신호가 제1 기간 동안 지속되어 입력되는지를 판단하는 단계, 그리고 상기 제1 주파수를 가지는 광 신호가 상기 제1 기간 동안 지속되어 입력되는 경우, 상기 제1 기간 경과한 후 제2 기간 동안 제2 주파수를 가지는 광 신호를 전달하는 단계를 포함한다.
이와 같이 본 발명에 의하면, 링 모드로 동작하는 광 컨버터가 내부의 문제로 이상 상태가 되는 것을 용이하게 감지할 수 있으며, 이상 상태 발견 후에 자동으로 RS485 광통신 시스템을 리셋 시킴으로써, 광 컨버터의 기능을 정상적으로 원활하게 수행할 수 있도록 한다.
The present invention relates to an abnormal state detection and control method of the RS485 optical communication system. According to the present invention, in the abnormal state detection and control method of an RS485 optical communication system in which a plurality of optical converters are connected in a ring mode, detecting a frequency of an optical signal input from another optical converter, the optical having a first frequency Determining whether the signal continues to be input for the first period, and when the optical signal having the first frequency is input for the first period, after the first period has elapsed, for a second frequency Delivering an optical signal having a.
As described above, according to the present invention, the optical converter operating in the ring mode can be easily detected as an abnormal state due to an internal problem, and automatically resets the RS485 optical communication system after detecting the abnormal state, thereby functioning normally. Make it work smoothly.

Description

RS485 광통신 시스템의 이상 상태 감지 및 제어방법{METHOD OF SENSING ABNORMAL STATE AND CONTROLLING OF RS485 COMMUNICATION SYSTEM}S445 Abnormal Condition Detection and Control Method of Optical Communication System {METHOD OF SENSING ABNORMAL STATE AND CONTROLLING OF RS485 COMMUNICATION SYSTEM}

본 발명은 RS485 광통신 시스템의 이상 상태 감지 및 제어방법에 관한 것으로, 더욱 상세하게는 복수의 광 컨버터들이 링모드로 연결되어 있는 RS485 광통신 시스템의 이상 상태를 용이하게 감지할 수 있는 RS485 광통신 시스템의 이상 상태 감지 및 제어방법에 관한 것이다. The present invention relates to an abnormal state detection and control method of an RS485 optical communication system, and more particularly, to an abnormality of an RS485 optical communication system capable of easily detecting an abnormal state of an RS485 optical communication system in which a plurality of optical converters are connected in a ring mode. It relates to a state detection and control method.

일반적으로, RS485는 멀티포인트(Multi Point) 통신회선을 위한 TIA/EIA(Telecommunications Industry Association/Electronics Industry Association) 표준으로서, DB-9나 DB-37과 같은 커넥터들을 지원한다. RS-485는 시리얼 전송의 인터페이스 규격의 한 개에서 최대 32개의 드라이버와 리시버를 접속할 수 있다. In general, RS485 is a TIA / EIA (Telecommunications Industry Association / Electronics Industry Association) standard for multi-point communication lines and supports connectors such as DB-9 and DB-37. RS-485 can connect up to 32 drivers and receivers from one of the serial transmission interface specifications.

RS485는 RS422와 비슷하지만, 낮은 임피던스 구동기와 수신기를 사용함으로써, RS422보다 회선당 노드 수를 더 많이 허용한다. 즉, RS485는 RS422와 같은 계열인 규격으로, 상기 RS423은 RS422를 무종단, 불평형 전송으로 그레이드 다운(grade down)한 것으로서 거리는 같지만 저속이고, RS485는 RS422를 업그레이드하여 32대 32까지 다점 사이의 전송을 할 수 있도록 한 것이다. 또한, RS485는 RS422에 대하여 상위 호환으로, RS485에 적합한 것은 RS422에도 적합하다. RS485의 전송 거리는 최대 1200m이지만, 전송 속도에 의해 바뀌며(10 Mbps:12m, 1 Mbps:120m, 100 Kbps:1200m), RS232C에 비해 노이즈에 강하고, 고속 전송이 가능하다.RS485 is similar to RS422, but by using a low impedance driver and receiver, it allows more nodes per line than RS422. In other words, RS485 is the same series as RS422, and RS423 is a graded down RS422 to endless, unbalanced transmission. Would have done so. In addition, RS485 is highly compatible with RS422, and what is suitable for RS485 is also suitable for RS422. Although the transmission distance of RS485 is up to 1200m, it is changed by the transmission speed (10 Mbps: 12m, 1 Mbps: 120m, 100 Kbps: 1200m), which is more noise-resistant than RS232C, and enables high-speed transmission.

상기와 같은 RS485의 특성을 이용하여 링 모드로 광 컨버터를 구현할 수 있다. 그러나 링 모드로 구현된 광 컨버터의 경우에는 데이터가 광 컨버터 사이를 순환하여 전달되므로, 광 컨버터 사이의 접속 또는 광 컨버터와 통신 단말 사이의 접속 문제로 인하여 이상 상태가 되었을 경우에, 이상 상태를 용이하게 발견할 수 없다는 문제점이 있다. By using the characteristics of the RS485 as described above it is possible to implement an optical converter in the ring mode. However, in the case of the optical converter implemented in the ring mode, data is circulated and transmitted between the optical converters. Therefore, when an abnormal state is caused due to a connection problem between the optical converters or a connection problem between the optical converter and the communication terminal, the abnormal state is facilitated. There is a problem that can not be found.

따라서 본 발명이 이루고자 하는 기술적 과제는 복수의 광 컨버터들이 링 모드로 연결되어 있는 RS485 광통신 시스템의 이상 상태를 용이하게 감지할 수 있는 RS485 광통신 시스템의 이상 상태 감지 및 제어방법을 제공하기 위한 것이다. Accordingly, an object of the present invention is to provide an abnormal state detection and control method of an RS485 optical communication system that can easily detect an abnormal state of an RS485 optical communication system in which a plurality of optical converters are connected in a ring mode.

이러한 기술적 과제를 이루기 위한 본 발명의 한 실시예에 따르면, 복수의 광 컨버터들이 링모드로 연결되어 있는 RS485 광통신 시스템의 이상 상태 감지 및 제어방법에 있어서, 다른 광 컨버터로부터 입력되는 광 신호의 주파수를 감지하는 단계, 제1 주파수를 가지는 광 신호가 제1 기간 동안 지속되어 입력되는지를 판단하는 단계, 그리고 상기 제1 주파수를 가지는 광 신호가 상기 제1 기간 동안 지속되어 입력되는 경우, 상기 제1 기간 경과한 후 제2 기간 동안 제2 주파수를 가지는 광 신호를 전달하는 단계를 포함한다. According to an embodiment of the present invention for achieving the technical problem, in the abnormal state detection and control method of the RS485 optical communication system in which a plurality of optical converters are connected in a ring mode, the frequency of the optical signal input from another optical converter Sensing, determining whether an optical signal having a first frequency is inputted continuously for a first period, and if the optical signal having the first frequency is inputted continuously for the first period, the first period Passing an optical signal having a second frequency for a second period after the elapsed time.

상기 광 컨버터는, 통신단말로부터 수신한 RS485 광통신 프로토콜의 전기적 신호를 광 신호로 변환하거나, 광 신호를 전기적 신호로 변환할 수 있다. The optical converter may convert an electrical signal of an RS485 optical communication protocol received from a communication terminal into an optical signal, or convert an optical signal into an electrical signal.

상기 제1 주파수는 로우 레벨의 전기적 신호에 대응되며, 상기 제2 주파수는 하이레벨의 전기적 신호에 대응될 수 있다. The first frequency may correspond to a low level electrical signal, and the second frequency may correspond to a high level electrical signal.

상기 제1 기간은 33ms 내지 34ms이고, 상기 제2 기간은 1㎲ 내지 3㎲일 수 있다. The first period may be 33 ms to 34 ms, and the second period may be 1 ms to 3 ms.

상기 제1 주파수를 가지는 광 신호가 상기 제1 기간 동안 지속되는 경우, 제2 기간 동안 제2 주파수를 가지는 광 신호를 전달하는 단계는, 상기 RS 통신 상태를 대기 상태인 마크 상태로 변환시킬 수 있다.When the optical signal having the first frequency lasts for the first period, transferring the optical signal having the second frequency during the second period may convert the RS communication state into a mark state in a standby state. .

본 발명의 다른 실시예에 따르면, 복수의 광 컨버터들이 링모드로 연결되어 있는 RS485 광통신 시스템에 있어서, 상기 광 컨버터는, 다른 광 컨버터로부터 입력되는 제1 주파수를 가지는 광 신호가 제1 기간 동안 지속되는지를 판단하고, 상기 제1 주파수를 가지는 광 신호가 상기 제1 기간 동안 지속되는 경우, 상기 제1 기간 경과한 후 제2 기간 동안 제2 주파수를 가지는 광 신호를 전달한다. According to another embodiment of the present invention, in an RS485 optical communication system in which a plurality of optical converters are connected in a ring mode, the optical converter is characterized in that an optical signal having a first frequency input from another optical converter lasts for a first period of time. If the optical signal having the first frequency lasts for the first period, the optical signal having the second frequency is transmitted during the second period after the first period elapses.

이와 같이 본 발명에 의하면, 링 모드로 동작하는 광 컨버터가 내부의 문제로 이상 상태가 되는 것을 용이하게 감지할 수 있으며, 이상 상태 발견 후에 자동으로 RS485 광통신 시스템을 리셋 시킴으로써, 광 컨버터의 기능을 정상적으로 원활하게 수행할 수 있도록 한다. As described above, according to the present invention, the optical converter operating in the ring mode can be easily detected as an abnormal state due to an internal problem, and automatically resets the RS485 optical communication system after detecting the abnormal state, thereby functioning normally. Make it work smoothly.

도 1은 본 발명의 실시예에 따른 RS485 광통신 시스템을 설명하기 위한 도면이다.
도 2는 통신 단말이 광 컨버터로 전달하는 RS485 프로토콜 방식의 전기 신호와 광 컨버터 사이에 전달되는 광 신호를 나타낸다.
도 3a 및 도 3b는 정상 상태와 이상 상태를 설명하기 위한 RS485 통신 파형도이다.
도 4는 본 발명의 실시예에 따른 RS485 광통신 시스템의 이상 상태 감지 및 제어방법의 동작 흐름도이다.
도 5는 본 발명의 실시예에 따른 RS485 통신 파형도이다.
1 is a view for explaining an RS485 optical communication system according to an embodiment of the present invention.
Figure 2 shows an optical signal transmitted between the optical signal and the electrical signal of the RS485 protocol system that the communication terminal transmits to the optical converter.
3A and 3B are RS485 communication waveform diagrams for explaining the normal state and the abnormal state.
4 is a flowchart illustrating an abnormal state detection and control method of an RS485 optical communication system according to an exemplary embodiment of the present invention.
5 is a RS485 communication waveform diagram according to an embodiment of the present invention.

그러면 첨부한 도면을 참고로 하여 본 발명의 실시예에 대하여 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. DETAILED DESCRIPTION Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art may easily implement the present invention.

도 1은 본 발명의 실시예에 따른 RS485 광통신 시스템을 설명하기 위한 도면이다. 도 1을 참조하면, 본 발명의 실시예에 따른 RS485 광통신 시스템은 복수의 광 컨버터(100)가 폐쇄 형태로 연결되어 있으며, 복수의 광 컨버터(100)들은 광 케이블로 연결되어 있다. RS485 광통신 시스템에 의하면 32개의 광 컨버터(100)들이 폐쇄 형태로 연결되어 시리얼 통신을 수행하며, 도 1에서는 설명의 편의상 4개의 광 컨버터로 나타내었다. 각각의 광 컨버터(100)는 송신포트(Tx)와 수신포트(Rx)를 포함하며, 송신포트(Tx)와 수신포트(Rx)는 광 케이블을 통해 연결된다. 따라서 광 컨버터(100)들은 송신포트(Tx)를 통해서 데이터를 송신하고, 수신포트(Rx)를 통하여 데이터를 수신한다. 1 is a view for explaining an RS485 optical communication system according to an embodiment of the present invention. Referring to FIG. 1, in the RS485 optical communication system according to an exemplary embodiment of the present invention, a plurality of optical converters 100 are connected in a closed form, and the plurality of optical converters 100 are connected by an optical cable. According to the RS485 optical communication system, 32 optical converters 100 are connected in a closed form to perform serial communication. In FIG. 1, four optical converters are shown for convenience of description. Each optical converter 100 includes a transmission port Tx and a reception port Rx, and the transmission port Tx and the reception port Rx are connected through an optical cable. Therefore, the optical converters 100 transmit data through the transmission port Tx and receive data through the reception port Rx.

각각의 광 컨버터(100)는 PC, PLC, IP 카메라 등의 통신 단말이 연결되며, 복수의 단말은 멀티드롭(multi drop) 형태로 연결될 수 있다. 그리고, 광 컨버터(100)와 통신 단말들은 구리(copper)와 같은 전도성 물질로 이루어진 전선으로 연결된다. Each optical converter 100 may be connected to a communication terminal such as a PC, a PLC, an IP camera, and the like, and the plurality of terminals may be connected in a multi drop form. In addition, the optical converter 100 and the communication terminals are connected to a wire made of a conductive material such as copper.

따라서 통신 단말은 연결되어 있는 광 컨버터(100)로 RS485 프로토콜을 따르는 전기신호를 전송하고, 광 컨버터(100)는 전기신호를 광 신호로 변환하여 다른 광 컨버터로 광 신호를 전송한다. Therefore, the communication terminal transmits an electrical signal following the RS485 protocol to the connected optical converter 100, and the optical converter 100 converts the electrical signal into an optical signal and transmits the optical signal to another optical converter.

즉, 광 컨버터(100)는 광 신호를 전기신호로 변환시키거나, 전기신호를 광 신호로 변환시키는 기능을 수행한다. That is, the optical converter 100 converts an optical signal into an electrical signal, or converts the electrical signal into an optical signal.

광 컨버터(100)는 통신 단말로부터 수신된 전기신호 형태의 데이터를 광 신호로 변환하여 다른 광 컨버터(100)로 전달하며, 다른 광 컨버터(100)로부터 수신된 광 신호 형태의 데이터를 전기신호로 변환하여 통신 단말로 전달한다. The optical converter 100 converts data in the form of an electrical signal received from the communication terminal into an optical signal and transfers the data in the form of an optical signal received from another optical converter 100 to the other optical converter 100. Convert it and deliver it to the communication terminal.

도 2는 통신 단말이 광 컨버터로 전달하는 RS485 프로토콜 방식의 전기 신호와 광 컨버터 사이에 전달되는 광 신호를 나타낸다. Figure 2 shows an optical signal transmitted between the optical signal and the electrical signal of the RS485 protocol system that the communication terminal transmits to the optical converter.

도 2에 나타낸 것처럼, 통신 단말은 광 컨버터(100)로 하이레벨 신호인 '1'과 로우레벨 신호인 '0'을 이용하여 데이터를 전송한다. 광 컨버터(100)는 RS485 프로토콜 방식으로 '1'이 입력되면 4.167MHz의 광 신호로 변환하여 다른 광 컨버터(100)로 데이터를 전송한다. 또한 다른 광 컨버터(100)로부터 4.167MHz의 광 신호 데이터가 입력되면 전기적 신호인 '1'로 변환하여 통신 단말로 전달한다. As shown in FIG. 2, the communication terminal transmits data to the optical converter 100 by using a high level signal '1' and a low level signal '0'. The optical converter 100 converts an optical signal of 4.167 MHz and transmits data to another optical converter 100 when '1' is input through the RS485 protocol. In addition, when optical signal data of 4.167 MHz is input from another optical converter 100, the signal is converted into an electrical signal '1' and transmitted to the communication terminal.

그리고, 광 컨버터(100)는 RS485 프로토콜 방식으로 '0'이 입력되면 8.333MHz의 광 신호로 변환하여 다른 광 컨버터(100)로 데이터를 전송한다. 또한 다른 광 컨버터(100)로부터 8.333MHz의 광 신호 데이터가 입력되면 전기적 신호인 '0'으로 변환하여 통신 단말로 전달한다. The optical converter 100 transmits data to another optical converter 100 by converting an optical signal of 8.333 MHz when '0' is input through the RS485 protocol. In addition, when the optical signal data of 8.333MHz is input from the other optical converter 100, it is converted into an electrical signal '0' and transmitted to the communication terminal.

도 3a 및 도 3b는 정상 상태와 이상 상태를 설명하기 위한 RS485 통신 파형도이다. 도 3a는 정상 상태에서 송신 측인 통신 단말이 광 컨버터(100)로 데이터를 송신하는 통신 파형이고, 도 3b는 이상 상태에서 송신 측인 통신 단말이 광 컨버터(100)로 데이터를 송신하는 통신 파형이다. 3A and 3B are RS485 communication waveform diagrams for explaining the normal state and the abnormal state. 3A is a communication waveform in which the communication terminal on the transmission side transmits data to the optical converter 100 in a normal state, and FIG. 3B is a communication waveform in which the communication terminal on the transmission side transmits data to the optical converter 100 in an abnormal state.

도 3a에서 보는 바와 같이 정상 상태에서 통신 단말과 광 컨버터(100) 사이의 통신 파형에 따르면, 데이터 전송이 없는 대기(idle) 상태인 마크(Mark) 상태에서는 통신 단말은 광 컨버터(100)로 하이레벨 신호인 '1'을 전송한다. 이 경우, 앞에서 설명한 것처럼 전기적 신호인 '1'을 수신한 광 컨버터(100)는 4.167MHz의 광 신호로 변환하여 다른 광 컨버터(100)로 데이터를 전송한다. According to the communication waveform between the communication terminal and the optical converter 100 in the normal state, as shown in FIG. 3A, the communication terminal goes high to the optical converter 100 in the mark state in the idle state without data transmission. Transmit the level signal '1'. In this case, as described above, the optical converter 100 receiving the electrical signal '1' converts into an optical signal of 4.167 MHz and transmits data to another optical converter 100.

데이터가 입력되기 시작하면 통신 단말은 시작 비트(start bit)로서, 로우레벨 신호인 '0' 신호를 전송한다. 즉, 데이터가 입력되면 통신 단말은 광 컨버터(100)로 1비트의 기간 동안 로우레벨 신호인 '0'을 전송한다. 마찬가지로 전기적 신호인 '0'을 수신한 광 컨버터(100)는 8.333MHz의 광 신호로 변환하여 다른 광 컨버터(100)로 데이터를 전송한다. When data starts to be input, the communication terminal transmits a low level signal '0' as a start bit. That is, when data is input, the communication terminal transmits a low level signal '0' to the optical converter 100 for a period of 1 bit. Similarly, the optical converter 100 receiving the electrical signal '0' converts into an optical signal of 8.333 MHz and transmits data to another optical converter 100.

여기서 통신 단말의 통신 속도는 통신 단말이 적용되는 제품의 버전이나 특성에 따라 결정되며, 본 발명의 실시예에서는 300bps를 가지는 것으로 설명한다. 따라서 시작 비트는 1비트에 해당하는 1/300초 동안 입력이 된다. Here, the communication speed of the communication terminal is determined according to the version or characteristics of the product to which the communication terminal is applied, and in the embodiment of the present invention, it will be described as having 300bps. Therefore, the start bit is input for 1/300 second corresponding to 1 bit.

이와 같이 시작 비트가 입력이 되고 난 다음에 8비트에 해당하는 데이터 비트가 입력된다. 데이터 비트는 통신 단말이 광 컨버터로 전송하고자 하는 각종 제어 신호, 전송 데이터를 포함한다. 그리고 8비트에 해당하는 데이터 비트 다음에는 각각 1비트에 해당하는 패리티 비트(parity bit)와 스톱 비트(stop bit)가 전송된다. 패리티 비트는 에러 검출을 용이하게 하기 위한 비트이며, 스톱 비트는 데이터 전송이 종료되었음을 나타내는 신호로서 항상 하이레벨 신호인 '1'의 값을 가진다. 이와 같이 RS485 프로토콜 방식에 따르면, 시작 비트(1 bit), 데이터 비트(8 bit), 패리티 비트(1 bit)의 총 10 bit 단위로 데이터가 전송된다. After the start bit is input as described above, data bits corresponding to 8 bits are input. The data bits include various control signals and transmission data which the communication terminal intends to transmit to the optical converter. After the data bits corresponding to 8 bits, parity bits and stop bits corresponding to 1 bit are transmitted. The parity bit is a bit for facilitating error detection, and the stop bit is a signal indicating that data transmission is completed and always has a value of '1', which is a high level signal. As described above, according to the RS485 protocol, data is transmitted in a total of 10 bit units of a start bit (1 bit), a data bit (8 bit), and a parity bit (1 bit).

따라서 정상적인 상태에서는 10bit 단위로 데이터를 전송하며, 데이터를 전송하는 데 걸리는 시간은 300bps일 경우에는 약 33~34ms의 시간이 소요된다. Therefore, in the normal state, data is transmitted in 10-bit units, and the time required for data transmission is about 33 ~ 34ms in case of 300bps.

도 3b에서 보는 바와 같이 이상 상태에서 통신 단말과 광 컨버터(100) 사이의 통신 파형에 따르면, 마크(Mark) 상태 이후에 일정 기간 동안 로우레벨 신호인 '0' 신호가 지속되는 홀딩 상태가 된다. 도 3b와 같은 통신 파형은 링 모드를 구성하는 복수의 광 컨버터(100) 사이에 접속이 불량하거나 전원에 문제가 발생할 경우에 발생하며, 이 경우 복수의 광 컨버터(100)는 통신 단말로부터 원활하게 데이터를 수신하지 못하거나, 다른 광 컨버터(100)로 데이터를 전송할 수 없다. According to the communication waveform between the communication terminal and the optical converter 100 in the abnormal state, as shown in FIG. 3B, a '0' signal, which is a low level signal, is maintained for a predetermined period after the mark state. A communication waveform as shown in FIG. 3B is generated when a connection is poor or a problem occurs in a power supply between the plurality of optical converters 100 constituting the ring mode. It may not receive data or transmit data to another optical converter 100.

즉, 정상적인 상태에서는 데이터 전송이 없는 경우에는 일정 기간이 지난 후에 다시 마크 상태로 복귀되지만, 도 3b와 같은 이상 상태에서는 일정 기간이 지난 후에도 마크 상태로 복귀가 안되기 때문에, 그 뒤에 통신 단말이 광 컨버터(100)로 데이터를 전달하더라도 광 컨버터(100)는 데이터를 읽지 못하며, 다른 광 컨버터(100)로 데이터를 전달할 수 없다. That is, in the normal state, if there is no data transmission, it returns to the mark state again after a certain period of time, but in the abnormal state as shown in FIG. Even if the data is transmitted to the optical converter 100, the optical converter 100 may not read the data and may not transmit the data to the other optical converter 100.

즉, 앞에서 설명한 바와 같이 도 3a와 같은 정상 상태에서는 마크 상태의 비트('1'), 시작 비트('1' -> '0'), 데이터 비트('1' 또는 '0', 8개의 비트), 패리티 비트('1' 또는 '0'), 종료 비트('1')이 순차적으로 입력된 후 다시 마크 상태로 복귀되지만, 도 3b와 같은 이상 상태에서는 일정 기간이 지나더라도 마크 상태('1')로 복귀가 안 되므로 광 컨버터(100)는 더 이상 데이터를 수신하거나 송신할 수 없게 된다. That is, as described above, in the normal state as shown in FIG. 3A, the bit ('1'), the start bit ('1'-> '0'), and the data bit ('1' or '0') of the mark state, eight bits. ), The parity bit ('1' or '0') and the end bit ('1') are sequentially input and then returned to the mark state, but in the abnormal state as shown in FIG. 3B, the mark state (' 1 '), the optical converter 100 can no longer receive or transmit data.

도 4는 본 발명의 실시예에 따른 RS485 광통신 시스템의 이상 상태 감지 및 제어방법의 동작 흐름도이다. 도 5는 본 발명의 실시예에 따른 RS485 통신 파형도이다.4 is a flowchart illustrating an abnormal state detection and control method of an RS485 optical communication system according to an exemplary embodiment of the present invention. 5 is a RS485 communication waveform diagram according to an embodiment of the present invention.

먼저 도 1과 같이 복수의 광 컨버터(100)를 폐쇄형으로 연결하여 링 모드(Ring Mode)로 동작을 수행한다(S410). 특히 RS485 광통신 시스템에서는 32개의 광 컨버터가 링 형태로 연결되며, 광 컨버터(100)는 수신포트(Rx)를 통해서 입력되는 신호를 송신포트(Tx)를 통하여 다른 광 컨버터로 전송한다. First, as shown in FIG. 1, the plurality of optical converters 100 are connected in a closed manner to perform an operation in a ring mode (S410). In particular, in the RS485 optical communication system, 32 optical converters are connected in a ring shape, and the optical converter 100 transmits a signal input through the reception port Rx to another optical converter through the transmission port Tx.

즉, 도 3a에서 설명한 것처럼, 정상 상태에서는 마크 상태의 비트('1'), 시작 비트('1' -> '0'), 데이터 비트('1' 또는 '0'), 패리티 비트('1' 또는 '0'), 종료 비트('1')가 통신단말로부터 순차적으로 광 컨버터(100)로 입력되며, 광 컨버터(100)는 전기적 신호 '1'을 4.167MHz의 광 신호로 변환하고, 전기적 신호 '0'을 8.333MHz의 광 신호로 변환한다. 그리고 광 컨버터(100)는 변환된 4.167MHz 또는 8.333MHz 의 광 신호를 다른 광 컨버터로 전송한다. That is, as described with reference to FIG. 3A, in the normal state, the bit ('1') of the mark state, the start bit ('1'-> '0'), the data bit ('1' or '0'), and the parity bit (' 1 'or' 0 '), the end bit (' 1 ') is sequentially input from the communication terminal to the optical converter 100, the optical converter 100 converts the electrical signal' 1 'into an optical signal of 4.167MHz Convert the electrical signal '0' into an optical signal of 8.333MHz. The optical converter 100 transmits the converted 4.167 MHz or 8.333 MHz optical signal to another optical converter.

광 컨버터(100)는 수신포트(Rx)를 통해서 입력되는 광 신호의 주파수를 감지한다(S420). 여기서 광 컨버터(100)는 다른 광 컨버터로부터 입력되는 광 신호의 주파수뿐만 아니라 통신 단말로부터 입력되는 전기적 신호를 감지한다. The optical converter 100 senses the frequency of the optical signal input through the receiving port Rx (S420). Here, the optical converter 100 senses an electric signal input from a communication terminal as well as a frequency of an optical signal input from another optical converter.

그리고, 광 컨버터(100)는 수신포트(Rx)를 통해서 입력되는 8.333MHz의 주파수를 가지는 광 신호가 34ms 이상 지속되는지를 판단한다(S430). The optical converter 100 determines whether an optical signal having a frequency of 8.333 MHz input through the reception port Rx lasts 34 ms or more (S430).

즉, 도 3a에서 설명한 것처럼, 정상적인 상태에서는 10bit 단위의 데이터가 전송되는데 걸리는 시간은 300bps일 경우에는 약 33~34ms가 소요되며, 34ms 이후에는 새로운 10bit 단위의 데이터가 입력된다. 따라서, 통신단말에 직접 연결된 마스터 광 컨버터는 전기적 신호 '0'이 34ms 이상 지속되어 입력되는지를 판단하고, 다른 광 컨버터들로부터 광 신호를 수신하는 슬래이브 광 컨버터의 경우에는 8.333MHz의 주파수를 가지는 광 신호가 34ms 이상 지속되어 입력되는지 판단한다. That is, as described with reference to FIG. 3a, in the normal state, it takes about 33 to 34 ms for the data to be transmitted in 10-bit units at 300 bps, and new 10-bit data is input after 34 ms. Therefore, the master optical converter directly connected to the communication terminal determines whether the electrical signal '0' is inputted for more than 34ms and has a frequency of 8.333 MHz in the case of the slave optical converter which receives the optical signal from other optical converters. Determine whether the optical signal is input for more than 34ms.

만일 8.333MHz의 주파수를 가지는 광 신호가 34ms 이상 지속되어 입력되는 경우, 광 컨버터(100)는 도 5와 같이 전원 불안정, 광 케이블 연결 이상, 이상 데이터 발생 등의 이상 상태로 판단하며, 1~3㎲ 동안 4.167MHz의 주파수를 가지는 광 신호를 다른 광 컨버터로 전송하여 리셋시킨다(S440). 즉, 이상 상태에서는 8.333MHz의 주파수를 가지는 광 신호가 링 형태로 연결된 다른 광 컨버터에 계속적으로 전달되므로, 이를 강제적으로 해제시키기 위해서 1~3㎲ 동안 4.167MHz의 주파수를 가지는 광 신호를 전달하며, 바람직하게는 2㎲ 가 적절하다. If an optical signal having a frequency of 8.333 MHz is inputted for more than 34 ms, the optical converter 100 determines an abnormal state such as power instability, optical cable connection error, or abnormal data generation as shown in FIG. During transmission, the optical signal having the frequency of 4.167 MHz is transmitted to another optical converter and reset (S440). That is, in an abnormal state, since an optical signal having a frequency of 8.333 MHz is continuously transmitted to other optical converters connected in a ring form, an optical signal having a frequency of 4.167 MHz is transmitted for 1 to 3 위해서 to forcibly release it. Preferably 2 ms is suitable.

도 3a 및 도 3b에서 보는 것처럼, 마크 상태는 전기적 신호 '1'에서 시작되어야 하므로, 전기적 신호 '0'이 계속 유지되면 마크 상태로 복귀가 되지 않는다. 따라서 34ms이 경과한 다음에 전기적 신호 '1'에 대응하는 4.167MHz의 주파수를 가지는 광 신호를 전달함으로써, 마크 상태로 전환하도록 하여 리셋(reset)이 되도록 한다. As shown in FIGS. 3A and 3B, the mark state must be started from the electrical signal '1', so that if the electrical signal '0' is maintained, the mark state is not returned. Therefore, after 34ms has elapsed, an optical signal having a frequency of 4.167 MHz corresponding to the electrical signal '1' is transmitted to be reset to a mark state.

여기서, 최대 32대의 광 컨버터(100)가 링 형태로 연결되어 있으므로, 리셋을 시키는데 어느 정도의 시간이 필요하므로 1~3㎲ 동안 4.167MHz의 주파수를 가지는 광 신호를 전달한다. 그리고 링 모드로 구현된 복수의 광 컨버터(100)가 정상 상태로 돌아오면, 다시 S420 단계로 돌아가서 광 컨버터(100)는 수신포트(Rx)를 통해서 입력되는 주파수를 감시한다. Here, since up to 32 optical converters 100 are connected in a ring shape, some time is required for resetting, and thus, an optical signal having a frequency of 4.167 MHz is transmitted for 1 to 3 kHz. When the plurality of optical converters 100 implemented in the ring mode are returned to their normal state, the process returns to step S420 and the optical converter 100 monitors the frequency input through the receiving port Rx.

이와 같이 본 발명에 의하면, 링 모드로 동작하는 광 컨버터가 내부의 문제로 이상 상태가 되는 것을 용이하게 감지할 수 있으며, 이상 상태 발견 후에 자동으로 RS485 광통신 시스템을 리셋 시킴으로써, 다시 광 컨버터의 기능을 원활하게 수행할 수 있도록 한다. As described above, according to the present invention, the optical converter operating in the ring mode can be easily detected as an abnormal state due to an internal problem, and automatically resets the RS485 optical communication system after the detection of the abnormal state, thereby resuming the function of the optical converter. Make it work smoothly.

본 발명은 도면에 도시된 실시예를 참고로 설명되었으나 이는 예시적인 것에 불과하며, 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 다른 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호 범위는 첨부된 특허청구범위의 기술적 사상에 의하여 정해져야 할 것이다.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.

100: 광 컨버터 100: optical converter

Claims (10)

복수의 광 컨버터들이 광 케이블을 통해 링모드로 연결되어 있는 RS485 광통신 시스템의 이상 상태 감지 및 제어방법에 있어서,
상기 광 컨버터는 이웃하는 제1 광 컨버터로부터 입력되는 광 신호의 주파수를 감지하는 단계,
로우 레벨 신호에 대응되는 제1 주파수를 가지는 광 신호가 제1 기간 동안 지속되어 입력되는지를 판단하는 단계, 그리고
상기 제1 주파수를 가지는 광 신호가 상기 제1 기간 동안 지속되어 입력되는 경우, 하이 레벨 신호에 대응되는 제2 주파수를 가지는 광 신호로 변환시켜 상기 제1 기간보다 짧은 제2 기간 동안 이웃하는 제2 광 컨버터로 전달하는 단계를 포함하는 RS485 광통신 시스템의 이상 상태 감지 및 제어방법.
In the abnormal state detection and control method of the RS485 optical communication system in which a plurality of optical converters are connected in a ring mode through an optical cable,
The optical converter detects a frequency of an optical signal input from a neighboring first optical converter,
Determining whether an optical signal having a first frequency corresponding to the low level signal continues to be input for a first period of time, and
When the optical signal having the first frequency is continuously input for the first period, a second signal is converted into an optical signal having a second frequency corresponding to a high level signal and neighbors for a second period shorter than the first period. Abnormal state detection and control method of the RS485 optical communication system comprising the step of transmitting to the optical converter.
제1항에 있어서,
상기 광 컨버터는,
통신단말로부터 수신한 RS485 광통신 프로토콜의 전기적 신호를 광 신호로 변환하거나, 광 신호를 전기적 신호로 변환하는 RS485 광통신 시스템의 이상 상태 감지 및 제어방법.
The method of claim 1,
The optical converter,
An abnormal state detection and control method of an RS485 optical communication system converting an electrical signal of an RS485 optical communication protocol received from a communication terminal into an optical signal or converting an optical signal into an electrical signal.
삭제delete 제1항에 있어서,
상기 제1 기간은 33ms 내지 34ms이고, 상기 제2 기간은 1㎲ 내지 3㎲인 RS485 광통신 시스템의 이상 상태 감지 및 제어방법.
The method of claim 1,
Wherein the first period is 33ms to 34ms, and the second period is 1ms to 3ms.
제1항에 있어서,
상기 제1 주파수를 가지는 광 신호가 상기 제1 기간 동안 지속되는 경우, 상기 제2 주파수를 가지는 광 신호로 변환시켜 상기 제2 기간 동안 상기 제2 광 컨버터로 전달하는 단계는,
상기 RS 통신 상태를 대기 상태인 마크 상태로 변환시키는 RS485 광통신 시스템의 이상 상태 감지 및 제어방법.
The method of claim 1,
When the optical signal having the first frequency lasts for the first period, converting the optical signal having the second frequency to the second optical converter during the second period may include:
An abnormal state detection and control method of an RS485 optical communication system for converting the RS communication state into a mark state in a standby state.
복수의 광 컨버터들이 광 케이블을 통해 링모드로 연결되어 있는 RS485 광통신 시스템에 있어서,
상기 광 컨버터는,
이웃하는 제1 광 컨버터로부터 입력되는 제1 주파수를 가지는 광 신호가 제1 기간 동안 지속되는지를 판단하고, 상기 제1 주파수를 가지는 광 신호가 상기 제1 기간 동안 지속되는 경우, 하이 레벨 신호에 대응되는 제2 주파수를 가지는 광 신호로 변환시켜 상기 제1 기간보다 짧은 제2 기간 동안 이웃하는 제2 광 컨버터로 전달하는 RS485 광통신 시스템.
In an RS485 optical communication system in which a plurality of optical converters are connected in a ring mode through an optical cable,
The optical converter,
It is determined whether the optical signal having the first frequency input from the neighboring first optical converter lasts for the first period, and when the optical signal having the first frequency lasts for the first period, it corresponds to the high level signal. RS485 optical communication system for converting into an optical signal having a second frequency to be transmitted to the neighboring second optical converter for a second period shorter than the first period.
제6항에 있어서,
상기 광 컨버터는 통신단말로부터 수신한 RS485 광통신 프로토콜의 전기적 신호를 광 신호로 변환하거나, 광 신호를 전기적 신호로 변환하는 RS485 광통신 시스템.
The method of claim 6,
The optical converter is an RS485 optical communication system for converting an electrical signal of the RS485 optical communication protocol received from the communication terminal into an optical signal, or converts the optical signal into an electrical signal.
삭제delete 제6항에 있어서,
상기 제1 기간은 33ms 내지 34ms이고, 상기 제2 기간은 1㎲ 내지 3㎲인 RS485 광통신 시스템.
The method of claim 6,
And the first period is 33ms to 34ms, and the second period is 1ms to 3ms.
제6항에 있어서,
상기 제2 기간 동안 상기 제2 주파수를 가지는 광 신호를 전달하여, 상기 RS 통신 상태를 대기 상태인 마크 상태로 변환시키는 RS485 광통신 시스템.


The method of claim 6,
An RS485 optical communication system for transferring the optical signal having the second frequency during the second period to convert the RS communication state into a mark state in standby state.


KR1020100044544A 2010-05-12 2010-05-12 Method of sensing abnormal state and controlling of rs485 communication system KR101113152B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100044544A KR101113152B1 (en) 2010-05-12 2010-05-12 Method of sensing abnormal state and controlling of rs485 communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100044544A KR101113152B1 (en) 2010-05-12 2010-05-12 Method of sensing abnormal state and controlling of rs485 communication system

Publications (2)

Publication Number Publication Date
KR20110125023A KR20110125023A (en) 2011-11-18
KR101113152B1 true KR101113152B1 (en) 2012-02-13

Family

ID=45394619

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100044544A KR101113152B1 (en) 2010-05-12 2010-05-12 Method of sensing abnormal state and controlling of rs485 communication system

Country Status (1)

Country Link
KR (1) KR101113152B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199338A (en) * 2014-08-04 2014-12-10 珠海中慧微电子有限公司 Communication control method of RS485 communication circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR980013168A (en) * 1996-07-25 1998-04-30 배순훈 A communication device capable of detecting the presence or absence of transmission data.
KR20080103778A (en) * 2007-05-25 2008-11-28 주식회사 다산네트웍스 Optical network terminal having a self diagnosis

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR980013168A (en) * 1996-07-25 1998-04-30 배순훈 A communication device capable of detecting the presence or absence of transmission data.
KR20080103778A (en) * 2007-05-25 2008-11-28 주식회사 다산네트웍스 Optical network terminal having a self diagnosis

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199338A (en) * 2014-08-04 2014-12-10 珠海中慧微电子有限公司 Communication control method of RS485 communication circuit
CN104199338B (en) * 2014-08-04 2017-03-15 珠海中慧微电子有限公司 A kind of communicating control method of RS485 communicating circuits

Also Published As

Publication number Publication date
KR20110125023A (en) 2011-11-18

Similar Documents

Publication Publication Date Title
US10405405B2 (en) Apparatus, method and system for controlling a load device via a power line by using a power negotiation protocol
US20120011286A1 (en) Optical communication module, universal serial bus cable with the same and processing method of data transfer thereof
US8315516B2 (en) Signal transmitter, signal receiver, and signal transmission system
US7340363B2 (en) Apparatus of automatically detecting type of cable connected to network and method thereof
US7847561B2 (en) Network device, network connection detector and detection method thereof
CN102648459B (en) For linking automation equipment and the communication converter of computing machine and the method for controlling this communication converter
JP2836592B2 (en) Optical transceiver and network using the optical transceiver
CN103399251A (en) USB (Universal Serial Bus) communication line detection device
WO2016203973A1 (en) Communication device and control method
US10389436B2 (en) Communication device, communication system, and communication method
KR101113152B1 (en) Method of sensing abnormal state and controlling of rs485 communication system
CN1279554A (en) Signal input/output device
JP4940764B2 (en) Communication control device
CN102347798B (en) Optical signal transmission method, equipment and transmission systemof optical signal
CN113127401B (en) Earphone box and earphone communication method and system
JP2012070111A (en) Communication system
CN112449148A (en) Camera, camera system and data transmission system
JP2006238317A (en) Equipment control apparatus
CN112202573B (en) Two-wire system power supply and networking communication system
CN108429622B (en) Reverse power supply method and device
US20180041286A1 (en) Communication device and communication system
JP2008172329A (en) Power line communication method and device
CN102377488A (en) Optical fiber control device as well as optical fiber communication network and use method thereof
US20140172331A1 (en) Manufacturing device network
KR100866401B1 (en) Remote contol method for cctv

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
LAPS Lapse due to unpaid annual fee