KR20200076063A - Apparatus and method of detecting error of serial communication lines - Google Patents

Apparatus and method of detecting error of serial communication lines Download PDF

Info

Publication number
KR20200076063A
KR20200076063A KR1020180164745A KR20180164745A KR20200076063A KR 20200076063 A KR20200076063 A KR 20200076063A KR 1020180164745 A KR1020180164745 A KR 1020180164745A KR 20180164745 A KR20180164745 A KR 20180164745A KR 20200076063 A KR20200076063 A KR 20200076063A
Authority
KR
South Korea
Prior art keywords
communication line
circuit
data
received
microcontroller
Prior art date
Application number
KR1020180164745A
Other languages
Korean (ko)
Other versions
KR102144791B1 (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 KR1020180164745A priority Critical patent/KR102144791B1/en
Publication of KR20200076063A publication Critical patent/KR20200076063A/en
Application granted granted Critical
Publication of KR102144791B1 publication Critical patent/KR102144791B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/08Modifications for reducing interference; Modifications for reducing effects due to line faults ; Receiver end arrangements for detecting or overcoming line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/0264Arrangements for coupling to transmission lines
    • H04L25/0266Arrangements for providing Galvanic isolation, e.g. by means of magnetic or capacitive coupling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/20Repeater circuits; Relay circuits

Abstract

The present invention relates to an apparatus for detecting an abnormality in serial communication lines and a method thereof. More particularly, the present invention relates to a technology comprising: a first communication line check circuit which receives at least one of a low value or a high value reflecting the connection state of a communication line from a relay circuit connected to external data terminal equipment (DTE) through the communication line; a second communication line check circuit which receives at least one of a low value or a high value reflecting the connection state of the communication line from the relay circuit; and a microcontroller which compares whether data is received between a plurality of data ports and the first communication line check circuit or the second communication line check circuit to determine a communication line that does not operate normally among the communication lines.

Description

시리얼 통신선의 이상을 감지하는 장치 및 방법{APPARATUS AND METHOD OF DETECTING ERROR OF SERIAL COMMUNICATION LINES}Device and method for detecting abnormality of serial communication line{APPARATUS AND METHOD OF DETECTING ERROR OF SERIAL COMMUNICATION LINES}

본 발명은 멀티 드롭(Multi Drop) 통신에서 데이터가 전달되는 통신선의 이상을 감지하여 원활한 통신을 지원하는 기술적 사상에 관한 것으로서, 보다 상세하게는 통신선의 이상 유무를 판단하는 회로를 통해 정상 동작하지 않는 통신선을 선별하여 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment) 간의 원활한 통신을 지원하는 기술에 관한 것이다.The present invention relates to a technical idea of supporting a smooth communication by detecting an abnormality in a communication line through which data is transmitted in multi-drop communication, and more specifically, does not operate normally through a circuit for determining whether or not there is an abnormality in the communication line. It relates to a technology for selecting a communication line and supporting smooth communication between an internal data terminal equipment (DTE) and an external data terminal equipment (DTE).

일반적으로, 내부 통신 장치가 외부 통신 장치를 통해서 외부와 정보를 교환하기 위한 방법으로는 병렬통신과 직렬통신 2가지로 분리할 수 있다.Generally, a method for an internal communication device to exchange information with the outside through an external communication device can be divided into two types: parallel communication and serial communication.

고속의 통신속도를 필요로 하여 한꺼번에 많은 정보를 처리할 수 있는 병렬통신 방식이 주로 이용되는데, 이는 대량의 정보를 빠른 시간에 한꺼번에 처리함으로써 통신 성능을 향상시킬 수 있기 때문이다.A parallel communication method that can process a lot of information at a time by using a high-speed communication speed is mainly used, because it is possible to improve communication performance by processing a large amount of information at once.

그러나, 병렬통신은 통신거리의 제한성, 구현상의 기술적인 어려움과 고비용에 따라 선호되지 않으며, 고속의 통신속도가 요구되지 않는 통신을 수행할 경우, 직렬통신 방식이 많이 사용되어왔다.However, parallel communication is not preferred due to the limitation of communication distance, technical difficulties in implementation, and high cost, and when performing communication that does not require a high-speed communication speed, a serial communication method has been widely used.

직렬통신의 대표적인 것으로 RS485가 존재하며, RS485는 최대 256 다점 사이의 전송을 지원하는 멀티 드롭(Multi Drop) 통신의 대표 프로토콜 중 하나이다.RS485 exists as a representative of serial communication, and RS485 is one of the representative protocols of multi-drop communication supporting transmission between up to 256 multipoints.

종래의 RS485는 마스터 보드(Master Board), 슬레이브 보드(Slave Board) 각각에 송신부를 제어하는 제어장치가 구현되었으며, 각각의 보드의 제어장치에서 해당 보드의 송신 가능 여부를 확인하도록 제시되었다.In the conventional RS485, a control device for controlling a transmission unit is implemented in each of a master board and a slave board, and it has been proposed to check whether a corresponding board can be transmitted from a control device of each board.

다만, 종래의 RS485 통신에 이용되는 회로는 데이터를 전달하는 통신 선의 이상 유무를 판단하기 위한 회로 구성을 포함하지 않는다.However, the circuit used for the conventional RS485 communication does not include a circuit configuration for determining the presence or absence of an abnormality in a communication line transmitting data.

즉, 종래의 RS485는 통신을 수행하는 DTE(Data Terminal Equipment) 간에 데이터를 송신하면 송신한 데이터가 정상적으로 송신 되었는지 확인하지 못하고, 수신 시에도 RS485 통신선 간 단락 또는 선의 단선 또는 외부의 DTE의 IC(Integrated Chip)의 불량 등을 인지하지 못한다는 단점이 존재한다.That is, in the conventional RS485, when data is transmitted between DTEs (Data Terminal Equipments) that perform communication, it is not possible to check whether the transmitted data is normally transmitted, and even when receiving, a short circuit or a line break between RS485 communication lines or an external DTE IC (Integrated) The disadvantage of not being able to recognize defects of the chip).

따라서, 직렬통신 기반의 멀티 드롭 통신에서 데이터가 전달되는 통신선의 이상을 발견하고, 발견된 이상 부분을 처리하는 기술이 개발될 필요성이 존재한다.Accordingly, there is a need to develop a technique for discovering an abnormality in a communication line through which data is transmitted in a multi-drop communication based on serial communication and processing the found abnormality portion.

일본등록특허 제6042649호, "LAN통신을 이용한 기기 관리 시스템"Japanese Patent No. 602649, "Device management system using LAN communication" 한국등록특허 제10-0676857호, "알에스485 프로토콜을 이용하는 통신장치"Korean Registered Patent No. 10-0676857, "Communication device using RS485 protocol" 한국등록특허 제10-0689823호, "알에스-485통신 제어장치"Korean Registered Patent No. 10-0689823, "RS-485 communication control device" 한국등록특허 제10-1539579호, "RS232C 직렬 통신 하드웨어 이상 감지 처리장치 및 그 방법"Korean Registered Patent No. 10-1539579, "RS232C serial communication hardware error detection processing device and method"

본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터가 전달되는 통신선 중 정상동작하지 않는 통신선을 감지하여 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment) 간의 원활한 통신을 지원하는 것을 목적으로 할 수 있다.The present invention detects a communication line that does not normally operate among communication lines through which data is transmitted in RS485 communication, which is multi-drop communication, and supports smooth communication between an internal data terminal equipment (DTE) and an external data terminal equipment (DTE). You can do it for the purpose.

본 발명은 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment)를 접속해주는 버스(BUS) 통신선을 차단 또는 연결하는 릴레이 회로를 제어하여 외부의 DTE(Data Terminal Equipment)들 간의 원활한 통신을 지원하는 것을 목적으로 할 수 있다.The present invention controls a relay circuit that blocks or connects a bus (BUS) communication line connecting an internal data terminal equipment (DTE) and an external data terminal equipment (DTE) to facilitate smooth communication between external data terminal equipment (DTE). You can aim to apply.

본 발명은 외부의 DTE(Data Terminal Equipment)에서 이상을 감지할 경우, 외부의 DTE(Data Terminal Equipment)와 연결을 유지하도록 릴레이 회로를 제어하여 외부의 DTE(Data Terminal Equipment)의 정상 동작 복귀 시, 즉시 통신이 가능하도록 제어하는 것을 목적으로 할 수 있다.In the present invention, when an abnormality is detected by an external data terminal equipment (DTE), the relay circuit is controlled to maintain a connection with an external data terminal equipment (DTE), and upon normal operation of the external data terminal equipment (DTE), It can be aimed at controlling to enable immediate communication.

본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터의 송신 또는 수신 중 적어도 하나에 대한 이상 유무를 확인하는 것을 목적으로 할 수 있다.The present invention may be intended to check the presence or absence of at least one of transmission or reception of data in RS485 communication, which is multi-drop communication.

본 발명의 일실시예에 따르면 시리얼 통신선의 이상을 감지하는 장치는 수신포트, 송신포트, 및 복수의 데이터 포트를 포함하는 마이크로컨트롤러, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 제1 통신선 확인회로, 및 상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 제2 통신선 확인회로를 포함하고, 상기 마이크로컨트롤러는, 상기 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단할 수 있다.According to an embodiment of the present invention, a device for detecting an abnormality in a serial communication line is provided from a microcontroller including a reception port, a transmission port, and a plurality of data ports, from external DTE (Data Terminal Equipment) and relay circuits connected through a communication line. A first communication line confirmation circuit for receiving at least one of a low value or a high value reflecting the connection state of the communication line, and a second communication line for receiving at least one of a low or high value reflecting the connection state of the communication line from the relay circuit Including a confirmation circuit, the microcontroller compares whether data is received between the plurality of data ports and the first communication line confirmation circuit or the second communication line confirmation circuit, and determines a communication line that does not normally operate among the communication lines. Can.

상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단할 수 있다.When the high value is received from the first communication line confirmation circuit and the low value is received from the second communication line confirmation circuit, the microcontroller may connect a communication line connected to the second communication line verification circuit through the relay circuit among the communication lines. It may be determined that the communication line does not operate normally.

상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단할 수 있다.When the low value is received from the first communication line confirmation circuit and the high value is received from the second communication line confirmation circuit, the microcontroller may connect a communication line connected to the first communication line verification circuit through the relay circuit among the communication lines. It may be determined that the communication line does not operate normally.

