KR101084060B1 - The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination - Google Patents

The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination Download PDF

Info

Publication number
KR101084060B1
KR101084060B1 KR1020090030444A KR20090030444A KR101084060B1 KR 101084060 B1 KR101084060 B1 KR 101084060B1 KR 1020090030444 A KR1020090030444 A KR 1020090030444A KR 20090030444 A KR20090030444 A KR 20090030444A KR 101084060 B1 KR101084060 B1 KR 101084060B1
Authority
KR
South Korea
Prior art keywords
processing unit
data
polarity
signal
normal
Prior art date
Application number
KR1020090030444A
Other languages
Korean (ko)
Other versions
KR20100111946A (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 KR1020090030444A priority Critical patent/KR101084060B1/en
Publication of KR20100111946A publication Critical patent/KR20100111946A/en
Application granted granted Critical
Publication of KR101084060B1 publication Critical patent/KR101084060B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/007Fail-safe circuits
    • H03K19/0075Fail-safe circuits by using two redundant chains
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/01Shaping pulses
    • H03K5/12Shaping pulses by steepening leading or trailing edges
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/153Arrangements in which a pulse is delivered at the instant when a predetermined characteristic of an input signal is present or at a fixed time interval after this instant
    • H03K5/1534Transition or edge detectors

Abstract

본 발명은 극성에 따라 처음 수신되는 데이터의 상승 에지 또는 하강 에지를 판단하여 극성이 맞았는지의 여부를 판단할 수 있도록 하고, 데이터의 에지에 따라 결선 처리부에서 처리를 하여 오결선 상태에서도 정상적엔 데이터 전송이 가능하도록 하는 BMS 제어기 간의 무극성 RS-485통신장치를 제공하는데 그 목적이 있다. According to the present invention, it is possible to determine whether the polarity is correct by determining the rising edge or the falling edge of the first received data according to the polarity. It is an object of the present invention to provide a non-polar RS-485 communication device between the BMS controller to enable transmission.

상기한 목적을 달성하기 위한 본 발명 장치는, 두개의 커넥터를 통하여 데이터를 입력받는 RS-485 트랜시버와, 통신속도를 조절하여 입력된 데이터의 상승에지 및 하강에지를 감지하여 극성을 판별할 수 있도록 하는 통신속도 가공부와, 상기 통신속도 가공부의 신호와 입력데이터신호를 사용하여 정상결선 또는 오결선시 정상적인 데이터가 전송될 수 있도록 하는 결선 처리부와, 상기 결선 처리부로부터 출력되는 데이터를 결합하여 정상적인 데이터만를 MCU(Micro Controller Unit)로 전송할 수 있도록 하는 출력 결합부로 구성되어, 기존의 RS-485 통신 사용시 극성을 맞추어 커넥터를 연결해야 하는 것과는 달리, 극성에 상관없이 커넥터에 연결만 하면 극성을 알아서 감지하여 정상적인 데이터를 전송할 수 있도록 함으로써 사용자의 편리성을 증대시키고, 오결선에 의한 에러 및 고장을 방지할 수 있도록 하는 BMS 제어기 간의 무극성 RS-485통신을 제공하는 것을 그 기술적 요지로 한다. In order to achieve the above object, the present invention provides an RS-485 transceiver for receiving data through two connectors, and adjusts a communication speed so that polarity can be determined by detecting rising and falling edges of the input data. Normal data by combining the data output from the connection processing unit, the connection processing unit for using the signal and the input data signal of the communication speed processing unit to allow normal data to be transmitted in the case of normal or incorrect wiring It is composed of output coupling part that can transmit only to MCU (Micro Controller Unit) .In contrast to the need to connect the connector according to the polarity when using the existing RS-485 communication, it only detects the polarity when connected to the connector regardless of the polarity. By allowing normal data to be transmitted, the user's convenience is increased. To provide a non-polar RS-485 communications between the BMS controller in a manner that reduces the error and the malfunction due to the line in the technical gist.

RS-485, 극성, 결선, 스타트 비트, 게이트, 오결선, 처리부  RS-485, polarity, wiring, start bit, gate, incorrect wiring, processing section

Description

BMS 제어기 간의 극성 자동판단에 의한 데이터 전송이 가능한 무극성 RS-485통신장치{The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination}The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination}

본 발명은 BMS(Building Management System) 제어기 간의 무극성 RS-485 통신장치에 관한 것으로, 더욱 상세하게는 BMS 시스템 구축을 위해 일반적인 멀티 드롭 방식의 RS-485 통신의 데이터 통신선 결선을 무극성으로 연결할 수 있도록 하여 개별극성 통신시 오결선에 의한 통신 단절을 방지하고 기타 장비를 보호할 수 있도록 하는 BMS 제어기 간의 극성 자동판단에 의한 데이터 전송이 가능한 무극성 RS-485통신장치에 관한 것이다. The present invention relates to a non-polar RS-485 communication device between the BMS (Building Management System) controller, and more specifically to a non-polar connection of the data communication line connection of the general multi-drop RS-485 communication for building a BMS system The present invention relates to a non-polar RS-485 communication device capable of data transmission by automatic polarity determination between BMS controllers that prevents disconnection and protects other equipment.

일반적인 유선통신에는 여러 방식의 통신이 있으며, 그 중 산업용, 빌딩 제어용 및 기타 장비간 통신에는 RS-485통신이 널리 사용되고 있다. There are many types of communication in general wire communication, and among them, RS-485 communication is widely used for industrial, building control, and communication between other equipment.

RS-485통신의 경우 여러대의 장비간 통신 및 원거리 통신을 수행하는데 주로 이용되며, 통신선이 2선식으로 D+, D-의 극성을 맞추어 통신을 수행해야 한다. In case of RS-485 communication, it is mainly used for communication between devices and remote communication, and the communication line should be performed by matching the polarity of D + and D- with two wires.

또한, RS-485통신의 경우 실제 통신은 도 2 와 같이 극성이 바뀐 경우와 그렇치 않은 경우의 파형으로 나타낼 수 있다. In addition, in the case of RS-485 communication, the actual communication may be represented by a waveform when the polarity is changed and when it is not as shown in FIG.

즉, 데이터 통신을 함에 있어서, 극성을 잘 맞추어야만 보내고자 하는 데이터를 정확하게 보낼 수 있는 것이므로, RS-485 통신을 사용하여 데이터를 전송할 경우 극성을 잘 맞추어야 하며, 극성을 맞추기 위하여 사용자가 포트를 확인하여 극성을 보고 포트에 연결해야 하는 문제점이 있었다. In other words, in case of data communication, the polarity can be sent correctly only when the polarity is well matched. Therefore, the polarity should be well matched when transmitting data using RS-485 communication. There was a problem to connect to the port to see the polarity.

본 발명은 이와 같은 종래의 제반 문제점을 해소하기 위하여 안출한 것으로, 극성에 따라 처음 수신되는 데이터의 상승 에지 또는 하강 에지를 판단하여 극성이 맞았는지의 여부를 판단할 수 있도록 하고, 데이터의 에지에 따라 결선 처리부에서 처리를 하여 오결선 상태에서도 정상적인 데이터 전송이 가능하도록 하는 BMS 제어기 간의 극성 자동판단에 의한 데이터 전송이 가능한 무극성 RS-485통신장치를 제공하는데 그 목적이 있다. The present invention has been made to solve such a conventional problem, it is possible to determine whether the polarity is correct by determining the rising edge or falling edge of the first received data according to the polarity, Accordingly, it is an object of the present invention to provide a non-polar RS-485 communication device capable of data transmission by automatic polarity determination between BMS controllers to allow normal data transmission even in a miswiring state by processing in a wiring processing unit.

상기한 목적을 달성하기 위한 본 발명 장치는, 두개의 커넥터를 통하여 데이터를 입력받는 RS-485 트랜시버와, 통신속도를 조절하여 입력된 데이터의 상승에지 및 하강에지를 감지하여 극성을 판별할 수 있도록 하는 통신속도 가공부와, 상기 통신속도 가공부의 신호와 입력데이터신호를 사용하여 정상결선 또는 오결선시 정상적인 데이터가 전송될 수 있도록 하는 결선 처리부와, 상기 결선 처리부로부터 출력되는 데이터를 결합하여 정상적인 데이터만을 MCU(Micro Controller Unit)로 전송할 수 있도록 하는 출력 결합부로 구성되어 있는 것을 특징으로 한다. In order to achieve the above object, the present invention provides an RS-485 transceiver for receiving data through two connectors, and adjusts a communication speed so that polarity can be determined by detecting rising and falling edges of the input data. Normal data by combining the data output from the connection processing unit, the connection processing unit for using the signal and the input data signal of the communication speed processing unit to allow normal data to be transmitted in the case of normal or incorrect wiring It is characterized by consisting of an output coupling to transmit only to the MCU (Micro Controller Unit).

한편, 상기 통신속도 가공부는 듀얼 모노스테이블 멀티바이브레이터에 연결된 저항과 캐패시터의 값에 의해 스타트 비트의 상승 및 하강에지를 알기 위한 입력데이터를 일정시간 동안만 출력할 수 있도록 구성되어 있는 것을 특징으로 한다. 또한, 상기 결선 처리부는 상기 통신속도 가공부의 신호와 입력 데이터신호를 사용하여 정상결선시 정상적인 데이터를 전송할 수 있도록 하는 정상결선 처리부와, 상기 통신속도 가공부의 신호와 입력 데이터신호를 사용하여 오결선시 정상적인 데이터를 전송할 수 있도록 하는 오결선 처리부로 구성되어 있는 것을 특징으로 한다. On the other hand, the communication speed processing unit is configured to output the input data for knowing the rising and falling edge of the start bit only for a predetermined time by the value of the resistor and capacitor connected to the dual monostable multivibrator. . In addition, the connection processing unit using the signal and the input data signal of the communication speed processing unit for normal connection during normal connection, and the wrong connection using the signal and input data signal of the communication speed processing unit Characterized in that the wrong wiring processing unit for transmitting the normal data.

또한, 상기 정상결선 처리부는 결선이 정상적으로 이루어진 경우에 스타트 비트의 하강에지에서부터 최소 10비트 동안 로우(LOW)파형이 출력되는 통신속도 가공부 출력신호(CON_C)와 오결선 처리부 JK-플립플롭의 출력 Q신호를 입력받는 정상결선 처리부 제 1 OR-GATE와, 상기 정상결선 처리부 제 1 OR-GATE의 신호를 입력받아 하강에지일때 하이(High) 신호를 발생시키는 정상결선 처리부 JK-플립플롭과, 입력데이터와 정상결선 처리부(310)의 출력신호(CON_A)를 입력받아 정상데이터값을 출력시키는 정상결선 처리부 제 2 OR-GATE로 구성되어 있는 것을 특징으로 한다. In addition, the normal connection processing unit outputs a communication speed processing unit output signal CON_C and a misconnection processing unit JK flip-flop in which a low waveform is output for at least 10 bits from the falling edge of the start bit when the connection is made normally. The normal connection processing unit 1 OR-GATE receiving the Q signal, the normal connection processing unit JK-flip-flop to receive a signal of the normal connection processing unit 1 OR-GATE and generate a high signal when the falling edge is input, and And a normal connection processing unit second OR-GATE which receives the data and the output signal CON_A of the normal connection processing unit 310 and outputs a normal data value.

또한, 상기 오결선 처리부는 결선이 잘못 이루어진 경우에 스타트 비트의 상승에지에서부터 최소 10비트 동안 로우(LOW)파형이 출력되는 통신속도 가공부 출력신호(CON_D)와 정상결선 처리부 JK-플립플롭의 출력 Q신호를 입력받는 오결선 처리부 제 1 OR-GATE와, 상기 오결선 처리부 제 1 OR-GATE의 신호를 입력받아 하강에지일때 하이(HIGH) 신호를 발생시키는 오결선 처리부 JK-플립플롭과, 입력데이터의 반전값을 출력하는 NOT-GATE와, 상기 반전값과 오결선 처리부의 출력신호(CON_B)를 입력받아 정상데이터값을 출력시키는 오결선 처리부 제 2 OR-GATE로 구성되어 있는 것을 특징으로 한다.In addition, the wrong wiring processing unit outputs the communication speed processing unit output signal CON_D and the normal wiring processing unit JK flip-flop in which a low waveform is output for at least 10 bits from the rising edge of the start bit when a wrong connection is made. Incorrect wiring processing unit 1 OR-GATE for receiving a Q signal, Incorrect wiring processing unit JK-flip-flop for receiving a signal of the incorrect wiring processing unit 1 OR-GATE and generating a high signal when the falling edge is input, And NOT-GATE for outputting the inverted value of the data, and a second OR-GATE for the miswiring part for outputting the normal data value by receiving the inverting value and the output signal CON_B of the miswiring part. .

이상에서 설명한 바와 같이 본 발명에 의하면, 기존의 RS-485 통신 사용시 극성을 맞추어 커넥터를 연결해야 하는 것과는 달리, 극성에 상관없이 커넥터에 연 결만 하면 극성을 알아서 감지하여 정상적인 데이터를 전송할 수 있도록 함으로써 사용자의 편리성을 증대시키고, 오결선에 의한 에러 및 고장을 방지할 수 있도록 하는 매우 유용한 발명인 것이다. As described above, according to the present invention, in contrast to the need to connect the connector according to the polarity when using the existing RS-485 communication, by connecting to the connector regardless of the polarity to detect the polarity so that the user can transmit normal data It is a very useful invention to increase the convenience of and to prevent errors and failures due to incorrect wiring.

이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시 예를 상세히 설명하면 다음과 같다. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1 은 본 발명인 BMS 제어기 간의 무극성 RS-485통신장치의 내부 구조를 나타낸 회로도, 도 2 는 본 발명인 BMS 제어기 간의 무극성 RS-485통신장치의 입력 데이터의 극성에 따른 파형의 모습을 나타낸 파형도, 도 3 은 본 발명인 BMS 제어기 간의 무극성 RS-485통신장치의 정상결선시 각 부분에서의 파형을 나타낸 파형도, 도 4 는 본 발명인 BMS 제어기 간의 무극성 RS-485통신장치의 오결선시 각 부분에서의 파형을 나타낸 파형도이다. 1 is a circuit diagram showing the internal structure of the non-polar RS-485 communication device between the BMS controller of the present invention, Figure 2 is a waveform diagram showing the appearance of the waveform according to the polarity of the input data of the non-polar RS-485 communication device between the BMS controller of the present invention, Figure 3 is a waveform diagram showing the waveform at each part of the non-polar RS-485 communication device between the BMS controller of the present invention, Figure 4 is a waveform diagram of each part of the non-polar RS-485 communication device between the BMS controller of the present invention A waveform diagram showing a waveform.

상기 도면에서 보는 바와 같이 본 발명은 두개의 커넥터를 통하여 데이터를 입력받는 RS-485 트랜시버(100)와, 통신속도를 조절하여 입력된 데이터의 상승에지 및 하강에지를 감지하여 극성을 판별할 수 있도록 하는 통신속도 가공부(200)와, 상기 통신속도 가공부의 신호와 입력데이터신호를 사용하여 정상결선 또는 오결선시 정상적인 데이터가 전송될 수 있도록 하는 결선 처리부(300)와, 상기 결선 처리부로부터 출력되는 데이터를 결합하여 정상적인 데이터만를 MCU(Micro Controller Unit, 500)로 전송할 수 있도록 하는 출력 결합부(400)로 구성되어 있다. As shown in the figure, the present invention allows the RS-485 transceiver 100 to receive data through two connectors, and adjusts the communication speed so as to detect the rising edge and the falling edge of the input data to determine the polarity. The communication speed processing unit 200, the connection processing unit 300 to transmit the normal data in the normal or incorrect connection using the signal and the input data signal of the communication speed processing unit, and is output from the connection processing unit Combining the data is composed of an output coupling unit 400 to transmit only normal data to the MCU (Micro Controller Unit, 500).

상기 RS-485 트랜시버(100)는 여러 장비간의 통신이 멀티드롭으로 연결되어 데이터 송수신을 수행할 수 있도록 하는 것으로, 극성을 가지는 D+, D- 두개의 입력단을 가지고 있으며, 극성을 맞게 연결해야 정확한 데이터가 전송이 된다. The RS-485 transceiver 100 is a multi-drop communication between the multiple devices to be connected to perform data transmission and reception, and has two input terminals D +, D- having polarity, and must be correctly connected to the correct data Is transmitted.

상기 통신속도 가공부(200)는 입력 데이터의 스타트 비트의 상승 및 하강에 지를 판단하고, 판단작업을 일정시간동안만 처리하도록 하기 위하여 듀얼 모노스테이블 멀티바이브레이터(230)를 구비하여 통신속도의 10배 정도의 시간동안만 스타트 비트의 에지를 판단할 수 있도록 한다. The communication speed processing unit 200 includes a dual monostable multivibrator 230 to determine the rising and falling edge of the start bit of the input data and to process the determination work only for a predetermined time. The edge of the start bit can only be determined for about twice as long.

상기 결선 처리부(300)는 상기 통신속도 가공부로부(200)의 신호와 입력 데이터신호를 사용하여 정상결선시 정상적인 데이터를 통과시키고 오결선시 하이(HIGH)신호만을 출력하도록 하는 정상결선 처리부(310)와, 상기 통신속도 가공부의 신호와 입력 데이터신호를 사용하여 오결선시 정상적인 데이터를 통과시키고 정상결선시 하이(HIGH)신호만을 출력하도록 하는 오결선 처리부(320)로 구성되어 있다. The connection processing unit 300 uses the signal of the communication speed processing unit 200 and the input data signal to pass the normal data in the normal connection, and normal connection processing unit 310 to output only the HIGH signal in the case of incorrect connection. ), And a miswiring processor 320 for passing normal data during a miswiring and outputting only a HIGH signal during a normal wiring using a signal and an input data signal of the communication speed processing unit.

정상적인 극성으로 연결시 도 2 에서 처럼 스타트 비트가 하강에지로 시작하고, 극성이 바뀌어 연결시 입력 데이터가 반전되어 스타트 비트가 상승에지로 시작하게 된다. 이를 통신속도 가공부(200)를 통하여 일정시간동안 에지를 판단하여 그 입력의 극성에 따라 데이터를 처리할 수 있도록 하는데, 결선이 정상적으로 이루어진 경우에는 통신속도 가공부(200)의 출력인 CON_C 와 CON_D 부분은 도 3 의 타이밍도와 같이 CON_C는 스타트 비트(RXD)의 하강에지에서부터 최소 10비트 동안 로우(LOW)파형을 출력하고, CON_D 는 데이터 영역 중 로우(LOW)에서 하이(HIGH)로 변하는 상승에지로부터 10비트동안 로우(LOW)를 출력하고, 결선이 잘못 이루어진 경우에는 통신속도 가공부(200)의 출력인 CON_C와 CON_D 부분은 도 4 의 타이밍도와 같이 맞춰 CON_D는 스타트 비트의 하강에지에서부터 최소 10비트 동안 로우(LOW)파형을 출력하고, CON_C는 데이터 영역 중 로우(LOW)에서 하이(HIGH)로 변하는 상승에지로부터 10비트동안 로우(LOW)를 출력함으로써 데이터를 처리하도록 하는 것이다.When connecting with normal polarity, as shown in Fig. 2, the start bit starts with the falling edge, and when the polarity is changed, the input data is inverted and the start bit starts with the rising edge. The edge is determined for a predetermined time through the communication speed processing unit 200 to process data according to the polarity of the input. When the connection is made normally, the outputs of the communication speed processing unit 200 are CON_C and CON_D. As shown in the timing diagram of FIG. 3, CON_C outputs a low waveform for at least 10 bits from the falling edge of the start bit RXD, and CON_D is a rising edge that changes from low to high in the data area. If output is low for 10 bits and wiring is wrong, CON_C and CON_D, which are the outputs of the communication speed processing unit 200, are matched with the timing diagram of FIG. 4 and CON_D is at least 10 from the falling edge of the start bit. Outputs the low waveform during the bit, and CON_C outputs the data for 10 bits from the rising edge that changes from low to high in the data area. To to Lee.

한편, 상기 정상결선 처리부(310)는 정상연결시 통신속도 가공부(200)로부터 스타트 비트의 하강에지에서부터 LOW로 출력되는 CON_C 신호와 오결선 처리부 JK-플립플롭(322)의 출력 신호를 입력받는 정상결선 처리부 제 1 OR-GATE(311)와, 상기 정상결선 처리부 제 1 OR-GATE(311)의 신호를 입력받아 하강에지일때 하이(HIGH)신호를 발생시키는 정상결선 처리부 JK-플립플롭(312)과, 입력데이터와 CON_A신호를 입력받아 정상데이터값을 출력시키는 정상결선 처리부 제 2 OR-GATE(313)로 구성되어 있다. On the other hand, the normal connection processing unit 310 receives the CON_C signal output from the falling edge of the start bit LOW from the communication speed processing unit 200 and the output signal of the misconnection processing unit JK-flip-flop 322 at the normal connection. The normal connection processor JK-flip-flop 312 which receives a signal from the normal connection processor 1 OR-GATE 311 and the normal connection processor 1 OR-GATE 311 and generates a high signal when the edge is falling. ) And a normal connection processing unit second OR-GATE 313 that receives input data and a CON_A signal and outputs a normal data value.

또한, 상기 오결선 처리부(320)는 오결선인 경우 통신속도 가공부(200)로부터 스타트 비트의 상승에지에서부터 LOW로 출력되는 CON_D 신호와 정상결선 처리부 JK-플립플롭(312)의 출력 신호를 입력받는 오결선 처리부 제 1 OR-GATE(321)와, 상기 오결선 처리부 제 1 OR-GATE(321)의 신호를 입력받아 하강에지일때 하이(HIGH)신호를 발생시키는 오결선 처리부 JK-플립플롭(322)과, 입력데이터의 반전값을 출력하는 NOT-GATE(324)와, 상기 반전값과 CON_B신호를 입력받아 정상데이터값을 출력시키는 오결선 처리부 OR-GATE(323)로 구성되어 있다. In addition, the incorrect wiring processor 320 inputs the CON_D signal output from the rising edge of the start bit LOW from the communication speed processor 200 and the output signal of the normal wiring processor JK-flip-flop 312 in the case of the incorrect wiring. The miswiring processor JK-flip-flop that receives a signal from the first misalignment processor 1 OR-GATE 321 and the first misalignment processor 1 OR-GATE 321 to generate a high signal when the signal is falling. 322, a NOT-GATE 324 for outputting the inverted value of the input data, and a miswiring processor OR-GATE 323 for receiving the inverted value and the CON_B signal and outputting a normal data value.

이하 본 발명의 동작에 관하여 도면과 연계하여 설명하면 다음과 같다. Hereinafter, the operation of the present invention will be described with reference to the drawings.

도 2 의 타이밍도를 보면, 극성이 바뀌지 않았을 때의 데이터의 파형 모습과 극성이 바뀌었을 때의 데이터의 파형 모습을 나타내고 있다. 즉, 극성이 바뀌는 경우 정상적인 데이터가 아닌 반전된 데이터 정보가 전송되는 것이다. The timing diagram of FIG. 2 shows the waveform of the data when the polarity is not changed and the waveform of the data when the polarity is changed. That is, when the polarity is changed, inverted data information is transmitted instead of normal data.

데이터가 입력되었을 경우 극성이 바뀌었는지 그렇지 않은 경우인지 판별하기 위하여 처음 수신되는 데이터 비트(START BIT)의 에지가 상승 에지인지 하강 에지인지를 감별하여 극성을 판단하게 된다. When data is input, the polarity is determined by discriminating whether the edge of the first data bit START BIT is a rising edge or a falling edge to determine whether the polarity is changed or not.

우선 입력 받은 데이터를 초기 에지 검출부터 최소 일정시간(예, 통신속도*10)동안만 처리하도록 하기 위하여 통신속도 가공부(200)의 듀얼 모노스테이블 멀티바이브레이터(DUAL Monostable Multivibrator. 230)칩을 이용한다. 통신 속도 가공부(200)에서 통신속도*10의 시간은 듀얼 모노스테이블 멀티바이브레이터(230)에 연결된 저항과 콘덴서의 값에 의해 결정된다. First, the dual monostable multivibrator (230) chip of the communication speed processing unit 200 is used to process the received data only for a predetermined time (eg, communication speed * 10) from the initial edge detection. . In the communication speed processing unit 200, the time of the communication speed * 10 is determined by the values of the resistor and the capacitor connected to the dual monostable multivibrator 230.

결선이 정상적으로 이루어진 경우에는 통신속도 가공부(200)의 출력인 CON_C 와 CON_D 부분은 도 3 의 타이밍도에 맞춰 CON_C는 스타트 비트의 하강에지에서부터 최소 10비트 동안 로우(LOW)파형을 출력하고, CON_D 는 데이터 영역 중 로 우(LOW)에서 하이(HIGH)로 변하는 상승에지로부터 10비트동안 로우(LOW)를 출력한다. If the connection is successful, CON_C and CON_D, which are the outputs of the communication speed processing part 200, output a low waveform for at least 10 bits from the falling edge of the start bit, according to the timing diagram of FIG. Outputs a low for 10 bits from the rising edge that changes from low to high in the data area.

도 3 의 타이밍도에서 정상결선 처리부(310)의 출력 CON_A 는 초기 에지를 감지하면서 하이(HIGH)에서 로우(LOW)로 상태가 변하며, 이 값과 정상데이터를 정상결선 처리부 OR-GATE(313)를 거치면 정상 데이터 값을 출력하게 된다. In the timing diagram of FIG. 3, the output CON_A of the normal connection processing unit 310 changes from a high to a low state while detecting an initial edge, and this value and the normal data are converted into the normal connection processing unit OR-GATE 313. Normal data values are output when passed.

이때, 오결선 결선 처리부(320)의 출력 CON_B는 초기 에지 감지에 관련 없이 항상 하이(HIGH)를 유지하여 이 값과 반전 데이터를 오결선 처리부 제 2 OR-GATE(323)를 거치면 항상 하이(HIGH)를 출력하게 된다. At this time, the output CON_B of the miswiring connection processing unit 320 is always kept high regardless of the initial edge detection, and this value and the inversion data are always high when passing through the miswiring processing unit second OR-GATE 323. Will print).

위의 두 신호 CON_A, CON_B를 정상결선 처리부 제 2 OR-GATE(313)과 오결선 결선 처리부 제 2 OR-GATE(323)를 이용하여 합산한 데이터출력 결합부(400)의 출력은 입력 데이터에 아무런 손상이 없이 데이터를 MCU(Micro Controller Unit, 500)의 RX핀에 전달하게 된다. The outputs of the data output combiner 400 obtained by adding the above two signals CON_A and CON_B using the normal wiring processing unit 2 OR-GATE 313 and the incorrect wiring connection processing unit 2 OR-GATE 323 are added to the input data. The data is transferred to the RX pin of the MCU (Micro Controller Unit, 500) without any damage.

한편, 결선이 잘못 이루어진 경우에는 통신속도 가공부(200)의 출력인 CON_C와 CON_D 부분은 도 4 의 타이밍도에 맞춰 CON_D는 스타트 비트의 하강에지에서부터 최소 10비트 동안 로우(LOW)파형을 출력하고, CON_C는 데이터 영역 중 로우(LOW)에서 하이(HIGH)로 변하는 상승에지로부터 10비트동안 로우(LOW)를 출력한다. On the other hand, if the connection is made incorrectly, CON_C and CON_D, which are the outputs of the communication speed processing unit 200, according to the timing diagram of FIG. 4, CON_D outputs a low waveform for at least 10 bits from the falling edge of the start bit. , CON_C outputs a low LOW for 10 bits from the rising edge that changes from low to high in the data area.

도 4 의 타이밍도에서 오결선 처리부(320)의 출력 CON_B 는 초기 에지를 감지하면서 하이(HIGH)에서 로우(LOW)로 상태가 변하며, 오결선으로 인한 데이터를 NOT-GATE(324)를 통하여 반전시켜 오결선 처리부 제 2 OR-GATE(323)를 거치면 정상 데이터 값을 출력하게 된다. In the timing diagram of FIG. 4, the output CON_B of the miswiring processor 320 changes from high to low while detecting an initial edge, and inverts data due to miswiring through the NOT-GATE 324. In this case, the incorrect wiring processing unit passes through the second OR-GATE 323 to output a normal data value.

이때, 정상결선 처리부(310)의 출력 CON_A는 초기 에지 감지에 관련 없이 항상 하이(HIGH)를 유지하여 이 값과 반전 데이터를 정상결선 처리부 제 2 OR-GATE(313)를 거치면 항상 하이(HIGH)를 출력하게 된다. At this time, the output CON_A of the normal connection processing unit 310 is always kept high regardless of the initial edge detection, and this value and the inversion data are always high when the value and the inversion data pass through the normal connection processing unit second OR-GATE 313. Will print

위의 두 신호 CON_A, CON_B를 정상결선 처리부 제 2 OR-GATE(313)과 오결선 결선 처리부 제 2 OR-GATE(323)를 이용하여 합산한 데이터출력 결합부(400)의 출력은 입력 데이터에 아무런 손상이 없이 데이터를 MCU(Micro Controller Unit, 500)의 RX핀에 전달하게 된다.The outputs of the data output combiner 400 obtained by adding the above two signals CON_A and CON_B using the normal wiring processing unit 2 OR-GATE 313 and the incorrect wiring connection processing unit 2 OR-GATE 323 are added to the input data. The data is transferred to the RX pin of the MCU (Micro Controller Unit, 500) without any damage.

따라서, 본 발명은 입력단이 정상결선이 된 경우 정상결선 처리부에서 정상적인 데이터를 출려하고 오결선 처리부에서는 HIGH 데이터만을 출력하여 출력 결합부에서 정상적인 데이터가 전송될 수 있도록 하고, 입력단이 오결선이 된 경우 정상결선 처리부에서는 HIGH 데이터만을 출력하고 오결선 처리부에서는 데이터를 정상 가공하여 출력함으로써 출력 결합부에서 정상적인 데이터가 전송될 수 있도록 하는 발명인 것이다.Therefore, in the present invention, when the input terminal is normally connected, the normal wiring processor outputs normal data and the incorrect wiring processor outputs only HIGH data so that normal data can be transmitted from the output coupling unit, and the input terminal is incorrectly connected. The normal wiring processor outputs only HIGH data and the incorrect wiring processor processes the data normally and outputs the normal data to be transmitted from the output coupling unit.

상술한 실시 예는 본 발명의 가장 바람직한 예에 대하여 설명한 것이지만, 상기 실시 예에만 한정되는 것은 아니며, 본 발명의 기술사상을 벗어나지 않는 범위 내에서 다양한 변형이 가능하다는 것은 당업자에게 있어서 명백한 것이다.It should be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

도 1 은 본 발명인 BMS 제어기 간의 무극성 RS-485통신장치의 내부 구조를 나타낸 회로도, 1 is a circuit diagram showing the internal structure of a non-polar RS-485 communication device between the BMS controller of the present invention,

도 2 는 본 발명인 BMS 제어기 간의 무극성 RS-485통신장치의 입력 데이터의 극성에 따른 파형의 모습을 나타낸 파형도, Figure 2 is a waveform diagram showing the appearance of the waveform according to the polarity of the input data of the non-polar RS-485 communication device between the BMS controller of the present invention,

도 3 은 본 발명인 BMS 제어기 간의 무극성 RS-485통신장치의 정상결선시 각 부분에서의 파형을 나타낸 파형도, Figure 3 is a waveform diagram showing the waveforms at each part of the normal connection of the non-polar RS-485 communication device between the BMS controller of the present invention,

도 4 는 본 발명인 BMS 제어기 간의 무극성 RS-485통신장치의 오결선시 각 부분에서의 파형을 나타낸 파형도, Figure 4 is a waveform diagram showing the waveforms at each part of the incorrect connection of the non-polar RS-485 communication device between the BMS controller of the present invention,

* 도면의 주요 부분에 대한 부호의 설명 * Explanation of symbols on the main parts of the drawings

100: RS-485 트랜시버 200: 통신속도 가공부100: RS-485 transceiver 200: communication speed processing part

210: 리셋(RESET) 회로210: reset circuit

230: 듀얼 모노스테이블 멀티바이브레이터230: dual monostable multivibrator

300: 결선 처리부 310: 정상결선 처리부300: wiring processing unit 310: normal wiring processing unit

311: 정상결선 처리부 제 1 OR-GATE 312: 정상결선 처리부 JK-플립플롭311: normal connection processing unit 1 OR-GATE 312: normal connection processing unit JK-flip-flop

313: 정상결선 처리부 제 2 OR-GATE 320: 오결선 처리부313: normal wiring processing unit 2 OR-GATE 320: incorrect wiring processing unit

321: 오결선 처리부 제 1 OR-GATE 322: 오결선 처리부 JK-플립플롭321: incorrect wiring processing unit 1 OR-GATE 322: incorrect wiring processing unit JK-flip-flop

323: 오결선 처리부 제 2 OR-GATE 324: NOT-GATE323: incorrect wiring processing unit 2 OR-GATE 324: NOT-GATE

400: 출력 결합부 500: MCU(Micro Controller Unit)400: output coupling 500: MCU (Micro Controller Unit)

Claims (5)

두개의 커넥터를 통하여 데이터를 입력받는 RS-485 트랜시버와, 통신속도를 조절하여 입력된 데이터의 상승에지 및 하강에지를 감지하여 극성을 판별할 수 있도록 하는 통신속도 가공부와, 상기 통신속도 가공부의 신호와 입력데이터신호를 사용하여 정상결선 또는 오결선시 정상적인 데이터가 전송될 수 있도록 하는 결선 처리부와, 상기 결선 처리부로부터 출력되는 데이터를 결합하여 정상적인 데이터만을 MCU(Micro Controller Unit)로 전송할 수 있도록 하는 출력 결합부로 구성하되,RS-485 transceiver receiving data through two connectors, a communication speed processing unit for determining the polarity by detecting the rising and falling edge of the input data by adjusting the communication speed, and the communication speed processing unit By using the signal and the input data signal to connect the connection processing unit for transmitting the normal data in the normal connection or incorrect wiring, and the data output from the connection processing unit to transmit only normal data to the MCU (Micro Controller Unit) Configured as an output coupling, 상기 통신속도 가공부는,The communication speed processing unit, 듀얼 모노스테이블 멀티바이브레이터에 연결된 저항과 캐패시터의 값에 의해 스타트 비트의 상승 및 하강에지를 알기 위한 입력데이터를 일정시간 동안만 출력할 수 있도록 구성되어 있는 것을 특징으로 하는 BMS 제어기 간의 극성 자동판단에 의한 데이터 전송이 가능한 무극성 RS-485통신장치.The polarity automatic determination between BMS controllers is configured to output the input data only for a certain period of time to know the rising and falling edges of the start bit by the value of the resistor and capacitor connected to the dual monostable multivibrator. Non-polar RS-485 communication device capable of data transmission by 삭제delete 청구항 1 에 있어서, The method according to claim 1, 상기 결선 처리부는 상기 통신속도 가공부의 신호와 입력 데이터신호를 사용하여 정상결선시 정상적인 데이터를 전송할 수 있도록 하는 정상결선 처리부와, 상기 통신속도 가공부의 신호와 입력 데이터신호를 사용하여 오결선시 정상적인 데이터를 전송할 수 있도록 하는 오결선 처리부로 구성되어 있는 것을 특징으로 하는 BMS 제어기 간의 극성 자동판단에 의한 데이터 전송이 가능한 무극성 RS-485통신장치.The connection processing unit uses a signal and an input data signal of the communication speed processing unit to transmit normal data during normal connection, and a normal data when using an incorrect data connection using the signal and input data signal of the communication speed processing unit. Non-polar RS-485 communication device capable of data transmission by the automatic polarity determination between the BMS controller, characterized in that consisting of a miswiring processing unit for transmitting the. 청구항 3 에 있어서, The method according to claim 3, 상기 정상결선 처리부는 결선이 정상적으로 이루어진 경우에 스타트 비트의 하강에지에서부터 최소 10비트 동안 로우(LOW)파형이 출력되는 통신속도 가공부 출력신호(CON_C)와 오결선 처리부 JK-플립플롭의 출력 Q신호를 입력받는 정상결선 처리부 제 1 OR-GATE와, 상기 정상결선 처리부 제 1 OR-GATE의 신호를 입력받아 하강에지일때 하이(High) 신호를 발생시키는 정상결선 처리부 JK-플립플롭과, 입력데이터와 정상결선 처리부(310)의 출력신호(CON_A)를 입력받아 정상데이터값을 출력시키는 정상결선 처리부 제 2 OR-GATE로 구성되어 있는 것을 특징으로 하는 BMS 제어기 간의 극성 자동판단에 의한 데이터 전송이 가능한 무극성 RS-485통신장치.The normal wiring processing unit outputs a signal of the communication speed processing unit CON_C and the output Q signal of the misconnection processing unit JK flip-flop in which a low waveform is output for at least 10 bits from the falling edge of the start bit when the connection is normally made. The normal connection processing unit 1 OR-GATE which receives the input signal, and the normal connection processing unit JK-flip-flop which receives a signal of the normal connection processing unit 1 OR-GATE and generates a high signal when the falling edge is input, Non-polarity capable of data transmission by automatic polarity determination between BMS controllers, characterized in that it consists of a second OR-GATE of normal connection processing unit that receives the output signal CON_A of the normal connection processing unit 310 and outputs a normal data value. RS-485 communication device. 청구항 3 에 있어서, The method according to claim 3, 상기 오결선 처리부는 결선이 잘못 이루어진 경우에 스타트 비트의 상승에지에서부터 최소 10비트 동안 로우(LOW)파형이 출력되는 통신속도 가공부 출력신호(CON_D)와 정상결선 처리부 JK-플립플롭의 출력 Q신호를 입력받는 오결선 처리부 제 1 OR-GATE와, 상기 오결선 처리부 제 1 OR-GATE의 신호를 입력받아 하강에지일때 하이(HIGH) 신호를 발생시키는 오결선 처리부 JK-플립플롭과, 입력데이터의 반전값을 출력하는 NOT-GATE와, 상기 반전값과 오결선 처리부의 출력신호(CON_B)를 입력받아 정상데이터값을 출력시키는 오결선 처리부 제 2 OR-GATE로 구성되어 있는 것을 특징으로 하는 BMS 제어기 간의 극성 자동판단에 의한 데이터 전송이 가능한 무극성 RS-485통신장치.The wrong wiring processing unit outputs the signal of the communication speed processing unit CON_D and the normal Q processing unit JK-flip-flop, which outputs a low waveform for at least 10 bits from the rising edge of the start bit when the wiring is incorrect. The misalignment processor 1 OR-GATE receiving the input, the misalignment processor JK-flip-flop that receives a signal of the misalignment processor 1 OR-GATE and generates a high signal when the edge is falling, and input data A BMS controller comprising a NOT-GATE for outputting an inverted value and a second OR-GATE for an incorrectly-connected processor that receives a normal data value by receiving the inverted value and the output signal CON_B of the incorrectly-wired processor. Non-polarity RS-485 communication device capable of data transmission by automatic polarity determination.
KR1020090030444A 2009-04-08 2009-04-08 The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination KR101084060B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090030444A KR101084060B1 (en) 2009-04-08 2009-04-08 The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090030444A KR101084060B1 (en) 2009-04-08 2009-04-08 The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination

Publications (2)

Publication Number Publication Date
KR20100111946A KR20100111946A (en) 2010-10-18
KR101084060B1 true KR101084060B1 (en) 2011-11-16

Family

ID=43132045

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090030444A KR101084060B1 (en) 2009-04-08 2009-04-08 The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination

Country Status (1)

Country Link
KR (1) KR101084060B1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103424660B (en) * 2012-11-13 2016-05-18 万高(杭州)科技有限公司 RS-485 communication interface device for detecting polarity, method and chip
CN104090511B (en) * 2014-06-30 2017-01-18 上海贝岭股份有限公司 Circuit and method for achieving non-polar 485 communication
CN105207693B (en) * 2015-09-30 2017-08-04 浙江锦马自动化科技有限公司 A kind of RS485 repeaters with pure hardware mediation function
CN114064533B (en) * 2020-07-29 2024-04-12 鸣志电器(太仓)有限公司 RS-485 signal polarity identification method

Also Published As

Publication number Publication date
KR20100111946A (en) 2010-10-18

Similar Documents

Publication Publication Date Title
CN106453383B (en) UART-based master-slave multi-machine communication system and method
US8176227B2 (en) Method and system for high-speed detection handshake in universal serial bus based data communication system
US9678919B2 (en) Collision detection in EIA-485 bus systems
KR101084060B1 (en) The data-transmittable non-polarity RS-485 communication device of BMS controller by automatic polarity discrimination
CN103312636A (en) Information processing apparatus, serial communication system, method of initialization of communication therefor, and serial communication apparatus
CN107193697A (en) A kind of method for realizing the nonpolarity connections of RS485
CN104317762A (en) Method for adaptively controlling transmitting and receiving directions of RS485 chip by aid of FPGA (field programmable gate array)
CN108563595B (en) System and method for long-distance transmission of USB data
US20200162697A1 (en) Dynamic direction control in active cable
CN111159073B (en) UART side processing method of bus communication and communication device
US7130274B2 (en) Method for detecting connection polarity of network transmission lines and associated detection circuit
US7272744B2 (en) Method for signaling during a transaction and receiving unit and system for use therewith
JP2007116263A (en) Electronic apparatus and data communication control method
KR20190008196A (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM, AND COMMUNICATION SYSTEM
JP6241256B2 (en) Electronic device, control device, and communication method
JP2005084792A (en) Data communication unit
CN104699651A (en) Method for sending and receiving data by meter RS-485
CN112118163B (en) System and method for energy and data transmission in an automation system
TWI654862B (en) Signal management device and signal management method
KR100732830B1 (en) High-speed real-time monitoring device for embedded systems
US5581744A (en) Method and apparatus for correcting polarity using a synchronizing sequence
JPH08233890A (en) Apparatus for detecting improper connection of cable
US9606857B2 (en) Electronic control unit
KR20230093800A (en) Half-duplex Communication Circuit
Sun A Half-duplex Synchronous Serial Fieldbus S^ sup 2^ CAN with Multi-host Structure

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20141014

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20151105

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20161006

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee