KR102144791B1 - Apparatus and method of detecting error of serial communication lines - Google Patents
Apparatus and method of detecting error of serial communication lines Download PDFInfo
- Publication number
- KR102144791B1 KR102144791B1 KR1020180164745A KR20180164745A KR102144791B1 KR 102144791 B1 KR102144791 B1 KR 102144791B1 KR 1020180164745 A KR1020180164745 A KR 1020180164745A KR 20180164745 A KR20180164745 A KR 20180164745A KR 102144791 B1 KR102144791 B1 KR 102144791B1
- Authority
- KR
- South Korea
- Prior art keywords
- communication line
- data
- circuit
- port
- received
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L25/00—Baseband systems
- H04L25/02—Details ; arrangements for supplying electrical power along data transmission lines
- H04L25/08—Modifications for reducing interference; Modifications for reducing effects due to line faults ; Receiver end arrangements for detecting or overcoming line faults
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L25/00—Baseband systems
- H04L25/02—Details ; arrangements for supplying electrical power along data transmission lines
- H04L25/0264—Arrangements for coupling to transmission lines
- H04L25/0266—Arrangements for providing Galvanic isolation, e.g. by means of magnetic or capacitive coupling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L25/00—Baseband systems
- H04L25/02—Details ; arrangements for supplying electrical power along data transmission lines
- H04L25/20—Repeater circuits; Relay circuits
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
본 발명은 시리얼 통신선의 이상을 감지하는 장치 및 방법에 관한 것으로서, 구체적으로, 본 발명은 제1 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하고, 제2 통신선 확인회로에서, 상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하며, 마이크로컨트롤러에서, 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 기술에 관한 것이다.The present invention relates to an apparatus and method for detecting an abnormality in a serial communication line, and specifically, the present invention relates to a connection of the communication line from a relay circuit connected through a communication line to an external data terminal equipment (DTE) in a first communication line check circuit. Receiving at least one of a low value or a high value reflecting the state, and receiving at least one of a low value or a high value reflecting the connection state of the communication line from the relay circuit in a second communication line check circuit, and a plurality of It relates to a technology for determining a communication line that does not operate normally among the communication lines by comparing whether or not data is received between the data port of and the first communication line verification circuit or the second communication line verification circuit.
Description
본 발명은 멀티 드롭(Multi Drop) 통신에서 데이터가 전달되는 통신선의 이상을 감지하여 원활한 통신을 지원하는 기술적 사상에 관한 것으로서, 보다 상세하게는 통신선의 이상 유무를 판단하는 회로를 통해 정상 동작하지 않는 통신선을 선별하여 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment) 간의 원활한 통신을 지원하는 기술에 관한 것이다.The present invention relates to a technical idea for supporting smooth communication by detecting an abnormality in a communication line through which data is transmitted in a multi-drop communication, and more specifically, a circuit that determines whether there is an abnormality in a communication line does not operate normally. It relates to a technology that supports smooth communication between internal DTE (Data Terminal Equipment) and external DTE (Data Terminal Equipment) by selecting communication lines.
일반적으로, 내부 통신 장치가 외부 통신 장치를 통해서 외부와 정보를 교환하기 위한 방법으로는 병렬통신과 직렬통신 2가지로 분리할 수 있다.In general, as a method for the internal communication device to exchange information with the outside through the external communication device, it can be divided into two types, parallel communication and serial communication.
고속의 통신속도를 필요로 하여 한꺼번에 많은 정보를 처리할 수 있는 병렬통신 방식이 주로 이용되는데, 이는 대량의 정보를 빠른 시간에 한꺼번에 처리함으로써 통신 성능을 향상시킬 수 있기 때문이다.A parallel communication method that requires a high-speed communication speed and can process a lot of information at once is mainly used, because it is possible to improve communication performance by processing a large amount of information at once in a short time.
그러나, 병렬통신은 통신거리의 제한성, 구현상의 기술적인 어려움과 고비용에 따라 선호되지 않으며, 고속의 통신속도가 요구되지 않는 통신을 수행할 경우, 직렬통신 방식이 많이 사용되어왔다.However, parallel communication is not preferred due to the limitation of communication distance, technical difficulties in implementation, and high cost, and serial communication has been widely used when performing communication that does not require a high-speed communication speed.
직렬통신의 대표적인 것으로 RS485가 존재하며, RS485는 최대 256 다점 사이의 전송을 지원하는 멀티 드롭(Multi Drop) 통신의 대표 프로토콜 중 하나이다.RS485 is a representative of serial communication, and RS485 is one of the representative protocols of multi-drop communication that supports transmission between up to 256 points.
종래의 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 the control device of each board is presented to check whether the transmission of the corresponding board is possible.
다만, 종래의 RS485 통신에 이용되는 회로는 데이터를 전달하는 통신 선의 이상 유무를 판단하기 위한 회로 구성을 포함하지 않는다.However, the conventional circuit used for 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)의 불량 등을 인지하지 못한다는 단점이 존재한다.In other words, conventional RS485 does not check whether the transmitted data is normally transmitted when data is transmitted between DTE (Data Terminal Equipment) performing communication, and even when receiving, short circuit between RS485 communication lines or disconnection of line or external DTE IC (Integrated There is a disadvantage of not being able to recognize the defects of Chip).
따라서, 직렬통신 기반의 멀티 드롭 통신에서 데이터가 전달되는 통신선의 이상을 발견하고, 발견된 이상 부분을 처리하는 기술이 개발될 필요성이 존재한다.Accordingly, there is a need to develop a technology for detecting an abnormality in a communication line through which data is transmitted in multi-drop communication based on serial communication and processing the detected abnormality.
본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터가 전달되는 통신선 중 정상동작하지 않는 통신선을 감지하여 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment) 간의 원활한 통신을 지원하는 것을 목적으로 할 수 있다.The present invention supports smooth communication between internal DTE (Data Terminal Equipment) and external DTE (Data Terminal Equipment) by detecting a communication line that does not operate normally among communication lines through which data is transmitted in RS485 communication, a multi-drop communication. 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 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 do it for the purpose of applying.
본 발명은 외부의 DTE(Data Terminal Equipment)에서 이상을 감지할 경우, 외부의 DTE(Data Terminal Equipment)와 연결을 유지하도록 릴레이 회로를 제어하여 외부의 DTE(Data Terminal Equipment)의 정상 동작 복귀 시, 즉시 통신이 가능하도록 제어하는 것을 목적으로 할 수 있다.In the present invention, when an abnormality is detected in an external data terminal equipment (DTE), the relay circuit is controlled to maintain a connection with an external data terminal equipment (DTE), and when the normal operation of the external data terminal equipment (DTE) is restored, It can be aimed at controlling immediate communication.
본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터의 송신 또는 수신 중 적어도 하나에 대한 이상 유무를 확인하는 것을 목적으로 할 수 있다.An object of the present invention may be to check whether there is an abnormality in at least one of transmission or reception of data in RS485 communication, which is a multi drop communication.
본 발명의 일실시예에 따르면 시리얼 통신선의 이상을 감지하는 장치는 수신포트, 송신포트, 및 복수의 데이터 포트를 포함하는 마이크로컨트롤러, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 제1 통신선 확인회로, 및 상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 제2 통신선 확인회로를 포함하고, 상기 마이크로컨트롤러는, 상기 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단할 수 있다.According to an embodiment of the present invention, an apparatus for detecting an abnormality in a serial communication line includes a microcontroller including a reception port, a transmission port, and a plurality of data ports, and a relay circuit connected through a communication line with an external DTE (Data Terminal Equipment). A first communication line check 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 receiving at least one of a low value or a high value reflecting the connection state of the communication line from the relay circuit A confirmation circuit, wherein 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. I can.
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단할 수 있다.When a high value is received from the first communication line check circuit and a low value is received from the second communication line check circuit, the microcontroller connects a communication line connected to the second communication line check circuit through the relay circuit among the communication lines. It may be determined that the communication line does not operate normally.
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단할 수 있다.The microcontroller, when a low value is received from the first communication line check circuit and a high value is received from the second communication line check circuit, the communication line connected to the first communication line check 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 check circuit, and when a high value is received from the second communication line check circuit, the plurality of Data can be received through any of the data ports.
상기 마이크로컨트롤러는 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 상기 수신포트를 통해 데이터를 수신할 수 있다.When a high value is received from the first communication line check circuit and the second communication line check circuit, the microcontroller may receive data through the reception port.
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선의 연결을 차단하도록 상기 릴레이 회로를 제어할 수 있다.The microcontroller, when a high value is received from the first communication line check circuit and a low value is received from the second communication line check circuit, of the communication line connected to the second communication line check circuit through the relay circuit among the communication lines. The relay circuit can be controlled to disconnect the connection.
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선의 연결을 차단하도록 상기 릴레이 회로를 제어할 수 있다.The microcontroller, when a low value is received from the first communication line check circuit and a high value is received from the second communication line check circuit, of the communication line connected to the first communication line check circuit through the relay circuit among the communication lines. The relay circuit can be controlled to disconnect the connection.
상기 마이크로컨트롤러는, 상기 외부의 DTE(Data Terminal Equipment)에 대한 통신 이상을 감지할 경우, 상기 통신선의 연결을 유지하도록 상기 릴레이 회로를 제어할 수 있다.The microcontroller may control the relay circuit to maintain the connection of the communication line when detecting a communication error for the external data terminal equipment (DTE).
상기 마이크로컨트롤러는 상기 복수의 데이터 포트 중 어느 하나를 통해 로우값 또는 하이값 중 어느 하나를 출력하여 송신 모드 또는 수신 모드 중 어느 하나를 결정하고, 상기 송신 모드에서 상기 송신포트를 통해 데이터를 출력할 수 있다.The microcontroller outputs any one of a low value or a high value through any one of the plurality of data ports to determine either a transmission mode or a reception mode, and outputs data through the transmission port in the transmission mode. I can.
상기 송신포트를 통해 출력된 데이터를 상기 수신포트, 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로로 전달하는 송신 확인회로를 더 포함할 수 있다.It may further include a transmission confirmation circuit for transmitting the data output through the transmission port to the receiving port, the first communication line check circuit and the second communication line check circuit.
상기 마이크로컨트롤러는, 상기 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 송신포트를 통해 출력된 데이터의 송신 여부를 판단할 수 있다.The microcontroller may compare whether data is received between the plurality of data ports and the first communication line check circuit or the second communication line check circuit to determine whether to transmit the data output through the transmission port.
본 발명의 일실시예에 따르면 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 단계, 제2 통신선 확인회로에서, 상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 단계, 및 마이크로컨트롤러에서, 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 단계를 포함할 수 있다.According to an embodiment of the present invention, a method of detecting an abnormality in a serial communication line includes a low value reflecting the connection state of the communication line from a relay circuit connected to an external data terminal equipment (DTE) through a communication line in the first communication line check circuit. Receiving at least one of the high values, receiving at least one of a low value or a high value reflecting the connection state of the communication line from the relay circuit in a second communication line checking circuit, and in a microcontroller, a plurality of data ports And comparing whether data is received between the first communication line check circuit or the second communication line check circuit, and determining a communication line that does not normally operate among the communication lines.
상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 단계는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는 단계, 및 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는 단계를 포함할 수 있다.Determining a communication line that does not operate normally among the communication lines, when a high value is received from the first communication line check circuit and a low value is received from the second communication line check circuit, among the communication lines, the relay circuit. Determining a communication line connected to the second communication line check circuit as the non-operating communication line, and when a low value is received from the first communication line check circuit and a high value is received from the second communication line check circuit, the communication line Among them, the step of determining a communication line connected to the first communication line check circuit through the relay circuit as the non-normal communication line.
본 발명의 일실시예에 따르면 시리얼 통신선의 이상을 감지하는 방법은 상기 마이크로컨트롤러에서, 상기 제1 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하는 단계 상기 마이크로컨트롤러에서, 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 상기 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하는 단계, 및 상기 마이크로컨트롤러는 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로에서 하이값이 수신될 경우, 수신포트를 통해 데이터를 수신하는 단계를 더 포함할 수 있다.According to an embodiment of the present invention, a method for detecting an abnormality in a serial communication line includes receiving data through any one of the plurality of data ports when a high value is received from the microcontroller, the first communication line check circuit. Step, in the microcontroller, when a high value is received from the second communication line check circuit, receiving data through any one of the plurality of data ports, and the microcontroller comprises the first communication line check circuit and the first 2 When the high value is received by the communication line check circuit, the step of receiving data through the reception port may be further included.
본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터가 전달되는 통신선 중 정상동작하지 않는 통신선을 감지하여 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment) 간의 원활한 통신을 지원할 수 있다.The present invention can support smooth communication between internal data terminal equipment (DTE) and external data terminal equipment (DTE) by detecting a communication line that does not operate normally among communication lines through which data is transmitted in RS485 communication, which is a multi-drop communication. 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 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 apply.
본 발명은 외부의 DTE(Data Terminal Equipment)에서 이상을 감지할 경우, 외부의 DTE(Data Terminal Equipment)와 연결을 유지하도록 릴레이 회로를 제어하여 외부의 DTE(Data Terminal Equipment)의 정상 동작 복귀 시, 즉시 통신이 가능하도록 제어할 수 있다.In the present invention, when an abnormality is detected in an external data terminal equipment (DTE), the relay circuit is controlled to maintain a connection with an external data terminal equipment (DTE), and when the normal operation of the external data terminal equipment (DTE) is restored, It can be controlled to enable immediate communication.
본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터의 송신 또는 수신 중 적어도 하나에 대한 이상 유무를 확인할 수 있다.In the present invention, in RS485 communication, which is a multi-drop communication, it is possible to check whether there is an abnormality in at least one of transmission or reception of data.
도 1은 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 블록도를 설명하는 도면이다.
도 2는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 회로도를 설명하는 도면이다.
도 3 및 도 4는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법과 관련된 흐름도를 설명하는 도면이다.1 is a diagram illustrating 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 flow chart 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 embodiments according to the concept of the present invention disclosed in the present specification are exemplified only for the purpose of describing embodiments according to the concept of the present invention, and embodiments according to the concept of the present invention They may be implemented in various forms and are not limited to the embodiments described herein.
본 발명의 개념에 따른 실시예들은 다양한 변경들을 가할 수 있고 여러 가지 형태들을 가질 수 있으므로 실시예들을 도면에 예시하고 본 명세서에 상세하게 설명하고자 한다. 그러나, 이는 본 발명의 개념에 따른 실시예들을 특정한 개시형태들에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 변경, 균등물, 또는 대체물을 포함한다.Since the embodiments according to the concept of the present invention can apply various changes and have various forms, 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 disclosed 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 elements, but the elements 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 the 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 a first component.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다. 구성요소들 간의 관계를 설명하는 표현들, 예를 들어 "~사이에"와 "바로~사이에" 또는 "~에 직접 이웃하는" 등도 마찬가지로 해석되어야 한다.When a component is referred to as being "connected" or "connected" to another component, it is understood that it is directly connected to or may be connected to the other component, but other components may exist in the middle. Should be. On the other hand, when a component is referred to as being "directly connected" or "directly connected" to another component, it should be understood that there is no other component in the middle. Expressions describing the relationship between components, for example, "between" and "just between" or "directly adjacent to" should be interpreted as well.
본 명세서에서 사용한 용어는 단지 특정한 실시예들을 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 설시된 특징, 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것이 존재함으로 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present specification are only used to describe specific embodiments and are not intended to limit the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In the present specification, terms such as "comprise" or "have" are intended to designate that the specified features, numbers, steps, actions, components, parts, or a combination thereof exist, but one or more other features or numbers, It is to be understood that the possibility of addition or presence of steps, actions, components, parts, or combinations thereof is not preliminarily excluded.
다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가진다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥상 가지는 의미와 일치하는 의미를 갖는 것으로 해석되어야 하며, 본 명세서에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which the present invention belongs. Terms as defined in a commonly used dictionary should be interpreted as having a meaning consistent with the meaning in the context of the related technology, and should not be interpreted as an ideal or excessively formal meaning unless explicitly defined in the present specification. 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 indicate the same members.
도 1은 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치의 블록도를 설명하는 도면이다.1 is a diagram illustrating 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
예를 들어, 시리얼 통신선의 이상을 감지하는 장치(100)는 내부 DTE(Data Terminal Equipment), 내부 DTE의 구성 요소, 또는 내부 DTE의 일부 구성을 이용하는 엔티티로 해석될 수 있다.For example, the
본 발명의 일실시예에 따르면 제1 통신선 확인회로(110)는 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이(Relay) 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다. According to an embodiment of the present invention, the first communication
예를 들어, 릴레이 회로는 외부의 DTE와 제1 통신선 확인회로(110)의 사이에 위치하여 외부의 DTE와 제1 통신선 확인회로 사이의 통신선의 연결을 차단 또는 유지하도록 제어될 수 있고, 시리얼 통신선의 이상을 감지하는 장치(100)에 포함될 수 있다.For example, the relay circuit may be positioned between the external DTE and the first communication
일례로, 제1 통신선 확인회로(110)는 필터, 인버터 또는 비교기 중 적어도 하나를 포함하고, 필터, 인버터 또는 비교기 중 적어도 하나에 기반하여 통신선의 연결 상태가 반영된 값을 로우값 또는 하이값으로 수신할 수 있다.For example, the first communication
예를 들어, 하이값은 "H", "1", "긍정" 및 임계값 이상의 데이터를 포함할 수 있고, 로우값은 "L", "0", "부정" 및 임계값 이하의 데이터를 포함할 수 있다.For example, a high value may include "H", "1", "positive" and data above a threshold value, and a low value includes "L", "0", "negative" and data below the threshold. Can include.
본 발명의 일실시예에 따르면 제1 통신선 확인회로(110)는 릴레이 회로를 통해 연결되는 통신선 중 제1 통신선을 통한 데이터의 수신 또는 송신 중 적어도 하나에 대한 데이터 전달 상태를 확인하도록 제어될 수 있다.According to an embodiment of the present invention, the first communication
일례로, 제1 통신선 확인회로(110)는 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중 하이값을 수신할 경우, 복수의 데이터 포트 중 어느 하나로 데이터를 전달할 수 있다.For example, when receiving a high value of a low value or a high value reflecting the connection state of the communication line from the relay circuit, the first communication
또한, 제1 통신선 확인회로(110)는 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중 로우값을 수신할 경우, 복수의 데이터 포트 중 어느 하나로 데이터를 전달할 수 없다.In addition, when the first communication
본 발명의 일실시예에 따르면 제2 통신선 확인회로(120)는 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이(Relay) 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.According to an embodiment of the present invention, the second communication
예를 들어, 릴레이 회로는 외부의 DTE와 제2 통신선 확인회로(120)의 사이에 위치하여 외부의 DTE와 제2 통신선 확인회로 사이의 통신선의 연결을 차단 또는 유지할 수 있다.For example, the relay circuit may be positioned between the external DTE and the second communication
일례로, 제2 통신선 확인회로(120)는 필터, 인버터 또는 비교기 중 적어도 하나를 포함하고, 필터, 인버터 또는 비교기 중 적어도 하나에 기반하여 통신선의 연결 상태가 반영된 값을 로우값 또는 하이값으로 수신할 수 있다.For example, the second communication
본 발명의 일실시예에 따르면 제2 통신선 확인회로(120)는 릴레이 회로를 통해 연결되는 통신선 중 제2 통신선을 통한 데이터의 수신 또는 송신 중 적어도 하나에 대한 데이터 전달 상태를 확인하도록 제어될 수 있다.According to an embodiment of the present invention, the second communication
일례로, 제2 통신선 확인회로(120)는 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중 하이값을 수신할 경우, 복수의 데이터 포트 중 어느 하나로 데이터를 전달할 수 있다.For example, when receiving a high value among a low value or a high value reflecting the connection state of the communication line from the relay circuit, the second communication
또한, 제2 통신선 확인회로(120)는 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중 로우값을 수신할 경우, 복수의 데이터 포트 중 어느 하나로 데이터를 전달할 수 없다.In addition, when the second communication
본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 수신포트, 송신포트 및 복수의 데이터 포트를 포함하고, 복수의 데이터 포트 중 어느 하나는 제1 통신선 확인회로(110)와 연결되고, 어느 하나는 제2 통신선 확인회로(120)와 연결되며, 어느 하나는 송수신 모드를 제어하는 신호를 출력할 수 있다.According to an embodiment of the present invention, the
예를 들어, 복수의 데이터 포트 중 제1 데이터 포트 중 제1 통신선 확인회로(110)와 연결되고, 제2 데이터 포트는 제2 통신선 확인회로(110)와 연결되며, 제3 데이터 포트는 송수신 모드를 제어하는 신호를 출력할 수 있다.For example, among a plurality of data ports, the first data port is connected to the first communication
본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 복수의 데이터 포트와, 제1 통신선 확인회로(110) 또는 제2 통신선 확인회로(120) 간의 데이터 수신 여부를 비교해서, 통신선 중에서 정상 동작하지 않는 통신선을 판단할 수 있다.According to an embodiment of the present invention, the
일례로, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110)에서 하이값이 수신되고, 제2 통신선 확인회로(120)에서 로우값이 수신되는 경우, 통신선 중에서 릴레이 회로를 통해 제2 통신선 확인회로(120)에 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.For example, when a high value is received from the first communication
본 발명의 일실시예에 따르면, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110)에서 하이값이 수신될 경우, 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하고, 제2 통신선 확인회로(120)에서 하이값이 수신될 경우, 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신할 수 있다.According to an embodiment of the present invention, when a high value is received from the first communication
또한, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110)에서 로우값이 수신될 경우, 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하지 않고, 제2 통신선 확인회로(120)에서 로우값이 수신될 경우, 복수의 데이터 포트 중 어느 하나를 통해 데이터를 수신하지 않을 수 있다.In addition, when a low value is received from the first communication
따라서, 본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터가 전달되는 통신선 중 정상동작하지 않는 통신선을 감지하여 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment) 간의 원활한 통신을 지원할 수 있다.Accordingly, the present invention detects a communication line that does not operate normally among communication lines through which data is transmitted in RS485 communication, which is a multi-drop communication, to facilitate smooth communication between an internal data terminal equipment (DTE) and an external data terminal equipment (DTE). You 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
또한, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110) 또는 제2 통신선 확인회로(120) 중 어느 하나에서 로우값이 수신될 경우, 수신포트를 통해 데이터를 수신할 수 없다.In addition, when a low value is received from either the first communication
본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는, 제1 통신선 확인회로(110)에서 하이값이 수신되고, 제2 통신선 확인회로(120)에서 로우값이 수신되는 경우, 통신선 중에서 릴레이 회로를 통해 제2 통신선 확인회로(120)에 연결된 통신선의 연결을 차단하도록 릴레이 회로를 제어할 수 있다.According to an embodiment of the present invention, when a high value is received from the first communication
일례로, 마이크로컨트롤러(130)는 제1 통신선 확인회로(110)에서 로우값이 수신되고, 제2 통신선 확인회로(120)에서 하이값이 수신되는 경우, 통신선 중에서 릴레이 회로를 통해 제1 통신선 확인회로(110)에 연결된 통신선의 연결을 차단하도록 릴레이 회로를 제어할 수 있다.For example, when a low value is received from the first communication
따라서, 본 발명은 내부 DTE(Data Terminal Equipment)와 외부의 DTE(Data Terminal Equipment)를 접속해주는 버스(BUS) 통신선을 차단 또는 연결하는 릴레이 회로를 제어하여 외부의 DTE(Data Terminal Equipment)들 간의 원활한 통신을 지원할 수 있다.Accordingly, the present invention controls a relay circuit that blocks or connects a bus communication line that connects an internal data terminal equipment (DTE) and an external data terminal equipment (DTE) to facilitate smoothness between external data terminal equipment (DTE). Can support communication.
본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 외부의 DTE(Data Terminal Equipment)에 대한 통신 이상을 감지할 경우, 통신선의 연결을 유지하도록 릴레이 회로를 제어할 수 있다.According to an embodiment of the present invention, the
예를 들어, 마이크로컨트롤러(130)는 외부의 DTE로부터 데이터를 수신하는 수신 모드에서, 외부의 DTE로부터 데이터를 수신하지 못할 경우 외부의 DTE에 대한 통신 이상을 감지할 수 있다.For example, in a reception mode in which data is received from an external DTE, the
본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는 복수의 데이터 포트 중 어느 하나를 통해 로우값 또는 하이값 중 어느 하나를 출력하여 송신 모드 또는 수신 모드 중 어느 하나를 결정하고, 송신 모드에서 송신포트를 통해 데이터를 출력할 수 있다.According to an embodiment of the present invention, the
즉, 마이크로컨트롤러(130)는 복수의 데이터 포트 중 어느 하나를 통해 로우값을 출력할 경우, 수신 모드를 유지하고, 하이값을 출력할 경우, 송신 모드로 전환할 수 있다.That is, when the
본 발명의 다른 실시예에 따르면 시리얼 통신선의 이상을 감지하는 장치는 송신 확인회로를 더 포함할 수 있다.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
본 발명의 일실시예에 따르면 마이크로컨트롤러(130)는, 복수의 데이터 포트와, 제1 통신선 확인회로 또는 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 송신포트를 통해 출력된 데이터의 송신 여부를 판단할 수 있다.According to an embodiment of the present invention, the
일례로, 마이크로컨트롤러(130)는 송신모드 및 수신모드를 제어하되, 복수의 데이터 포트 중 제1 데이터 포트 및 제2 데이터 포트에서 데이터 수신 여부에 기초하여 데이터의 송신 및 수신에 대한 통신선 이상을 감지할 수 있다.For example, the
도 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 device for detecting an abnormality in a serial communication line and an external DTE 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
본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 장치(200)는 마이크로컨트롤러(240)에 의해 제어될 수 있다.The
마이크로컨트롤러(240)는 수신포트(RXD), 송신포트(TX), 데이터 포트(A), 데이터 포트(B) 및 데이터 포트(C)를 포함한다.The
본 발명의 일실시예에 따르면 마이크로컨트롤러(240)는 데이터 포트(C)를 통해 로우값을 출력하여 데이터 수신 모드로 시리얼 통신선의 이상을 감지하는 장치(200)를 설정할 수 있다.According to an embodiment of the present invention, the
예를 들어, 시리얼 통신선의 이상을 감지하는 장치(200)는 데이터를 송신하지 않을 경우에, 데이터 수신 모드를 유지할 수 있다.For example, the
또한, 마이크로컨트롤러(240)는 데이터 송수신 회로(230)에 연결된 회로(231)의 저항(R1)과 저항(R2)를 통하여 바이어스(bias) 전압을 인가하여 제1 통신선 확인회로(210), 제2 통신선 확인회로(220), 및 송신 확인회로(260)의 동작 상태를 유지하도록 제어할 수 있다.In addition, the
예를 들어, 마이크로컨트롤러(240)는 데이터 포트(C)를 통해 로우값을 출력하면, 송신 확인회로(260)의 인버터(IC3) 통해 로우값이 하이값으로 반전되어 송신 확인회로(260)의 회로(IC2)의 2번 포트에 하이값이 입력된다.For example, when the
이때, 회로(IC2)의 3번 포트 및 4번 포트에 로우값이 입력되므로, 회로(IC2)의 출력 포트인 6번 포트와 7번 포트는 하이 임피던스(high impedance) 상태를 유지할 수 있다.At this time, since low values are input to
또한, 회로(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)가 동작하지 않도록 제어할 수 있다.Accordingly, the
본 발명의 일실시예에 따르면 마이크로컨트롤러(240)의 데이터 포트(A) 및 데이터 포트(B)는 정상(Normal) 입력 상태로 유지될 수 있다.According to an embodiment of the present invention, the data port (A) and the data port (B) of the
일례로, 마이크로컨트롤러(240)는 회로(261)의 저항(R5) 및 저항(R6)를 사용하여 통신선(251) 및 통신선(252)에 대한 임피던스 영향을 최소화되도록 저항을 부가할 수 있다.For example, the
본 발명의 일실시예에 따르면 제1 통신선 확인회로(210)는 인버터(211), 필터(212), 비교기(213), 데이터 입력 회로(214) 및 기준 전압 입력 회로(215)를 포함할 수 있다.According to an embodiment of the present invention, the first communication
비교기(213)의 3번 포트는 회로(231)의 저항(R1)의 바이어스 전압이 흘러 기준 전압 입력 회로(215)의 다이오드(D2)를 통해 전압이 강하된 후, 커패시터(C2)와 저항(R12)이 충전 또는 방전되고, 이후에 비교기(213)에 입력될 수 있다.The third port of the
이때, 데이터 입력 회로(214)의 저항(R11)은 전압강하가 발생하지 않으므로 비교기(213)의 3번 포트 보다 2번 포트에 높은 전압이 입력되므로, 비교기(213)의 1번 포트는 로우값을 출력할 수 있다.At this time, since the resistance R11 of the
다음으로, 필터(212)의 다이오드(D1)에 로우값이 입력되고, 다이오드(D1)는 동작하지 않고, 저항(R9) 및 저항(R10)을 통해 인버터(211)의 입력 포트에 로우값이 입력되므로, 인버터(211)의 출력 포트는 하이값을 출력할 수 있다.Next, a low value is input to the diode D1 of the
본 발명의 일실시예에 따르면 제2 통신선 확인회로(220)는 인버터(221), 필터(222), 비교기(223), 데이터 입력 회로(224) 및 기준 전압 입력 회로(225)를 포함할 수 있다.According to an embodiment of the present invention, the second communication
비교기(223)에서 5번 포트는 회로(231)의 저항(R2)의 바이어스 전압이 흘러 기준 전압 입력 회로(225)의 다이오드(D4)를 통해 전압이 강하된 후, 커패시터(C4)와 저항(R16)이 충전 또는 방전되고, 이후에 비교기(223)의 5번 포트에 입력될 수 있다.In the 5th port of the
이때, 데이터 입력 회로(224)의 저항(R15)은 전압강하가 발생하지 않으므로, 비교기(223)의 5번 포트보다 6번 포트에 높은 전압이 입력되고, 비교기(223)의 7번 포트는 로우값을 출력할 수 있다.At this time, since the resistance R15 of the
다음으로, 인버터(221)의 다이오드(D3)에 로우값이 입력되고 다이오드(D3)는 동작하지 않고, 저항(R13)과 저항(R14)을 통해 인버터(221)의 입력 포트에 로우값이 입력되므로 인버터(221)의 출력 포트는 하이값을 출력할 수 있다.Next, a low value is input to the diode D3 of the
일례로, 시리얼 통신선의 이상을 감지하는 장치(200)는 외부의 DTE(280)로부터 데이터를 수신할 시 통신선(251)이 하이값을 입력 받을 때 기준 전압 입력 회로(215)의 다이오드(D2)를 통해 커패시터(C2)가 충전되고, 통신선(251)이 로우값을 입력 받을 때, 커패시터(C2)를 통해 방전될 수 있다.As an example, when the
여기서, 데이터 입력 회로(214)의 저항(R11)은 충전 및 방전 회로가 없으므로, 하이값 또는 로우값이 비교기(213)의 2번 포트로 입력될 수 있다.Here, since the resistance R11 of the
비교기(213)는 2번 포트와 3번 포트의 입력을 비교하여 3번 포트의 전압이 높을 시, 1번 포트를 통해 하이값을 출력하고, 2번 포트의 전압이 높을 시 1번 포트를 통해 로우값을 각각 출력할 수 있다.The
비교기(213)의 1번 포트를 통해 하이값이 출력될 시, 필터(212)의 다이오드(D1)를 통해 커패시터(C1)에 충전하고, 비교기(213)의 1번이 로우값을 출력할 시, 필터(212)의 커패시터(C1)는 방전을 할 수 있다.When a high value is output through the first port of the
다음으로, 커패시터(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
본 발명의 일실시예에 따르면 제1 통신선 확인회로(210)는 통신선(251)을 확인(check)하고, 제2 통신선 확인회로(220)는 통신선(252)를 확인할 수 있다. 여기서, 제1 통신선 확인회로(210)와 제2 통신선 확인회로(220)의 동작은 동일할 수 있다.According to an embodiment of the present invention, the first communication
예를 들어, 통신선(251)에서 문제가 발생하여 인버터(211)이 동작하지 않아, 마이크로컨트롤러(240)의 데이터 포트(B)에 데이터가 수신되지 않고, 인버터(221)만 동작하여 마이크로컨트롤러(240)의 데이터 포트(A)에 데이터가 수신되고, 마이크로컨트롤러(240)의 수신포트(RXD)에 데이터가 수신되지 않을 경우, 마이크로컨트롤러(240)는 통신선(251)에 문제가 발생한 것을 인식할 수 있다.For example, since a problem occurs in the
또한, 통신선(252)에서 문제가 발생하여 인버터(221)이 동작하지 않아, 마이크로컨트롤러(240)의 데이터 포트(A)에 데이터가 수신되지 않고, 인버터(211)만 동작하여 마이크로컨트롤러(240)의 데이터 포트(B)에 데이터가 수신되고, 마이크로컨트롤러(240)의 수신포트(RXD)에 데이터가 수신되지 않을 경우, 마이크로컨트롤러(240)는 통신선(252)에 문제가 발생한 것을 인식할 수 있다.In addition, since a problem occurs in the
본 발명의 일실시예에 따르면 마이크로컨트롤러(240)는 데이터 포트(C)를 통해 하이값을 출력하여 시리얼 통신선의 이상을 감지하는 장치(200)를 데이터 송신 모드로 전환할 수 있다. 여기서, 데이터 송수신 회로(230)는 송신 회로로 동작 할 수 있다.According to an embodiment of the present invention, the
일례로, 마이크로컨트롤러(240)는 송신포트(TXD)를 통하여 데이터를 송신하고, 마이크로컨트롤러(240)는 데이터 포트(C)를 통해 하이값을 출력할 시, 데이터 송수신 회로(230)는 데이터 송신 상태로 전환될 수 있다.For example, when the
데이터 송수신 회로(230)가 데이터 송신 상태로 전환될 시, 송신 확인회로(260)는 인버터(IC3)를 통해 반전된 신호롤 회로(IC2)의 2번 포트에 로우값으로 입력하고, 회로(IC2)는 데이터 수신 모드로 전환될 수 있다.When the data transmission/
또한, 데이터 송수신 회로(230)의 회로(IC1)에서 송신된 데이터가 회로(IC2)의 1번 포트를 통해 수신되어 회로(IC1)로 송신된 데이터의 정상 또는 비정상 상태를 마이크로 컨트롤러(240)가 판단할 수 있다.In addition, the data transmitted from the circuit IC1 of the data transmission/
데이터가 송신될 경우, 제1 통신선 확인회로(210) 및 제2 통신선 확인회로(220)는 외부의 DTE(280)로부터 데이터를 수신할 때와 동일하게 동작될 수 있다.When data is transmitted, the first communication
따라서, 마이크로컨트롤러(240)는 통신선(251) 및 통신선(252) 각각을 확인하여 데이터가 마이크로 컨트롤러(240)의 수신포트(RXD), 데이터 포트(A) 및 데이터 포트(B)에서 데이터 수신 여부를 비교하여 데이터가 정상적으로 송신되었는지를 판단할 수 있다.Therefore, the
즉, 본 발명은 멀티 드롭(Multi Drop) 통신인 RS485 통신에서 데이터의 송신 또는 수신 중 적어도 하나에 대한 이상 유무를 확인할 수 있다.That is, in the present invention, in RS485 communication, which is a multi drop communication, it is possible to check whether there is an abnormality in at least one of transmission or reception of data.
예를 들어, 통신선(251)은 RS485- 통신선을 포함할 수 있고, 통신선(252)은 RS485+ 통신선을 포함할 수 있다.For example, the
본 발명의 일실시예에 따르면 마이크로컨트롤러(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
또한, 시리얼 통신선의 이상을 감지하는 장치(200)는 외부의 DTE(280), 외부의 DTE(281) 또는 외부의 DTE(282)의 통신 상태가 정상으로 복귀할 때까지 통신선(251) 또는 통신선(252) 중 적어도 하나의 연결을 유지할 수 있다.In addition, the
일례로, 마이크로컨트롤러(240)의 수신포트(RXD), 데이터 포트(A), 데이터 포트(B)에서 송신신호가 정상적으로 입력되지 않을 경우, 마이크로컨트롤러(240)는 릴레이회로(250)를 제어하여 외부의 DTE(280), 외부의 DTE(281) 또는 외부의 DTE(282)와 연결된 통신선(251) 또는 통신선(252)을 차단하여 외부의 DTE(280), 외부의 DTE(281) 및 외부의 DTE(282)들 간의 통신이 수행될 수 있도록 릴레이 회로(250)를 제어할 수 있다.For example, when a transmission signal is not normally input from the receiving port (RXD), data port (A), and data port (B) of the
일례로, 전원 회로(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 전압을 공급할 수 있다.As an example, the
도 3은 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법과 관련된 흐름도를 설명하는 도면이다.3 is a diagram illustrating a flow chart related to a method of 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 that does not normally operate in a method for detecting an abnormality in a serial communication line according to an embodiment of the present invention.
도 3을 참고하면, 단계(301)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 통신선의 연결 상태가 반영된 값을 수신한다.Referring to FIG. 3, in
즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to receive at least one of a low value or a high value reflecting the connection state of the communication line from the external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line in the first communication line check 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 is to receive a low value from the first communication line check circuit and receive an external DTE when the communication line connected through the external DTE (Data Terminal Equipment) and the relay circuit does not operate normally. When (Data Terminal Equipment) and the communication line operate normally, a high value can be received from the first communication line check circuit.
단계(302)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 통신선의 연결 상태가 반영된 값을 수신할 수 있다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to receive 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 external data terminal equipment (DTE) and a communication line in the second communication line check circuit. can do.
예를 들어, 시리얼 통신선의 이상을 감지하는 방법은 외부의 DTE(Data Terminal Equipment)와 릴레이 회로를 통해 연결된 통신선이 정상적으로 동작하지 못할 경우, 제2 통신선 확인회로에서 로우값을 수신하고, 외부의 DTE(Data Terminal Equipment)와 통신선이 정상적으로 동작할 경우, 제2 통신선 확인회로에서 하이값을 수신할 수 있다.For example, a method of detecting an abnormality in a serial communication line is to receive a low value from the second communication line check circuit when the communication line connected through an external DTE (Data Terminal Equipment) and a relay circuit does not operate normally, and the external DTE When (Data Terminal Equipment) and the communication line operate normally, a high value can be received from the second communication line confirmation circuit.
단계(303)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하는지 여부를 판단한다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 하이값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하여 단계(304)로 진행하고, 제1 통신선 확인회로에서 로우값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여 단계(305)로 진행할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to proceed to step 304 by receiving data from the data port connected to the first communication line check circuit, when receiving a high value from the first communication line check circuit, and check the first communication line. When a low value is received by the circuit, the data is not received at the data port connected to the first communication line check circuit, and thus the process may proceed to step 305.
단계(304)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하는지 여부를 판단한다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 하이값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하여 해당 절차를 종료하고, 제2 통신선 확인회로에서 하이값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여 단계(306)로 진행할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to terminate the procedure by receiving data from the data port connected to the second communication line check circuit, when receiving a high value from the second communication line check circuit. When the high value is received, the data is not received at the data port connected to the second communication line confirmation circuit, and thus the process may proceed to step 306.
단계(305)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 로우값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여, 제1 통신선 확인회로와 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.That is, the method of detecting an abnormality in the serial communication line is that when a low value is received from the first communication line check circuit, the data port connected to the first communication line check circuit cannot receive data, so that the communication line connected to the first communication line check circuit is normal. It can be determined as a non-operating communication line.
단계(306)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로와 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 로우값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여, 제2 통신선 확인회로와 연결된 통신선을 정상 동작하지 않는 통신선으로 판단할 수 있다.That is, the method of detecting an abnormality in the serial communication line is that when a low value is received from the second communication line check circuit, data cannot be received from the data port connected to the second communication line check circuit, so that the communication line connected to the second communication line check circuit is normal. It can be determined as a non-operating communication line.
또한, 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 데이터 포트와 제2 통신선 확인회로와 연결된 데이터 포트를 통해 데이터를 수신할 경우, 마이크로컨트롤러의 수신포트를 통해 데이터를 정상적으로 수신할 수 있다.In addition, a method of detecting an abnormality in a serial communication line according to an embodiment of the present invention is to receive data through a data port connected to the first communication line check circuit and a data port connected to the second communication line check circuit, the reception of the microcontroller. Data can be received normally through the port.
도 4는 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법과 관련된 흐름도를 설명하는 도면이다.4 is a diagram illustrating a flow chart related to a method of 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 of 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
즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to receive at least one of a low value or a high value reflecting the connection state of the communication line from the external DTE (Data Terminal Equipment) and a relay circuit connected through the communication line in the first communication line check circuit. can do.
단계(402)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 통신선의 연결 상태가 반영된 값을 수신할 수 있다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서, 외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to receive 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 external data terminal equipment (DTE) and a communication line in the second communication line check circuit. can do.
단계(403)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하는지 여부를 판단한다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 하이값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하여 단계(404)로 진행하고, 제1 통신선 확인회로에서 로우값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여 단계(405)로 진행할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to proceed to step 404 by receiving data from the data port connected to the first communication line check circuit, when receiving a high value from the first communication line check circuit, and check the first communication line. When the circuit receives the low value, the data may not be received at the data port connected to the first communication line check circuit, and thus the process may proceed to step 405.
단계(404)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하는지 여부를 판단한다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 하이값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하여 해당 절차를 종료하고, 제2 통신선 확인회로에서 하이값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여 단계(406)로 진행할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to terminate the procedure by receiving data from the data port connected to the second communication line check circuit, when receiving a high value from the second communication line check circuit. When the high value is received, the data is not received at the data port connected to the second communication line check circuit, and thus the process may proceed to step 406.
단계(405)에서 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 통신선을 차단하도록 제어할 수 있다.The method of detecting an abnormality in the serial communication line in
즉, 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로에서 로우값을 수신할 경우, 제1 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여, 제1 통신선 확인회로와 연결된 통신선을 차단하도록 릴레이 회로를 제어하여, 외부의 DTE 간에 통신이 원활하도록 지원할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to cut off the communication line connected to the first communication line check circuit because when a low value is received from the first communication line check circuit, the data port connected to the first communication line check circuit cannot receive data. By controlling the relay circuit so that it can support smooth communication between external DTEs.
단계(406)에서 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로와 연결된 통신선을 차단하도록 제어할 수 있다.In
즉, 시리얼 통신선의 이상을 감지하는 방법은 제2 통신선 확인회로에서 로우값을 수신할 경우, 제2 통신선 확인회로와 연결된 데이터 포트에서 데이터를 수신하지 못하여, 제2 통신선 확인회로와 연결된 통신선을 차단하도록 릴레이 회로를 제어하여, 외부의 DTE 간에 통신이 원활하도록 지원할 수 있다.That is, the method of detecting an abnormality in the serial communication line is to cut off the communication line connected to the second communication line check circuit because when a low value is received from the second communication line check circuit, data cannot be received from the data port connected to the second communication line check circuit. By controlling the relay circuit so that it can support smooth communication between external DTEs.
또한, 본 발명의 일실시예에 따른 시리얼 통신선의 이상을 감지하는 방법은 제1 통신선 확인회로와 연결된 데이터 포트와 제2 통신선 확인회로와 연결된 데이터 포트를 통해 데이터를 수신할 경우, 제1 통신선 확인회로 및 제2 통신선 확인회로와 연결된 통신선의 연결 상태를 유지하도록 릴레이 회로를 제어할 수 있다.In addition, a method of detecting an abnormality in a serial communication line according to an embodiment of the present invention is to check the first communication line 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. The relay circuit may be controlled to maintain a connection state of the circuit and the communication line connected to the second communication line check 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 apparatus described above may be implemented as a hardware component, a software component, and/or a combination of a hardware component and a software component. For example, the devices and components described in the embodiments include, for example, a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable array (FPA), It can be implemented using one or more general purpose computers or special purpose computers, such as a programmable logic unit (PLU), a microprocessor, or any other device capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications executed on the operating system. In addition, the processing device may access, store, manipulate, process, and generate data in response to the execution of software. For the convenience of understanding, although it is sometimes described that one processing device is used, one of ordinary skill in the art, the processing device is a plurality of processing elements and/or a plurality of types of processing elements. It can be seen that it may include. For example, the processing device may include a plurality of processors or one processor and one controller. In addition, other processing configurations are possible, such as a parallel processor.
실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(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 in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the embodiment, or may be known and usable to 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 and DVDs, and magnetic media such as floptical disks. -A hardware device specially configured to store and execute program instructions such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of the program instructions include not only machine language codes such as those produced by a compiler but also high-level language codes that can be executed by a computer using an interpreter or the like. The hardware device described above may be configured to operate as one or more software modules to perform the operation of the embodiment, and vice versa.
소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치, 또는 전송되는 신호 파(signal wave)에 영구적으로, 또는 일시적으로 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.The software may include a computer program, code, instructions, or a combination of one or more of these, configuring the processing unit to behave as desired or processed 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 embodyed in a transmitted signal wave. The software may be distributed over networked computer systems and stored or executed in a distributed manner. Software and data may be stored on one or more computer-readable recording media.
이상과 같이 실시예들이 비록 한정된 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described by the limited drawings, various modifications and variations are possible from the above description to those of ordinary skill in the art. For example, the described techniques are performed in an order different from the described method, and/or components such as a system, structure, device, circuit, etc. described are combined or combined in a form different from the described method, or other components Alternatively, even if substituted or substituted by an equivalent, an appropriate result can be achieved.
그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 특허청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and claims and equivalents fall within the scope of the claims to be described later.
100: 시리얼 통신선의 이상을 감지하는 장치
110: 제1 통신선 확인회로 120: 제2 통신선 확인회로
130: 마이크로컨트롤러100: a device that detects an abnormality in the serial communication line
110: first communication line check circuit 120: second communication line check circuit
130: microcontroller
Claims (13)
외부의 DTE(Data Terminal Equipment)와 통신선을 통해 연결된 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 제1 통신선 확인회로; 및
상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 제2 통신선 확인회로를 포함하고,
상기 마이크로컨트롤러는,
상기 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하고,
상기 복수의 데이터 포트는 상기 제1 통신선 확인회로에 하이값이 수신될 경우 데이터를 수신하는 제1 데이터 포트, 상기 제2 통신선 확인회로에 하이값이 수신될 경우 데이터를 수신하는 제2 데이터 포트 및 상기 송신 모드를 결정하기 위해 하이값을 출력하거나 상기 수신 모드를 결정하기 위해 로우값을 출력하는 제3 데이터 포트를 포함하며,
상기 수신 포트는 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로에서 하이값이 수신될 경우 데이터를 수신하고,
상기 마이크로컨트롤러는 상기 제3 데이터 포트를 통해 하이값을 출력하여 상기 송신 모드로 결정하고, 상기 결정된 송신 모드에서 상기 송신포트를 통해 데이터를 출력하며,
상기 송신포트를 통해 출력된 데이터를 상기 수신포트, 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로로 전달하는 송신 확인회로를 더 포함하고,
상기 제1 데이터 포트, 상기 제2 데이터 포트 및 상기 수신 포트 간의 데이터 수신 여부를 비교해서, 상기 송신포트를 통해 출력된 데이터의 송신 여부를 판단하는
시리얼 통신선의 이상을 감지하는 장치.A microcontroller that determines a transmission mode and a reception mode, and includes a reception port, a transmission port, and a plurality of data ports;
A first communication line check circuit for receiving at least one of a low value or a high value reflecting a connection state of the communication line from a relay circuit connected through an external data terminal equipment (DTE) and a communication line; And
A second communication line check circuit for receiving at least one of a low value or a high value reflecting a connection state of the communication line from the relay circuit,
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, it is possible to determine a communication line that does not operate normally among the communication lines,
The plurality of data ports include a first data port for receiving data when a high value is received by the first communication line confirmation circuit, a second data port for receiving data when a high value is received by the second communication line confirmation circuit, and A third data port for outputting a high value to determine the transmission mode or a low value to determine the reception mode,
The receiving port receives data when a high value is received from the first communication line check circuit and the second communication line check circuit,
The microcontroller outputs a high value through the third data port to determine the transmission mode, and outputs data through the transmission port in the determined transmission mode,
Further comprising a transmission confirmation circuit for transmitting the data output through the transmission port to the receiving port, the first communication line confirmation circuit and the second communication line confirmation circuit,
Comparing whether data is received between the first data port, the second data port, and the receiving port, and determining whether to transmit the data output through the transmission port
A device that detects an abnormality in the serial communication line.
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는
시리얼 통신선의 이상을 감지하는 장치.The method of claim 1,
When a high value is received from the first communication line check circuit and a low value is received from the second communication line check circuit, the microcontroller connects a communication line connected to the second communication line check circuit through the relay circuit among the communication lines. The communication line that does not operate normally
A device that detects an abnormality in the serial communication line.
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는
시리얼 통신선의 이상을 감지하는 장치.The method of claim 1,
The microcontroller, when a low value is received from the first communication line check circuit and a high value is received from the second communication line check circuit, the communication line connected to the first communication line check circuit through the relay circuit among the communication lines. The communication line that does not operate normally
A device that detects an abnormality in the serial communication line.
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선의 연결을 차단하도록 상기 릴레이 회로를 제어하는
시리얼 통신선의 이상을 감지하는 장치.The method of claim 1,
The microcontroller, when a high value is received from the first communication line check circuit and a low value is received from the second communication line check circuit, of the communication line connected to the second communication line check circuit through the relay circuit among the communication lines. To control the relay circuit to cut off the connection
A device that detects an abnormality in the serial communication line.
상기 마이크로컨트롤러는, 상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선의 연결을 차단하도록 상기 릴레이 회로를 제어하는
시리얼 통신선의 이상을 감지하는 장치.The method of claim 1,
The microcontroller, when a low value is received from the first communication line check circuit and a high value is received from the second communication line check circuit, of the communication line connected to the first communication line check circuit through the relay circuit among the communication lines. To control the relay circuit to cut off the connection
A device that detects an abnormality in the serial communication line.
상기 마이크로컨트롤러는, 상기 외부의 DTE(Data Terminal Equipment)에 대한 통신 이상을 감지할 경우, 상기 통신선의 연결을 유지하도록 상기 릴레이 회로를 제어하는
시리얼 통신선의 이상을 감지하는 장치.The method of claim 1,
The microcontroller controls the relay circuit to maintain the connection of the communication line when detecting a communication abnormality for the external data terminal equipment (DTE).
A device that detects an abnormality in the serial communication line.
제2 통신선 확인회로에서, 상기 릴레이 회로로부터 상기 통신선의 연결 상태가 반영된 로우값 또는 하이값 중에서 적어도 하나를 수신하는 단계; 및
수신포트, 송신포트, 및 복수의 데이터 포트를 포함하는 마이크로컨트롤러에서, 상기 복수의 데이터 포트와, 상기 제1 통신선 확인회로 또는 상기 제2 통신선 확인회로 간의 데이터 수신 여부를 비교해서, 상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 단계;
상기 복수의 데이터 포트는 상기 제1 통신선 확인회로에 하이값이 수신될 경우 데이터를 수신하는 제1 데이터 포트, 상기 제2 통신선 확인회로에 하이값이 수신될 경우 데이터를 수신하는 제2 데이터 포트 및 송신 모드를 결정하기 위해 하이값을 출력하거나 상기 수신 모드를 결정하기 위해 로우값을 출력하는 제3 데이터 포트를 포함하며,
상기 수신 포트는 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로에서 하이값이 수신될 경우 데이터를 수신하고,
상기 마이크로컨트롤러에서, 상기 제3 데이터 포트를 통해 하이값을 출력하여 상기 송신 모드로 결정하고, 상기 결정된 송신 모드에서 상기 송신포트를 통해 데이터를 출력하는 단계;
송신 확인 회로에서, 상기 송신포트를 통해 출력된 데이터를 상기 수신포트, 상기 제1 통신선 확인회로 및 상기 제2 통신선 확인회로로 전달하는 단계; 및
상기 마이크로컨트롤러에서, 상기 제1 데이터 포트, 상기 제2 데이터 포트 및 상기 수신 포트 간의 데이터 수신 여부를 비교해서, 상기 송신포트를 통해 출력된 데이터의 송신 여부를 판단하는 단계를 포함하는
시리얼 통신선의 이상을 감지하는 방법.Receiving at least one of a low value or a high value reflecting a connection state of the communication line from a relay circuit connected to an external data terminal equipment (DTE) through a communication line in a reception mode, in a first communication line check circuit;
Receiving at least one of a low value or a high value reflecting a connection state of the communication line from the relay circuit, in a second communication line check circuit; And
In a microcontroller including a receiving port, a transmitting port, and a plurality of data ports, by comparing whether data is received between the plurality of data ports and the first communication line confirmation circuit or the second communication line confirmation circuit, it is normal among the communication lines. Determining a non-operating communication line;
The plurality of data ports include a first data port for receiving data when a high value is received by the first communication line confirmation circuit, a second data port for receiving data when a high value is received by the second communication line confirmation circuit, and And a third data port that outputs a high value to determine a transmission mode or a low value to determine the reception mode,
The receiving port receives data when a high value is received from the first communication line check circuit and the second communication line check circuit,
Outputting a high value through the third data port at the microcontroller to determine the transmission mode, and outputting data through the transmission port in the determined transmission mode;
In a transmission confirmation circuit, transferring data output through the transmission port to the reception port, the first communication line confirmation circuit, and the second communication line confirmation circuit; And
Comprising, in the microcontroller, comparing whether data is received between the first data port, the second data port, and the receiving port, and determining whether to transmit the data output through the transmission port.
How to detect an abnormality in the serial communication line.
상기 통신선 중에서 정상 동작하지 않는 통신선을 판단하는 단계는,
상기 제1 통신선 확인회로에서 하이값이 수신되고, 상기 제2 통신선 확인회로에서 로우값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제2 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는 단계; 및
상기 제1 통신선 확인회로에서 로우값이 수신되고, 상기 제2 통신선 확인회로에서 하이값이 수신되는 경우, 상기 통신선 중에서 상기 릴레이 회로를 통해 상기 제1 통신선 확인회로에 연결된 통신선을 상기 정상 동작하지 않는 통신선으로 판단하는 단계를 포함하는
시리얼 통신선의 이상을 감지하는 방법.The method of claim 11,
The step of determining a communication line that does not operate normally among the communication lines,
When a high value is received from the first communication line check circuit and a low value is received from the second communication line check circuit, the communication line connected to the second communication line check circuit through the relay circuit among the communication lines does not operate normally. Determining as a communication line; And
When a low value is received from the first communication line check circuit and a high value is received from the second communication line check circuit, the communication line connected to the first communication line check circuit through the relay circuit among the communication lines does not operate normally. Including the step of determining the communication line
How to detect an abnormality in the serial communication line.
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 KR20200076063A (en) | 2020-06-29 |
KR102144791B1 true 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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008257706A (en) * | 2007-03-09 | 2008-10-23 | Omron Corp | Controller of building block type |
Family Cites Families (6)
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 |
KR101224523B1 (en) * | 2011-06-13 | 2013-01-22 | 주식회사 코맥스 | 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 |
-
2018
- 2018-12-19 KR KR1020180164745A patent/KR102144791B1/en active IP Right Grant
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008257706A (en) * | 2007-03-09 | 2008-10-23 | Omron Corp | Controller of building block type |
Also Published As
Publication number | Publication date |
---|---|
KR20200076063A (en) | 2020-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100968641B1 (en) | Point-to-point link negotiation method and apparatus | |
US8127059B1 (en) | Apparatus for interconnecting hosts with storage devices | |
CN113227991B (en) | Alternative protocol selection | |
US11347669B2 (en) | Equalization time configuration method, chip, and communications system | |
US11467909B1 (en) | Peripheral component interconnect express interface device and operating method thereof | |
US8244948B2 (en) | Method and system for combining multiple SAS expanders into a SAS switch | |
EP2388960B1 (en) | Intelligent bus address self-configuration in a multi-module system | |
US9800461B2 (en) | Ring-based network interconnect | |
WO2017041069A1 (en) | Override subsystems for rapid recovery from serial-link errors | |
TW202240417A (en) | Peripheral component interconnect express (pcie) interface device and method of operating the same | |
KR102144791B1 (en) | Apparatus and method of detecting error of serial communication lines | |
US20190294569A1 (en) | Logic circuit that provides verification of signals used to interrupt server operation | |
US20230315672A1 (en) | Interface device and computing system including the same | |
US11960367B2 (en) | Peripheral component interconnect express device and operating method thereof | |
CN110928820B (en) | System and method for automatic configuration of serial small computer system interface area | |
US20240104035A1 (en) | Peripheral component interconnect express device and operating method thereof | |
US20210281527A1 (en) | Line monitor device and network switch | |
US20230421432A1 (en) | Communication apparatus and communication system | |
US20230315591A1 (en) | PCIe DEVICE AND COMPUTING SYSTEM INCLUDING THE SAME | |
US20240012770A1 (en) | Interface device having plurality of ports and method of operating the same | |
JP3604868B2 (en) | System and error handling method | |
JP2008171327A (en) | Packet communication device, packet communication method, and packet communication program | |
JP2004159075A (en) | Control method of information network and information processing system |
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 |