상기 마이크로컨트롤러는 상기 제1 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하고, 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신할 수 있다.The microcontroller receives data through any one of the plurality of data ports when a high value is received from the first communication line confirmation circuit, and when a high value is received from the second communication line confirmation circuit, the plurality of Data can be received through any of the data ports.

상기 마이크로컨트롤러는 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 상기 수신포트를 통해 데이터를 수신할 수 있다.The microcontroller may receive data through the reception port when a high value is received from the first communication line verification circuit and the second communication line verification circuit.

상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선의 연결을 차단하도록 상기 릴레이 회로를 제어할 수 있다.When the high value is received from the first communication line confirmation circuit and the low value is received from the second communication line confirmation circuit, the microcontroller is configured to communicate with the second communication line confirmation circuit through the relay circuit among the communication lines. The relay circuit can be controlled to cut off the connection.

상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선의 연결을 차단하도록 상기 릴레이 회로를 제어할 수 있다.When the low value is received from the first communication line verification circuit and the high value is received from the second communication line verification circuit, the microcontroller is configured to communicate with the first communication line verification circuit through the relay circuit among the communication lines. The relay circuit can be controlled to cut off the connection.

상기 마이크로컨트롤러는, 상기 외부의 DTE(Data Terminal Equipment)에 대한 통신 이상을 감지할 경우, 상기 통신선의 연결을 유지하도록 상기 릴레이 회로를 제어할 수 있다.The microcontroller may control the relay circuit to maintain the connection of the communication line when detecting an abnormal communication with the external data terminal equipment (DTE).

상기 마이크로컨트롤러는 상기 복수의 데이터 포트 중 어느 하나를 통해 로우값 또는 하이값 중 어느 하나를 출력하여 송신 모드 또는 수신 모드 중 어느 하나를 결정하고, 상기 송신 모드에서 상기 송신포트를 통해 데이터를 출력할 수 있다.The microcontroller determines one of a transmission mode or a reception mode by outputting either a low value or a high value through one of the plurality of data ports, and outputs data through the transmission port in the transmission mode. Can.

상기 송신포트를 통해 출력된 데이터를 상기 수신포트, 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로로 전달하는 송신 확인회로를 더 포함할 수 있다.The transmission port may further include a transmission confirmation circuit that transmits data output through the transmission port to the reception port, the first communication line confirmation circuit, and the second communication line confirmation circuit.

상기 마이크로컨트롤러는, 상기 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 송신포트를 통해 출력된 데이터의 송신 여부를 판단할 수 있다.The microcontroller may determine whether to transmit data output through the transmission port by comparing whether or not data is received between the plurality of data ports and the first communication line confirmation circuit or the second communication line confirmation circuit.

본 발명의 일실시예에 따르면 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 단계, 제2 통신선 확인회로에서, 상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 단계, 및 마이크로컨트롤러에서, 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 단계를 포함할 수 있다.According to an embodiment of the present invention, a method for detecting an abnormality in a serial communication line is a first communication line confirmation circuit, a low value reflecting the connection state of the communication line from an external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line, or Receiving at least one of the high value, the second communication line check circuit, receiving at least one of a low value or a high value reflecting the connection state of the communication line from the relay circuit, and in the microcontroller, a plurality of data ports And comparing data received between the first communication line verification circuit or the second communication line verification circuit, and determining a communication line that does not normally operate among the communication lines.

상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 단계는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는 단계, 및 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는 단계를 포함할 수 있다.The determining of a communication line that does not normally operate among the communication lines may include, when a high value is received from the first communication line confirmation circuit and a low value is received from the second communication line confirmation circuit, through the relay circuit among the communication lines. Determining a communication line connected to a second communication line verification circuit as the communication line that does not operate normally, and when a low value is received from the first communication line verification circuit and a high value is received from the second communication line verification circuit, the communication line Among the steps, it may include determining a communication line connected to the first communication line confirmation circuit through the relay circuit as the communication line that does not operate normally.

본 발명의 일실시예에 따르면 시리얼 통신선의 이상을 감지하는 방법은 상기 마이크로컨트롤러에서, 상기 제1 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하는 단계 상기 마이크로컨트롤러에서, 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하는 단계, 및 상기 마이크로컨트롤러는 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 수신포트를 통해 데이터를 수신하는 단계를 더 포함할 수 있다.According to an embodiment of the present invention, a method for detecting an abnormality in a serial communication line receives data through any one of the plurality of data ports when a high value is received from the first communication line confirmation circuit in the microcontroller. Step In the microcontroller, when a high value is received from the second communication line verification circuit, receiving data through any one of the plurality of data ports, and the microcontroller is the first communication line verification circuit and the first 2, when a high value is received from the communication line confirmation circuit, the method may further include receiving data through the reception port.

본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터가 전달되는 통신선 중 정상동작하지 않는 통신선을 감지하여 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment) 간의 원활한 통신을 지원할 수 있다.The present invention detects a communication line that does not normally operate among communication lines for transmitting data in RS485 communication, which is multi-drop communication, and can support smooth communication between an internal DTE (Data Terminal Equipment) and an external DTE (Data Terminal Equipment). have.

본 발명은 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment)를 접속해주는 버스(BUS) 통신선을 차단 또는 연결하는 릴레이 회로를 제어하여 외부의 DTE(Data Terminal Equipment)들 간의 원활한 통신을 지원할 수 있다.The present invention controls a relay circuit that blocks or connects a bus (BUS) communication line connecting an internal data terminal equipment (DTE) and an external data terminal equipment (DTE) to facilitate smooth communication between external data terminal equipment (DTE). I can apply.

본 발명은 외부의 DTE(Data Terminal Equipment)에서 이상을 감지할 경우, 외부의 DTE(Data Terminal Equipment)와 연결을 유지하도록 릴레이 회로를 제어하여 외부의 DTE(Data Terminal Equipment)의 정상 동작 복귀 시, 즉시 통신이 가능하도록 제어할 수 있다.In the present invention, when an abnormality is detected by an external data terminal equipment (DTE), the relay circuit is controlled to maintain a connection with an external data terminal equipment (DTE), and upon normal operation of the external data terminal equipment (DTE), It can be controlled to enable immediate communication.

본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터의 송신 또는 수신 중 적어도 하나에 대한 이상 유무를 확인할 수 있다.The present invention can check whether there is an abnormality in at least one of transmission or reception of data in RS485 communication, which is multi-drop communication.

도 1은 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 블록도를 설명하는 도면이다.
도 2는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 회로도를 설명하는 도면이다.
도 3 및 도 4는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법과 관련된 흐름도를 설명하는 도면이다.
1 is a view for explaining a block diagram of an apparatus for detecting an abnormality in a serial communication line according to an embodiment of the present invention.
2 is a diagram illustrating a circuit diagram of an apparatus for detecting an abnormality in a serial communication line according to an embodiment of the present invention.
3 and 4 are diagrams illustrating a flowchart related to a method of detecting an abnormality in a serial communication line according to an embodiment of the present invention.

본 명세서에 개시되어 있는 본 발명의 개념에 따른 실시예들에 대해서 특정한 구조적 또는 기능적 설명들은 단지 본 발명의 개념에 따른 실시예들을 설명하기 위한 목적으로 예시된 것으로서, 본 발명의 개념에 따른 실시예들은 다양한 형태로 실시될 수 있으며 본 명세서에 설명된 실시예들에 한정되지 않는다.Specific structural or functional descriptions of the embodiments according to the concept of the present invention disclosed in this specification are exemplified only for the purpose of explaining the embodiments according to the concept of the present invention, and the embodiments according to the concept of the present invention These can be implemented in various forms and are not limited to the embodiments described herein.

본 발명의 개념에 따른 실시예들은 다양한 변경들을 가할 수 있고 여러 가지 형태들을 가질 수 있으므로 실시예들을 도면에 예시하고 본 명세서에 상세하게 설명하고자 한다. 그러나, 이는 본 발명의 개념에 따른 실시예들을 특정한 개시형태들에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 변경, 균등물, 또는 대체물을 포함한다.Embodiments according to the concept of the present invention can be applied to various changes and can have various forms, so the embodiments will be illustrated in the drawings and described in detail herein. However, this is not intended to limit the embodiments according to the concept of the present invention to specific disclosure forms, and includes changes, equivalents, or substitutes included in the spirit and scope of the present invention.

제1 또는 제2 등의 용어를 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만, 예를 들어 본 발명의 개념에 따른 권리 범위로부터 이탈되지 않은 채, 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소는 제1 구성요소로도 명명될 수 있다.Terms such as first or second may be used to describe various components, but the components should not be limited by the terms. The above terms are only for the purpose of distinguishing one component from other components, for example, without departing from the scope of rights according to the concept of the present invention, the first component may be referred to as the second component, Similarly, the second component may also be referred to as the first component.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다. 구성요소들 간의 관계를 설명하는 표현들, 예를 들어 "~사이에"와 "바로~사이에" 또는 "~에 직접 이웃하는" 등도 마찬가지로 해석되어야 한다.When an element is said to be "connected" or "connected" to another component, it is understood that other components may be directly connected or connected to the other component, but other components may exist in the middle. It should be. On the other hand, when a component is said to be "directly connected" or "directly connected" to another component, it should be understood that no other component exists in the middle. Expressions describing the relationship between the components, for example, "between" and "immediately between" or "directly neighboring to" should also be interpreted.

본 명세서에서 사용한 용어는 단지 특정한 실시예들을 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 설시된 특징, 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것이 존재함으로 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used herein is only used to describe specific embodiments and is not intended to limit the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this specification, the terms "include" or "have" are intended to designate the presence of a feature, number, step, action, component, part, or combination thereof as described, one or more other features or numbers, It should be understood that the presence or addition possibilities of steps, actions, components, parts or combinations thereof are not excluded in advance.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가진다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥상 가지는 의미와 일치하는 의미를 갖는 것으로 해석되어야 하며, 본 명세서에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by a person skilled in the art to which the present invention pertains. Terms such as those defined in a commonly used dictionary should be interpreted as having meanings consistent with meanings in the context of related technologies, and should not be interpreted as ideal or excessively formal meanings unless explicitly defined herein. Does not.

이하, 실시예들을 첨부된 도면을 참조하여 상세하게 설명한다. 그러나, 특허출원의 범위가 이러한 실시예들에 의해 제한되거나 한정되는 것은 아니다. 각 도면에 제시된 동일한 참조 부호는 동일한 부재를 나타낸다.Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. However, the scope of the patent application is not limited or limited by these embodiments. The same reference numerals in each drawing denote the same members.

도 1은 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 블록도를 설명하는 도면이다.1 is a view for explaining a block diagram of an apparatus for detecting an abnormality in a serial communication line according to an embodiment of the present invention.

구체적으로, 도 1은 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 구성 요소를 예시한다.Specifically, FIG. 1 illustrates a component of an apparatus for detecting an abnormality in a serial communication line according to an embodiment of the present invention.

도 1을 참고하면, 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치(100)는 제1 통신선 확인회로(110), 제2 통신선 확인회로(120) 및 마이크로컨트롤러(micro controller)(130)를 포함할 수 있다.Referring to FIG. 1, an apparatus 100 for detecting an abnormality in a serial communication line according to an embodiment of the present invention includes a first communication line verification circuit 110, a second communication line verification circuit 120, and a micro controller It may include (130).

예를 들어, 시리얼 통신선의 이상을 감지하는 장치(100)는 내부 DTE(Data Terminal Equipment), 내부 DTE의 구성 요소, 또는 내부 DTE의 일부 구성을 이용하는 엔티티로 해석될 수 있다.For example, the device 100 for detecting an abnormality of the serial communication line may be interpreted as an internal data terminal equipment (DTE), a component of the internal DTE, or an entity using some components of the internal DTE.

본 발명의 일실시예에 따르면 제1 통신선 확인회로(110)는 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이(Relay) 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다. According to an embodiment of the present invention, the first communication line identification circuit 110 is at least one of a low value or a high value reflecting the connection state of the communication line from an external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line. Can receive.

예를 들어, 릴레이 회로는 외부의 DTE와 제1 통신선 확인회로(110)의 사이에 위치하여 외부의 DTE와 제1 통신선 확인회로 사이의 통신선의 연결을 차단 또는 유지하도록 제어될 수 있고, 시리얼 통신선의 이상을 감지하는 장치(100)에 포함될 수 있다.For example, the relay circuit is located between the external DTE and the first communication line identification circuit 110 and can be controlled to block or maintain the connection of the communication line between the external DTE and the first communication line verification circuit, and the serial communication line It may be included in the device 100 for detecting an abnormality.

일례로, 제1 통신선 확인회로(110)는 필터, 인버터 또는 비교기 중 적어도 하나를 포함하고, 필터, 인버터 또는 비교기 중 적어도 하나에 기반하여 통신선의 연결 상태가 반영된 값을 로우값 또는 하이값으로 수신할 수 있다.For example, the first communication line confirmation circuit 110 includes at least one of a filter, an inverter, or a comparator, and receives a value reflecting a connection state of a communication line as a low value or a high value based on at least one of the filter, inverter, or comparator can do.

예를 들어, 하이값은 "H", "1", "긍정" 및 임계값 이상의 데이터를 포함할 수 있고, 로우값은 "L", "0", "부정" 및 임계값 이하의 데이터를 포함할 수 있다.For example, a high value may include "H", "1", "positive", and data above a threshold, and a low value may include "L", "0", "negative", and sub-threshold data. It can contain.

본 발명의 일실시예에 따르면 제1 통신선 확인회로(110)는 릴레이 회로를 통해 연결되는 통신선 중 제1 통신선을 통한 데이터의 수신 또는 송신 중 적어도 하나에 대한 데이터 전달 상태를 확인하도록 제어될 수 있다.According to an embodiment of the present invention, the first communication line confirmation circuit 110 may be controlled to check a data transmission state for at least one of reception or transmission of data through the first communication line among communication lines connected through a relay circuit. .

일례로, 제1 통신선 확인회로(110)는 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중 하이값을 수신할 경우, 복수의 데이터 포트 중 어느 하나로 데이터를 전달할 수 있다.For example, when receiving the high value of the low value or the high value reflecting the connection state of the communication line from the relay circuit, the first communication line confirmation circuit 110 may transmit data to one of a plurality of data ports.

또한, 제1 통신선 확인회로(110)는 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중 로우값을 수신할 경우, 복수의 데이터 포트 중 어느 하나로 데이터를 전달할 수 없다.In addition, when receiving the low value of the low value or the high value reflecting the connection state of the communication line from the relay circuit, the first communication line confirmation circuit 110 cannot transmit data to any one of the plurality of data ports.

본 발명의 일실시예에 따르면 제2 통신선 확인회로(120)는 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이(Relay) 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.According to an embodiment of the present invention, the second communication line confirmation circuit 120 is at least one of a low value or a high value reflecting the connection state of the communication line from an external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line. Can receive.

예를 들어, 릴레이 회로는 외부의 DTE와 제2 통신선 확인회로(120)의 사이에 위치하여 외부의 DTE와 제2 통신선 확인회로 사이의 통신선의 연결을 차단 또는 유지할 수 있다.For example, the relay circuit may be positioned between the external DTE and the second communication line verification circuit 120 to block or maintain the connection of the communication line between the external DTE and the second communication line verification circuit.

일례로, 제2 통신선 확인회로(120)는 필터, 인버터 또는 비교기 중 적어도 하나를 포함하고, 필터, 인버터 또는 비교기 중 적어도 하나에 기반하여 통신선의 연결 상태가 반영된 값을 로우값 또는 하이값으로 수신할 수 있다.In one example, the second communication line checking circuit 120 includes at least one of a filter, an inverter, or a comparator, and receives a value reflecting the connection state of the communication line as a low value or a high value based on at least one of the filter, inverter, or comparator can do.

본 발명의 일실시예에 따르면 제2 통신선 확인회로(120)는 릴레이 회로를 통해 연결되는 통신선 중 제2 통신선을 통한 데이터의 수신 또는 송신 중 적어도 하나에 대한 데이터 전달 상태를 확인하도록 제어될 수 있다.According to an embodiment of the present invention, the second communication line confirmation circuit 120 may be controlled to check a data transmission state for at least one of reception or transmission of data through the second communication line among communication lines connected through a relay circuit. .

일례로, 제2 통신선 확인회로(120)는 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중 하이값을 수신할 경우, 복수의 데이터 포트 중 어느 하나로 데이터를 전달할 수 있다.For example, the second communication line confirmation circuit 120 may transmit data to any one of a plurality of data ports when receiving a high value among low or high values reflecting the connection state of the communication line from the relay circuit.

또한, 제2 통신선 확인회로(120)는 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중 로우값을 수신할 경우, 복수의 데이터 포트 중 어느 하나로 데이터를 전달할 수 없다.In addition, when receiving the low value of the low value or the high value reflecting the connection state of the communication line from the relay circuit, the second communication line confirmation circuit 120 cannot transmit data to any one of the plurality of data ports.

본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 수신포트, 송신포트 및 복수의 데이터 포트를 포함하고, 복수의 데이터 포트 중 어느 하나는 제1 통신선 확인회로(110)와 연결되고, 어느 하나는 제2 통신선 확인회로(120)와 연결되며, 어느 하나는 송수신 모드를 제어하는 신호를 출력할 수 있다.According to an embodiment of the present invention, the microcontroller 130 includes a reception port, a transmission port, and a plurality of data ports, and any one of the plurality of data ports is connected to the first communication line confirmation circuit 110, and any one Is connected to the second communication line confirmation circuit 120, one of which can output a signal to control the transmission and reception mode.

예를 들어, 복수의 데이터 포트 중 제1 데이터 포트 중 제1 통신선 확인회로(110)와 연결되고, 제2 데이터 포트는 제2 통신선 확인회로(110)와 연결되며, 제3 데이터 포트는 송수신 모드를 제어하는 신호를 출력할 수 있다.For example, among a plurality of data ports, a first communication line confirmation circuit 110 of a first data port is connected, a second data port is connected to a second communication line confirmation circuit 110, and a third data port is a transmission/reception mode. It can output a signal to control the.

본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 복수의 데이터 포트와, 제1 통신선 확인회로(110) 또는 제2 통신선 확인회로(120) 간의 데이터 수신 여부를 비교해서, 통신선 중에서 정상 동작하지 않는 통신선을 판단할 수 있다.According to an embodiment of the present invention, the microcontroller 130 compares whether data is received between the plurality of data ports and the first communication line confirmation circuit 110 or the second communication line confirmation circuit 120, and does not operate normally among the communication lines. The communication line can be judged.

일례로, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110)에서 하이값이 수신되고, 제2 통신선 확인회로(120)에서 로우값이 수신되는 경우, 통신선 중에서 릴레이 회로를 통해 제2 통신선 확인회로(120)에 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.For example, the microcontroller 130 checks the second communication line through the relay circuit among the communication lines when a high value is received from the first communication line verification circuit 110 and a low value is received from the second communication line verification circuit 120. The communication line connected to the circuit 120 may be determined as a communication line that does not operate normally.

본 발명의 일실시예에 따르면, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110)에서 하이값이 수신될 경우, 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하고, 제2 통신선 확인회로(120)에서 하이값이 수신될 경우, 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신할 수 있다.According to an embodiment of the present invention, when a high value is received from the first communication line confirmation circuit 110, the microcontroller 130 receives data through any one of a plurality of data ports, and the second communication line confirmation circuit When a high value is received at 120, data may be received through any one of a plurality of data ports.

또한, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110)에서 로우값이 수신될 경우, 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하지 않고, 제2 통신선 확인회로(120)에서 로우값이 수신될 경우, 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하지 않을 수 있다.In addition, when a low value is received from the first communication line confirmation circuit 110, the microcontroller 130 does not receive data through any one of a plurality of data ports, and the low value is obtained from the second communication line confirmation circuit 120. When this is received, data may not be received through any one of a plurality of data ports.

따라서, 본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터가 전달되는 통신선 중 정상동작하지 않는 통신선을 감지하여 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment) 간의 원활한 통신을 지원할 수 있다.Accordingly, the present invention detects a communication line that does not normally operate among communication lines through which data is transmitted in RS485 communication, which is multi-drop communication, and provides smooth communication between an internal data terminal equipment (DTE) and an external data terminal equipment (DTE). I can apply.

본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 제1 통신선 확인회로(110) 및 제2 통신선 확인회로(120)에서 하이값이 수신될 경우, 수신포트를 통해 데이터를 수신할 수 있다.According to an embodiment of the present invention, when a high value is received from the first communication line verification circuit 110 and the second communication line verification circuit 120, the microcontroller 130 may receive data through the reception port.

또한, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110) 또는 제2 통신선 확인회로(120) 중 어느 하나에서 로우값이 수신될 경우, 수신포트를 통해 데이터를 수신할 수 없다.Further, the microcontroller 130 cannot receive data through the reception port when a low value is received from either the first communication line verification circuit 110 or the second communication line verification circuit 120.

본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는, 제1 통신선 확인회로(110)에서 하이값이 수신되고, 제2 통신선 확인회로(120)에서 로우값이 수신되는 경우, 통신선 중에서 릴레이 회로를 통해 제2 통신선 확인회로(120)에 연결된 통신선의 연결을 차단하도록 릴레이 회로를 제어할 수 있다.According to an embodiment of the present invention, the microcontroller 130 is a relay circuit among communication lines when a high value is received from the first communication line confirmation circuit 110 and a low value is received from the second communication line confirmation circuit 120. Through it, the relay circuit can be controlled to cut off the connection of the communication line connected to the second communication line confirmation circuit 120.

일례로, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110)에서 로우값이 수신되고, 제2 통신선 확인회로(120)에서 하이값이 수신되는 경우, 통신선 중에서 릴레이 회로를 통해 제1 통신선 확인회로(110)에 연결된 통신선의 연결을 차단하도록 릴레이 회로를 제어할 수 있다.For example, when the low value is received from the first communication line check circuit 110 and the high value is received from the second communication line check circuit 120, the microcontroller 130 checks the first communication line through the relay circuit among the communication lines. The relay circuit may be controlled to cut off the connection of the communication line connected to the circuit 110.

따라서, 본 발명은 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment)를 접속해주는 버스(BUS) 통신선을 차단 또는 연결하는 릴레이 회로를 제어하여 외부의 DTE(Data Terminal Equipment)들 간의 원활한 통신을 지원할 수 있다.Therefore, the present invention controls the relay circuit that blocks or connects a bus (BUS) communication line connecting an internal DTE (Data Terminal Equipment) and an external DTE (Data Terminal Equipment), thereby seamlessly connecting external DTE (Data Terminal Equipment). Can support communication.

본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 외부의 DTE(Data Terminal Equipment)에 대한 통신 이상을 감지할 경우, 통신선의 연결을 유지하도록 릴레이 회로를 제어할 수 있다.According to an embodiment of the present invention, the microcontroller 130 may control the relay circuit to maintain the connection of the communication line when detecting an abnormal communication with the external data terminal equipment (DTE).

예를 들어, 마이크로컨트롤러(130)는 외부의 DTE로부터 데이터를 수신하는 수신 모드에서, 외부의 DTE로부터 데이터를 수신하지 못할 경우 외부의 DTE에 대한 통신 이상을 감지할 수 있다.For example, in the reception mode for receiving data from an external DTE, the microcontroller 130 may detect an abnormal communication with the external DTE when data is not received from the external DTE.

본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 복수의 데이터 포트 중 어느 하나를 통해 로우값 또는 하이값 중 어느 하나를 출력하여 송신 모드 또는 수신 모드 중 어느 하나를 결정하고, 송신 모드에서 송신포트를 통해 데이터를 출력할 수 있다.According to an embodiment of the present invention, the microcontroller 130 outputs either a low value or a high value through any one of a plurality of data ports to determine either a transmission mode or a reception mode, and transmits in the transmission mode Data can be output through the port.

즉, 마이크로컨트롤러(130)는 복수의 데이터 포트 중 어느 하나를 통해 로우값을 출력할 경우, 수신 모드를 유지하고, 하이값을 출력할 경우, 송신 모드로 전환할 수 있다.That is, the microcontroller 130 may maintain a reception mode when outputting a low value through any one of a plurality of data ports, and may switch to a transmission mode when outputting a high value.

본 발명의 다른 실시예에 따르면 시리얼 통신선의 이상을 감지하는 장치는 송신 확인회로를 더 포함할 수 있다.According to another embodiment of the present invention, an apparatus for detecting an abnormality in a serial communication line may further include a transmission confirmation circuit.

일례로, 마이크로컨트롤러(130)는 수신포트, 제1 통신선 확인회로 및 제2 통신선 확인회로로 송신포트를 통해 출력된 데이터를 전달하도록 송신 확인회로를 제어할 수 있다.For example, the microcontroller 130 may control the transmission confirmation circuit to transmit data output through the transmission port to the reception port, the first communication line confirmation circuit, and the second communication line confirmation circuit.

본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는, 복수의 데이터 포트와, 제1 통신선 확인회로 또는 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 송신포트를 통해 출력된 데이터의 송신 여부를 판단할 수 있다.According to an embodiment of the present invention, the microcontroller 130 compares whether data is received between a plurality of data ports and a first communication line confirmation circuit or a second communication line confirmation circuit, and transmits data output through the transmission port. Can judge.

일례로, 마이크로컨트롤러(130)는 송신모드 및 수신모드를 제어하되, 복수의 데이터 포트 중 제1 데이터 포트 및 제2 데이터 포트에서 데이터 수신 여부에 기초하여 데이터의 송신 및 수신에 대한 통신선 이상을 감지할 수 있다.In one example, the microcontroller 130 controls the transmission mode and the reception mode, but detects a communication line abnormality for transmission and reception of data based on whether data is received from the first data port and the second data port among the plurality of data ports. can do.

도 2는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 회로도를 설명하는 도면이다.2 is a diagram illustrating a circuit diagram of an apparatus for detecting an abnormality in a serial communication line according to an embodiment of the present invention.

구체적으로, 도 2는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 구성 요소와 시리얼 통신선의 이상을 감지하는 장치와 외부의 DTE 간의 회로 연결 구성을 예시한다.Specifically, FIG. 2 illustrates a circuit connection configuration between a component of a device for detecting an abnormality in a serial communication line and an external DTE for a device for detecting an abnormality in a serial communication line according to an embodiment of the present invention.

도 2를 참고하면, 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치(200)는 제1 통신선 확인회로(210), 제2 통신선 확인회로(220), 데이터 송수신 회로(230), 마이크로컨트롤러(240), 릴레이 회로(250), 송신 확인회로(260), 전원 회로(270)를 포함하고, 외부의 DTE(280), 외부의 DTE(281) 및 외부의 DTE(282)와 RS485 버스선을 통해 연결될 수 있다. 여기서, RS485 버스선은 통신선을 나타낼 수 있다.Referring to FIG. 2, an apparatus 200 for detecting an abnormality in a serial communication line according to an embodiment of the present invention includes a first communication line verification circuit 210, a second communication line verification circuit 220, and a data transmission/reception circuit 230 , Including a microcontroller 240, a relay circuit 250, a transmission confirmation circuit 260, a power supply circuit 270, and an external DTE 280, an external DTE 281, and an external DTE 282. It can be connected via the RS485 bus line. Here, the RS485 bus line may represent a communication line.

본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치(200)는 마이크로컨트롤러(240)에 의해 제어될 수 있다.The apparatus 200 for detecting an abnormality in a serial communication line according to an embodiment of the present invention may be controlled by the microcontroller 240.

마이크로컨트롤러(240)는 수신포트(RXD), 송신포트(TX), 데이터 포트(A), 데이터 포트(B) 및 데이터 포트(C)를 포함한다.The microcontroller 240 includes a reception port (RXD), a transmission port (TX), a data port (A), a data port (B) and a data port (C).

본 발명의 일실시예에 따르면 마이크로컨트롤러(240)는 데이터 포트(C)를 통해 로우값을 출력하여 데이터 수신 모드로 시리얼 통신선의 이상을 감지하는 장치(200)를 설정할 수 있다.According to an embodiment of the present invention, the microcontroller 240 may set a device 200 for detecting an abnormality in a serial communication line in a data reception mode by outputting a low value through the data port C.

예를 들어, 시리얼 통신선의 이상을 감지하는 장치(200)는 데이터를 송신하지 않을 경우에, 데이터 수신 모드를 유지할 수 있다.For example, the device 200 that detects an abnormality in the serial communication line may maintain a data reception mode when data is not transmitted.

또한, 마이크로컨트롤러(240)는 데이터 송수신 회로(230)에 연결된 회로(231)의 저항(R1)과 저항(R2)를 통하여 바이어스(bias) 전압을 인가하여 제1 통신선 확인회로(210), 제2 통신선 확인회로(220), 및 송신 확인회로(260)의 동작 상태를 유지하도록 제어할 수 있다.In addition, the microcontroller 240 applies a bias voltage through the resistor R1 and the resistor R2 of the circuit 231 connected to the data transmission/reception circuit 230, and the first communication line verification circuit 210, 2 can be controlled to maintain the operation state of the communication line confirmation circuit 220 and the transmission confirmation circuit 260.

예를 들어, 마이크로컨트롤러(240)는 데이터 포트(C)를 통해 로우값을 출력하면, 송신 확인회로(260)의 인버터(IC3) 통해 로우값이 하이값으로 반전되어 송신 확인회로(260)의 회로(IC2)의 2번 포트에 하이값이 입력된다.For example, when the microcontroller 240 outputs a low value through the data port C, the low value is inverted to a high value through the inverter IC3 of the transmission confirmation circuit 260 and the transmission confirmation circuit 260 A high value is input to port 2 of the circuit IC2.

이때, 회로(IC2)의 3번 포트 및 4번 포트에 로우값이 입력되므로, 회로(IC2)의 출력 포트인 6번 포트와 7번 포트는 하이 임피던스(high impedance) 상태를 유지할 수 있다.At this time, since low values are input to ports 3 and 4 of the circuit IC2, ports 6 and 7, which are output ports of the circuit IC2, may maintain a high impedance state.

또한, 회로(IC2)의 데이터 수신 포트에 해당하는 1번 포트도 하이 임피던스 상태로 유지될 수 있다.Also, port 1 corresponding to the data receiving port of the circuit IC2 may be maintained in a high impedance state.

따라서, 마이크로컨트롤러(240)는 데이터 수신 모드에서는 송신 확인회로(260)가 동작하지 않도록 제어할 수 있다.Therefore, the microcontroller 240 may control the transmission confirmation circuit 260 not to operate in the data reception mode.

본 발명의 일실시예에 따르면 마이크로컨트롤러(240)의 데이터 포트(A) 및 데이터 포트(B)는 정상(Normal) 입력 상태로 유지될 수 있다.According to an embodiment of the present invention, the data port A and the data port B of the microcontroller 240 may be maintained in a normal input state.

일례로, 마이크로컨트롤러(240)는 회로(261)의 저항(R5) 및 저항(R6)를 사용하여 통신선(251) 및 통신선(252)에 대한 임피던스 영향을 최소화되도록 저항을 부가할 수 있다.In one example, the microcontroller 240 may use a resistor R5 and a resistor R6 of the circuit 261 to add a resistor to minimize the impedance effect on the communication line 251 and the communication line 252.

본 발명의 일실시예에 따르면 제1 통신선 확인회로(210)는 인버터(211), 필터(212), 비교기(213), 데이터 입력 회로(214) 및 기준 전압 입력 회로(215)를 포함할 수 있다.According to an embodiment of the present invention, the first communication line identification circuit 210 may include an inverter 211, a filter 212, a comparator 213, a data input circuit 214, and a reference voltage input circuit 215. have.

비교기(213)의 3번 포트는 회로(231)의 저항(R1)의 바이어스 전압이 흘러 기준 전압 입력 회로(215)의 다이오드(D2)를 통해 전압이 강하된 후, 커패시터(C2)와 저항(R12)이 충전 또는 방전되고, 이후에 비교기(213)에 입력될 수 있다.Port 3 of the comparator 213, the bias voltage of the resistor (R1) of the circuit 231 flows through the diode (D2) of the reference voltage input circuit 215 after the voltage is dropped, the capacitor (C2) and the resistance ( R12) may be charged or discharged, and then input to the comparator 213.

이때, 데이터 입력 회로(214)의 저항(R11)은 전압강하가 발생하지 않으므로 비교기(213)의 3번 포트 보다 2번 포트에 높은 전압이 입력되므로, 비교기(213)의 1번 포트는 로우값을 출력할 수 있다.At this time, since the voltage drop does not occur in the resistor R11 of the data input circuit 214, a higher voltage is input to the port 2 than the port 3 of the comparator 213, so the port 1 of the comparator 213 has a low value. Can output

다음으로, 필터(212)의 다이오드(D1)에 로우값이 입력되고, 다이오드(D1)는 동작하지 않고, 저항(R9) 및 저항(R10)을 통해 인버터(211)의 입력 포트에 로우값이 입력되므로, 인버터(211)의 출력 포트는 하이값을 출력할 수 있다.Next, a low value is input to the diode D1 of the filter 212, the diode D1 does not operate, and a low value is input to the input port of the inverter 211 through the resistor R9 and the resistor R10. Since it is input, the output port of the inverter 211 can output a high value.

본 발명의 일실시예에 따르면 제2 통신선 확인회로(220)는 인버터(221), 필터(222), 비교기(223), 데이터 입력 회로(224) 및 기준 전압 입력 회로(225)를 포함할 수 있다.According to an embodiment of the present invention, the second communication line confirmation circuit 220 may include an inverter 221, a filter 222, a comparator 223, a data input circuit 224, and a reference voltage input circuit 225. have.

비교기(223)에서 5번 포트는 회로(231)의 저항(R2)의 바이어스 전압이 흘러 기준 전압 입력 회로(225)의 다이오드(D4)를 통해 전압이 강하된 후, 커패시터(C4)와 저항(R16)이 충전 또는 방전되고, 이후에 비교기(223)의 5번 포트에 입력될 수 있다.Port 5 of the comparator 223, after the bias voltage of the resistor R2 of the circuit 231 flows and the voltage drops through the diode D4 of the reference voltage input circuit 225, the capacitor C4 and the resistor ( R16) is charged or discharged, and may be input to port 5 of the comparator 223 afterwards.

이때, 데이터 입력 회로(224)의 저항(R15)은 전압강하가 발생하지 않으므로, 비교기(223)의 5번 포트보다 6번 포트에 높은 전압이 입력되고, 비교기(223)의 7번 포트는 로우값을 출력할 수 있다.At this time, since the voltage drop does not occur in the resistor R15 of the data input circuit 224, a higher voltage is input to the 6th port than the 5th port of the comparator 223, and the 7th port of the comparator 223 is low. You can print the value.

다음으로, 인버터(221)의 다이오드(D3)에 로우값이 입력되고 다이오드(D3)는 동작하지 않고, 저항(R13)과 저항(R14)을 통해 인버터(221)의 입력 포트에 로우값이 입력되므로 인버터(221)의 출력 포트는 하이값을 출력할 수 있다.Next, a low value is input to the diode D3 of the inverter 221 and the diode D3 does not operate, and a low value is input to the input port of the inverter 221 through the resistor R13 and the resistor R14. Therefore, the output port of the inverter 221 can output a high value.

일례로, 시리얼 통신선의 이상을 감지하는 장치(200)는 외부의 DTE(280)로부터 데이터를 수신할 시 통신선(251)이 하이값을 입력 받을 때 기준 전압 입력 회로(215)의 다이오드(D2)를 통해 커패시터(C2)가 충전되고, 통신선(251)이 로우값을 입력 받을 때, 커패시터(C2)를 통해 방전될 수 있다.In one example, the device 200 for detecting an abnormality in the serial communication line is a diode D2 of the reference voltage input circuit 215 when the communication line 251 receives a high value when receiving data from an external DTE 280 When the capacitor C2 is charged through and the communication line 251 receives a low value, it may be discharged through the capacitor C2.

여기서, 데이터 입력 회로(214)의 저항(R11)은 충전 및 방전 회로가 없으므로, 하이값 또는 로우값이 비교기(213)의 2번 포트로 입력될 수 있다.Here, since the resistor R11 of the data input circuit 214 does not have a charging and discharging circuit, a high value or a low value may be input to the second port of the comparator 213.

비교기(213)는 2번 포트와 3번 포트의 입력을 비교하여 3번 포트의 전압이 높을 시, 1번 포트를 통해 하이값을 출력하고, 2번 포트의 전압이 높을 시 1번 포트를 통해 로우값을 각각 출력할 수 있다.The comparator 213 compares the inputs of the 2nd port and the 3rd port, and outputs a high value through the 1st port when the voltage of the 3rd port is high and the 1st port when the voltage of the 2nd port is high. Each low value can be output.

비교기(213)의 1번 포트를 통해 하이값이 출력될 시, 필터(212)의 다이오드(D1)를 통해 커패시터(C1)에 충전하고, 비교기(213)의 1번이 로우값을 출력할 시, 필터(212)의 커패시터(C1)는 방전을 할 수 있다.When the high value is output through the port 1 of the comparator 213, when the capacitor (C1) is charged through the diode D1 of the filter 212, the first value of the comparator 213 outputs a low value , The capacitor C1 of the filter 212 may discharge.

다음으로, 커패시터(C1)를 충전하여 하이값일 시, 마이크로컨트롤러(240)의 데이터 포트(B)에 로우값이 입력되고, 커패시터(C1)가 방전하여 로우값일 시, 마이크로컨트롤러(240)의 데이터 포트(B)에 하이값이 입력될 수 있다.Next, when the capacitor C1 is charged to a high value, a low value is input to the data port B of the microcontroller 240, and when the capacitor C1 discharges to a low value, the data of the microcontroller 240 A high value may be input to the port B.

본 발명의 일실시예에 따르면 제1 통신선 확인회로(210)는 통신선(251)을 확인(check)하고, 제2 통신선 확인회로(220)는 통신선(252)를 확인할 수 있다. 여기서, 제1 통신선 확인회로(210)와 제2 통신선 확인회로(220)의 동작은 동일할 수 있다.According to an embodiment of the present invention, the first communication line verification circuit 210 may check the communication line 251 and the second communication line verification circuit 220 may check the communication line 252. Here, the operations of the first communication line verification circuit 210 and the second communication line verification circuit 220 may be the same.

예를 들어, 통신선(251)에서 문제가 발생하여 인버터(211)이 동작하지 않아, 마이크로컨트롤러(240)의 데이터 포트(B)에 데이터가 수신되지 않고, 인버터(221)만 동작하여 마이크로컨트롤러(240)의 데이터 포트(A)에 데이터가 수신되고, 마이크로컨트롤러(240)의 수신포트(RXD)에 데이터가 수신되지 않을 경우, 마이크로컨트롤러(240)는 통신선(251)에 문제가 발생한 것을 인식할 수 있다.For example, a problem occurs in the communication line 251 and the inverter 211 does not operate, so data is not received at the data port B of the microcontroller 240, and only the inverter 221 operates to operate the microcontroller ( When data is received at the data port A of 240, and data is not received at the reception port RXD of the microcontroller 240, the microcontroller 240 recognizes that a problem has occurred in the communication line 251. Can.

또한, 통신선(252)에서 문제가 발생하여 인버터(221)이 동작하지 않아, 마이크로컨트롤러(240)의 데이터 포트(A)에 데이터가 수신되지 않고, 인버터(211)만 동작하여 마이크로컨트롤러(240)의 데이터 포트(B)에 데이터가 수신되고, 마이크로컨트롤러(240)의 수신포트(RXD)에 데이터가 수신되지 않을 경우, 마이크로컨트롤러(240)는 통신선(252)에 문제가 발생한 것을 인식할 수 있다.In addition, a problem occurs in the communication line 252 and the inverter 221 does not operate, so data is not received at the data port A of the microcontroller 240, and only the inverter 211 operates to operate the microcontroller 240. When data is received at the data port (B) of the data, and data is not received at the reception port (RXD) of the microcontroller 240, the microcontroller 240 may recognize that a problem has occurred with the communication line 252. .

본 발명의 일실시예에 따르면 마이크로컨트롤러(240)는 데이터 포트(C)를 통해 하이값을 출력하여 시리얼 통신선의 이상을 감지하는 장치(200)를 데이터 송신 모드로 전환할 수 있다. 여기서, 데이터 송수신 회로(230)는 송신 회로로 동작 할 수 있다.According to an embodiment of the present invention, the microcontroller 240 may output a high value through the data port C to switch the device 200 that detects an abnormality in the serial communication line to a data transmission mode. Here, the data transmission/reception circuit 230 may operate as a transmission circuit.

일례로, 마이크로컨트롤러(240)는 송신포트(TXD)를 통하여 데이터를 송신하고, 마이크로컨트롤러(240)는 데이터 포트(C)를 통해 하이값을 출력할 시, 데이터 송수신 회로(230)는 데이터 송신 상태로 전환될 수 있다.In one example, the microcontroller 240 transmits data through the transmission port TXD, and when the microcontroller 240 outputs a high value through the data port C, the data transmission/reception circuit 230 transmits data State.

데이터 송수신 회로(230)가 데이터 송신 상태로 전환될 시, 송신 확인회로(260)는 인버터(IC3)를 통해 반전된 신호롤 회로(IC2)의 2번 포트에 로우값으로 입력하고, 회로(IC2)는 데이터 수신 모드로 전환될 수 있다.When the data transmission/reception circuit 230 is switched to the data transmission state, the transmission confirmation circuit 260 inputs a low value to port 2 of the inverted signal roll circuit IC2 through the inverter IC3, and the circuit IC2 ) May be switched to the data reception mode.

또한, 데이터 송수신 회로(230)의 회로(IC1)에서 송신된 데이터가 회로(IC2)의 1번 포트를 통해 수신되어 회로(IC1)로 송신된 데이터의 정상 또는 비정상 상태를 마이크로 컨트롤러(240)가 판단할 수 있다.In addition, the microcontroller 240 determines whether the data transmitted from the circuit IC1 of the data transmission/reception circuit 230 is received through the port 1 of the circuit IC2 and the normal or abnormal state of the data transmitted to the circuit IC1. I can judge.

데이터가 송신될 경우, 제1 통신선 확인회로(210) 및 제2 통신선 확인회로(220)는 외부의 DTE(280)로부터 데이터를 수신할 때와 동일하게 동작될 수 있다.When data is transmitted, the first communication line verification circuit 210 and the second communication line verification circuit 220 may operate in the same manner as when receiving data from the external DTE 280.

따라서, 마이크로컨트롤러(240)는 통신선(251) 및 통신선(252) 각각을 확인하여 데이터가 마이크로 컨트롤러(240)의 수신포트(RXD), 데이터 포트(A) 및 데이터 포트(B)에서 데이터 수신 여부를 비교하여 데이터가 정상적으로 송신되었는지를 판단할 수 있다.Accordingly, the microcontroller 240 checks each of the communication line 251 and the communication line 252 to determine whether data is received at the reception port RXD, the data port A, and the data port B of the microcontroller 240. By comparing, it may be determined whether the data has been normally transmitted.

즉, 본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터의 송신 또는 수신 중 적어도 하나에 대한 이상 유무를 확인할 수 있다.That is, the present invention can confirm whether there is an abnormality in at least one of transmission or reception of data in RS485 communication, which is multi-drop communication.

예를 들어, 통신선(251)은 RS485- 통신선을 포함할 수 있고, 통신선(252)은 RS485+ 통신선을 포함할 수 있다.For example, the communication line 251 may include an RS485- communication line, and the communication line 252 may include an RS485+ communication line.

본 발명의 일실시예에 따르면 마이크로컨트롤러(240)는 통신선(251) 또는 통신선(252)에 문제가 발생하였을 시, 이상이 발생된 통신선을 릴레이 회로(250)를 제어하여 외부의 DTE(280), 외부의 DTE(281) 또는 외부의 DTE(282)와 연결을 차단하고, 시리얼 통신선의 이상을 감지하는 장치(200)에서 데이터를 송신하였을 때와 동일하게 동작 하여 마이크로컨트롤러(240)의 수신포트(RXD), 데이터 포트(A), 데이터 포트(B)에서 송신신호가 정상적으로 입력되면, 릴레이 회로(250)를 제어하여 외부와 연결된 통신선(251) 또는 통신선(252) 중 적어도 하나의 연결을 유지할 수 있다.According to an embodiment of the present invention, when a problem occurs in the communication line 251 or the communication line 252, the microcontroller 240 controls the relay circuit 250 to control the relay circuit 250 to generate an external DTE 280. , The receiving port of the microcontroller 240 operates in the same manner as when the data is transmitted from the device 200 that detects an abnormality in the serial communication line by blocking the connection with the external DTE 281 or the external DTE 282 (RXD), when the transmission signal is normally input from the data port (A) and the data port (B), the relay circuit 250 is controlled to maintain at least one connection between the communication line 251 and the communication line 252 connected to the outside. Can.

또한, 시리얼 통신선의 이상을 감지하는 장치(200)는 외부의 DTE(280), 외부의 DTE(281) 또는 외부의 DTE(282)의 통신 상태가 정상으로 복귀할 때까지 통신선(251) 또는 통신선(252) 중 적어도 하나의 연결을 유지할 수 있다.In addition, the device 200 for detecting an abnormality in the serial communication line is the communication line 251 or the communication line until the communication state of the external DTE 280, the external DTE 281, or the external DTE 282 returns to normal. At least one connection of 252 may be maintained.

일례로, 마이크로컨트롤러(240)의 수신포트(RXD), 데이터 포트(A), 데이터 포트(B)에서 송신신호가 정상적으로 입력되지 않을 경우, 마이크로컨트롤러(240)는 릴레이회로(250)를 제어하여 외부의 DTE(280), 외부의 DTE(281) 또는 외부의 DTE(282)와 연결된 통신선(251) 또는 통신선(252)을 차단하여 외부의 DTE(280), 외부의 DTE(281) 및 외부의 DTE(282)들 간의 통신이 수행될 수 있도록 릴레이 회로(250)를 제어할 수 있다.For example, if the transmission signal is not normally input from the reception port (RXD), data port (A), and data port (B) of the microcontroller 240, the microcontroller 240 controls the relay circuit 250 The external DTE 280, external DTE 281, and external DTE 281 and external DTE 280 are blocked by blocking the communication line 251 or communication line 252 connected to the external DTE 280, external DTE 281, or external DTE 282. The relay circuit 250 may be controlled so that communication between the DTEs 282 can be performed.

일례로, 전원 회로(270)는 비교기(213), 비교기(223), 커패시터(C2), 커패시터(C4), 저항(R12), 저항(16)은 외부의 DTE(280), 외부의 DTE(281) 및 외부의 DTE(282)와 거리가 멀거나 외부의 DTE(280), 외부의 DTE(281) 및 외부의 DTE(282)등 외부의 DTE 개수가 많을 경우, 통신선(251) 또는 통신선(252)에 시리얼 통신선의 이상을 감지하는 장치(200)와 외부의 DTE(280), 외부의 DTE(281) 및 외부의 DTE(282) 사이의 전위차를 방지하기 위해 -VCC 전압을 공급할 수 있다.In one example, the power circuit 270 is a comparator 213, a comparator 223, a capacitor C2, a capacitor C4, a resistor R12, a resistor 16 is an external DTE 280, an external DTE ( 281) and the external DTE (282) is far from the distance, or external DTE (280), external DTE (281) and external DTE (282), such as a large number of external DTE, communication line 251 or communication line ( A -VCC voltage may be supplied to 252 to prevent a potential difference between the device 200 for detecting an abnormality of the serial communication line and the external DTE 280, the external DTE 281, and the external DTE 282.

도 3은 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법과 관련된 흐름도를 설명하는 도면이다.3 is a view for explaining a flowchart related to a method for detecting an abnormality in a serial communication line according to an embodiment of the present invention.

구체적으로, 도 3은 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법이 정상 동작하지 않는 통신선을 판단하는 절차를 예시한다.Specifically, FIG. 3 illustrates a procedure for determining a communication line in which a method for detecting an abnormality in a serial communication line according to an embodiment of the present invention does not operate normally.

도 3을 참고하면, 단계(301)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 통신선의 연결 상태가 반영된 값을 수신한다.Referring to FIG. 3, in step 301, a method of detecting an abnormality in a serial communication line receives a value reflecting a connection state of the communication line in the first communication line confirmation circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.That is, the method for detecting an abnormality in the serial communication line receives at least one of a low value or a high value reflecting the connection state of the communication line from an external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line in the first communication line confirmation circuit. can do.

예를 들어, 시리얼 통신선의 이상을 감지하는 방법은 외부의 DTE(Data Terminal Equipment)와 릴레이 회로를 통해 연결된 통신선이 정상적으로 동작하지 못할 경우, 제1 통신선 확인회로에서 로우값을 수신하고, 외부의 DTE(Data Terminal Equipment)와 통신선이 정상적으로 동작할 경우, 제1 통신선 확인회로에서 하이값을 수신할 수 있다.For example, a method of detecting an abnormality in a serial communication line receives a low value from the first communication line confirmation circuit when the communication line connected through an external DTE (Data Terminal Equipment) and a relay circuit does not operate normally, and receives an external DTE. When the (Data Terminal Equipment) and the communication line are operating normally, a high value may be received from the first communication line confirmation circuit.

단계(302)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 통신선의 연결 상태가 반영된 값을 수신할 수 있다.In step 302, the method for detecting an abnormality in the serial communication line may receive a value reflecting the connection state of the communication line in the second communication line confirmation circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.That is, the method for detecting an abnormality in the serial communication line receives at least one of a low value or a high value reflecting the connection state of the communication line from an external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line in the second communication line confirmation circuit. can do.

예를 들어, 시리얼 통신선의 이상을 감지하는 방법은 외부의 DTE(Data Terminal Equipment)와 릴레이 회로를 통해 연결된 통신선이 정상적으로 동작하지 못할 경우, 제2 통신선 확인회로에서 로우값을 수신하고, 외부의 DTE(Data Terminal Equipment)와 통신선이 정상적으로 동작할 경우, 제2 통신선 확인회로에서 하이값을 수신할 수 있다.For example, a method for detecting an abnormality in a serial communication line receives a low value from the second communication line confirmation circuit when the communication line connected through an external data terminal equipment (DTE) and a relay circuit does not operate normally, and receives an external DTE. When the (Data Terminal Equipment) and the communication line operate normally, a high value may be received from the second communication line confirmation circuit.

단계(303)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하는지 여부를 판단한다.In step 303, the method of detecting an abnormality in the serial communication line determines whether data is received from a data port connected to the first communication line confirmation circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 하이값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하여 단계(304)로 진행하고, 제1 통신선 확인회로에서 로우값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여 단계(305)로 진행할 수 있다.That is, when a method for detecting an abnormality in the serial communication line receives a high value from the first communication line verification circuit, it proceeds to step 304 by receiving data from a data port connected to the first communication line verification circuit, and confirms the first communication line If the circuit receives a low value, it may proceed to step 305 because it cannot receive data from the data port connected to the first communication line confirmation circuit.

단계(304)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하는지 여부를 판단한다.In step 304, the method of detecting an abnormality in the serial communication line determines whether data is received from a data port connected to the second communication line verification circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 하이값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하여 해당 절차를 종료하고, 제2 통신선 확인회로에서 하이값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여 단계(306)로 진행할 수 있다.That is, the method for detecting an abnormality in the serial communication line, when receiving a high value from the second communication line verification circuit, receives data from a data port connected to the second communication line verification circuit, terminates the corresponding procedure, and the second communication line verification circuit If a high value is received, it is possible to proceed to step 306 because data is not received from the data port connected to the second communication line confirmation circuit.

단계(305)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.In step 305, a method of detecting an abnormality in the serial communication line may determine that the communication line connected to the first communication line verification circuit is a communication line that does not operate normally.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 로우값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여, 제1 통신선 확인회로와 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.That is, in the case of detecting an abnormality in the serial communication line, when a low value is received from the first communication line verification circuit, data cannot be received from a data port connected to the first communication line verification circuit, and the communication line connected to the first communication line verification circuit is normal. It can be judged as an inoperative communication line.

단계(306)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로와 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.In step 306, the method of detecting an abnormality in the serial communication line may determine that the communication line connected to the second communication line verification circuit is a communication line that does not operate normally.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 로우값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여, 제2 통신선 확인회로와 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.That is, in the case of detecting an abnormality in the serial communication line, when a low value is received from the second communication line verification circuit, data cannot be received from the data port connected to the second communication line verification circuit, and the communication line connected to the second communication line verification circuit is normal. It can be judged as an inoperative communication line.

또한, 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 데이터 포트와 제2 통신선 확인회로와 연결된 데이터 포트를 통해 데이터를 수신할 경우, 마이크로컨트롤러의 수신포트를 통해 데이터를 정상적으로 수신할 수 있다.In addition, a method for detecting an abnormality in a serial communication line according to an embodiment of the present invention includes receiving a microcontroller when receiving data through a data port connected to a first communication line confirmation circuit and a data port connected to a second communication line confirmation circuit. Data can be normally received through the port.

도 4는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법과 관련된 흐름도를 설명하는 도면이다.4 is a view for explaining a flowchart related to a method for detecting an abnormality in a serial communication line according to an embodiment of the present invention.

구체적으로, 도 4는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법이 정상 동작하지 않는 통신선을 차단하도록 제어하는 절차를 예시한다.Specifically, FIG. 4 illustrates a procedure for controlling a method for detecting an abnormality in a serial communication line according to an embodiment of the present invention to block a communication line that does not operate normally.

도 4를 참고하면, 단계(401)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 통신선의 연결 상태가 반영된 값을 수신한다.Referring to FIG. 4, in step 401, a method of detecting an abnormality in a serial communication line receives a value reflecting a connection state of the communication line in the first communication line confirmation circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.That is, the method for detecting an abnormality in the serial communication line receives at least one of a low value or a high value reflecting the connection state of the communication line from an external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line in the first communication line confirmation circuit. can do.

단계(402)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 통신선의 연결 상태가 반영된 값을 수신할 수 있다.In step 402, the method for detecting an abnormality in the serial communication line may receive a value reflecting the connection state of the communication line in the second communication line confirmation circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.That is, the method for detecting an abnormality in the serial communication line receives at least one of a low value or a high value reflecting the connection state of the communication line from an external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line in the second communication line confirmation circuit. can do.

단계(403)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하는지 여부를 판단한다.In step 403, the method of detecting an abnormality in the serial communication line determines whether data is received from a data port connected to the first communication line confirmation circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 하이값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하여 단계(404)로 진행하고, 제1 통신선 확인회로에서 로우값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여 단계(405)로 진행할 수 있다.That is, in the case of detecting an abnormality in the serial communication line, when a high value is received from the first communication line verification circuit, data is received from a data port connected to the first communication line verification circuit to proceed to step 404, and the first communication line is confirmed. When the circuit receives the low value, it may proceed to step 405 because it cannot receive data from the data port connected to the first communication line confirmation circuit.

단계(404)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하는지 여부를 판단한다.In step 404, the method for detecting an abnormality in the serial communication line determines whether data is received from the data port connected to the second communication line verification circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 하이값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하여 해당 절차를 종료하고, 제2 통신선 확인회로에서 하이값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여 단계(406)로 진행할 수 있다.That is, the method for detecting an abnormality in the serial communication line, when receiving a high value from the second communication line verification circuit, receives data from a data port connected to the second communication line verification circuit, terminates the corresponding procedure, and the second communication line verification circuit If a high value is received, it is possible to proceed to step 406 because data is not received from the data port connected to the second communication line confirmation circuit.

단계(405)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 통신선을 차단하도록 제어할 수 있다.In step 405, the method of detecting an abnormality in the serial communication line may be controlled to cut off the communication line connected to the first communication line confirmation circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 로우값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여, 제1 통신선 확인회로와 연결된 통신선을 차단하도록 릴레이 회로를 제어하여, 외부의 DTE 간에 통신이 원활하도록 지원할 수 있다.That is, in the case of detecting an abnormality in the serial communication line, when a low value is received from the first communication line verification circuit, data from a data port connected to the first communication line verification circuit is not received, thereby blocking the communication line connected to the first communication line verification circuit. The relay circuit can be controlled to support smooth communication between external DTEs.

단계(406)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로와 연결된 통신선을 차단하도록 제어할 수 있다.The method of detecting an abnormality in the serial communication line in step 406 may be controlled to cut off the communication line connected to the second communication line confirmation circuit.

즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 로우값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여, 제2 통신선 확인회로와 연결된 통신선을 차단하도록 릴레이 회로를 제어하여, 외부의 DTE 간에 통신이 원활하도록 지원할 수 있다.That is, in the method of detecting an abnormality in the serial communication line, when a low value is received from the second communication line verification circuit, data from a data port connected to the second communication line verification circuit is not received, thereby blocking the communication line connected to the second communication line verification circuit. The relay circuit can be controlled to support smooth communication between external DTEs.

또한, 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 데이터 포트와 제2 통신선 확인회로와 연결된 데이터 포트를 통해 데이터를 수신할 경우, 제1 통신선 확인회로 및 제2 통신선 확인회로와 연결된 통신선의 연결 상태를 유지하도록 릴레이 회로를 제어할 수 있다.In addition, the method for detecting an abnormality in the serial communication line according to an embodiment of the present invention, when receiving data through the data port connected to the first communication line check circuit and the data port connected to the second communication line check circuit, check the first communication line The relay circuit may be controlled to maintain a connection state between the circuit and the communication line connected to the second communication line confirmation circuit.

이상에서 설명된 장치는 하드웨어 구성요소, 소프트웨어 구성요소, 및/또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치 및 구성요소는, 예를 들어, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPA(field programmable array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 애플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.The device described above may be implemented with hardware components, software components, and/or combinations of hardware components and software components. For example, the devices and components described in the embodiments include, for example, processors, controllers, arithmetic logic units (ALUs), digital signal processors (micro signal processors), microcomputers, field programmable arrays (FPAs), It may be implemented using one or more general purpose computers or special purpose computers, such as a programmable logic unit (PLU), microprocessor, or any other device capable of executing and responding to instructions. The processing device may run an operating system (OS) and one or more software applications running on the operating system. Further, the processing device may access, store, manipulate, process, and generate data in response to the execution of the software. For convenience of understanding, a processing device may be described as one being used, but a person having ordinary skill in the art, the processing device may include a plurality of processing elements and/or a plurality of types of processing elements. It can be seen that may include. For example, the processing device may include a plurality of processors or a processor and a controller. In addition, other processing configurations, such as parallel processors, are possible.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 실시예의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.The method according to the embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded on a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, or the like alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the embodiments or may be known and usable by those skilled in computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs, DVDs, and magnetic media such as floptical disks. Includes hardware devices specifically configured to store and execute program instructions such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of program instructions include high-level language code that can be executed by a computer using an interpreter, etc., as well as machine language codes produced by a compiler. The hardware device described above may be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치, 또는 전송되는 신호 파(signal wave)에 영구적으로, 또는 일시적으로 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.The software may include a computer program, code, instruction, or a combination of one or more of these, and configure the processing device to operate as desired, or process independently or collectively You can command the device. Software and/or data may be interpreted by a processing device, or to provide instructions or data to a processing device, of any type of machine, component, physical device, virtual equipment, computer storage medium or device. , Or may be permanently or temporarily embodied in the transmitted signal wave. The software may be distributed on networked computer systems and stored or executed in a distributed manner. Software and data may be stored in one or more computer-readable recording media.

이상과 같이 실시예들이 비록 한정된 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.Although the embodiments have been described by the limited drawings as described above, a person skilled in the art can make various modifications and variations from the above description. For example, the described techniques are performed in a different order than the described method, and/or the components of the described system, structure, device, circuit, etc. are combined or combined in a different form from the described method, or other components Alternatively, proper results can be achieved even if replaced or substituted by equivalents.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 특허청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and equivalents to the claims are also within the scope of the following claims.

100: 시리얼 통신선의 이상을 감지하는 장치
110: 제1 통신선 확인회로 120: 제2 통신선 확인회로
130: 마이크로컨트롤러
100: a device for detecting an error in the serial communication line
110: first communication line confirmation circuit 120: second communication line confirmation circuit
130: microcontroller

Claims (13)

수신포트, 송신포트, 및 복수의 데이터 포트를 포함하는 마이크로컨트롤러;
외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 제1 통신선 확인회로; 및
상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 제2 통신선 확인회로
를 포함하고,
상기 마이크로컨트롤러는,
상기 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는
시리얼 통신선의 이상을 감지하는 장치.
A microcontroller including a reception port, a transmission port, and a plurality of data ports;
A first communication line confirmation circuit for receiving at least one of a low value or a high value reflecting the connection state of the communication line from a relay circuit connected through an communication line with an external data terminal equipment (DTE); And
A second communication line confirmation circuit that receives at least one of a low value or a high value reflecting the connection state of the communication line from the relay circuit
Including,
The microcontroller,
Comparing whether or not data is received between the plurality of data ports and the first communication line confirmation circuit or the second communication line confirmation circuit to determine a communication line that does not normally operate among the communication lines
A device that detects an error in the serial communication line.
제1항에 있어서,
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는
시리얼 통신선의 이상을 감지하는 장치.
According to claim 1,
When the high value is received from the first communication line confirmation circuit and the low value is received from the second communication line confirmation circuit, the microcontroller may connect a communication line connected to the second communication line verification circuit through the relay circuit among the communication lines. Judging by the communication line that does not work normally
A device that detects an error in the serial communication line.
제1항에 있어서,
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는
시리얼 통신선의 이상을 감지하는 장치.
According to claim 1,
When the low value is received from the first communication line confirmation circuit and the high value is received from the second communication line confirmation circuit, the microcontroller may connect a communication line connected to the first communication line verification circuit through the relay circuit among the communication lines. Judging by the communication line that does not work normally
A device that detects an error in the serial communication line.
제1항에 있어서,
상기 마이크로컨트롤러는 상기 제1 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하고, 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하는
시리얼 통신선의 이상을 감지하는 장치.
According to claim 1,
The microcontroller receives data through any one of the plurality of data ports when a high value is received from the first communication line confirmation circuit, and when a high value is received from the second communication line confirmation circuit, the plurality of To receive data through any of the data ports
A device that detects an error in the serial communication line.
제2항에 있어서,
상기 마이크로컨트롤러는 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 상기 수신포트를 통해 데이터를 수신하는
시리얼 통신선의 이상을 감지하는 장치.
According to claim 2,
The microcontroller receives data through the reception port when a high value is received from the first communication line verification circuit and the second communication line verification circuit.
A device that detects an error in the serial communication line.
제1항에 있어서,
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선의 연결을 차단하도록 상기 릴레이 회로를 제어하는
시리얼 통신선의 이상을 감지하는 장치.
According to claim 1,
When the high value is received from the first communication line confirmation circuit and the low value is received from the second communication line confirmation circuit, the microcontroller is configured to communicate with the second communication line confirmation circuit through the relay circuit among the communication lines. To control the relay circuit to disconnect the connection
A device that detects an error in the serial communication line.
제1항에 있어서,
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선의 연결을 차단하도록 상기 릴레이 회로를 제어하는
시리얼 통신선의 이상을 감지하는 장치.
According to claim 1,
When the low value is received from the first communication line verification circuit and the high value is received from the second communication line verification circuit, the microcontroller is configured to communicate with the first communication line verification circuit through the relay circuit among the communication lines. To control the relay circuit to disconnect the connection
A device that detects an error in the serial communication line.
제1항에 있어서,
상기 마이크로컨트롤러는, 상기 외부의 DTE(Data Terminal Equipment)에 대한 통신 이상을 감지할 경우, 상기 통신선의 연결을 유지하도록 상기 릴레이 회로를 제어하는
시리얼 통신선의 이상을 감지하는 장치.
According to claim 1,
The microcontroller controls the relay circuit to maintain the connection of the communication line when detecting an abnormal communication with the external data terminal equipment (DTE)
A device that detects an error in the serial communication line.
제1항에 있어서,
상기 마이크로컨트롤러는 상기 복수의 데이터 포트 중 어느 하나를 통해 로우값 또는 하이값 중 어느 하나를 출력하여 송신 모드 또는 수신 모드 중 어느 하나를 결정하고, 상기 송신 모드에서 상기 송신포트를 통해 데이터를 출력하고,
상기 송신포트를 통해 출력된 데이터를 상기 수신포트, 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로로 전달하는 송신 확인회로를 더 포함하는
시리얼 통신선의 이상을 감지하는 장치.
According to claim 1,
The microcontroller determines either a transmission mode or a reception mode by outputting either a low value or a high value through any one of the plurality of data ports, and outputs data through the transmission port in the transmission mode. ,
Further comprising a transmission confirmation circuit for transmitting the data output through the transmission port to the reception port, the first communication line confirmation circuit and the second communication line confirmation circuit
A device that detects an error in the serial communication line.
제9항에 있어서,
상기 마이크로컨트롤러는,
상기 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 송신포트를 통해 출력된 데이터의 송신 여부를 판단하는
시리얼 통신선의 이상을 감지하는 장치.
The method of claim 9,
The microcontroller,
Comparing whether or not data is received between the plurality of data ports and the first communication line confirmation circuit or the second communication line confirmation circuit to determine whether to transmit data output through the transmission port
A device that detects an error in the serial communication line.
제1 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 단계;
제2 통신선 확인회로에서, 상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 단계; 및
마이크로컨트롤러에서, 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 단계를 포함하는
시리얼 통신선의 이상을 감지하는 방법.
In the first communication line confirmation circuit, receiving at least one of a low value or a high value reflecting the connection state of the communication line from an external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line;
In the second communication line confirmation circuit, receiving at least one of a low value or a high value reflecting the connection state of the communication line from the relay circuit; And
Comprising a step of determining whether the data line between the plurality of data ports and the first communication line verification circuit or the second communication line verification circuit is received by the microcontroller, the communication line that does not normally operate among the communication lines.
How to detect an error in the serial communication line.
제11항에 있어서,
상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 단계는,
상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는 단계; 및
상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는 단계를 포함하는
시리얼 통신선의 이상을 감지하는 방법.
The method of claim 11,
Determining a communication line that does not operate normally among the communication lines,
When a high value is received from the first communication line confirmation circuit and a low value is received from the second communication line confirmation circuit, the communication line connected to the second communication line confirmation circuit through the relay circuit among the communication lines does not operate normally. Determining with a communication line; And
When a low value is received from the first communication line confirmation circuit and a high value is received from the second communication line confirmation circuit, the communication line connected to the first communication line confirmation circuit through the relay circuit among the communication lines does not operate normally. Comprising determining with a communication line
How to detect an error in the serial communication line.
제12항에 있어서,
상기 마이크로컨트롤러에서, 상기 제1 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하는 단계;
상기 마이크로컨트롤러에서, 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하는 단계; 및
상기 마이크로컨트롤러에서, 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 수신포트를 통해 데이터를 수신하는 단계를 더 포함하는
시리얼 통신선의 이상을 감지하는 방법.
The method of claim 12,
Receiving, by the microcontroller, data through any one of the plurality of data ports when a high value is received from the first communication line confirmation circuit;
Receiving, by the microcontroller, data through any one of the plurality of data ports when a high value is received from the second communication line confirmation circuit; And
In the microcontroller, when a high value is received from the first communication line confirmation circuit and the second communication line confirmation circuit, further comprising receiving data through a reception port.
How to detect an error in the serial communication line.
KR1020180164745A 2018-12-19 2018-12-19 Apparatus and method of detecting error of serial communication lines KR102144791B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180164745A KR102144791B1 (en) 2018-12-19 2018-12-19 Apparatus and method of detecting error of serial communication lines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180164745A KR102144791B1 (en) 2018-12-19 2018-12-19 Apparatus and method of detecting error of serial communication lines

Publications (2)

Publication Number Publication Date
KR20200076063A true KR20200076063A (en) 2020-06-29
KR102144791B1 KR102144791B1 (en) 2020-08-14

Family

ID=71401292

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180164745A KR102144791B1 (en) 2018-12-19 2018-12-19 Apparatus and method of detecting error of serial communication lines

Country Status (1)

Country Link
KR (1) KR102144791B1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6042649B2 (en) 1977-12-28 1985-09-24 日本電気株式会社 amplifier input circuit
JPH09214530A (en) * 1996-02-05 1997-08-15 Toshiba Corp Data transmitter
KR100676857B1 (en) 2004-05-25 2007-01-31 주식회사 알티캐스트 A communications device employing rs485 protocol
KR100689823B1 (en) 2006-02-08 2007-03-08 (주)이에스텍 Rs-485 communication module
JP2008257706A (en) * 2007-03-09 2008-10-23 Omron Corp Controller of building block type
KR20120137855A (en) * 2011-06-13 2012-12-24 주식회사 코맥스 Sensing circuit for mailfunction of data line of multi-drop communication circuit
KR101539579B1 (en) 2014-06-24 2015-08-06 한국지질자원연구원 Apparatus for detecting and processing rs232c serial communication hardware fault and the method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6042649B2 (en) 1977-12-28 1985-09-24 日本電気株式会社 amplifier input circuit
JPH09214530A (en) * 1996-02-05 1997-08-15 Toshiba Corp Data transmitter
KR100676857B1 (en) 2004-05-25 2007-01-31 주식회사 알티캐스트 A communications device employing rs485 protocol
KR100689823B1 (en) 2006-02-08 2007-03-08 (주)이에스텍 Rs-485 communication module
JP2008257706A (en) * 2007-03-09 2008-10-23 Omron Corp Controller of building block type
KR20120137855A (en) * 2011-06-13 2012-12-24 주식회사 코맥스 Sensing circuit for mailfunction of data line of multi-drop communication circuit
KR101539579B1 (en) 2014-06-24 2015-08-06 한국지질자원연구원 Apparatus for detecting and processing rs232c serial communication hardware fault and the method thereof

Also Published As

Publication number Publication date
KR102144791B1 (en) 2020-08-14

Similar Documents

Publication Publication Date Title
KR100968641B1 (en) Point-to-point link negotiation method and apparatus
EP2958028B1 (en) Physical interface module
EP2854369B1 (en) Method and apparatus for detecting interface connection between devices
US10673693B2 (en) Ring based network interconnect
US10181975B2 (en) Override subsystems for rapid recovery from serial-link errors
WO2020238747A1 (en) Serial port output path switching method, system and apparatus, and switch
US20160132448A1 (en) Hub module with a single bridge shared among multiple connection ports to support role reversal
US8737419B2 (en) Network concentrator and method of controlling the same
TWI695268B (en) Systems and methods for transmitting interrupts between nodes
CN111510398A (en) Control device and method for redundant connections in a control plane network
WO2017215672A1 (en) Power supply method and power supply device in poe system
KR20200076063A (en) Apparatus and method of detecting error of serial communication lines
KR101473144B1 (en) Semiconductor test method and system based on controller area network
US20170279667A1 (en) Providing a redundant connection in response to a modified connection
US10243887B2 (en) Switch unit, ethernet network, and method for activating components in an ethernet network
US8185678B1 (en) Method and apparatus for controlling a data bus
CN110928820B (en) System and method for automatic configuration of serial small computer system interface area
US20170302528A1 (en) System & method for automatically determining the optimal topology for multiple networked devices
US11757799B2 (en) Line monitor device and network switch
JP2014007601A (en) Built-in interface circuit
US20230421432A1 (en) Communication apparatus and communication system
CN111506179B (en) Multi-host adapter
JP3604868B2 (en) System and error handling method
JP2018086950A (en) Communication system
JPS61213932A (en) Decentralized duplex computer system and its control method

Legal Events

Date Code Title Description
E90F Notification of reason for final refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant