KR20190023703A - Method for determining communication connecting - Google Patents

Method for determining communication connecting Download PDF

Info

Publication number
KR20190023703A
KR20190023703A KR1020170109862A KR20170109862A KR20190023703A KR 20190023703 A KR20190023703 A KR 20190023703A KR 1020170109862 A KR1020170109862 A KR 1020170109862A KR 20170109862 A KR20170109862 A KR 20170109862A KR 20190023703 A KR20190023703 A KR 20190023703A
Authority
KR
South Korea
Prior art keywords
communication
communication module
response
slave
response signal
Prior art date
Application number
KR1020170109862A
Other languages
Korean (ko)
Other versions
KR101978402B1 (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 KR1020170109862A priority Critical patent/KR101978402B1/en
Publication of KR20190023703A publication Critical patent/KR20190023703A/en
Application granted granted Critical
Publication of KR101978402B1 publication Critical patent/KR101978402B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • H04L1/1685Details of the supervisory signal the supervisory signal being transmitted in response to a specific request, e.g. to a polling signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Abstract

The present invention relates to a communication connection determination method for restricting a communication connection of a power device having a duplicated communication address. According to an embodiment of the present invention, the communication connection determination method is performed by a master communication module connected to a plurality of slave communication modules through a serial communication network. The method comprises: a step of transmitting a first data request signal including a predetermined communication address by using the serial communication network; a step of receiving a first response signal corresponding to the first data request signal from the slave communication module corresponding to the communication address; a step of transmitting a second data request signal including the communication address by using the serial communication network after a predetermined input/output waiting time; a step of receiving a second response signal corresponding to the second data request signal from the slave communication module corresponding to the communication address; and a step of determining whether communication between the master communication module and the slave communication module is normally established based on the first and second response signals.

Description

통신 연결 판단 방법{Method for determining communication connecting}{Method for determining communication connecting}

본 발명은 통신 연결 판단 방법에 관한 것이다.The present invention relates to a communication connection determination method.

최근 산업 현장에서, RS-485 통신 표준 규격 기반의 모드버스(Modbus) RTU(Remote Terminal Unit) 통신 프로토콜을 이용한 데이터 전송 방식을 이용하여, 복수의 전력 기기를 실시간 모니터링하고 있다.Recently, a plurality of power devices are monitored in real time by using a data transmission method using a Modbus RTU (Remote Terminal Unit) communication protocol based on the RS-485 communication standard in an industrial field.

RS-485 기반의 모드버스 RTU 통신 프로토콜을 이용한 시리얼(Serial) 통신은 마스터(Master) 및 슬레이브(Slave) 통신 모듈 사이의 통신을 포함하고, 슬레이브 통신 모듈은 최대 247개까지 연결 가능하다. 이때, 시리얼 통신의 통신 주소는 각 슬레이브 통신 모듈에 대해 1 내지 247의 주소가 설정될 수 있다.Serial communication using RS-485 based Modbus RTU communication protocol includes communication between master and slave communication modules, and up to 247 slave communication modules can be connected. At this time, the communication address of the serial communication may be set to an address of 1 to 247 for each slave communication module.

모드버스 시리얼 통신에서 마스터 통신 모듈은 데이터 폴링(Polling) 방식을 통해, 통신 주소에 따라 순차적으로 송신한 요청 신호(Request)에 대한 응답으로 슬레이브 통신 모듈로부터 응답 신호(Response)를 수신한다. In the Modbus serial communication, the master communication module receives a response signal from the slave communication module in response to a request signal transmitted sequentially according to the communication address through a data polling method.

모드버스 시리얼 통신에서 슬레이브 통신 모듈을 포함하는 복수의 전력 기기와 마스터 통신 모듈 사이에 통신 연결 오류가 발생하는 경우, 전력 기기의 손상 또는 인명과 재산 피해가 발생할 수 있다. In the case of a communication connection failure between a plurality of power devices including a slave communication module in a modbus serial communication and a master communication module, damage to the power equipment or damage to property and property may occur.

즉, 모든 전력 기기가 하나의 통신선으로 연결되는 시리얼 통신 구조에서 복수의 전력 기기 중 적어도 하나의 전력 기기에서 통신 연결 오류가 발생하는 경우, 모든 전력 기기에 부정적인 영향을 미칠 수 있다.That is, when a communication connection error occurs in at least one power device among a plurality of power devices in a serial communication structure in which all power devices are connected to one communication line, all power devices may be negatively affected.

이와 같은 통신 연결 오류를 방지하기 위해 모드버스 프로토콜 프레임(Frame)에 포함된 CRC(Cyclic Redundancy Check) 데이터를 이용하는 오류 체크 방법을 사용하고 있지만, CRC 데이터를 이용한 오류 체크 방법만으로는 모든 통신 연결 오류를 해결할 수 없다.In order to prevent such a communication connection error, an error check method using CRC (Cyclic Redundancy Check) data included in a Modbus protocol frame is used. However, only an error check method using CRC data can solve all communication connection errors I can not.

즉, CRC 데이터를 이용한 오류 체크 방법은 CRC 데이터가 포함된 해당 신호에 대한 오류는 체크할 수 있지만, 통신 주소가 중복으로 설정되는 통신 연결 오류는 해결할 수 없다.That is, in the error checking method using the CRC data, an error can be checked for the corresponding signal including the CRC data, but a communication connection error in which the communication address is set to be redundant can not be resolved.

도 1은 종래의 통신 연결 방법을 설명하기 위한 도면이다.1 is a view for explaining a conventional communication connection method.

도 1을 참조하면, PC Manager(10)는 복수의 HMI(Human machine interface)(20, 20_1, 20_n)와 통신이 연결되어 있고, HMI(20)는 복수의 전력 기기(30, 30_1, 30_2, 30_n)와 통신이 연결되어 있다. 이때, HMI(20)와 복수의 전력 기기(30, 30_1, 30_2, 30_n) 사이의 통신은 RS-485 기반의 모드버스 RTU 프로토콜을 이용하는 시리얼 통신을 포함한다.1, the PC Manager 10 is connected to a plurality of human machine interfaces (HMI) 20, 20_1 and 20_n, and the HMI 20 includes a plurality of power devices 30, 30_1, 30_2, 30_n are connected to the communication. Communication between the HMI 20 and the plurality of power devices 30, 30_1, 30_2, and 30_n includes serial communication using the RS-485 based Modbus RTU protocol.

이때, PC Manager(10)는 복수의 HMI를 통해 복수의 전력 기기를 모니터링 하거나 제어할 수 있는 장치 또는 프로그램을 포함할 수 있다. 또한, HMI(20)는 디스플레이부를 포함하고, 복수의 전력 기기를 모니터링하거나, 제어할 수 있는 장치 또는 프로그램을 포함할 수 있다. 전력 기기(30)는 전자식 모터 보호 계전기(EMPR, Electronic motor protection relay)를 포함할 수 있다.At this time, the PC Manager 10 may include a device or a program capable of monitoring or controlling a plurality of power devices through a plurality of HMIs. Further, the HMI 20 includes a display unit and may include a device or a program capable of monitoring or controlling a plurality of power devices. The power device 30 may include an electronic motor protection relay (EMPR).

또한, HMI(20) 또는 PC Manager(10)는 마스터 통신 모듈을 포함하고, 전력 기기(30)는 슬레이브 통신 모듈을 포함할 수 있다.In addition, the HMI 20 or the PC Manager 10 may include a master communication module, and the power device 30 may include a slave communication module.

HMI(20) 및 복수의 전력 기기(30, 30_1, 30_2, 30_n) 사이의 시리얼 통신에서 복수의 전력 기기의 통신 주소는 1 내지 247 중 사용자가 설정한 통신 주소가 설정될 수 있다.In the serial communication between the HMI 20 and the plurality of power devices 30, 30_1, 30_2, and 30_n, a communication address set by the user among the communication addresses 1 to 247 of the plurality of power devices may be set.

HMI(20) 및 복수의 전력 기기(30, 30_1, 30_2, 30_n) 사이의 통신 연결 과정에서 전력 기기의 통신 주소가 중복 설정된 경우, 통신 응답이 중복으로 발생하게 된다. 이때, 중복 응답의 형태에 따라 중복 통신 응답을 정상 응답으로 판단하는 경우가 발생할 수 있다.When the communication address of the power device is duplicated in the process of communicating between the HMI 20 and the plurality of power devices 30, 30_1, 30_2, and 30_n, the communication response is duplicated. At this time, it may happen that the redundant communication response is determined as a normal response depending on the type of the redundant response.

중복 응답의 형태 중 중복 응답간 입출력 대기시간(Idle time)이 발생하는 형태의 경우, 마스터 통신 모듈은 중복 응답 중 먼저 수신한 응답을 기준으로 정상 응답 여부를 판단할 수 있다. In the case of the type in which the input / output wait time occurs between the redundant responses in the form of the redundant response, the master communication module can determine whether the normal response is based on the response received first in the redundant response.

예를 들어, 마스터 통신 모듈에 먼저 도착한 응답이 정상 응답인 경우 나중에 도착한 응답이 정상 인지 비정상인지와 관계 없이 정상 응답으로 판단하는 문제가 있었다. 이때, 마스터 통신 모듈에서 통신 주소가 중복된 복수의 슬레이브 통신 모듈을 하나의 슬레이브 통신 모듈로 인식하여 통신을 수행하는 문제점이 있었다.For example, if a response arriving first in a master communication module is a normal response, there is a problem that a response that arrives later is determined as a normal response regardless of whether the response is normal or abnormal. At this time, there is a problem in that a plurality of slave communication modules in which the communication address is duplicated in the master communication module are recognized as one slave communication module and communication is performed.

본 발명은 통신 연결 판단 조건을 강화하여 통신 주소가 중복된 전력 기기의 통신 연결을 제한하는 통신 연결 판단 방법을 제공하는 것을 목적으로 한다.An object of the present invention is to provide a communication connection determination method for enhancing a communication connection determination condition to limit a communication connection of an electric power device having a communication address duplicated.

또한, 본 발명은 정상 응답 판단 조건을 추가하여 통신 연결 오류를 방지하는 통신 연결 판단 방법을 제공하는 것을 다른 목적으로 한다.Another object of the present invention is to provide a communication connection determination method for preventing a communication connection error by adding a normal response determination condition.

또한, 본 발명은 전력 기기의 수량과 통신 주소를 사용자가 직접 입력하지 않아도 자동으로 전력 기기의 통신을 연결하는 통신 연결 판단 방법을 제공하는 것을 다른 목적으로 한다.Another object of the present invention is to provide a communication connection determining method of automatically connecting communication of an electric power device without directly inputting the quantity and communication address of the electric power appliance.

본 발명의 목적들은 이상에서 언급한 목적으로 제한되지 않으며, 언급되지 않은 본 발명의 다른 목적 및 장점들은 하기의 설명에 의해서 이해될 수 있고, 본 발명의 실시예에 의해 보다 분명하게 이해될 것이다. 또한, 본 발명의 목적 및 장점들은 특허 청구 범위에 나타낸 수단 및 그 조합에 의해 실현될 수 있음을 쉽게 알 수 있을 것이다.The objects of the present invention are not limited to the above-mentioned objects, and other objects and advantages of the present invention which are not mentioned can be understood by the following description and more clearly understood by the embodiments of the present invention. It will also be readily apparent that the objects and advantages of the invention may be realized and attained by means of the instrumentalities and combinations particularly pointed out in the appended claims.

상기의 목적을 달성하기 위해 본 발명의 통신 연결 판단 방법은 복수의 슬레이브 통신 모듈과 시리얼 통신망으로 연결된 마스터 통신 모듈에서 수행되는 통신 연결 판단 방법에 있어서, 상기 시리얼 통신망을 이용하여 미리 결정된 통신 주소를 포함하는 제1 데이터 요청 신호를 송신하는 단계, 상기 통신 주소에 대응되는 상기 슬레이브 통신 모듈로부터 상기 제1 데이터 요청 신호에 대응되는 제1 응답 신호를 수신하는 단계, 미리 결정된 입출력 대기 시간 이후에, 상기 시리얼 통신망을 이용하여 상기 통신 주소를 포함하는 제2 데이터 요청 신호를 송신하는 단계, 상기 통신 주소에 대응되는 상기 슬레이브 통신 모듈로부터 상기 제2 데이터 요청 신호에 대응되는 제2 응답 신호를 수신하는 단계, 및 상기 제1 및 제2 응답 신호를 기초로 상기 마스터 통신 모듈 및 상기 슬레이브 통신 모듈 사이의 통신 정상 연결 여부를 판단하는 단계를 포함한다.According to another aspect of the present invention, there is provided a communication connection determination method performed by a master communication module connected to a plurality of slave communication modules via a serial communication network, the method comprising: Receiving a first response signal corresponding to the first data request signal from the slave communication module corresponding to the communication address, and after a predetermined input / output wait time, Transmitting a second data request signal including the communication address using a communication network, receiving a second response signal corresponding to the second data request signal from the slave communication module corresponding to the communication address, and Based on the first and second response signals, And determining whether the communication between the module and the slave communication module is normally established.

또한, 수신한 상기 제1 또는 제2 응답 신호를 기초로 상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계를 더 포함할 수 있다.The method may further include determining whether the slave communication module has a normal response based on the received first or second response signal.

또한, 상기 통신 정상 연결 여부를 판단하는 단계는, 상기 제1 및 제2 응답 신호가 정상 응답으로 판단되면, 상기 마스터 통신 모듈 및 상기 슬레이브 통신 모듈 사이의 통신이 정상 연결된 것으로 판단하는 것을 포함할 수 있다.The step of determining whether or not the communication is normally connected may include determining that communication between the master communication module and the slave communication module is normally connected when the first and second response signals are determined to be normal responses have.

또한, 상기 통신 정상 연결 여부를 판단하는 단계는, 상기 제1 및 제2 응답 신호에 포함된 상기 모델 정보가 동일한 경우, 상기 통신이 정상 연결된 것으로 판단하는 것을 포함할 수 있다.The step of determining whether or not the communication is normally connected may include determining that the communication is normally connected when the model information included in the first and second response signals are identical.

또한, 상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계는, 상기 입출력 대기 시간에 상기 슬레이브 통신 모듈로부터 상기 제1 또는 제2 응답 신호를 수신하는 경우, 상기 제1 또는 제2 응답 신호는 비정상 응답인 것으로 판단하는 것을 포함할 수 있다.The determining whether the slave communication module is normally responding may include receiving the first or second response signal from the slave communication module during the input / output waiting time, As shown in FIG.

또한, 상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계는, 상기 제1 또는 제2 응답 신호의 바이트 길이가 미리 결정된 바이트 길이 내인 경우, 상기 제1 또는 제2 응답 신호는 정상 응답인 것으로 판단하는 것을 포함할 수 있다.The determining whether the slave communication module is normally responding may include determining that the first or second response signal is a normal response when the byte length of the first or second response signal is within a predetermined byte length ≪ / RTI >

또한, 상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계는, 상기 제1 또는 제2 데이터 요청 신호의 메시지 형태와 상기 제1 또는 제2 응답 신호의 메시지 형태가 일치하는 경우, 상기 제1 또는 제2 응답 신호는 정상 응답인 것으로 판단하는 것을 포함할 수 있다.If the message type of the first or second data request signal matches the message type of the first or second response signal, the step of determining whether the slave communication module is normally responding may include: 2 < / RTI > response signal is a normal response.

또한, 상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계는, 상기 제1 또는 제2 응답 신호에 포함된 에러 체크값이 정상인 경우, 상기 제1 또는 제2 응답 신호는 정상 응답인 것으로 판단하는 것을 포함할 수 있다.The determining whether the slave communication module is in a normal response may include determining that the first or second response signal is a normal response when the error check value included in the first or second response signal is normal .

또한, 상기 제1 또는 제2 응답 신호는, 상기 슬레이브 통신 모듈을 포함하는 전력 기기의 모델 정보를 포함할 수 있다.The first or second response signal may include model information of the power device including the slave communication module.

본 발명에 따르면 통신 연결 판단 조건을 강화하여 통신 주소가 중복된 전력 기기의 통신 연결을 제한함으로써, 통신 주소 중복시 발생할 수 있는 전력 기기의 손상 및 오작동 위험을 제거할 수 있다.According to the present invention, it is possible to eliminate the risk of damage or malfunction of the power device, which may be caused when the communication address is duplicated, by restricting the communication connection of the power device in which the communication address is duplicated by enhancing the communication connection determination condition.

또한, 본 발명에 따르면 정상 응답 판단 조건을 추가하여 통신 연결 오류를 방지함으로써, 산업 현장에서 업무의 효율을 향상시킬 수 있는 장점이 있다.In addition, according to the present invention, it is possible to improve the efficiency of work in an industrial field by preventing a communication connection error by adding a normal response judgment condition.

또한, 본 발명에 따르면 전력 기기의 수량과 통신 주소를 사용자가 직접 입력하지 않아도 자동으로 전력 기기의 통신을 연결함으로써, 사용자의 시간과 비용을 절감할 수 있는 장점이 있다.In addition, according to the present invention, there is an advantage that the time and cost of the user can be reduced by automatically connecting the communication of the power device without directly inputting the quantity and the communication address of the power device.

상술한 효과와 더불어 본 발명의 구체적인 효과는 이하 발명을 실시하기 위한 구체적인 사항을 설명하면서 함께 기술한다. The above and other objects, features and advantages of the present invention will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which: FIG.

도 1은 종래의 통신 연결 방법을 설명하기 위한 도면이다.
도 2는 본 발명의 몇몇 실시예에 따른 통신 연결 판단 방법을 설명하기 위한 도면이다.
도 3은 도 2에 포함된 마스터 통신 모듈의 세부적인 구성을 도시한 도면이다.
도 4는 도 2에 포함된 슬레이브 통신 모듈의 세부적인 구성을 도시한 도면이다.
도 5는 본 발명의 몇몇 실시예에 따른 통신 연결 판단 방법을 설명하기 위한 순서도이다.
도 6은 본 발명의 일 실시예에 따른 통신 연결 판단 방법을 설명하기 위한 순서도이다.
도 7은 본 발명의 몇몇 실시예에 따른 데이터 요청 신호 및 응답 신호의 일 예를 설명하기 위한 도면이다.
도 8은 본 발명의 몇몇 실시예에 따른 데이터 요청 신호 및 응답 신호의 다른 예를 설명하기 위한 도면이다.
1 is a view for explaining a conventional communication connection method.
2 is a diagram for explaining a communication connection determination method according to some embodiments of the present invention.
FIG. 3 is a diagram illustrating a detailed configuration of the master communication module included in FIG. 2. FIG.
FIG. 4 is a diagram illustrating a detailed configuration of a slave communication module included in FIG. 2. FIG.
5 is a flowchart illustrating a communication connection determination method according to some embodiments of the present invention.
6 is a flowchart illustrating a communication connection determination method according to an exemplary embodiment of the present invention.
7 is a view for explaining an example of a data request signal and a response signal according to some embodiments of the present invention.
8 is a view for explaining another example of a data request signal and a response signal according to some embodiments of the present invention.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 것이며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하며, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다. 명세서 전체에 걸쳐 동일 참조 부호는 동일 구성 요소를 지칭한다.BRIEF DESCRIPTION OF THE DRAWINGS The advantages and features of the present invention and the manner of achieving them will become apparent with reference to the embodiments described in detail below with reference to the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Is provided to fully convey the scope of the invention to those skilled in the art, and the invention is only defined by the scope of the claims. Like reference numerals refer to like elements throughout the specification.

비록 제1, 제2 등이 다양한 구성 요소들을 서술하기 위해서 사용되나, 이들 구성 요소들은 이들 용어에 의해 제한되지 않음은 물론이다. 이들 용어들은 단지 하나의 구성 요소를 다른 구성 요소와 구별하기 위하여 사용하는 것이다. 따라서, 이하에서 언급되는 제1 구성 요소는 본 발명의 기술적 사상 내에서 제2 구성 요소 일 수도 있음은 물론이다.Although the first, second, etc. are used to describe various components, it goes without saying that these components are not limited by these terms. These terms are used only to distinguish one component from another. Therefore, it goes without saying that the first component mentioned below may be the second component within the technical scope of the present invention.

다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어(기술 및 과학적 용어를 포함)는 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있을 것이다. 또 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않는 한 이상적으로 또는 과도하게 해석되지 않는다.Unless defined otherwise, all terms (including technical and scientific terms) used herein may be used in a sense commonly understood by one of ordinary skill in the art to which this invention belongs. Also, commonly used predefined terms are not ideally or excessively interpreted unless explicitly defined otherwise.

이하에서, 도 2 내지 도 8을 참조하여 본 발명의 몇몇 실시예에 따른 통신 연결 판단 방법을 설명하도록 한다.Hereinafter, a communication connection determination method according to some embodiments of the present invention will be described with reference to FIGS. 2 to 8. FIG.

도 2는 본 발명의 몇몇 실시예에 따른 통신 연결 판단 방법을 설명하기 위한 도면이다.2 is a diagram for explaining a communication connection determination method according to some embodiments of the present invention.

도 2를 참조하면, 본 발명의 일 실시예에 따른 통신 연결 판단 시스템은 마스터 통신 모듈(100) 및 슬레이브 통신 모듈(200)을 포함할 수 있다.Referring to FIG. 2, the communication connection determination system according to an embodiment of the present invention may include a master communication module 100 and a slave communication module 200.

마스터 통신 모듈(100)은 RS-485 기반의 모드버스 RTU 통신 프로토콜을 이용한 시리얼 통신을 수행하는 모듈, 장치 또는 프로그램을 포함한다.The master communication module 100 includes a module, an apparatus, or a program for performing serial communication using an RS-485 based Modbus RTU communication protocol.

마스터 통신 모듈(100)은 복수의 전력 기기의 설정값을 설정 또는 변경하거나, 복수의 전력 기기를 모니터링하는 전자 장치를 포함할 수 있다. The master communication module 100 may include an electronic device for setting or changing a set value of a plurality of power devices or monitoring a plurality of power devices.

예를 들어, 마스터 통신 모듈(100)은 HMI(Human machine interface), 컴퓨터, UMPC(Ultra Mobile PC), 워크스테이션, 넷북(net-book), PDA(Personal Digital Assistants), 포터블(portable) 컴퓨터, 웹 타블렛(web tablet), 무선 전화기(wireless phone), 모바일 폰(mobile phone), 스마트폰(smart phone), e-북(e-book), PMP(portable multimedia player), 휴대용 게임기, 네비게이션(navigation) 장치, 블랙 박스(black box) 또는 디지털 카메라(digital camera) 같은 전자 장치의 다양한 구성 요소들 중 하나로 제공될 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.For example, the master communication module 100 may be a personal computer, such as a human machine interface (HMI), a computer, an Ultra Mobile PC (UMPC), a workstation, a netbook, a personal digital assistant (PDA) Such as a web tablet, a wireless phone, a mobile phone, a smart phone, an e-book, a portable multimedia player (PMP), a portable game machine, ) Device, a black box, or a digital camera, for example. However, the present invention is not limited thereto.

마스터 통신 모듈(100)은 시리얼 통신망을 이용하여 복수의 슬레이브 통신 모듈(200, 200_1, 200_n)과 데이터를 주고 받을 수 있다. 이때, 마스터 통신 모듈(100)과 슬레이브 통신 모듈(200)간 주고 받는 통신 프레임(Frame)의 전송 단위는 비트(Bit) 단위로 전송될 수 있다.The master communication module 100 can exchange data with a plurality of slave communication modules 200, 200_1 and 200_n using a serial communication network. At this time, the transmission unit of a communication frame exchanged between the master communication module 100 and the slave communication module 200 can be transmitted in units of bits.

마스터 통신 모듈(100)은 시리얼 통신망을 이용해 슬레이브 통신 모듈(200)에 데이터 요청 신호를 송신할 수 있다. 이때, 데이터 요청 신호를 수신한 슬레이브 통신 모듈(200)은 데이터 요청 신호 중 통신 주소를 추출하여, 해당 통신 주소에 해당하는 슬레이브 통신 모듈(200)만 마스터 통신 모듈(100)에 응답 신호를 송신할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The master communication module 100 can transmit a data request signal to the slave communication module 200 using the serial communication network. At this time, the slave communication module 200 receiving the data request signal extracts the communication address of the data request signal, and transmits only the slave communication module 200 corresponding to the communication address to the master communication module 100 . However, the present invention is not limited thereto.

슬레이브 통신 모듈(200)은 RS-485 기반의 모드버스 RTU 통신 프로토콜을 이용한 시리얼 통신을 수행하는 모듈, 장치 또는 프로그램을 포함한다.The slave communication module 200 includes a module, an apparatus, or a program for performing serial communication using an RS-485 based Modbus RTU communication protocol.

슬레이브 통신 모듈(200)은 전력 기기를 제어 또는 모니터링하는 전자 장치를 포함할 수 있다. 예를 들어, 슬레이브 통신 모듈(200)은 전자식 모터 보호 계전기(EMPR, Electronic motor protection relay), ACB(Air circuit breaker), MCCB(Molded case circuit breaker) 또는 MCB(Miniature Circuit Breaker)를 포함할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The slave communication module 200 may include an electronic device for controlling or monitoring the power device. For example, the slave communication module 200 may include an electronic motor protection relay (EMPR), an air circuit breaker (ACB), a molded case circuit breaker (MCCB), or a miniature circuit breaker (MCB) . However, the present invention is not limited thereto.

도 3은 도 2에 포함된 마스터 통신 모듈의 세부적인 구성을 도시한 도면이다.FIG. 3 is a diagram illustrating a detailed configuration of the master communication module included in FIG. 2. FIG.

도 3을 참조하면, 본 발명의 일 실시예에 따른 마스터 통신 모듈(100)은 통신부(110), 메모리부(130), 디스플레이부(150), 통신 연결 판단부(171), 데이터 요청 신호 생성부(173), 정상 응답 여부 판단부(175), 및 제어부를 포함할 수 있다. 도 3에 도시된 마스터 통신 모듈(100)의 구성요소들이 필수적인 것은 아니어서, 그보다 많은 구성요소들을 갖거나 그보다 적은 구성요소들을 갖는 마스터 통신 모듈(100)이 구현될 수 있다.3, a master communication module 100 according to an exemplary embodiment of the present invention includes a communication unit 110, a memory unit 130, a display unit 150, a communication connection determination unit 171, Unit 173, a normal response determination unit 175, and a control unit. The components of the master communication module 100 shown in FIG. 3 are not essential, so that a master communication module 100 having more or fewer components can be implemented.

통신부(110)는 본 발명의 일 실시예에 따른 통신 연결 판단 방법을 수행하기 위하여 슬레이브 통신 모듈(200)과 데이터를 주고 받는 전자 장치, 모듈 또는 프로그램을 포함할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The communication unit 110 may include an electronic device, a module, or a program for exchanging data with the slave communication module 200 to perform a communication connection determination method according to an embodiment of the present invention. However, the present invention is not limited thereto.

제어부(미도시)는 임의의 유형의 종래의 프로세서, 마이크로 프로세서, 또는 명령어들을 해석하고 실행하는 프로세싱 로직을 포함할 수 있다. 제어부는 고속 인터페이스에 결합된 디스플레이와 같은 외부의 입력/출력 디바이스상에 그래픽 사용자 인터페이스(GUI)를 위한 그래픽정보를 디스플레이하기 위해 메모리부(130) 내에 저장된 명령어들을 실행할 수 있다.The controller (not shown) may include any type of conventional processor, microprocessor, or processing logic to interpret and execute instructions. The control unit may execute instructions stored in the memory unit 130 to display graphical information for a graphical user interface (GUI) on an external input / output device, such as a display coupled to a high speed interface.

본 발명의 다른 실시예에서, 다수의 제어부는 다수의 메모리부(130)와 함께 사용될 수 있다. 일부 실시예들에서, 제어부는 컴퓨터 실행 가능 명령어들을 실행함으로써 또는 프로그래밍 됨으로써 특수 목적 마이크로 프로세서로 변형될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터로 판독 가능한 기록 매체에 저장될 수 있다.In another embodiment of the present invention, a plurality of control units may be used with a plurality of memory units 130. In some embodiments, the control unit may be modified into a special purpose microprocessor by executing computer-executable instructions or by being programmed. The software may be distributed over a networked computer system and stored or executed in a distributed manner. The software and data may be stored on one or more computer readable recording media.

이해의 편의를 위하여, 제어부는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 제어부가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 제어부는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.For ease of understanding, the control unit may be described as being used by one person, but those skilled in the art will recognize that the control unit includes a plurality of processing elements and / or a plurality of types of processing elements It can be seen that For example, the control unit may include a plurality of processors or one processor and one controller. Other processing configurations are also possible, such as a parallel processor.

제어부는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 어플리케이션을 수행할 수 있다. 또한, 제어부는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 제어부를 구성하거나 독립적으로 또는 결합적으로(collectively) 제어부를 명령할 수 있다. The control unit may execute an operating system (OS) and one or more software applications executed on the operating system. In addition, the control unit may access, store, manipulate, process, and generate data in response to execution of the software. The software may comprise a computer program, code, instructions, or a combination of one or more of the foregoing, and may be configured to configure the control to operate as desired, or to collectively control the control Command.

소프트웨어 및/또는 데이터는, 제어부에 의하여 해석되거나 제어부에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장매체 또는 장치, 또는 전송되는 신호 파(signal wave)에 영구적으로, 또는 일시적으로 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터로 판독 가능한 기록 매체에 저장될 수 있다.Software and / or data may be stored in any type of machine, component, physical device, virtual equipment, computer storage media or device, or any other type of storage device, And may be permanently or temporarily embodied in the signal wave being transmitted. The software may be distributed over a networked computer system and stored or executed in a distributed manner. The software and data may be stored on one or more computer readable recording media.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 실시예의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.The method according to an embodiment may be implemented in the form of a program command 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 to be recorded on the medium may be those specially designed and configured for the embodiments or may be available to those skilled in the art of computer software. Examples of program instructions include machine language code such as those produced by a compiler, as well as high-level language code that can be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.

메모리부(130)는 RAM(Random Access Memory)과 같이 제어부에 의한 실행을 위한 동적 정보 및 명령어들을 저장하는 동적 저장 디바이스를 포함할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The memory unit 130 may include a dynamic storage device for storing dynamic information and instructions for execution by a control unit such as a RAM (Random Access Memory). However, the present invention is not limited thereto.

또한, 메모리부(130)는 ROM(Read Only Memory)과 같이 제어부에 의한 사용을 위한 정적 정보 및 명령어들을 저장하는 정적 저장 디바이스를 포함할 수 있다. 메모리부(130)는 휘발성 메모리 유닛 또는 비휘발성 메모리 유닛일 수 있다. 메모리부(130)는 또한 자기 또는 광디스크와 같은 컴퓨터 판독가능 매체의 또 다른 유형일 수 있다.In addition, the memory unit 130 may include a static storage device for storing static information and instructions for use by the control unit such as a ROM (Read Only Memory). The memory unit 130 may be a volatile memory unit or a non-volatile memory unit. The memory portion 130 may also be another type of computer readable medium, such as a magnetic or optical disk.

메모리부(130)는 제어부에 의한 통신 연결 판단 방법 실행 시 제어부가 동작들을 수행하도록 하는 명령들을 포함하는 하나 이상의 프로그램을 저장하는 컴퓨터로 판독 가능한 기록 매체를 포함할 수 있다. 이때, 메모리부(130)는 모드버스 RTU 통신 프로토콜의 통신 프로토콜 맵(Map)을 포함할 수 있다.The memory unit 130 may include a computer-readable recording medium storing one or more programs including instructions for causing a control unit to perform operations when executing a communication connection determination method by a control unit. At this time, the memory unit 130 may include a communication protocol map (Map) of the Modbus RTU communication protocol.

마스터 통신 모듈(100) 또는 슬레이브 통신 모듈(200)은 통신 프로토콜 맵을 기초로 생성한 통신 프레임(Frame)을 송신할 수 있다. 이때, 통신 프레임은 데이터 요청 신호 또는 응답 신호의 프레임을 포함할 수 있다. 예를 들어, 데이터 요청 신호는 통신 주소, 함수 코드, 요청 데이터의 시작 주소 또는 요청 데이터의 개수를 포함할 수 있다. 또한, 응답 신호는 통신 주소, 함수 코드, 응답 데이터의 바이트 카운트 또는 응답 데이터 값을 포함할 수 있다.The master communication module 100 or the slave communication module 200 can transmit a communication frame generated based on the communication protocol map. At this time, the communication frame may include a frame of a data request signal or a response signal. For example, the data request signal may include a communication address, a function code, a start address of request data, or a number of request data. The response signal may also include a communication address, a function code, a byte count of the response data, or a response data value.

예를 들어, 통신 프로토콜 맵은 전력 기기의 설정값, 전력 기기의 계측값, 사고 이력 또는 전력 기기의 모델 정보를 포함할 수 있다.For example, the communication protocol map may include a set value of the power device, a measured value of the power device, an accident history, or model information of the power device.

디스플레이부(150)는 액정 디스플레이(Liquid Crystal Display, LCD), 박막 트랜지스터 액정 디스플레이(Thin Film Transistor-Liquid Crystal Display, TFT- LCD), 유기 발광 다이오드(Organic Light Emitting Diode, OLED), 플렉시블 디스플레이(flexible display), 3차원 디스플레이(3D display), 및 전자잉크 디스플레이(e-ink display) 중 적어도 하나를 포함할 수 있다.The display unit 150 may be a liquid crystal display (LCD), a thin film transistor liquid crystal display (TFT-LCD), an organic light emitting diode (OLED), a flexible display display, a 3D display, and an e-ink display.

디스플레이부(150)는 스크린에 사용자가 손가락이나 펜 등으로 화면을 누르거나 접촉하는 입력을 하면, 그 입력된 위치를 인지하여 시스템에 전달하는 터치 스크린 패널을 포함할 수 있다. 상기 입력을 감지하는 방식은 저항막, 정전용량, 적외선 또는 광학식 방식을 포함할 수 있다.The display unit 150 may include a touch screen panel that recognizes the input position and transmits the input to the system when the user touches the screen or touches the screen with a finger or a pen. The method of detecting the input may include a resistive film, a capacitance, an infrared ray or an optical type.

디스플레이부(150)는 터치를 감지하는 터치 패드를 포함할 수 있다. 디스플레이부(150) 또는 터치 패드는 터치 스크롤(scroll)를 감지하도록 구성될 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The display unit 150 may include a touch pad for sensing a touch. The display unit 150 or the touch pad may be configured to detect touch scrolling. However, the present invention is not limited thereto.

사용자는 디스플레이부(150) 또는 터치 패드를 스크롤 함으로써 디스플레이부(150)에 표시된 개체, 예를 들어, 리스트에 위치한 커서 또는 포인터를 이동시킬 수 있다. 나아가, 손가락을 디스플레이부(150) 또는 터치 패드 상에서 이동시키는 경우, 손가락이 움직이는 경로가 디스플레이부(150)에 시각적으로 표시될 수도 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The user can move a cursor or a pointer located in the object displayed on the display unit 150, for example, the list by scrolling the display unit 150 or the touch pad. Further, when the finger is moved on the display unit 150 or the touch pad, the path along which the finger moves may be visually displayed on the display unit 150. [ However, the present invention is not limited thereto.

제어부는 통신 연결 판단부(171), 데이터 요청 신호 생성부(173), 및 정상 응답 여부 판단부(175)를 포함할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The control unit may include a communication connection determination unit 171, a data request signal generation unit 173, and a normal response determination unit 175. However, the present invention is not limited thereto.

데이터 요청 신호 생성부(173)는 메모리부(130)에 저장된 통신 프로토콜 맵을 기초로 통신을 연결하고자 하는 슬레이브 통신 모듈(200)의 통신 주소, 함수 코드(예를 들어, 전력 기기의 모델 정보가 저장되어 있는 함수 코드), 데이터 시작 주소(예를 들어, 전력 기기의 모델 정보가 저장되어 있는 시작 주소) 또는 요청 데이터 개수(예를 들어, 전력 기기의 모델 정보 비트 개수)를 포함하는 데이터 요청 신호를 생성할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The data request signal generating unit 173 generates a data request signal based on the communication address and the function code of the slave communication module 200 to which the communication is to be connected based on the communication protocol map stored in the memory unit 130 (E.g., a stored function code), a data start address (e.g., a start address where the model information of the power device is stored), or a request data number (e.g., the number of model information bits of the power device) Lt; / RTI > However, the present invention is not limited thereto.

정상 응답 여부 판단부(175)는 슬레이브 통신 모듈(200)로부터 수신한 응답 신호를 기초로 응답 신호의 정상 응답 여부를 판단할 수 있다. 예를 들어, 마스터 통신 모듈(100)에서 응답 신호의 바이트(Byte) 길이를 지정하여 미리 지정한 바이트 길이를 초과하는 경우 비정상 응답으로 판단할 수 있다.The normal response determination unit 175 can determine whether the response signal is normally responded based on the response signal received from the slave communication module 200. For example, if the master communication module 100 designates the byte length of the response signal and exceeds the predetermined byte length, it can be determined that the response is an abnormal response.

예를 들어, 마스터 통신 모듈(100)에서 데이터 요청 신호에 대응되는 응답 신호를 수신하는 경우 정상 응답으로 판단할 수 있다. 즉, 응답 신호의 형태가 데이터 요청 신호에서 요청한 응답 신호의 형태와 일치하는 경우 정상 응답으로 판단할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.For example, when the master communication module 100 receives a response signal corresponding to the data request signal, it can determine that the response is a normal response. That is, if the type of the response signal matches the type of the response signal requested in the data request signal, it can be determined as a normal response. However, the present invention is not limited thereto.

통신 연결 판단부(171)는 마스터 통신 모듈(100) 및 슬레이브 통신 모듈(200) 사이의 통신 정상 연결 여부를 판단할 수 있다. 예를 들어, 마스터 통신 모듈(100)에서 슬레이브 통신 모듈(200)로부터 수신한 응답 신호가 정상 응답인 경우, 마스터 통신 모듈(100)과 슬레이브 통신 모듈(200) 사이의 통신이 정상 연결 되었다고 판단할 수 있다.The communication connection determination unit 171 can determine whether communication between the master communication module 100 and the slave communication module 200 is normally established. For example, when the response signal received from the slave communication module 200 in the master communication module 100 is a normal response, it is determined that communication between the master communication module 100 and the slave communication module 200 is normally established .

통신 연결 판단부(171)는 마스터 통신 모듈(100)에서 슬레이브 통신 모듈(200)로부터 수신한 응답 신호가 2회 연속 정상 응답인 경우, 마스터 통신 모듈(100)과 슬레이브 통신 모듈(200) 사이의 통신이 정상 연결 되었다고 판단할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The communication connection determination unit 171 determines whether the response signal received from the slave communication module 200 in the master communication module 100 is a normal response twice, It can be determined that the communication is normally connected. However, the present invention is not limited thereto.

도 4는 도 2에 포함된 슬레이브 통신 모듈의 세부적인 구성을 도시한 도면이다.FIG. 4 is a diagram illustrating a detailed configuration of a slave communication module included in FIG. 2. FIG.

도 4를 참조하면, 본 발명의 일 실시예에 따른 슬레이브 통신 모듈(200)은 통신부(210), 메모리부(230), 제어부(250), 및 응답 신호 생성부(270)를 포함한다. 도 4에 도시된 슬레이브 통신 모듈(200)의 구성요소들이 필수적인 것은 아니어서, 그보다 많은 구성요소들을 갖거나 그보다 적은 구성요소들을 갖는 슬레이브 통신 모듈(200)이 구현될 수 있다.4, the slave communication module 200 according to an exemplary embodiment of the present invention includes a communication unit 210, a memory unit 230, a controller 250, and a response signal generator 270. The components of the slave communication module 200 shown in FIG. 4 are not essential, so that the slave communication module 200 having more or fewer components can be implemented.

통신부(210)는 본 발명의 일 실시예에 따른 통신 연결 판단 방법을 수행하기 위하여 마스터 통신 모듈(100)과 데이터를 주고 받는 전자 장치, 모듈 또는 프로그램을 포함할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The communication unit 210 may include an electronic device, a module, or a program for exchanging data with the master communication module 100 to perform a communication connection determination method according to an embodiment of the present invention. However, the present invention is not limited thereto.

메모리부(230)는 RAM(Random Access Memory)과 같이 제어부(250)에 의한 실행을 위한 동적 정보 및 명령어들을 저장하는 동적 저장 디바이스를 포함할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The memory unit 230 may include a dynamic storage device for storing dynamic information and instructions for execution by the control unit 250, such as a RAM (Random Access Memory). However, the present invention is not limited thereto.

또한, 메모리부(230)는 ROM(Read Only Memory)과 같이 제어부(250)에 의한 사용을 위한 정적 정보 및 명령어들을 저장하는 정적 저장 디바이스를 포함할 수 있다. 메모리부(230)는 휘발성 메모리 유닛 또는 비휘발성 메모리 유닛일 수 있다. 메모리부(230)는 또한 자기 또는 광디스크와 같은 컴퓨터 판독가능 매체의 또 다른 유형일 수 있다. 이때, 메모리부(230)는 모드버스 RTU 통신 프로토콜의 통신 프로토콜 맵(Map)을 포함할 수 있다.In addition, the memory unit 230 may include a static storage device for storing static information and instructions for use by the control unit 250, such as a ROM (Read Only Memory). The memory unit 230 may be a volatile memory unit or a non-volatile memory unit. The memory portion 230 may also be another type of computer readable medium, such as a magnetic or optical disk. At this time, the memory unit 230 may include a communication protocol map (Map) of the Modbus RTU communication protocol.

슬레이브 통신 모듈(200)은 통신 프로토콜 맵을 기초로 생성한 통신 프레임(Frame)을 송신할 수 있다. 이때, 통신 프레임은 데이터 요청 신호 또는 응답 신호의 프레임을 포함할 수 있다. The slave communication module 200 can transmit a communication frame generated based on the communication protocol map. At this time, the communication frame may include a frame of a data request signal or a response signal.

예를 들어, 데이터 요청 신호는 통신 주소, 함수 코드, 요청 데이터의 시작 주소 또는 요청 데이터의 개수를 포함할 수 있다. 또한, 응답 신호는 통신 주소, 함수 코드, 응답 데이터의 바이트 카운트 또는 응답 데이터 값을 포함할 수 있다. For example, the data request signal may include a communication address, a function code, a start address of request data, or a number of request data. The response signal may also include a communication address, a function code, a byte count of the response data, or a response data value.

예를 들어, 통신 프로토콜 맵은 전력 기기의 설정값, 전력 기기의 계측값, 사고 이력 또는 전력 기기의 모델 정보를 포함할 수 있다.For example, the communication protocol map may include a set value of the power device, a measured value of the power device, an accident history, or model information of the power device.

제어부(250)는 임의의 유형의 종래의 프로세서, 마이크로 프로세서, 또는 명령어들을 해석하고 실행하는 프로세싱 로직을 포함할 수 있다. 제어부(250)는 고속 인터페이스에 결합된 디스플레이와 같은 외부의 입력/출력 디바이스상에 그래픽 사용자 인터페이스(GUI)를 위한 그래픽정보를 디스플레이하기 위해 메모리부(230) 내에 저장된 명령어들을 실행할 수 있다.The control unit 250 may include any type of conventional processor, microprocessor, or processing logic for interpreting and executing instructions. The control unit 250 may execute instructions stored in the memory unit 230 to display graphical information for a graphical user interface (GUI) on an external input / output device such as a display coupled to a high speed interface.

본 발명의 다른 실시예에서, 다수의 제어부(250)는 다수의 메모리부(230)와 함께 사용될 수 있다. 일부 실시예들에서, 제어부(250)는 컴퓨터 실행 가능 명령어들을 실행함으로써 또는 프로그래밍 됨으로써 특수 목적 마이크로 프로세서로 변형될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터로 판독 가능한 기록 매체에 저장될 수 있다.In another embodiment of the present invention, a plurality of control units 250 may be used with a plurality of memory units 230. In some embodiments, the control unit 250 may be modified into a special purpose microprocessor by executing computer program instructions or by being programmed. The software may be distributed over a networked computer system and stored or executed in a distributed manner. The software and data may be stored on one or more computer readable recording media.

이해의 편의를 위하여, 제어부(250)는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 제어부(250)가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 제어부(250)는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.One of ordinary skill in the art will recognize that the control unit 250 may include a plurality of processing elements and / or a plurality of processing elements, ≪ / RTI > type of processing element. For example, the control unit 250 may include a plurality of processors or one processor and one controller. Other processing configurations are also possible, such as a parallel processor.

본 발명의 다른 실시예에서, 다수의 제어부(250)는 다수의 메모리부(230)와 함께 사용될 수 있다. 일부 실시예들에서, 제어부(250)는 컴퓨터 실행 가능 명령어들을 실행함으로써 또는 프로그래밍 됨으로써 특수 목적 마이크로 프로세서로 변형될 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.In another embodiment of the present invention, a plurality of control units 250 may be used with a plurality of memory units 230. In some embodiments, the control unit 250 may be modified into a special purpose microprocessor by executing computer program instructions or by being programmed. However, the present invention is not limited thereto.

응답 신호 생성부(270)는 마스터 통신 모듈(100)로부터 수신한 데이터 요청 신호에 포함된 통신 주소를 추출하고, 슬레이브 통신 모듈(200)에 대응하는 통신 주소가 추출되는 경우, 데이터 요청 신호에 대응하는 응답 신호를 생성할 수 있다. The response signal generation unit 270 extracts a communication address included in the data request signal received from the master communication module 100, and when a communication address corresponding to the slave communication module 200 is extracted, A response signal can be generated.

예를 들어, 통신 주소 "1"에 해당하는 슬레이브 통신 모듈(200)의 응답 신호 생성부(270)는 데이터 요청 신호에서 추출한 통신 주소가 "1"에 해당하는 경우에만 응답 신호를 생성할 수 있다.For example, the response signal generator 270 of the slave communication module 200 corresponding to the communication address " 1 " can generate a response signal only when the communication address extracted from the data request signal corresponds to " 1 & .

응답 신호 생성부(270)는 메모리부(230)에 저장된 통신 프로토콜 맵을 기초로 슬레이브 통신 모듈(200)의 통신 주소, 함수 코드(예를 들어, 전력 기기의 모델 정보가 저장되어 있는 함수 코드), 바이트 카운트(예를 들어, 응답 신호의 바이트 카운트) 또는 데이터 값(예를 들어, 전력 기기의 모델 정보)을 포함하는 응답 신호를 생성할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The response signal generation unit 270 generates a response signal based on the communication address and the function code of the slave communication module 200 based on the communication protocol map stored in the memory unit 230. For example, , A byte count (e.g., a byte count of the response signal), or a data value (e.g., model information of the power device). However, the present invention is not limited thereto.

도 5는 본 발명의 몇몇 실시예에 따른 통신 연결 판단 방법을 설명하기 위한 순서도이다.5 is a flowchart illustrating a communication connection determination method according to some embodiments of the present invention.

도 5를 참조하면, 마스터 통신 모듈(100)에서 데이터 요청 신호를 생성하고(S500), 마스터 통신 모듈(100)에서 슬레이브 통신 모듈(200)에 데이터 요청 신호를 송신한다(S505). 예를 들어, 마스터 통신 모듈(100)에서 미리 결정된 통신 주소를 포함하는 데이터 요청 신호를 생성하고, 모드버스 RTU 프로토콜의 시리얼 통신망을 이용하여 슬레이브 통신 모듈(200)에 데이터 요청 신호를 송신할 수 있다. Referring to FIG. 5, the master communication module 100 generates a data request signal (S500), and the master communication module 100 transmits a data request signal to the slave communication module 200 (S505). For example, the master communication module 100 may generate a data request signal including a predetermined communication address, and may transmit a data request signal to the slave communication module 200 using the serial communication network of the Modbus RTU protocol .

이때, 마스터 통신 모듈(100)은 1 내지 247의 통신 주소에 해당하는 슬레이브 통신 모듈(200) 중에서 통신 연결을 원하는 통신 주소에 해당하는 슬레이브 통신 모듈(200)에 데이터 요청 신호를 송신할 수 있다. At this time, the master communication module 100 can transmit a data request signal to the slave communication module 200 corresponding to the communication address of the slave communication module 200 corresponding to the communication address of 1 to 247.

예를 들어, 마스터 통신 모듈(100)은 통신 주소 1부터 247에 해당하는 슬레이브 통신 모듈(200)에 순차적으로 데이터 요청 신호를 송신할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.For example, the master communication module 100 may sequentially transmit a data request signal to the slave communication module 200 corresponding to the communication addresses 1 to 247. However, the present invention is not limited thereto.

이어서, 슬레이브 통신 모듈(200)에서 응답 신호를 생성하고(S510), 슬레이브 통신 모듈(200)에서 마스터 통신 모듈(100)에 응답 신호를 송신한다(S515). 예를 들어, 슬레이브 통신 모듈(200)에서 데이터 요청 신호를 수신하는 경우, 슬레이브 통신 모듈(200)은 데이터 요청 신호로부터 통신 주소를 추출할 수 있다. Next, the slave communication module 200 generates a response signal (S510), and the slave communication module 200 transmits a response signal to the master communication module 100 (S515). For example, when receiving the data request signal from the slave communication module 200, the slave communication module 200 can extract the communication address from the data request signal.

이때, 슬레이브 통신 모듈(200)은 데이터 요청 신호로부터 추출된 통신 주소와 슬레이브 통신 모듈(200)의 통신 주소가 일치하는 경우에 마스터 통신 모듈(100)에 응답 신호를 송신할 수 있다.At this time, the slave communication module 200 can transmit a response signal to the master communication module 100 when the communication address extracted from the data request signal matches the communication address of the slave communication module 200.

이어서, 마스터 통신 모듈(100)에서 정상 응답 여부를 판단한다(S520). 예를 들어, 마스터 통신 모듈(100)은 수신한 응답 신호를 기초로 슬레이브 통신 모듈(200)의 정상 응답 여부를 판단할 수 있다. Then, the master communication module 100 determines whether a normal response is received (S520). For example, the master communication module 100 can determine whether or not the slave communication module 200 has a normal response based on the received response signal.

예를 들어, 마스터 통신 모듈(100)에서 응답 신호의 바이트(Byte) 길이를 지정하여 미리 지정한 바이트 길이를 초과하는 경우 비정상 응답으로 판단할 수 있다. 예를 들어, 마스터 통신 모듈(100)에서 데이터 요청 신호에 대응되는 응답 신호를 수신하는 경우 정상 응답으로 판단할 수 있다. 즉, 응답 신호의 형태가 데이터 요청 신호에서 요청한 응답 신호의 형태와 일치하는 경우 정상 응답으로 판단할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.For example, if the master communication module 100 designates the byte length of the response signal and exceeds the predetermined byte length, it can be determined that the response is an abnormal response. For example, when the master communication module 100 receives a response signal corresponding to the data request signal, it can determine that the response is a normal response. That is, if the type of the response signal matches the type of the response signal requested in the data request signal, it can be determined as a normal response. However, the present invention is not limited thereto.

이어서, 마스터 통신 모듈(100)에서 슬레이브 통신 모듈(200)에 데이터 요청 신호를 송신한다(S525). 이어서, 슬레이브 통신 모듈(200)에서 응답 신호를 생성하고(S530), 슬레이브 통신 모듈(200)에서 마스터 통신 모듈(100)에 응답 신호를 송신한다(S535). 예를 들어, 마스터 통신 모듈(100)에서 수신한 응답 신호가 정상 응답으로 판단되는 경우, 마스터 통신 모듈(100)은 데이터 요청 신호를 송신하는 단계 및 정상 응답 여부를 판단하는 단계를 재수행할 수 있다.Then, the master communication module 100 transmits a data request signal to the slave communication module 200 (S525). Then, the slave communication module 200 generates a response signal (S530), and the slave communication module 200 transmits a response signal to the master communication module 100 (S535). For example, when the response signal received by the master communication module 100 is determined to be a normal response, the master communication module 100 can re-execute the step of transmitting the data request signal and determining whether the response is a normal response .

이어서, 마스터 통신 모듈(100)에서 통신 연결 여부를 판단한다(S540). 예를 들어, 마스터 통신 모듈(100)은 슬레이브 통신 모듈(200)로부터 2회에 걸쳐 수신한 응답 신호의 정상 응답 여부에 대한 판단값을 기초로 마스터 통신 모듈(100) 및 슬레이브 통신 모듈(200) 사이의 통신 정상 연결 여부를 판단할 수 있다.Then, the master communication module 100 determines whether communication is established (S540). For example, the master communication module 100 determines whether the master communication module 100 and the slave communication module 200 have received the response signal twice from the slave communication module 200, It is possible to determine whether or not the communication is normally established.

예를 들어, 마스터 통신 모듈(100)에서 슬레이브 통신 모듈(200)로부터 수신한 응답 신호가 정상 응답인 경우, 마스터 통신 모듈(100)은 마스터 통신 모듈(100)과 슬레이브 통신 모듈(200) 사이의 통신이 정상 연결 되었다고 판단할 수 있다.For example, when the response signal received from the slave communication module 200 in the master communication module 100 is a normal response, the master communication module 100 determines whether the response signal received from the master communication module 100 and the slave communication module 200 It can be determined that the communication is normally connected.

또한, 마스터 통신 모듈(100)에서 슬레이브 통신 모듈(200)로부터 수신한 응답 신호가 2회 연속 정상 응답인 경우, 마스터 통신 모듈(100)은 마스터 통신 모듈(100)과 슬레이브 통신 모듈(200) 사이의 통신이 정상 연결 되었다고 판단할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.When the response signal received from the slave communication module 200 in the master communication module 100 is a normal response twice in succession, the master communication module 100 performs a normal response between the master communication module 100 and the slave communication module 200 It can be determined that the communication of the mobile station 100 is normally connected. However, the present invention is not limited thereto.

본 발명의 일 실시예에 따르면, 마스터 통신 모듈은 슬레이브 통신 모듈로부터 수신한 응답 신호를 이용하여 슬레이브 통신 모듈의 정상 응답 여부를 판단할 수 있다. 예를 들어, 마스터 통신 모듈은 입출력 대기 시간에 슬레이브 통신 모듈로부터 응답 신호를 수신하는 경우, 상기 응답 신호는 비정상 응답인 것으로 판단할 수 있다. 이때, 입출력 대기 시간은 마스터 통신 모듈에서 송출하는 데이터 요청 신호의 송출 시각의 간격을 포함할 수 있다.According to an embodiment of the present invention, the master communication module can determine whether the slave communication module has a normal response using the response signal received from the slave communication module. For example, when receiving a response signal from the slave communication module in the input / output wait time, the master communication module may determine that the response signal is an abnormal response. At this time, the input / output waiting time may include an interval of transmission time of the data request signal transmitted from the master communication module.

예를 들어, 마스터 통신 모듈은 응답 신호의 바이트 길이가 미리 결정된 바이트 길이 내인 경우, 상기 응답 신호는 정상 응답인 것으로 판단할 수 있다.For example, the master communication module can determine that the response signal is a normal response when the byte length of the response signal is within a predetermined byte length.

예를 들어, 마스터 통신 모듈은 데이터 요청 신호의 메시지 형태와 응답 신호의 메시지 형태가 일치하는 경우, 상기 응답 신호는 정상 응답인 것으로 판단할 수 있다. 이때, 메시지 형태는 데이터 프레임의 형태 또는 Ack 메시지의 형태를 포함할 수 있다.For example, if the message type of the data request signal matches the message type of the response signal, the master communication module can determine that the response signal is a normal response. At this time, the message type may include a data frame type or an Ack message type.

예를 들어, 마스터 통신 모듈은 응답 신호에 포함된 에러 체크값이 정상인 경우, 상기 응답 신호는 정상 응답인 것으로 판단할 수 있다. 이때, 에러 체크값은 CRC 에러 체크값을 포함할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.For example, if the error check value included in the response signal is normal, the master communication module can determine that the response signal is a normal response. At this time, the error check value may include a CRC error check value. However, the present invention is not limited thereto.

도 6은 본 발명의 일 실시예에 따른 통신 연결 판단 방법을 설명하기 위한 순서도이다.6 is a flowchart illustrating a communication connection determination method according to an exemplary embodiment of the present invention.

도 6을 참조하면, 마스터 통신 모듈(100)에서 통신 주소 N번(예를 들어, N은 자연수) 주소의 슬레이브 통신 모듈(200)에 대하여 1차 통신 연결을 시도한다(S600).Referring to FIG. 6, the master communication module 100 attempts to establish a primary communication connection with the slave communication module 200 having a communication address N (for example, N is a natural number) address (S600).

예를 들어, 마스터 통신 모듈(100)에서 통신 주소 3번 주소를 포함하는 데이터 요청 신호를 통신 주소 3번 주소의 슬레이브 통신 모듈(200)에 최초 송신하는 경우를 1차 통신 연결 시도라고 할 수 있다. For example, when the master communication module 100 first transmits a data request signal including the communication address 3 to the slave communication module 200 at the communication address 3, it can be referred to as a primary communication connection attempt .

이어서, 마스터 통신 모듈(100)에서 통신 주소 N번 주소의 슬레이브 통신 모듈(200)로부터 수신한 응답 신호의 정상 응답 여부를 판단한다(S610).Then, the master communication module 100 determines whether the response signal received from the slave communication module 200 having the communication address N address is a normal response (S610).

예를 들어, 마스터 통신 모듈(100)은 통신 주소 3번 주소를 포함하는 데이터 요청 신호에 대응하는 통신 주소 3번 주소를 포함하는 응답 신호의 정상 응답 여부를 판단할 수 있다.For example, the master communication module 100 may determine whether the response signal including the communication address 3 corresponding to the data request signal including the communication address 3 is a normal response.

예를 들어, 마스터 통신 모듈(100)에서 수신한 응답 신호의 바이트 길이가 미리 결정된 바이트 길이 내인 경우, 상기 응답 신호는 정상 응답인 것으로 판단할 수 있다. For example, when the byte length of the response signal received by the master communication module 100 is within the predetermined byte length, it can be determined that the response signal is a normal response.

또한, 마스터 통신 모듈(100)에서 복수의 데이터 요청 신호를 송신할 때, 각각의 데이터 요청 신호 송출 시각 사이의 입출력 대기 시간에 슬레이브 통신 모듈(200)에서 응답 신호를 송신하는 경우, 마스터 통신 모듈(100)에서 입출력 대기 시간에 수신한 응답 신호는 비정상 응답인 것으로 판단할 수 있다.When transmitting a plurality of data request signals from the master communication module 100 and transmitting a response signal from the slave communication module 200 in the input / output waiting time between each data request signal transmission time, the master communication module 100, it can be determined that the response signal received in the input / output wait time is an abnormal response.

이어서, 마스터 통신 모듈(100)에서 수신한 응답 신호가 정상 응답인 경우, 통신 주소 N번 주소에 대하여 2차 통신 연결을 시도한다(S615).Then, if the response signal received by the master communication module 100 is a normal response, a secondary communication connection is attempted to the address N of the communication address (S615).

예를 들어, 마스터 통신 모듈(100)은 1차 통신 연결 시도에서 수신한 응답 신호가 정상 응답인 경우, 1차 통신 연결 시도와 동일한 통신 주소에 2차 통신 연결을 시도할 수 있다. 이때, 통신 연결 시도는 1차 통신 연결 시도와 동일한 단계를 수행할 수 있다. For example, when the response signal received in the primary communication connection attempt is a normal response, the master communication module 100 may attempt to establish a secondary communication connection to the same communication address as the primary communication connection attempt. At this time, the communication connection attempt can perform the same steps as the primary communication connection attempt.

예를 들어, 1차 및 2차 통신 연결은 1단계 및 2단계 또는 1회 및 2회 통신 연결을 포함할 수 있다.For example, the primary and secondary communication connections may include one or two or one or two communication connections.

이어서, 마스터 통신 모듈(100)에서 2차 통신 연결 시도 후, 통신 주소 N번 주소의 슬레이브 통신 모듈(200)로부터 수신한 응답 신호의 정상 응답 여부를 판단한다(S620). 이때, 응답 신호의 정상 응답 여부 판단은 1차 통신 연결 시도와 동일할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.Then, in step S620, the master communication module 100 determines whether the response signal received from the slave communication module 200 at the communication address N address is a normal response. At this time, the determination of whether or not the response signal is a normal response may be the same as the first communication connection attempt. However, the present invention is not limited thereto.

이어서, 마스터 통신 모듈(100)에서 2차 통신 연결 시도에 대한 응답 신호가 정상 응답인 경우, 1차 및 2차 통신 연결 시도 각각의 응답 신호가 동일한지 비교한다(S625). 예를 들어, 마스터 통신 모듈(100)은 1차 및 2차 통신 연결 시도 각각의 응답 신호가 정상 응답으로 판단되면, 마스터 통신 모듈(100)과 응답 신호를 송출한 슬레이브 통신 모듈(200) 사이의 통신이 정상 연결된 것으로 판단할 수 있다. 또한, 1차 및 2차 통신 연결 시도 각각의 응답 신호에 포함된 모델 정보가 동일한 경우, 마스터 통신 모듈(100)과 응답 신호를 송출한 슬레이브 통신 모듈(200) 사이의 통신이 정상 연결된 것으로 판단할 수 있다If the response signal to the secondary communication connection attempt in the master communication module 100 is a normal response, it is determined whether the response signals of the primary and secondary communication connection attempts are the same (S625). For example, when the response signals of the first and second communication connection attempts are determined to be normal responses, the master communication module 100 determines whether the master communication module 100 and the slave communication module 200, It can be determined that the communication is normally connected. When the model information included in the response signals of the primary and secondary communication connection attempts is the same, it is determined that the communication between the master communication module 100 and the slave communication module 200 transmitting the response signal is normally connected Can

본 발명의 일 실시예에서, 1차 및 2차 통신 연결 시도에서 각각의 응답 신호가 모두 정상 응답으로 판단되는 경우, 마스터 통신 모듈(100)은 응답 신호를 송출한 통신 주소의 슬레이브 통신 모듈(200)과 마스터 통신 모듈(100) 사이의 통신 연결이 정상 연결된 것으로 판단할 수 있다.In an embodiment of the present invention, when all of the response signals in the primary and secondary communication connection attempts are determined to be a normal response, the master communication module 100 transmits the response signal to the slave communication module 200 ) And the master communication module 100 are normally connected to each other.

이어서, 마스터 통신 모듈(100)에서 1차 또는2차 통신 연결 시도에서 응답 신호가 비정상 응답이거나, 1차 및 2차 통신 연결 시도 각각의 응답 신호가 동일하지 않은 경우에는 통신 연결 실패를 디스플레이부에 표시한다(S630).If the response signal is abnormal in the primary or secondary communication connection attempt by the master communication module 100 or the response signals of the primary and secondary communication connection attempts are not the same, (S630).

또한, 마스터 통신 모듈(100)에서 1차 및 2차 통신 연결 시도 각각의 응답 신호가 동일한 경우에는 통신 연결 성공을 디스플레이부에 표시한다(S630).If the response signals of the primary and secondary communication connection attempts are identical in the master communication module 100, the communication connection success is displayed on the display unit (S630).

이어서, 마스터 통신 모듈(100)에서 통신 주소 N번 주소에 대한 통신 연결 시도를 마치고, 통신 주소 N이 247에 해당하는지를 판단한다(S640).Then, in step S640, the master communication module 100 ends the communication connection attempt for the address N of the communication address, and determines whether the communication address N corresponds to 247.

이어서, 마스터 통신 모듈(100)에서 통신 주소 N이 247에 해당하지 않는 경우, 통신 주소 N+1번 주소의 슬레이브 통신 모듈(200)에 통신 연결을 시도한다(S650). 예를 들어, 마스터 통신 모듈(100)은 통신 주소 1번 주소에 대한 통신 연결 시도를 마치고, 통신 주소 2번 주소에 통신 연결을 시도할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.If the communication address N does not correspond to 247 in the master communication module 100, a communication connection is attempted to the slave communication module 200 having the address N + 1 in operation S650. For example, the master communication module 100 may attempt to establish a communication connection to the communication address 2 after completing the communication connection attempt to the communication address 1 address. However, the present invention is not limited thereto.

도 7은 본 발명의 몇몇 실시예에 따른 데이터 요청 신호 및 응답 신호의 일 예를 설명하기 위한 도면이다.7 is a view for explaining an example of a data request signal and a response signal according to some embodiments of the present invention.

도 7을 참조하면, 본 발명의 일 실시예에 따른 데이터 요청 신호(710)는 주소(711), 함수 코드(713), 시작 주소(715), 및 요청 데이터 갯수(717)를 포함할 수 있다. 7, a data request signal 710 according to an embodiment of the present invention may include an address 711, a function code 713, a start address 715, and a request data number 717 .

주소(711)는 모드버스 시리얼 통신의 통신 주소를 포함할 수 있다. 통신 주소는 1 내지 247의 자연수를 갖는 통신 주소를 포함할 수 있다. 예를 들어, 하나의 통신 주소에는 하나의 슬레이브 통신 모듈(200)이 설정될 수 있다. Address 711 may include the communication address of the Modbus serial communication. The communication address may include a communication address having a natural number between 1 and 247. [ For example, one slave communication module 200 can be set to one communication address.

이때, 하나의 통신 주소에 하나의 슬레이브 통신 모듈(200)이 연결되는 경우, 마스터 통신 모듈(100)에서 통신이 정상 연결되었다고 판단할 수 있다. 즉, 하나의 통신 주소에 둘 이상의 슬레이브 통신 모듈(200)이 연결되는 경우, 마스터 통신 모듈(100)은 통신이 비정상 연결되었다고 판단할 수 있다.At this time, when one slave communication module 200 is connected to one communication address, the master communication module 100 can determine that the communication is normally connected. That is, when two or more slave communication modules 200 are connected to one communication address, the master communication module 100 can determine that the communication is abnormally connected.

함수 코드(713)는 통신 프로토콜 맵에 포함된 모드버스 함수 코드를 포함할 수 있다. 예를 들어, 함수 코드(713)는 전력 기기를 ON/OFF 또는 초기화하는 "0x05", 전력 기기의 계측값을 읽는 "0x04", 전력 기기의 설정값을 읽는 "0x03" 또는 전력 기기에 설정값을 입력하는 "0x06"을 포함할 수 있다. The function code 713 may include a modbus function code included in the communication protocol map. For example, the function code 713 may be set to " 0x05 " to turn on / off the power device, " 0x04 " to read the measured value of the power device, " 0x03 &Quot; 0x06 "

시작 주소(715)는 통신 프로토콜 맵에서 요청하는 데이터가 위치하는 주소를 포함할 수 있다. 예를 들어, 데이터 요청 신호(710)에서 전력 기기의 모델 정보를 요청하는 경우, 전력 기기의 모델 정보는 통신 프로토콜 맵에서 주소 "0x53"에 위치할 수 있다. The start address 715 may include an address at which the requested data is located in the communication protocol map. For example, when requesting the model information of the power device in the data request signal 710, the model information of the power device may be located at address " 0x53 " in the communication protocol map.

요청 데이터 갯수(717)는 데이터 요청 신호(710)에서 요청하는 데이터의 개수를 포함할 수 있다. 예를 들어, 전력 기기의 전류, 전압, 및 전압 계측값을 요청하는 경우, 데이터 요청 신호(710)는 3개의 데이터를 요청할 수 있다.The number of requested data 717 may include the number of requested data in the data request signal 710. For example, when requesting current, voltage, and voltage measurements of a power device, the data request signal 710 may request three data.

또한, 데이터 요청 신호(710)는 CRC 에러 체크 값을 포함할 수 있다.The data request signal 710 may also include a CRC error check value.

또한, 응답 신호(730)는 주소(731), 함수 코드(733), 바이트 카운트(735), 및 데이터 값(737)을 포함할 수 있다.The response signal 730 may also include an address 731, a function code 733, a byte count 735, and a data value 737.

주소(731)는 슬레이브 통신 모듈(200)에 설정되어 있는 통신 주소를 포함할 수 있다. 이때, 하나의 슬레이브 통신 모듈(200)에 하나의 통신 주소가 설정될 수 있다.The address 731 may include a communication address set in the slave communication module 200. At this time, one communication address may be set in one slave communication module 200.

함수 코드(733)는 통신 프로토콜 맵에 포함된 모드버스 함수 코드를 포함할 수 있다. 예를 들어, 함수 코드(733)는 전력 기기를 ON/OFF 또는 초기화하는 "0x05", 전력 기기의 계측값을 읽는 "0x04", 전력 기기의 설정값을 읽는 "0x03" 또는 전력 기기에 설정값을 입력하는 "0x06"을 포함할 수 있다. The function code 733 may include a modbus function code included in the communication protocol map. For example, the function code 733 may be set to "0x05" for turning on / off the power device, "0x04" for reading the measured value of the power device, "0x03" for reading the set value of the power device, Quot; 0x06 "

바이트 카운트(735)는 응답 신호(730)의 총 바이트를 포함할 수 있다. 예를 들어, 마스터 통신 모듈(100)은 바이트 카운트의 길이를 이용해 응답 신호(730)의 정상 응답 여부를 판단할 수 있다.The byte count 735 may include the total byte of the response signal 730. For example, the master communication module 100 can determine whether a response of the response signal 730 is normal using the byte count length.

데이터 값(737)은 데이터 요청 신호(710)에서 요청한 데이터 값을 포함할 수 있다. 예를 들어, 데이터 요청 신호(710)에서 전력 기기의 모델 정보를 요청한 경우, 슬레이브 통신 모듈(200)은 데이터 값에 모델 정보가 포함된 응답 신호(730)를 마스터 통신 모듈(100)에 송신할 수 있다. The data value 737 may include the data value requested in the data request signal 710. For example, when requesting the model information of the power device from the data request signal 710, the slave communication module 200 transmits a response signal 730 including the model information to the data value to the master communication module 100 .

또한, 응답 신호(730)는 CRC 에러 체크 값을 포함할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The response signal 730 may also include a CRC error check value. However, the present invention is not limited thereto.

도 8은 본 발명의 몇몇 실시예에 따른 데이터 요청 신호 및 응답 신호의 다른 예를 설명하기 위한 도면이다.8 is a view for explaining another example of a data request signal and a response signal according to some embodiments of the present invention.

도 8을 참조하면, 마스터 통신 모듈(100)에서 통신 주소 "7번"에 해당하는 슬레이브 통신 모듈(200)에 최초 데이터 요청 신호(810)를 송신할 수 있다. 예를 들어, 데이터 요청 신호(810)는 통신 주소 "7번"에 해당하는 슬레이브 통신 모듈(200)에게 함수 코드 "0x03" 중 "0x53" 번째 주소로부터 데이터 "1개"를 요청하는 명령을 포함할 수 있다. Referring to FIG. 8, the master communication module 100 can transmit an initial data request signal 810 to the slave communication module 200 corresponding to the communication address " 7 ". For example, the data request signal 810 includes a command to request the slave communication module 200 corresponding to the communication address " 7 " from the " 0x53 " can do.

또한, 데이터 요청 신호(810)을 수신한 통신 주소 7번에 해당하는 슬레이브 통신 모듈(200)은 응답 신호(830)를 마스터 통신 모듈(100)에 송신할 수 있다. 예를 들어, 응답 신호(830)는 통신 주소 "7번"에 해당하는 슬레이브 통신 모듈(200)에서 함수 코드 "0x03"에 대한 응답으로, 총 2 바이트를 전송하고, 전송되는 값은 "37 06"임을 나타내는 응답을 포함할 수 있다. In addition, the slave communication module 200 corresponding to the communication address 7, which has received the data request signal 810, can transmit the response signal 830 to the master communication module 100. For example, the response signal 830 transmits a total of 2 bytes in response to the function code " 0x03 " in the slave communication module 200 corresponding to the communication address " 7 & &Quot; can be included.

마스터 통신 모듈(100)은 최초 응답 신호(830)가 정상 응답으로 판단되는 경우, 2차 데이터 요청 신호(850)를 송신할 수 있다. 2차 데이터 요청 신호는 최초 데이터 요청 신호(810)와 동일할 수 있다.The master communication module 100 may transmit the secondary data request signal 850 when the initial response signal 830 is determined to be a normal response. The secondary data request signal may be the same as the initial data request signal 810.

마스터 통신 모듈(100)은 1차 응답 신호(830) 및 2차 응답 신호(870) 각각이 모두 정상 응답으로 판단 되는 경우, 마스터 통신 모듈(100)과 통신 주소 7번의 슬레이브 통신 모듈(200) 사이의 통신이 정상 연결된 것으로 판단할 수 있다. 다만, 본 발명이 이에 한정되는 것은 아니다.The master communication module 100 determines that the master communication module 100 and the slave communication module 200 at the communication address 7 are in a normal state when both the primary response signal 830 and the secondary response signal 870 are determined to be normal responses. It can be determined that the communication of the mobile station 100 is normally connected. However, the present invention is not limited thereto.

지금까지 설명된 본 발명에 따르면 통신 연결 판단 조건을 강화하여 통신 주소가 중복된 전력 기기의 통신 연결을 제한함으로써, 통신 주소 중복시 발생할 수 있는 전력 기기의 손상 및 오작동 위험을 제거할 수 있다.According to the present invention described above, communication connection determination conditions are strengthened to restrict communication connections of power devices having duplicate communication addresses, thereby eliminating the risk of damage and malfunction of power devices that may occur when communication addresses are duplicated.

또한, 본 발명에 따르면 정상 응답 판단 조건을 추가하여 통신 연결 오류를 방지함으로써, 산업 현장에서 업무의 효율을 향상시킬 수 있는 장점이 있다.In addition, according to the present invention, it is possible to improve the efficiency of work in an industrial field by preventing a communication connection error by adding a normal response judgment condition.

또한, 본 발명에 따르면 전력 기기의 수량과 통신 주소를 사용자가 직접 입력하지 않아도 자동으로 전력 기기의 통신을 연결함으로써, 사용자의 시간과 비용을 절감할 수 있는 장점이 있다.In addition, according to the present invention, there is an advantage that the time and cost of the user can be reduced by automatically connecting the communication of the power device without directly inputting the quantity and the communication address of the power device.

이상 첨부된 도면을 참조하여 본 발명의 실시예를 설명하였지만, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명이 그 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다.While the present invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, You will understand. It is therefore to be understood that the above-described embodiments are illustrative in all aspects and not restrictive.

100: 마스터 통신 모듈
200: 슬레이브 통신 모듈
100: Master communication module
200: Slave communication module

Claims (9)

복수의 슬레이브 통신 모듈과 시리얼 통신망으로 연결된 마스터 통신 모듈에서 수행되는 통신 연결 판단 방법에 있어서,
상기 시리얼 통신망을 이용하여 미리 결정된 통신 주소를 포함하는 제1 데이터 요청 신호를 송신하는 단계;
상기 통신 주소에 대응되는 상기 슬레이브 통신 모듈로부터 상기 제1 데이터 요청 신호에 대응되는 제1 응답 신호를 수신하는 단계;
미리 결정된 입출력 대기 시간 이후에, 상기 시리얼 통신망을 이용하여 상기 통신 주소를 포함하는 제2 데이터 요청 신호를 송신하는 단계;
상기 통신 주소에 대응되는 상기 슬레이브 통신 모듈로부터 상기 제2 데이터 요청 신호에 대응되는 제2 응답 신호를 수신하는 단계; 및
상기 제1 및 제2 응답 신호를 기초로 상기 마스터 통신 모듈 및 상기 슬레이브 통신 모듈 사이의 통신 정상 연결 여부를 판단하는 단계를 포함하는
통신 연결 판단 방법.
A communication connection determination method performed by a master communication module connected to a plurality of slave communication modules and a serial communication network,
Transmitting a first data request signal including a predetermined communication address using the serial communication network;
Receiving a first response signal corresponding to the first data request signal from the slave communication module corresponding to the communication address;
Transmitting a second data request signal including the communication address using the serial communication network after a predetermined input / output waiting time;
Receiving a second response signal corresponding to the second data request signal from the slave communication module corresponding to the communication address; And
And determining whether communication between the master communication module and the slave communication module is normally established based on the first and second response signals
How to determine a communication connection.
제1항에 있어서,
수신한 상기 제1 또는 제2 응답 신호를 기초로 상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계를 더 포함하는
통신 연결 판단 방법.
The method according to claim 1,
And determining whether the slave communication module is in a normal response based on the received first or second response signal
How to determine a communication connection.
제1항에 있어서,
상기 통신 정상 연결 여부를 판단하는 단계는,
상기 제1 및 제2 응답 신호가 정상 응답으로 판단되면, 상기 마스터 통신 모듈 및 상기 슬레이브 통신 모듈 사이의 통신이 정상 연결된 것으로 판단하는 것을 포함하는
통신 연결 판단 방법.
The method according to claim 1,
The method of claim 1,
And determining that the communication between the master communication module and the slave communication module is normally connected if the first and second response signals are determined to be a normal response
How to determine a communication connection.
제3항에 있어서,
상기 통신 정상 연결 여부를 판단하는 단계는,
상기 제1 및 제2 응답 신호에 포함된 상기 모델 정보가 동일한 경우, 상기 통신이 정상 연결된 것으로 판단하는 것을 포함하는
통신 연결 판단 방법.
The method of claim 3,
The method of claim 1,
And determining that the communication is normally connected when the model information included in the first and second response signals are identical
How to determine a communication connection.
제2항에 있어서,
상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계는,
상기 입출력 대기 시간에 상기 슬레이브 통신 모듈로부터 상기 제1 또는 제2 응답 신호를 수신하는 경우, 상기 제1 또는 제2 응답 신호는 비정상 응답인 것으로 판단하는 것을 포함하는
통신 연결 판단 방법.
3. The method of claim 2,
Wherein the step of determining whether the slave communication module has a normal response comprises:
When the first or second response signal is received from the slave communication module in the input / output waiting time, determining that the first or second response signal is an abnormal response
How to determine a communication connection.
제2항에 있어서,
상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계는,
상기 제1 또는 제2 응답 신호의 바이트 길이가 미리 결정된 바이트 길이 내인 경우, 상기 제1 또는 제2 응답 신호는 정상 응답인 것으로 판단하는 것을 포함하는
통신 연결 판단 방법.
3. The method of claim 2,
Wherein the step of determining whether the slave communication module has a normal response comprises:
Determining that the first or second response signal is a normal response if the byte length of the first or second response signal is within a predetermined byte length
How to determine a communication connection.
제2항에 있어서,
상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계는,
상기 제1 또는 제2 데이터 요청 신호의 메시지 형태와 상기 제1 또는 제2 응답 신호의 메시지 형태가 일치하는 경우, 상기 제1 또는 제2 응답 신호는 정상 응답인 것으로 판단하는 것을 포함하는
통신 연결 판단 방법.
3. The method of claim 2,
Wherein the step of determining whether the slave communication module has a normal response comprises:
And determining that the first or second response signal is a normal response when the message type of the first or second data request signal matches the message type of the first or second response signal
How to determine a communication connection.
제2항에 있어서,
상기 슬레이브 통신 모듈의 정상 응답 여부를 판단하는 단계는,
상기 제1 또는 제2 응답 신호에 포함된 에러 체크값이 정상인 경우, 상기 제1 또는 제2 응답 신호는 정상 응답인 것으로 판단하는 것을 포함하는
통신 연결 판단 방법.
3. The method of claim 2,
Wherein the step of determining whether the slave communication module has a normal response comprises:
And determining that the first or second response signal is a normal response when the error check value included in the first or second response signal is normal
How to determine a communication connection.
제1항에 있어서,
상기 제1 또는 제2 응답 신호는,
상기 슬레이브 통신 모듈을 포함하는 전력 기기의 모델 정보를 포함하는
통신 연결 판단 방법.
The method according to claim 1,
Wherein the first or second response signal comprises:
The slave communication module including model information of the power device including the slave communication module
How to determine a communication connection.
KR1020170109862A 2017-08-30 2017-08-30 Method for determining communication connecting KR101978402B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170109862A KR101978402B1 (en) 2017-08-30 2017-08-30 Method for determining communication connecting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170109862A KR101978402B1 (en) 2017-08-30 2017-08-30 Method for determining communication connecting

Publications (2)

Publication Number Publication Date
KR20190023703A true KR20190023703A (en) 2019-03-08
KR101978402B1 KR101978402B1 (en) 2019-05-14

Family

ID=65800774

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170109862A KR101978402B1 (en) 2017-08-30 2017-08-30 Method for determining communication connecting

Country Status (1)

Country Link
KR (1) KR101978402B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040016921A (en) * 2004-01-30 2004-02-25 엘지전자 주식회사 Control System for Home Appliance Network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040016921A (en) * 2004-01-30 2004-02-25 엘지전자 주식회사 Control System for Home Appliance Network

Also Published As

Publication number Publication date
KR101978402B1 (en) 2019-05-14

Similar Documents

Publication Publication Date Title
US20210352148A1 (en) Remote management for a computing device
CN106569847B (en) Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
CN109408447A (en) A kind of data transmission method based on SPI, device and electronic equipment
CN101876825B (en) Human-computer interface device of small PLC
CN109743105A (en) Intelligent network adapter optical mode block management method, device, system and intelligent network adapter and medium
CN104914815A (en) Processor monitoring method, device and system
US20220358006A1 (en) Core Board, Server, Fault Repairing Method and Apparatus, and Storage Medium
CN113832663B (en) Control chip fault recording method and device and control chip fault reading method
KR101985692B1 (en) Apparatus for determining communication connecting
KR101978402B1 (en) Method for determining communication connecting
CN110502464A (en) A kind of hot-swappable processing method, device, equipment, system and readable storage medium storing program for executing
US10698468B2 (en) Device and method for changing setting value of electric power equipment
CN110427301A (en) A kind of computer fault alarm system
CN108648297A (en) Equipment detection method and device, storage medium, electronic equipment
CN110020235A (en) Web browser threedimensional model localization method, device, medium and electronic equipment
KR101948722B1 (en) Method for changing setting value of electric power equipments
KR101949983B1 (en) Device and method for changing setting value of electric power equipments
CN108954702B (en) Control method and device of air conditioner, air conditioner and storage medium
KR101949757B1 (en) Method for changing setting value of electric power equipments
CN104932820A (en) Touch screen use method and system based on USB mapping
CN117009155A (en) High-bandwidth memory test method, high-bandwidth memory, electronic device and storage medium
CN201749350U (en) Human-machine interface device for miniature PLC
KR101925237B1 (en) Esd detection apparatus and method applied to digital integrated circuit, and integrated circuit
US20140189342A1 (en) Method for controlling registration of input device in input handler instance, terminal and storage device
CN114745257A (en) Data frame debugging method, device, equipment and storage medium

Legal Events

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