KR102287986B1 - Smart Gateway for Building Home Network System - Google Patents

Smart Gateway for Building Home Network System Download PDF

Info

Publication number
KR102287986B1
KR102287986B1 KR1020200178072A KR20200178072A KR102287986B1 KR 102287986 B1 KR102287986 B1 KR 102287986B1 KR 1020200178072 A KR1020200178072 A KR 1020200178072A KR 20200178072 A KR20200178072 A KR 20200178072A KR 102287986 B1 KR102287986 B1 KR 102287986B1
Authority
KR
South Korea
Prior art keywords
field
data frame
data
preset
terminal
Prior art date
Application number
KR1020200178072A
Other languages
Korean (ko)
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 KR1020200178072A priority Critical patent/KR102287986B1/en
Application granted granted Critical
Publication of KR102287986B1 publication Critical patent/KR102287986B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/281Exchanging configuration information on appliance services in a home automation network indicating a format for calling an appliance service function in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

Disclosed is a smart gateway for building a home network system. According to one aspect of the present embodiment, provided is the smart gateway which connects various home networking household electrical appliances with devices for managing or signal-processing the same at low costs.

Description

홈 네트워크 시스템 구축을 위한 스마트 게이트웨이{Smart Gateway for Building Home Network System}Smart Gateway for Building Home Network System

본 발명은 홈 네트워크 시스템을 구축하기 위한 스마트 게이트웨이에 관한 것이다.The present invention relates to a smart gateway for building a home network system.

이 부분에 기술된 내용은 단순히 본 실시예에 대한 배경 정보를 제공할 뿐 종래기술을 구성하는 것은 아니다.The content described in this section merely provides background information for the present embodiment and does not constitute the prior art.

홈 네트워크란 가전제품과 정보통신기기들 간에 데이터를 주고받을 수 있는 통로를 제공함과 동시에 외부 인터넷망과의 접속을 제공함으로써, 지능화된 커뮤니케이션이 가능하도록 하는 네트워킹 방식이다. 즉, 홈 네트워크는 유·무선 통신을 이용하여 도어벨, 전등, 냉장고 또는 에어컨 등 주요 가전제품을 제어하고 상태를 사용자에게 알리는 기술이다.A home network is a networking method that enables intelligent communication by providing a path through which data can be exchanged between home appliances and information and communication devices and at the same time providing access to an external Internet network. That is, the home network is a technology that uses wired/wireless communication to control major home appliances such as doorbells, lights, refrigerators or air conditioners and notify the user of the status.

현재로서 아파트, 빌라 또는 주택 시공 시 홈 네트워크를 구현하기 위해, RS-485 통신을 이용하고 있다. RS-485 통신은 유선 시리얼 통신으로서, 단말(Terminal)에 해당하는 각 가전제품과 그것들에서 출력되는 신호를 수신하여 처리하고 외부로 출력하는 전용 월패드 간을 연결한다. Currently, RS-485 communication is used to implement a home network when constructing an apartment, villa or house. RS-485 communication is wired serial communication and connects between each home appliance corresponding to a terminal and a dedicated wall pad that receives, processes, and outputs signals output from them.

전용 월패드는 각 가전제품과 연결되어 신호처리를 할 수 있는 물리적 한계가 존재하는 반면, 홈 네트워크가 가능해지는 가전제품의 종류는 점차 늘고 있다. 이에, 가정 내 많은 가전제품들의 홈 네트워킹을 위해서는 월패드가 더 추가되어야 하는데, 월패드는 시스템 단위로 설치되어야 하며, 통상 가정 내에 매설되어 설치되기에 상당한 비용이 추가된다.While there is a physical limit to the dedicated wall pad that can be connected to each home appliance to process signals, the types of home appliances that are capable of home networks are gradually increasing. Accordingly, for home networking of many home appliances in the home, a wall pad needs to be further added, and the wall pad needs to be installed in a system unit, and a considerable cost is added because it is usually buried and installed in the home.

이에, 저 비용으로도 증가하는 홈 네트워킹 가전제품들과 월패드 또는 그들을 제어하고 신호처리하기 위한 장치와 연결할 방안이 모색되고 있다.Accordingly, a method for connecting the increasing number of home networking home appliances at low cost to a wall pad or an apparatus for controlling and signal processing them is being sought.

본 발명의 일 실시예는, 저 비용으로도 다양한 홈 네트워킹 가전제품과 그를 관리하거나 신호처리하는 장치를 연결시키는 스마트 게이트웨이를 제공하는 데 일 목적이 있다.It is an object of the present invention to provide a smart gateway that connects various home networking home appliances and devices for managing or signal processing the same at low cost.

본 발명의 일 측면에 의하면, 유선 통신으로 제1 단말로부터 입력신호를 수신하거나, 상기 제1 단말로 응답신호를 전송하는 유선 통신부와 릴레이 통신으로 제2 단말로부터 입력신호를 수신하거나, 상기 제2 단말로 제어신호를 전송하는 릴레이 통신부와 기 설정된 제1 데이터 프레임을 갖는 신호를 관리장치로 전송하거나, 상기 관리장치로부터 기 설정된 제2 데이터 프레임을 수신하는 제1 통신부와 상기 유선 통신부가 수신한 입력신호 또는 상기 릴레이 통신부가 수신한 입력신호를 상기 기 설정된 제1 데이터 프레임으로 변환하거나, 상기 제1 통신부가 수신한 기 설정된 제2 데이터 프레임을 분석하여 상기 기 설정된 제2 데이터 프레임 내 응답신호 또는 제어신호를 확인하고, 상기 제1 통신부가 각각 상기 기 설정된 제1 데이터 프레임을 관리장치로 전송하거나, 상기 유선 통신부가 상기 제1 단말로 응답신호를 전송하거나, 상기 릴레이 통신부가 상기 제2 단말로 제어신호를 전송하도록 제어하는 제어부 및 상기 제어부가 데이터 프레임을 변환하기 위한 데이터 프레임 포맷을 저장하는 메모리부를 포함하는 것을 특징으로 하는 게이트웨이를 제공한다.According to an aspect of the present invention, receiving an input signal from a first terminal through wired communication, receiving an input signal from a second terminal through relay communication with a wired communication unit that transmits a response signal to the first terminal, or the second A relay communication unit that transmits a control signal to the terminal and a first communication unit that transmits a signal having a preset first data frame to the management device or receives a preset second data frame from the management device and the input received by the wired communication unit A signal or an input signal received by the relay communication unit is converted into the preset first data frame, or a response signal or control within the preset second data frame is analyzed by analyzing a preset second data frame received by the first communication unit. Check a signal, and the first communication unit transmits the preset first data frame to the management device, respectively, the wired communication unit transmits a response signal to the first terminal, or the relay communication unit controls the second terminal There is provided a gateway comprising: a control unit for controlling to transmit a signal; and a memory unit for storing a data frame format for the control unit to convert a data frame.

본 발명의 일 측면에 의하면, 상기 유선 통신부는 RS-232. RS-423 또는 RS-485를 이용하여 제1 단말과 통신하는 것을 특징으로 한다.According to one aspect of the present invention, the wired communication unit RS-232. It is characterized in that it communicates with the first terminal using RS-423 or RS-485.

본 발명의 일 측면에 의하면, 상기 제1 통신부는 TCP/IP를 이용하여 상기 관리장치와 통신하는 것을 특징으로 한다.According to an aspect of the present invention, the first communication unit is characterized in that it communicates with the management device using TCP/IP.

본 발명의 일 측면에 의하면, 상기 게이트웨이는 외부의 통신모듈과 연결될 수 있는 커넥터를 더 포함하는 것을 특징으로 한다.According to one aspect of the present invention, the gateway is characterized in that it further includes a connector that can be connected to an external communication module.

본 발명의 일 측면에 의하면, 상기 커넥터는 외부의 와이파이 모듈, RF 모듈, 지그비 모듈 또는 지웨이브 모듈과 연결되는 것을 특징으로 한다.According to one aspect of the present invention, the connector is characterized in that it is connected to an external Wi-Fi module, RF module, Zigbee module or Z-Wave module.

본 발명의 일 측면에 의하면, 상기 관리장치는 사용자 단말, 서버 또는 월패드를 포함하는 것을 특징으로 한다.According to one aspect of the present invention, the management device is characterized in that it includes a user terminal, a server or a wall pad.

이상에서 설명한 바와 같이, 본 발명의 일 측면에 따르면, 가정 내 홈 네트워킹 가전제품이 증가하더라도, 그를 관리하거나 신호처리하는 장치의 추가없이 간단히 양자를 연결할 수 있는 장점이 있다.As described above, according to one aspect of the present invention, even if the number of home networking home appliances in the home increases, there is an advantage in that it is possible to simply connect the two without adding a device for managing or signal processing them.

도 1은 본 발명의 일 실시예에 따른 홈 네트워크 시스템을 도시한 도면이다.
도 2는 본 발명의 일 실시예에 따른 스마트 게이트웨이의 구성을 도시한 도면이다.
도 3은 본 발명의 일 실시예에 따른 유선통신을 사용하는 단말과 관리장치 간의 데이터 흐름을 도시한 타이밍차트이다.
도 4는 본 발명의 일 실시예에 따른 릴레이 통신을 사용하는 단말과 관리장치 간의 데이터 흐름을 도시한 타이밍차트이다.
도 5는 본 발명의 일 실시예에 따른 스마트 게이트웨이가 입력장치로부터 입력신호를 받았을 때의 데이트 흐름을 도시한 타이밍차트이다.
도 6은 본 발명의 일 실시예에 따른 스마트 게이트웨이이 관리장치로 전송하기 위한 데이터의 프레임을 도시한 도면이다.
도 7은 본 발명의 일 실시예에 따른 관리장치가 스마트 게이트웨이로 전송하기 위한 데이터의 프레임을 도시한 도면이다.
도 8은 본 발명의 일 실시예에 따른 스마트 게이트웨이가 릴레이 통신을 사용하는 단말로부터의 응답을 관리장치로 전송하기 위한 데이터의 프레임을 도시한 도면이다.
도 9는 본 발명의 일 실시예에 따른 관리장치가 릴레이 통신을 사용하는 단말의 상태 확인을 위해 스마트 게이트웨이로 전송하기 위한 데이터의 프레임을 도시한 도면이다.
도 10은 본 발명의 일 실시예에 따른 스마트 게이트웨이가 입력장치로부터의 응답을 관리장치로 전송하기 위한 데이터의 프레임을 도시한 도면이다.
도 11은 본 발명의 일 실시예에 따른 관리장치가 단말의 동작 상태 확인을 위해 스마트 게이트웨이로 전송하기 위한 데이터의 프레임을 도시한 도면이다.
1 is a diagram illustrating a home network system according to an embodiment of the present invention.
2 is a diagram illustrating the configuration of a smart gateway according to an embodiment of the present invention.
3 is a timing chart illustrating a data flow between a terminal using wired communication and a management device according to an embodiment of the present invention.
4 is a timing chart illustrating a data flow between a terminal and a management device using relay communication according to an embodiment of the present invention.
5 is a timing chart illustrating a data flow when a smart gateway receives an input signal from an input device according to an embodiment of the present invention.
6 is a diagram illustrating a frame of data for a smart gateway to transmit to a management device according to an embodiment of the present invention.
7 is a diagram illustrating a frame of data for a management device to transmit to a smart gateway according to an embodiment of the present invention.
8 is a diagram illustrating a frame of data for a smart gateway to transmit a response from a terminal using relay communication to a management device according to an embodiment of the present invention.
9 is a diagram illustrating a frame of data for a management device to transmit to a smart gateway to check the status of a terminal using relay communication according to an embodiment of the present invention.
10 is a diagram illustrating a frame of data for a smart gateway to transmit a response from an input device to a management device according to an embodiment of the present invention.
11 is a diagram illustrating a frame of data for the management device to transmit to the smart gateway to check the operation state of the terminal according to an embodiment of the present invention.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시 예를 가질 수 있는 바, 특정 실시 예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.Since the present invention can have various changes and can have various embodiments, specific embodiments are illustrated in the drawings and described in detail. However, this is not intended to limit the present invention to a specific embodiment, it should be understood to include all modifications, equivalents and substitutes included in the spirit and scope of the present invention. In describing each figure, like reference numerals have been used for like elements.

제1, 제2, A, B 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 동력 수단요소로 명명될 수 있고, 유사하게 동력 수단요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.Terms such as first, second, A, and B may be used to describe various elements, but the elements should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, a first component may be named as a power means, and similarly, a power means may also be named as a first component. and/or includes a combination of a plurality of related listed items or any of a plurality of related listed items.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에서, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.When a component is referred to as being “connected” or “connected” to another component, it is understood that the other component may be directly connected or connected to the other component, but other components may exist in between. it should be On the other hand, when it is said that a certain element is "directly connected" or "directly connected" to another element, it should be understood that no other element is present in the middle.

본 출원에서 사용한 용어는 단지 특정한 실시 예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly dictates otherwise. It should be understood that terms such as “comprise” or “have” in the present application do not preclude the possibility of addition or existence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification in advance. .

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해서 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with the meaning in the context of the related art, and should not be interpreted in an ideal or excessively formal meaning unless explicitly defined in the present application. does not

또한, 본 발명의 각 실시예에 포함된 각 구성, 과정, 공정 또는 방법 등은 기술적으로 상호 간 모순되지 않는 범위 내에서 공유될 수 있다.In addition, each configuration, process, process, or method included in each embodiment of the present invention may be shared within a range that does not technically contradict each other.

도 1은 본 발명의 일 실시예에 따른 홈 네트워크 시스템을 도시한 도면이다.1 is a diagram illustrating a home network system according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일 실시예에 따른 홈 네트워크 시스템(100)은 홈 네트워킹 가전제품(110, 114), 입력장치(118), 스마트 게이트웨이(120) 및 관리장치를 포함한다. 관리장치로는 월패드(130), 서버(140) 또는 사용자 단말(150)이 포함될 수 있다.Referring to FIG. 1 , a home network system 100 according to an embodiment of the present invention includes home networking home appliances 110 and 114 , an input device 118 , a smart gateway 120 , and a management device. The management device may include the wall pad 130 , the server 140 , or the user terminal 150 .

홈 네트워킹 가전제품(110, 114, 이하에서 '단말'이라 칭함)은 스마트 게이트웨이(120)와 연결되어, 스마트 게이트웨이(120, 이하에서 '게이트웨이'라 약칭함)를 거쳐 응답신호를 관리장치로 전달하거나 관리장치로부터 제어신호를 수신한다. 단말(110)은 RS-232. RS-423 또는 RS-485와 같은 유선통신으로 게이트웨이(120)와 연결되어 데이터를 송·수신한다. 종래에는 단말이 유선통신으로 직접 관리장치와 연결되어, 자신의 입력신호나 상태정보 등을 전송하고 제어신호를 수신해왔다. 그러나 단말의 숫자가 많아지며 물리적으로 관리장치와의 통신이 곤란해지며, 단말(110)은 게이트웨이(120)와 통신하며 필요한 데이터를 송·수신한다.Home networking home appliances (110, 114, hereinafter referred to as 'terminal') are connected to the smart gateway 120 and transmit a response signal to the management device through the smart gateway 120 (hereinafter referred to as 'gateway') or receive a control signal from the management device. The terminal 110 is RS-232. It is connected to the gateway 120 through wired communication such as RS-423 or RS-485 to transmit/receive data. Conventionally, a terminal is directly connected to a management device through wired communication, and transmits its own input signal or status information and receives a control signal. However, as the number of terminals increases, it becomes difficult to physically communicate with the management device, and the terminal 110 communicates with the gateway 120 to transmit/receive necessary data.

또는, 단말(114)은 릴레이 통신을 이용하여 데이터를 송·수신한다. 릴레이 통신을 하는 단말(114)은 주로, 온(On) 또는 오프(Off)와 같이 이진법적으로 작동하는 기기들이 이에 해당한다. 예를 들어, 단말(114)에는 켜지거나 꺼지는 전등 또는 출입과 통제를 제어하는 도어락 등이 존재한다. 단말(114)은 게이트웨이(120)와 릴레이 통신으로 연결되어, 게이트웨이(120)로부터 제어신호를 수신한다.Alternatively, the terminal 114 transmits/receives data using relay communication. The terminal 114 for relay communication mainly corresponds to devices operating in binary such as on or off. For example, the terminal 114 includes a light that is turned on or off, or a door lock that controls access and control. The terminal 114 is connected to the gateway 120 through relay communication and receives a control signal from the gateway 120 .

입력장치(118)는 게이트웨이(120)와 직접 연결되어, 사용자의 입력을 게이트웨이(120)로 전달한다. 사용자가 입력장치(118)를 이용해 입력하는 입력신호의 종류마다 수행할 제어의 종류가 미리 결정되어 있으며, 결정된 제어의 종류는 게이트웨이(120) 내에 저장되어 있다. 예를 들어, 입력장치(118)가 사용자로부터 인가받은 짧은 입력 1회는 단말(110a)의 동작을 중단시키라는 명령일 수 있고, 긴 입력 1회는 단말(110a)의 동작을 재개하라는 명령일 수 있으며, 짧은 입력 3회는 모든 단말(110a)의 동작을 중단시키라는 명령일 수 있다. 이처럼, 입력장치(118)는 사용자 등으로부터 입력신호를 받아 게이트웨이(120)로 전달함으로써, 입력신호에 의해 정해진 동작이 수행될 수 있도록 한다. 단말(110, 114)과는 별도로 입력장치(118)가 게이트웨이(120)와 연결되어 입력신호를 전달함으로써, 사용자는 입력장치(118)를 이용해 간편하게 미리 정해진 일정한 동작들을 관리장치의 이용 없이도 수행시킬 수 있다.The input device 118 is directly connected to the gateway 120 and transmits the user's input to the gateway 120 . A type of control to be performed is predetermined for each type of input signal input by the user using the input device 118 , and the determined type of control is stored in the gateway 120 . For example, one short input received from the user by the input device 118 may be a command to stop the operation of the terminal 110a, and one long input may be a command to resume the operation of the terminal 110a. In addition, three short input times may be a command to stop the operation of all terminals 110a. In this way, the input device 118 receives an input signal from a user or the like and transmits it to the gateway 120 so that an operation determined by the input signal can be performed. Separately from the terminals 110 and 114 , the input device 118 is connected to the gateway 120 and transmits an input signal, so that the user can conveniently perform predetermined operations using the input device 118 without using a management device. can

게이트웨이(120)는 단말(110, 114)로부터 신호를 수신하여 관리장치로 전송하거나, 관리장치로부터의 신호를 단말(110, 114)들로 전송한다.The gateway 120 receives a signal from the terminals 110 and 114 and transmits it to the management device, or transmits a signal from the management device to the terminals 110 and 114 .

전술한 대로, 단말(110, 114)은 주로 유선통신을 사용하고 있는 반면, 관리장치는 종류도 다양하고 각 종류마다 사용하는 통신방식도 상이하다. 주로 관리장치는 다른 장치들과 무선통신으로 데이터를 송·수신하는데, TCP/IP, 와이파이, 블루투스, 지그비, 지웨이브 또는 RF 통신 등 다양한 통신 포맷이 있을 수 있다. 종래에는 유선통신을 사용하는 관리장치만이 단말과 통신할 수 있었거나, 유선통신을 위한 별도의 통신모듈을 관리장치가 구비해야만 했다. 그러나 배경이 되는 기술 부분에서 언급한 대로, 관리장치의 추가나 매설은 상당한 비용이 소모되는 문제가 있다. 이에, 게이트웨이(120)는 단말(110, 114) 및 관리장치 중 어느 하나로부터 데이터를 수신받고, 나머지 하나와의 통신을 위해 나머지 하나에 적합한 데이터 프레임으로 수신한 데이터의 프레임을 가변한다. As described above, while the terminals 110 and 114 mainly use wired communication, there are various types of management devices, and communication methods used for each type are also different. Mainly, the management device transmits and receives data through wireless communication with other devices, and there may be various communication formats such as TCP/IP, Wi-Fi, Bluetooth, Zigbee, Z-Wave or RF communication. Conventionally, only the management device using wired communication could communicate with the terminal, or the management device had to provide a separate communication module for wired communication. However, as mentioned in the background technology section, there is a problem that the addition or burial of the management device consumes considerable costs. Accordingly, the gateway 120 receives data from any one of the terminals 110 and 114 and the management device, and changes the received data frame to a data frame suitable for the other one for communication with the other one.

특히, 단말(110)이 RS-485와 같은 유선통신을 사용하는 경우, RS-485는 표준(KSX 4506)이 존재하기는 하나 각 제조사마다 상이한 데이터 프레임을 사용하고 있는 상황이다. 이러한 문제로 인해, 종래에는 관리장치와 단말이 유선통신으로 연결되더라도 호환성이 상당히 떨어지는 문제가 존재해왔다. 게이트웨이(120)는 각 제조사들의 데이터 프레임을 저장하고 있으며, 단말(110)로부터 수신한 데이터를 분석하여 기 설정된 데이터 프레임으로 변환한다. 게이트웨이(120)는 관리장치로 변환한, 기 설정된 데이터 프레임을 전송함으로서, 관리장치가 어떠한 단말(110)과도 호환성을 확보할 수 있도록 한다. 반대로, 게이트웨이(120)는 관리장치로부터 수신되는 제어신호 등을 분석하여 단말(110, 114)로 전송한다. 가정 내 모든 단말(110)과 관리장치가 하나의 통신방식으로 통일되지 않더라도, 게이트웨이(120)에 의해 원활하게 데이터를 송·수신할 수 있다.In particular, when the terminal 110 uses wired communication such as RS-485, the RS-485 standard (KSX 4506) exists, but different data frames are used for each manufacturer. Due to this problem, there has been a problem in that compatibility is considerably lowered even when the management device and the terminal are connected through wired communication. The gateway 120 stores the data frames of each manufacturer, analyzes the data received from the terminal 110, and converts it into a preset data frame. The gateway 120 transmits a preset data frame converted to the management device so that the management device can secure compatibility with any terminal 110 . Conversely, the gateway 120 analyzes a control signal received from the management device and transmits it to the terminals 110 and 114 . Even if all the terminals 110 and the management device in the home are not unified in one communication method, data can be smoothly transmitted and received by the gateway 120 .

게이트웨이(120)는 입력장치(118)로부터 입력 신호를 수신하며, 입력신호에 따라 단말(110, 114)을 동작시키고 관리장치로 이를 전달한다. 전술한 대로, 입력신호에 대응되는 단말의 동작을 제어하기 위한 제어의 종류가 결정되어 있다, 이에, 게이트웨이(120)는 수신한 입력신호에 따라 그에 부합하는 단말의 동작을 제어한다. 이와 함께, 해당 단말의 상태를 인지할 수 있도록, 게이트웨이(120)는 단말의 동작을 제어하였음을 관리장치로 전달하여 공유한다.The gateway 120 receives an input signal from the input device 118, operates the terminals 110 and 114 according to the input signal, and transmits it to the management device. As described above, the type of control for controlling the operation of the terminal corresponding to the input signal is determined. Accordingly, the gateway 120 controls the operation of the terminal corresponding thereto according to the received input signal. At the same time, so that the state of the corresponding terminal can be recognized, the gateway 120 transmits and shares that it has controlled the operation of the terminal to the management device.

관리장치는 단말(110, 114)의 상태정보나 입력신호로부터 단말(110, 114)의 상태를 확인하며, 단말(110, 114)의 동작을 제어한다. 관리장치는 단말(110, 114)의 상태 확인과 동작 제어를 위해, 게이트웨이(120)를 거쳐 단말(110, 114)과 통신하여 필요한 데이터를 송·수신한다. 관리장치는 월패드(130), 서버(140) 또는 사용자 단말(150)로 구현될 수 있으며, 각 종류에 따라 다양한 통신방식으로 게이트웨이(120)와 통신할 수 있다.The management device checks the status of the terminals 110 and 114 from the status information or input signals of the terminals 110 and 114 and controls the operation of the terminals 110 and 114 . The management device transmits/receives necessary data by communicating with the terminals 110 and 114 via the gateway 120 for status check and operation control of the terminals 110 and 114 . The management device may be implemented as the wall pad 130 , the server 140 , or the user terminal 150 , and may communicate with the gateway 120 in various communication methods according to each type.

월패드(130), 서버(140) 및 사용자 단말(150)은 게이트웨이(120)로부터 수신한 단말(110, 114)의 상태정보나 입력신호를 출력하여 사용자가 이를 인지할 수 있도록 한다. 또한, 월패드(130), 서버(140) 및 사용자 단말(150)은 전술한 정보의 출력 전·후로 사용자로부터 입력을 수신하여 이를 게이트웨이(120)로 전달함으로써, 사용자의 제어대로 단말(110, 114)이 동작할 수 있도록 한다. 월패드(130)는 보통 가정 내에 매설되며 TCP/IP 등과 같은 유선통신을 이용하여 게이트웨이(120)와 연결될 수 있다. 사용자 단말(150)은 사용자가 지닐 수 있는 단말, 예를 들어, 스마트폰 등으로 구현될 수 있으며, 사용자가 지니며 단말(110, 114)의 상태를 확인하고 동작을 제어할 수 있도록 한다. 사용자 단말(150)은 와이파이, 블루투스, 지그비 또는 지웨이브 등 다양한 무선통신을 사용하여 데이터를 송·수신한다. 서버(140)는 사용자가 구비하거나 데이터 수집을 위한 별도의 관리자가 지니는 장치로서, TCP/IP 등과 같은 유선통신이나 RF 통신 등의 무선통신을 사용할 수 있다.The wall pad 130 , the server 140 , and the user terminal 150 output status information or input signals of the terminals 110 and 114 received from the gateway 120 so that the user can recognize them. In addition, the wall pad 130 , the server 140 , and the user terminal 150 receive an input from the user before and after the output of the above-described information and transmit it to the gateway 120 , thereby controlling the terminal 110 , 114) to work. The wall pad 130 is usually embedded in a home and may be connected to the gateway 120 using wired communication such as TCP/IP. The user terminal 150 may be implemented as a terminal that the user can carry, for example, a smart phone, etc., and the user can check the status of the terminals 110 and 114 and control the operation. The user terminal 150 transmits/receives data using various wireless communications such as Wi-Fi, Bluetooth, Zigbee or G-Wave. The server 140 is a device provided by a user or a separate manager for data collection, and may use wired communication such as TCP/IP or wireless communication such as RF communication.

도 2는 본 발명의 일 실시예에 따른 스마트 게이트웨이의 구성을 도시한 도면이다. 2 is a diagram illustrating the configuration of a smart gateway according to an embodiment of the present invention.

도 2를 참조하면, 게이트웨이(120)는 유선 통신부(210), 릴레이 통신부(213), 제1 통신부(216), 데이터 입력부(219), 커넥터(220), 제어부(230) 및 메모리부(240)를 포함한다.Referring to FIG. 2 , the gateway 120 includes a wired communication unit 210 , a relay communication unit 213 , a first communication unit 216 , a data input unit 219 , a connector 220 , a control unit 230 , and a memory unit 240 . ) is included.

유선 통신부(210)는 유선통신을 사용하는 단말(110)과 연결되어, 단말(110)로부터 신호를 수신하거나 단말(110)로 신호를 전송한다. 유선 통신부(210)는 예를 들어, RS-232. RS-423 또는 RS-485와 같은 통신 포맷을 사용하는 통신 모듈로 구현될 수 있으며, 단말(110)과 직접 연결되어 단말(110)과 신호를 송·수신한다. 유선 통신부(210)는 관리장치로부터의 상태 확인신호를 단말(110)로 전송할 수 있고, 단말(110)로부터 입력신호나 상태 확인신호에 대한 응답신호를 유선통신으로 수신할 수 있다. 또한, 유선 통신부(210)는 데이터 입력부(219)가 입력받은 입력신호에 따라, 제어부(230)의 제어에 의해 단말(110)로 제어신호를 전송할 수 있다.The wired communication unit 210 is connected to the terminal 110 using wired communication to receive a signal from the terminal 110 or transmit a signal to the terminal 110 . Wired communication unit 210, for example, RS-232. It may be implemented as a communication module using a communication format such as RS-423 or RS-485, and is directly connected to the terminal 110 to transmit/receive a signal to and from the terminal 110 . The wired communication unit 210 may transmit a status check signal from the management device to the terminal 110 , and may receive an input signal or a response signal to the status check signal from the terminal 110 through wired communication. Also, the wired communication unit 210 may transmit a control signal to the terminal 110 under the control of the control unit 230 according to an input signal received by the data input unit 219 .

도 2에는 하나의 유선 통신부(210)만이 포함된 것처럼 도시되어 있으나, 반드시 이에 한정되는 것은 아니고 복수 개가 포함될 수 있다.Although only one wired communication unit 210 is illustrated in FIG. 2 , the present invention is not limited thereto, and a plurality of wired communication units 210 may be included.

릴레이 통신부(213)는 릴레이 통신을 사용하는 단말(114)과 연결되어, 단말(114)로부터 신호를 수신하거나 단말(114)로 신호를 전송한다. 릴레어 통신부(213)는 단말(114)로부터 입력신호를 수신한다. 또한, 제1 통신부(216)가 관리장치로부터 입력신호에 대응하는 단말(114)의 제어 동작에 관한 신호를 수신하면, 릴레이 통신부(213)는 주로 연결된 단말(114)로 제어 신호를 전달한다. 또한, 릴레이 통신부(213)는 데이터 입력부(219)가 입력받은 입력신호에 따라, 제어부(230)의 제어에 의해 단말(114)로 제어신호를 전송할 수 있다.The relay communication unit 213 is connected to the terminal 114 using relay communication to receive a signal from the terminal 114 or transmit a signal to the terminal 114 . The relay communication unit 213 receives an input signal from the terminal 114 . In addition, when the first communication unit 216 receives a signal related to the control operation of the terminal 114 corresponding to the input signal from the management device, the relay communication unit 213 mainly transmits the control signal to the connected terminal 114 . Also, the relay communication unit 213 may transmit a control signal to the terminal 114 under the control of the control unit 230 according to an input signal received by the data input unit 219 .

마찬가지로, 도 2에는 하나의 릴레이 통신부(213)만이 포함된 것처럼 도시되어 있으나, 반드시 이에 한정되는 것은 아니고 복수 개가 포함될 수 있다.Similarly, although only one relay communication unit 213 is illustrated in FIG. 2 , the present invention is not limited thereto, and a plurality of relay communication units 213 may be included.

제1 통신부(216)는 관리장치와 호환되는 유·무선 통신 방식을 이용하여 제어부(230)에 의해 변환된 데이터 프레임을 관리장치로 전송하거나, 관리장치로부터 데이터를 수신한다. 제1 통신부(216)는 TCP/IP, 와이파이, 블루투스, 지그비, 지웨이브 또는 RF 통신 등 관리장치와 호환되는 다양한 방식의 통신 포맷으로 구현된다. 이에, 제1 통신부(216)는 유선 통신부(210) 또는 릴레이 통신부(213)가 단말로부터 수신하여 제어부(230)에 의해 데이터 프레임이 변환된 데이터를 관리장치로 전달한다. 또는 제1 통신부(216)는 관리장치가 단말로 전달하기 위한 제어신호를 관리장치로부터 수신한다.The first communication unit 216 transmits the data frame converted by the control unit 230 to the management apparatus using a wired/wireless communication method compatible with the management apparatus, or receives data from the management apparatus. The first communication unit 216 is implemented in various communication formats compatible with the management device, such as TCP/IP, Wi-Fi, Bluetooth, Zigbee, Z-Wave, or RF communication. Accordingly, the first communication unit 216 transmits the data in which the wired communication unit 210 or the relay communication unit 213 is received from the terminal and the data frame is converted by the control unit 230 to the management device. Alternatively, the first communication unit 216 receives a control signal for the management device to transmit to the terminal from the management device.

마찬가지로, 도 2에는 하나의 제1 통신부(216)만이 포함된 것처럼 도시되어 있으나, 반드시 이에 한정되는 것은 아니고 복수 개가 포함될 수 있다.Similarly, although only one first communication unit 216 is illustrated in FIG. 2 , it is not necessarily limited thereto, and a plurality of first communication units 216 may be included.

데이터 입력부(219)는 입력장치(118)와 연결되어 입력장치(118)의 입력신호를 수신한다. 주로, 입력장치(118)는 데이터 입력부(219)로 직접 연결되거나, 유선으로 연결될 수 있다. 데이터 입력부(219)는 사용자로부터 입력장치(118)가 입력받은 입력신호를 수신하여 제어부(230)로 전달한다.The data input unit 219 is connected to the input device 118 to receive an input signal from the input device 118 . Mainly, the input device 118 may be directly connected to the data input unit 219 or may be connected by wire. The data input unit 219 receives the input signal received by the input device 118 from the user and transmits it to the control unit 230 .

커넥터(220)는 외부의 통신모듈과 장착되어, 게이트웨이(120)에 다양한 통신포맷을 지원한다. 제1 통신부(216)가 관리장치와 호환되는 다양한 통신방식 중 어느 하나로 구현되어 통신을 지원하나, 제1 통신부(216)가 내부에 장착되는 모듈로 구현되기 곤란한 경우가 존재할 수도 있고, 서로 다른 통신방식을 갖는 다른 관리장치가 추가로 존재하는 경우도 있을 수 있다. 이러한 경우, 커넥터(220)는 특정 통신 포맷을 지원하는 외부의 통신모듈과 연결되어, 게이트웨이(120)와 관리장치 간 통신을 지원한다. 예를 들어, 제1 통신부(216)가 지그비가 아닌 다른 포맷으로 관리장치와 통신하고 있을 경우, 커넥터(220)에 지그비 통신모듈이 장착되어 지그비로 특정 관리장치와 통신을 수행할 수 있다. 게이트웨이(120)는 커넥터(220)를 포함함으로써 통신방식의 다양성을 확보할 수 있다.The connector 220 is mounted with an external communication module to support various communication formats for the gateway 120 . Although the first communication unit 216 is implemented in any one of various communication methods compatible with the management device to support communication, there may be cases in which it is difficult to implement the first communication unit 216 as a module mounted therein, and different communication There may be cases in which other management devices having a method additionally exist. In this case, the connector 220 is connected to an external communication module supporting a specific communication format to support communication between the gateway 120 and the management device. For example, when the first communication unit 216 is communicating with a management device in a format other than ZigBee, a ZigBee communication module is mounted on the connector 220 to communicate with a specific management device using ZigBee. The gateway 120 may secure diversity of communication methods by including the connector 220 .

제어부(230)는 유선 통신부(210) 또는 릴레이 통신부(213)가 각 단말(110, 114)로부터 수신한 데이터의 포맷을 기 설정된 데이터 프레임으로 변환하여 관리장치로 전송하거나, 기 설정된 데이터 프레임을 갖는 데이터를 관리장치로부터 수신하여 분석한 후 단말(110, 114)로 전송한다. 또는, 제어부(230)는 데이터 입력부로부터 수신한 입력신호에 따라 단말을 제어한 후, 기 설정된 데이터 프레임으로 단말의 상태정보를 관리장치로 전달하거나 기 설정된 데이터 프레임으로 관리장치로부터 응답신호를 수신한다.The controller 230 converts the format of the data received by the wired communication unit 210 or the relay communication unit 213 from each terminal 110 and 114 into a preset data frame and transmits it to the management device, or has a preset data frame. Data is received from the management device, analyzed, and then transmitted to the terminals 110 and 114 . Alternatively, the control unit 230 controls the terminal according to the input signal received from the data input unit, and then transmits the state information of the terminal to the management device in a preset data frame or receives a response signal from the management device in a preset data frame. .

제어부(230)는 유선 통신부(210)가 단말(110)로부터 수신한 데이터의 포맷을 변환하여 (제1 통신부(216)가) 관리장치로 전송하도록 하거나, (제1 통신부(216)가) 관리장치로부터 수신한 신호를 분석하여 단말(110)로 전송하도록 한다. 전술한 대로, 단말(110)은 유선 통신 포맷을 사용하고 있으며, 단말(110) 내에서도 표준 데이터 프레임이 아닌 다양한 데이터 프레임을 이용하여 통신한다. 이에, 제어부(230)는 단말로부터 수신한 데이터를 관리장치가 인식할 수 있도록, 관리장치로 송신할 데이터를 기 설정된 제1 데이터 프레임으로 변환한다. 또한, 관리장치는 제어부(230)가 인지할 수 있도록, 단말(110)의 제어신호나 단말(110)의 상태를 확인하기 위한 신호를 기 설정된 제2 데이터 프레임으로 전송한다. 제어부(230)는 기 설정된 제2 데이터 프레임을 분석하여 수신한 신호를 단말(110)로 전송한다. 기 설정된 제1 데이터 프레임과 기 설정된 제2 데이터 프레임은 각각 도 6 및 도 7에 도시되어 있다.The control unit 230 converts the format of the data received by the wired communication unit 210 from the terminal 110 (the first communication unit 216) to transmit it to the management device, or (the first communication unit 216) manages it The signal received from the device is analyzed and transmitted to the terminal 110 . As described above, the terminal 110 uses a wired communication format, and the terminal 110 communicates using various data frames instead of standard data frames. Accordingly, the controller 230 converts data to be transmitted to the management device into a preset first data frame so that the management device can recognize the data received from the terminal. In addition, the management device transmits a control signal of the terminal 110 or a signal for confirming the state of the terminal 110 as a preset second data frame so that the controller 230 can recognize it. The controller 230 analyzes the preset second data frame and transmits the received signal to the terminal 110 . The preset first data frame and the preset second data frame are respectively illustrated in FIGS. 6 and 7 .

도 6은 본 발명의 일 실시예에 따른 스마트 게이트웨이이 관리장치로 전송하기 위한 데이터의 프레임을 도시한 도면이다. 6 is a diagram illustrating a frame of data for a smart gateway to transmit to a management device according to an embodiment of the present invention.

도 6을 참조하면, 게이트웨이(120)가 관리장치로 데이터를 전송함에 있어서의 데이터 프레임을 확인할 수 있다. Referring to FIG. 6 , a data frame may be checked when the gateway 120 transmits data to the management device.

Length Device ID 필드는 게이트웨이(120)에 부여된 ID 값의 길이를 의미하는 필드로서, 관리장치가 게이트웨이(120)를 식별하는데 사용된다. The Length Device ID field is a field indicating the length of the ID value assigned to the gateway 120 , and is used by the management device to identify the gateway 120 .

Device ID 필드는 게이트웨이(120)에 부여된 ID 값으로서, 값이 가변할 수 있다.The Device ID field is an ID value assigned to the gateway 120 and may have a variable value.

Length MAC 필드는 게이트웨이(120)의 MAC 주소(Address)의 길이를 의미하는 필드이다.The Length MAC field is a field indicating the length of the MAC address of the gateway 120 .

MAC 필드는 게이트웨이(120)의 MAC 주소를 의미하는 필드이다.The MAC field is a field indicating the MAC address of the gateway 120 .

Port 필드는 관리장치로 전송할 데이터를 받아들인 포트 번호를 의미하는 필드로서, 어떠한 통신부(210, 213)가 어떠한 단말(110, 114)로부터 데이터를 수신하였는지를 관리장치가 인지할 수 있도록 한다. 관리장치는 어떠한 단말(110, 114)로부터 데이터를 수신하였는지에 따라 어떠한 통신 포맷의 데이터인지를 확인할 수 있다.The Port field is a field indicating a port number through which data to be transmitted to the management device is received, and enables the management device to recognize which communication units 210 and 213 have received data from which terminals 110 and 114 . The management device may check the data in which communication format according to which terminal (110, 114) the data is received.

Data 필드는 수신한 데이터에 관한 필드로서, 단말(110, 114)로부터 수신한 데이터를 가공없이 그대로 서버로 전송한다. The Data field is a field related to received data, and the data received from the terminals 110 and 114 is transmitted to the server as it is without processing.

게이트웨이(120)는 이처럼 데이터 프레임을 변형하여 제1 통신부(216)를 이용해 관리장치로 전송한다. 이에 따라, 단말(110, 114)로부터 어떠한 데이터 포맷으로 수신하더라도 관리장치가 인지할 수 있도록 한다.The gateway 120 transforms the data frame in this way and transmits it to the management device using the first communication unit 216 . Accordingly, the management device can recognize any data format received from the terminals 110 and 114 .

게이트웨이(120)는 관리장치로 전송하는 데이터 프레임 내에 Device ID와 MAC 주소를 하나의 필드로 포함시켜 전송한다. 게이트웨이(120)는 제1 통신부(216)를 이용하여 관리장치와 최초 연결되는 경우, 자신의 Device ID와 MAC 주소를 전송하여 관리장치에 등록해 둔다. 이에, 관리장치는 관리장치 자신과 연결될 게이트웨이를 식별하고 인지할 수 있다. 이후, 도 6에서와 같이, 데이터 프레임 내에 Device ID와 MAC 주소를 하나의 필드로 시킴으로써, 게이트웨이(120)는 관리장치가 자신을 인지할 수 있도록 한다. The gateway 120 transmits the device ID and MAC address as one field in the data frame transmitted to the management device. When the gateway 120 is first connected to the management device using the first communication unit 216 , it transmits its Device ID and MAC address and registers it in the management device. Accordingly, the management device may identify and recognize the gateway to be connected to the management device itself. Thereafter, as shown in FIG. 6 , the gateway 120 allows the management device to recognize itself by using the device ID and the MAC address as one field in the data frame.

도 7은 본 발명의 일 실시예에 따른 관리장치가 스마트 게이트웨이로 전송하기 위한 데이터의 프레임을 도시한 도면이다.7 is a diagram illustrating a frame of data for a management device to transmit to a smart gateway according to an embodiment of the present invention.

도 7을 참조하면, 관리장치가 게이트웨이(120)로 데이터를 전송함에 있어서의 데이터 프레임을 확인할 수 있다. Referring to FIG. 7 , a data frame when the management device transmits data to the gateway 120 may be checked.

STX 필드는 데이터 프레임의 시작을 의미하는 필드로서, 예를 들어 0x02 값을 가질 수 있다.The STX field is a field indicating the start of a data frame, and may have, for example, a value of 0x02.

Port 필드는 게이트웨이에서의 포트 번호를 의미하는 필드이다. 게이트웨이(120)는 유선 통신부(210) 및 릴레이 통신부(213)를 포함하며, 각 통신부(210, 213)는 복수 개가 포함될 수 있다. 이에, Port 필드는 게이트웨이가 관리장치로부터 수신한 데이터를 어떠한 통신부로 전송할 것인지를 의미한다.The Port field is a field indicating a port number in the gateway. The gateway 120 includes a wired communication unit 210 and a relay communication unit 213 , and a plurality of communication units 210 and 213 may be included. Accordingly, the Port field indicates to which communication unit the gateway transmits data received from the management device.

SEQ 필드는 관리장치가 게이트웨이로 송신한 데이터 프레임의 번호를 의미하는 필드로서, 일종의 검증을 위한 필드이다.The SEQ field is a field indicating the number of the data frame transmitted by the management device to the gateway, and is a kind of verification field.

Total Length 필드는 Length와 Data 전체의 길이를 의미하는 필드로서, 이 값에 의해 Data 필드의 길이가 결정된다. 이 필드의 값이 0이면, Data 필드는 없는 것을 의미한다.The Total Length field is a field indicating Length and the total length of Data, and the length of the Data field is determined by this value. If the value of this field is 0, it means that there is no Data field.

Length 필드는 각 Data 필드의 길이를 의미하는 필드이다.The Length field is a field indicating the length of each Data field.

Data 필드는 데이터 프레임이 실제로 전송할 데이터가 포함되는 필드이다.The Data field is a field that contains data to be actually transmitted by the data frame.

ETX는 프레임의 종료를 의미하는 필드로서, 예를 들어, 0x03 값을 가질 수 있다. ETX is a field indicating the end of the frame, and may have, for example, a value of 0x03.

예를 들어, 관리장치로부터 게이트웨이(120)로 전송되는 데이터 프레임이 다음과 같을 수 있다.For example, a data frame transmitted from the management device to the gateway 120 may be as follows.

<Buffer 02 00 01 0a 09 ac c0 05 10 00 13 04 01 00 03><Buffer 02 00 01 0a 09 ac c0 05 10 00 13 04 01 00 03>

버퍼가 존재한 후, 02 값으로부터 STX 필드가 등장함을 확인할 수 있다. Port 필드는 00 값을 가지며 게이트웨이(120) 내 0번 포트가 사용됨을 알린다. SEQ 필드 값이 01 0a값을 갖는다. 전송될 데이터가 <ac c0 05 10 00 13 04 01 00> 이기 때문에, Total Length 필드 값은 09가 된다. Total Length 필드 이후, Data 들이 포함되며, 03 값으로부터 ETX 필드가 등장함을 확인할 수 있다. 게이트웨이(120)는 02 값으로부터 데이터 프레임의 시작을 확인하고, 00값으로부터 0번 포트로 데이터를 전송해야 함을 확인한다. 이후, 게이트웨이(120)는 09 값으로부터 데이터의 길이를 확인하여 데이터를 확인하고, 03값으로부터 데이터 프레임의 종료를 확인한다.After the buffer exists, it can be confirmed that the STX field appears from the value 02. The Port field has a value of 00 and indicates that port 0 in the gateway 120 is used. The SEQ field has a value of 01 0a. Since the data to be transmitted is <ac c0 05 10 00 13 04 01 00>, the Total Length field value becomes 09. Data are included after the Total Length field, and it can be confirmed that the ETX field appears from the value 03. The gateway 120 confirms the start of the data frame from the value 02, and confirms that data should be transmitted from the value 00 to port 0. Thereafter, the gateway 120 confirms the data by checking the length of the data from the value 09, and confirms the end of the data frame from the value 03.

다시 도 2를 참조하면, 단말(114)로부터 릴레이 통신을 이용한 데이터가 수신되는 경우, 제어부(230)는 단말(114)로부터 수신한 (릴레이 통신) 데이터를 관리장치가 인식할 수 있도록, 관리장치로 송신할 데이터를 기 설정된 제3 데이터 프레임으로 변환한다. 제어부(230)는 (릴레이 통신) 데이터를 기 설정된 제3 데이터 프레임으로 변환한 후, 기 설정된 제1 데이터 프레임과 결합하여 (제1 통신부(216_가) 관리장치로 전송하도록 한다. 또한, 관리장치는 수신한 (릴레이 통신) 데이터에 대한 응답신호나 동작 지시를 전송할 수 있다. 관리장치는 제어부(230)가 인지할 수 있도록, 응답신호나 동작 지시를 위한 신호를 기 설정된 제4 데이터 프레임으로 전송한다. 관리장치는 기 설정된 제4 데이터 프레임을 전송함에 있어, 기 설정된 제2 데이터 프레임과 결합한 후 게이트웨이(120)로 전송한다. 제어부(230)는 수신한 데이터 프레임을 분석하여 기 설정된 제4 데이터 프레임을 확인한 후, 기 설정된 제4 데이터 프레임 내 데이터를 단말(114)로 전송하도록 릴레이 통신부(213)를 제어한다. 기 설정된 제3 데이터 프레임 및 기 설정된 제4 데이터 프레임은 도 8 및 도 9에 도시되어 있다.Referring back to FIG. 2 , when data using relay communication is received from the terminal 114 , the control unit 230 controls the management device to recognize (relay communication) data received from the terminal 114 so that the management device can recognize the data. converts data to be transmitted into a preset third data frame. The control unit 230 converts (relay communication) data into a preset third data frame, combines it with the preset first data frame, and transmits it to the management device (the first communication unit 216_). The device may transmit a response signal or an operation instruction for the received (relay communication) data, and the management device converts the response signal or the operation instruction signal into a preset fourth data frame so that the control unit 230 can recognize it. When transmitting the preset fourth data frame, the management device combines with the preset second data frame and transmits it to the gateway 120. The control unit 230 analyzes the received data frame and transmits the preset fourth data frame. After checking the data frame, the relay communication unit 213 is controlled to transmit data in the preset fourth data frame to the terminal 114. The preset third data frame and the preset fourth data frame are shown in Figs. is shown in

도 8은 본 발명의 일 실시예에 따른 스마트 게이트웨이가 릴레이 통신을 사용하는 단말로부터의 응답을 관리장치로 전송하기 위한 데이터의 프레임을 도시한 도면이다. 8 is a diagram illustrating a frame of data for a smart gateway to transmit a response from a terminal using relay communication to a management device according to an embodiment of the present invention.

도 8을 참조하면, 게이트웨이(120)가 관리장치로 데이터를 전송함에 있어서의 데이터 프레임을 확인할 수 있다. Referring to FIG. 8 , a data frame may be checked when the gateway 120 transmits data to the management device.

Header 필드는 릴레이 통신을 이용하여 수신한 데이터를 전송함을 알리기 위한 필드로서, STX와는 다른 값을 갖는다. 예를 들어, Header 필드는 0xF7값을 가질 수 있다.The Header field is a field for notifying that received data is transmitted using relay communication, and has a value different from that of STX. For example, the Header field may have a value of 0xF7.

Device ID 필드 및 Device Sub ID 필드는 단말(114)에 부여된 ID 값을 의미하는 필드로서, 관리장치가 단말(114)을 식별하는데 사용된다. The Device ID field and the Device Sub ID field are fields indicating an ID value assigned to the terminal 114 , and are used by the management device to identify the terminal 114 .

Command Type 필드는 데이터 프레임을 전송하며 지시하고자 하는 정보를 포함하는 필드로서, 해당 필드 값에 따라 지시 내용이 달라진다. 예를 들어, Command Type 필드값이 0x01일 경우, 단말(114)로 상태 정보를 요구하도록 하는 내용일 수 있다. Command Type 필드값이 0x41일 경우, 단말(114)이 특정 동작을 수행하도록 하는 내용일 수 있다. Command Type 필드값이 0x81일 경우, 단말(114)로부터 상태 정보 요구에 응답하는 내용일 수 있다. Command Type 필드값이 0xC1일 경우, 요구받은 특정 동작에 응답하는 내용일 수 있다.The Command Type field transmits a data frame and includes information to be indicated, and the content of the instruction varies according to a corresponding field value. For example, when the Command Type field value is 0x01, it may be a content to request status information from the terminal 114 . When the Command Type field value is 0x41, it may be a content that causes the terminal 114 to perform a specific operation. When the Command Type field value is 0x81, it may be the content responding to the status information request from the terminal 114 . When the Command Type field value is 0xC1, it may be content in response to a specific requested operation.

Length 필드는 데이터 필드의 길이를 의미하는 필드로서, 일정한 값을 갖는다. 단말(114)은 이진법적으로 작동하기 때문에, 데이터 필드 값은 길이변화없이 양자 중 하나로 선택된다. 이에 Length 필드는 일정한 값을 갖는다. The Length field is a field indicating the length of the data field and has a constant value. Since the terminal 114 operates binary, the data field value is chosen either without changing the length. Accordingly, the Length field has a constant value.

Data 필드는 단말(114)의 동작 내용을 의미하는 필드로서, 단말(114)의 이진법적인 작동으로 인해 선택적인 값을 갖는다.The Data field is a field indicating the contents of the operation of the terminal 114 and has an optional value due to the binary operation of the terminal 114 .

Xor Sum 필드는 프레임의 무결성을 검증하기 위한 필드로서, 헤더에서 해당 필드 이전까지의 각 필드값들의 XOR 결과값을 갖는다.The Xor Sum field is a field for verifying the integrity of the frame, and has an XOR result value of each field value from the header to the previous field.

Add Sum 필드도 마찬가지로 프레임의 무결성을 검증하기 위한 필드로서, 헤더에서 해당 필드 이전까지의 각 필드값들의 Add 결과값을 갖는다.The Add Sum field is also a field for verifying the integrity of the frame, and has the Add result value of each field value from the header to the previous field.

예를 들어, 기 설정된 제2 데이터 프레임은 다음과 같을 수 있다. For example, the preset second data frame may be as follows.

[0xf7 0x31 0x01 0xc1 0x02 0x00 0x01 0x05 0xf2][0xf7 0x31 0x01 0xc1 0x02 0x00 0x01 0x05 0xf2]

여기서 f7은 헤더 필드 값을 의미하며, 31은 단말(114)의 종류를 의미하는 Device ID 필드값을 의미한다. 01은 단말(114)과 연결된 릴레이 통신부(213)를 의미하며, c1은 Command Type 필드 값으로 요구받은 특정 동작에 응답하는 내용을 의미한다. 02는 Length 필드 값으로, Data의 길이를, 00은 오류코드를, 01은 Data 필드 값으로 단말(114)이 수행한 특정 동작을 의미한다. 05와 f2는 각각 Xor Sum 필드와 Add Sum 필드값을 의미한다. Here, f7 denotes a header field value, and 31 denotes a Device ID field value indicating the type of the terminal 114 . 01 denotes the relay communication unit 213 connected to the terminal 114, and c1 denotes the content responding to a specific operation requested as a value of the Command Type field. 02 is a Length field value, data length, 00 is an error code, and 01 is a Data field value, indicating a specific operation performed by the terminal 114 . 05 and f2 mean the values of the Xor Sum field and the Add Sum field, respectively.

제어부(230)는 이처럼 변환된 기 설정된 제3 데이터 프레임을 기 설정된 제1 데이터 프레임과 결합하여 전송한다. 전술한 예에서, 기 설정된 제3 데이터 프레임이 [0xf7 0x31 0x01 0xc1 0x02 0x00 0x01 0x05 0xf2]인 경우, 다음과 같은 데이터가 전송될 수 있다. 기 설정된 제1 데이터 프레임은 (Length Device ID 필드), Device ID 필드, (Length MAC 필드), MAC 필드, Port 필드 및 Data 필드를 갖는다. Data를 제외한 각 필드에는 적절한 필드값이 포함되며, Data 필드에 기 설정된 제3 데이터 프레임이 데이터 값으로 포함된다. 즉, 단말(114)로부터 릴레이 통신으로 수신한 입력신호가 데이터로 포함된다.The controller 230 combines the converted third data frame with the first preset data frame and transmits the same. In the above example, when the preset third data frame is [0xf7 0x31 0x01 0xc1 0x02 0x00 0x01 0x05 0xf2], the following data may be transmitted. The preset first data frame has a (Length Device ID field), a Device ID field, a (Length MAC field), a MAC field, a Port field, and a Data field. Each field except Data includes an appropriate field value, and a third data frame preset in the Data field is included as a data value. That is, the input signal received from the terminal 114 through relay communication is included as data.

도 9는 본 발명의 일 실시예에 따른 관리장치가 릴레이 통신을 사용하는 단말의 상태 확인을 위해 스마트 게이트웨이로 전송하기 위한 데이터의 프레임을 도시한 도면이다.9 is a diagram illustrating a frame of data for a management device to transmit to a smart gateway to check the status of a terminal using relay communication according to an embodiment of the present invention.

Header 필드는 응답신호 또는 동작 지시를 위한 신호를 전송함을 알리기 위한 필드로서, STX와는 다른 값을 갖는다. 예를 들어, Header 필드는 0xF7값을 가질 수 있다.The Header field is a field for informing that a response signal or a signal for an operation indication is transmitted, and has a value different from that of STX. For example, the Header field may have a value of 0xF7.

Device ID 필드 및 Device Sub ID 필드는 단말(114)에 부여된 ID 값을 의미하는 필드로서, 관리장치가 단말(114)을 식별하는데 사용된다. The Device ID field and the Device Sub ID field are fields indicating an ID value assigned to the terminal 114 , and are used by the management device to identify the terminal 114 .

Command Type 필드는 기 설정된 제3 데이터 프레임의 그것과 동일한 필드에 해당한다. 다만, 필드 값에 있어서는 관리장치가 게이트웨이를 거쳐 단말(114)로 전달하고자 하는 데이터인 점에서, 필드값은 주로 0x01 이거나 0x81이 된다.The Command Type field corresponds to the same field as that of the preset third data frame. However, since the field value is data that the management device wants to transmit to the terminal 114 through the gateway, the field value is mainly 0x01 or 0x81.

Length 필드는 데이터 필드의 길이를 의미하는 필드로서, 일정한 값을 갖는다. 단말(114)은 이진법적으로 작동하기 때문에, 데이터 필드 값은 길이변화없이 양자 중 하나로 선택된다. 이에 Length 필드는 일정한 값을 갖는다. The Length field is a field indicating the length of the data field and has a constant value. Since the terminal 114 operates binary, the data field value is chosen either without changing the length. Accordingly, the Length field has a constant value.

Data 필드는 응답신호 또는 동작 지시를 위한 신호를 의미하는 필드이다.The Data field is a field indicating a response signal or a signal for an operation instruction.

Xor Sum 필드는 프레임의 무결성을 검증하기 위한 필드로서, 헤더에서 해당 필드 이전까지의 각 필드값들의 XOR 결과값을 갖는다.The Xor Sum field is a field for verifying the integrity of the frame, and has an XOR result value of each field value from the header to the previous field.

Add Sum 필드도 마찬가지로 프레임의 무결성을 검증하기 위한 필드로서, 헤더에서 해당 필드 이전까지의 각 필드값들의 Add 결과값을 갖는다.The Add Sum field is also a field for verifying the integrity of the frame, and has the Add result value of each field value from the header to the previous field.

예를 들어, 기 설정된 제4 데이터 프레임이 [0xf7, 0x31, 0x01, 0x41, 0x01, 0x01, 0x86, 0xf2]인 경우, 기 설정된 제4 데이터 프레임은 기 설정된 제2 데이터 프레임과 결합되어 다음과 같은 데이터가 관리장치로부터 전송될 수 있다. For example, when the preset fourth data frame is [0xf7, 0x31, 0x01, 0x41, 0x01, 0x01, 0x86, 0xf2], the preset fourth data frame is combined with the preset second data frame to obtain the following Data may be transmitted from the management device.

<Buffer 02 00 11 09 08 f7 31 01 41 01 01 86 f2 03><Buffer 02 00 11 09 08 f7 31 01 41 01 01 86 f2 03>

버퍼가 존재한 후, 기 설정된 제2 프레임인 STX 필드(02), Port 필드(00), SEQ 필드(11), Total Length 필드(09)가 배치되며, Total Length 필드 이후 데이터인 기 설정된 제4 데이터 프레임이 배치된다. 이후, 최종적으로 ETX(03) 필드가 배치되며 데이터 프레임의 종료를 가리킨다. After the buffer exists, the STX field (02), the Port field (00), the SEQ field (11), and the Total Length field (09), which are a preset second frame, are disposed, and the preset fourth frame is data after the Total Length field. A data frame is placed. After that, the ETX (03) field is finally arranged and indicates the end of the data frame.

제어부(230)는 이와 같은 데이터 프레임을 수신하고 분석하여, 기 설정된 제4 데이터 프레임을 확인한다. 제어부(230)는 확인한 기 설정된 제4 데이터 프레임 내 데이터를 단말(114)로 전달하도록 릴레이 통신부(213)를 제어한다.The controller 230 receives and analyzes such a data frame, and confirms a preset fourth data frame. The controller 230 controls the relay communication unit 213 to transmit the checked data in the preset fourth data frame to the terminal 114 .

다시 도 2를 참조하면, 데이터 입력부(219)로부터 입력신호가 수신되는 경우, 제어부(230)는 수신한 입력신호를 분석한다. 메모리부(240) 내에 입력신호의 종류마다 단말(110, 114)이 수행할 제어의 종류가 저장되어 있다. 제어부(230)는 데이터 입력부(219)가 수신한 입력신호를 분석하여, 입력신호에 따른 제어의 종류를 판단한다. 제어부(230)는 판단 결과를 토대로 적절한 단말(110, 114)의 동작을 제어하며, 단말(110, 114)의 동작 제어를 관리장치로 전송하도록 제1 통신부(216)를 제어한다. 또는, 단말(110, 114)의 동작의 제어와는 별개로, 제1 통신부(216)가 관리장치로부터 단말(110, 114)의 동작 상태를 확인하기 위한 요청신호를 수신할 수 있다. 이러한 신호를 수신하는 경우, 제어부(230)는 단말(110, 114)의 동작 제어 상태를 응답하도록 제1 통신부(216)를 제어한다. Referring back to FIG. 2 , when an input signal is received from the data input unit 219 , the controller 230 analyzes the received input signal. A type of control to be performed by the terminals 110 and 114 for each type of input signal is stored in the memory unit 240 . The control unit 230 analyzes the input signal received by the data input unit 219 and determines the type of control according to the input signal. The controller 230 controls the appropriate operation of the terminals 110 and 114 based on the determination result, and controls the first communication unit 216 to transmit the operation control of the terminals 110 and 114 to the management device. Alternatively, separately from the control of the operation of the terminals 110 and 114 , the first communication unit 216 may receive a request signal for confirming the operation state of the terminals 110 and 114 from the management device. When receiving such a signal, the controller 230 controls the first communication unit 216 to respond to the operation control state of the terminals 110 and 114 .

이때, 제어부(230)는 단말(110, 114)의 동작 제어 결과나 동작 제어 상태를 응답하기 위한 신호를 관리장치가 인식할 수 있도록, 관리장치로 송신할 데이터를 기 설정된 제5 데이터 프레임으로 변환한다. 제어부(230)는 입력신호를 기 설정된 제5 데이터 프레임으로 변환한 후, 기 설정된 제1 데이터 프레임과 결합하여 관리장치로 전송한다. 또한, 관리장치는 필요에 따라 단말(110, 114)의 동작 상태를 확인하기 위한 요청신호를 전송할 수 있다. 관리장치는 제어부(230)가 인지할 수 있도록, 확인을 위한 신호를 기 설정된 제6 데이터 프레임으로 전송한다. 관리장치는 기 설정된 제6 데이터 프레임을 전송함에 있어, 기 설정된 제2 데이터 프레임과 결합한 후 게이트웨이(120)로 전송한다. 제어부(230)는 수신한 데이터 프레임을 분석하여 기 설정된 제6 데이터 프레임을 확인한 후, 이에 응답하도록 제1 통신부(216)를 제어한다. 기 설정된 제5 데이터 프레임 및 기 설정된 제 6 데이터 프레임은 각각 도 10 및 11에 도시되어 있다.In this case, the controller 230 converts data to be transmitted to the management device into a preset fifth data frame so that the management device can recognize the operation control result of the terminals 110 and 114 or the signal for responding to the operation control state. do. The controller 230 converts the input signal into a preset fifth data frame, combines it with the preset first data frame, and transmits it to the management device. In addition, the management device may transmit a request signal for checking the operating state of the terminals 110 and 114 as necessary. The management device transmits a confirmation signal as a preset sixth data frame so that the control unit 230 can recognize it. The management device transmits the preset sixth data frame to the gateway 120 after combining it with the preset second data frame. The controller 230 analyzes the received data frame to check the preset sixth data frame, and then controls the first communication unit 216 to respond thereto. The preset fifth data frame and the preset sixth data frame are shown in FIGS. 10 and 11 , respectively.

도 10은 본 발명의 일 실시예에 따른 스마트 게이트웨이가 응답을 관리장치로 전송하기 위한 데이터의 프레임을 도시한 도면이다.10 is a diagram illustrating a frame of data for a smart gateway to transmit a response to a management device according to an embodiment of the present invention.

Header 필드는 입력신호가 존재함을 전송함을 알리기 위한 필드로서, STX와는 다른 값을 갖는다. 예를 들어, Header 필드는 0xF7값을 가질 수 있다.The Header field is a field for notifying that an input signal exists and has a different value from that of STX. For example, the Header field may have a value of 0xF7.

Device ID 필드, Device Sub ID 필드, Command Type 필드, Length 필드, Data 필드, Xor Sum 필드 및 Add Sum 필드는 각각 기 설정된 제3 데이터 프레임의 그것과 동일한 필드에 해당한다. The Device ID field, the Device Sub ID field, the Command Type field, the Length field, the Data field, the Xor Sum field, and the Add Sum field correspond to the same fields as those of the preset third data frame, respectively.

제어부(230)는 이처럼 변환된 기 설정된 제5 데이터 프레임을 기 설정된 제1 데이터 프레임과 결합하여 전송한다. 전술한 예에서, 기 설정된 제5 데이터 프레임이 [0xf7 0x31 0x01 0x81 0x02 0x00 0x01 0x45 0xf2]인 경우, 다음과 같은 데이터가 전송될 수 있다. 기 설정된 제1 데이터 프레임은 (Length Device ID 필드), Device ID 필드, (Length MAC 필드), MAC 필드, Port 필드 및 Data 필드를 갖는다. Data를 제외한 각 필드에는 적절한 필드값이 포함되며, Data 필드에 기 설정된 제5 데이터 프레임이 데이터 값으로 포함된다. 즉, 단말(114)로부터 입력신호가 데이터로 포함된다.The controller 230 combines the converted fifth preset data frame with the preset first data frame and transmits the combined. In the above-described example, when the preset fifth data frame is [0xf7 0x31 0x01 0x81 0x02 0x00 0x01 0x45 0xf2], the following data may be transmitted. The preset first data frame has a (Length Device ID field), a Device ID field, a (Length MAC field), a MAC field, a Port field, and a Data field. Each field except Data includes an appropriate field value, and a fifth data frame preset in the Data field is included as a data value. That is, the input signal from the terminal 114 is included as data.

도 11은 본 발명의 일 실시예에 따른 관리장치가 단말의 동작 상태 확인을 위해 스마트 게이트웨이로 전송하기 위한 데이터의 프레임을 도시한 도면이다.11 is a diagram illustrating a frame of data for the management device to transmit to the smart gateway to check the operation state of the terminal according to an embodiment of the present invention.

Header 필드는 동작 상태 확인을 위한 신호가 존재함을 전송함을 알리기 위한 필드로서, STX와는 다른 값을 갖는다. 예를 들어, Header 필드는 0xF7값을 가질 수 있다.The Header field is a field for notifying that a signal for checking the operation status is transmitted, and has a value different from that of STX. For example, the Header field may have a value of 0xF7.

Device ID 필드, Device Sub ID 필드, Command Type 필드, Length 필드, Xor Sum 필드 및 Add Sum 필드는 각각 기 설정된 제5 데이터 프레임의 그것과 동일한 필드에 해당한다. The Device ID field, the Device Sub ID field, the Command Type field, the Length field, the Xor Sum field, and the Add Sum field correspond to the same fields as those of the preset fifth data frame, respectively.

예를 들어, 기 설정된 제6 데이터 프레임이 [0xf7, 0x31, 0x01, 0x01, 0x00, 0xc6, 0xf0]인 경우, 기 설정된 제4 데이터 프레임은 기 설정된 제2 데이터 프레임과 결합되어 다음과 같은 데이터가 관리장치로부터 전송될 수 있다. For example, when the preset sixth data frame is [0xf7, 0x31, 0x01, 0x01, 0x00, 0xc6, 0xf0], the preset fourth data frame is combined with the preset second data frame to obtain the following data It can be transmitted from the management device.

<Buffer 02 01 11 08 07 f7 31 01 01 00 c6 f0 03><Buffer 02 01 11 08 07 f7 31 01 01 00 c6 f0 03>

버퍼가 존재한 후, 기 설정된 제2 프레임인 STX 필드(02), Port 필드(01), SEQ 필드(11), Total Length 필드(08), Data Length 필드(07)가 배치되며, Data Length 필드 이후 데이터인 기 설정된 제6 데이터 프레임이 배치된다. 이후, 최종적으로 ETX(03) 필드가 배치되며 데이터 프레임의 종료를 가리킨다. After the buffer exists, the STX field (02), the Port field (01), the SEQ field (11), the Total Length field (08), and the Data Length field (07), which are preset second frames, are arranged, and the Data Length field Thereafter, a preset sixth data frame that is data is disposed. After that, the ETX (03) field is finally arranged and indicates the end of the data frame.

제어부(230)는 이와 같은 데이터 프레임을 수신하고 분석하여, 기 설정된 제6 데이터 프레임을 확인한다. 이후, 제어부(230)는 입력신호에 따라 동작 제어된 단말로 상태를 확인하여 응답하거나, 직접 단말의 상태를 관리장치로 응답하도록 제1 통신부(216)를 제어한다.The controller 230 receives and analyzes such a data frame, and confirms a preset sixth data frame. Thereafter, the control unit 230 controls the first communication unit 216 to check and respond to the state of the terminal whose operation is controlled according to the input signal, or to directly respond to the state of the terminal to the management device.

도 3은 본 발명의 일 실시예에 따른 유선통신을 사용하는 단말과 관리장치 간의 데이터 흐름을 도시한 타이밍차트이다. 도 3에는 관리장치의 일 예로 서버(140)만이 도시되어 있으나, 반드시 이에 한정되는 것은 아니다.3 is a timing chart illustrating a data flow between a terminal using wired communication and a management device according to an embodiment of the present invention. Although only the server 140 is shown as an example of the management device in FIG. 3 , the present invention is not limited thereto.

게이트웨이(120)는 유선 통신으로 입력신호를 단말(110)로부터 수신한다(S310).The gateway 120 receives an input signal from the terminal 110 through wired communication (S310).

게이트웨이(120)는 수신한 입력신호를 기 설정된 제1 데이터 프레임으로 변환한다(S320).The gateway 120 converts the received input signal into a preset first data frame (S320).

게이트웨이(120)는 변환된 데이터를 관리장치로 전송한다(S330).The gateway 120 transmits the converted data to the management device (S330).

게이트웨이(120)는 기 설정된 제2 데이터 프레임을 갖는 응답신호를 관리장치로부터 수신한다(S340).The gateway 120 receives a response signal having a preset second data frame from the management device (S340).

게이트웨이(120)는 기 설정된 제2 데이터 프레임을 분석하여 응답신호를 파악한다(S350).The gateway 120 analyzes the preset second data frame to determine the response signal (S350).

게이트웨이(120)는 유선 통신으로 응답신호를 단말(110)로 전송한다(S360).The gateway 120 transmits a response signal to the terminal 110 through wired communication (S360).

도 4는 본 발명의 일 실시예에 따른 릴레이 통신을 사용하는 단말과 관리장치 간의 데이터 흐름을 도시한 타이밍차트이다. 도 4에는 관리장치의 일 예로 서버(140)만이 도시되어 있으나, 반드시 이에 한정되는 것은 아니다.4 is a timing chart illustrating a data flow between a terminal and a management device using relay communication according to an embodiment of the present invention. Although only the server 140 is shown as an example of the management device in FIG. 4 , the present invention is not limited thereto.

게이트웨이(120)는 릴레이 통신으로 입력신호를 단말(114)로부터 수신한다(S410).The gateway 120 receives an input signal from the terminal 114 through relay communication (S410).

게이트웨이(120)는 수신한 입력신호를 기 설정된 제3 데이터 프레임으로 변환한다(S420).The gateway 120 converts the received input signal into a preset third data frame (S420).

게이트웨이(120)는 변환된 데이터를 관리장치로 전송한다(S430).The gateway 120 transmits the converted data to the management device (S430).

게이트웨이(120)는 기 설정된 제4 데이터 프레임을 갖는 제어신호를 관리장치로부터 수신한다(S440).The gateway 120 receives a control signal having a preset fourth data frame from the management device (S440).

게이트웨이(120)는 기 설정된 제4 데이터 프레임을 분석하여 제어신호를 파악한다(S450).The gateway 120 analyzes the preset fourth data frame to determine the control signal (S450).

게이트웨이(120)는 릴레이 통신으로 제어신호에 따라 단말(114)의 동작을 제어한다(S460).The gateway 120 controls the operation of the terminal 114 according to the control signal through relay communication (S460).

도 5는 본 발명의 일 실시예에 따른 스마트 게이트웨이가 입력장치로부터 입력신호를 받았을 때의 데이트 흐름을 도시한 타이밍차트이다. 도 5에는 관리장치의 일 예로 서버(140)만이 도시되어 있으나, 반드시 이에 한정되는 것은 아니다.5 is a timing chart illustrating a data flow when a smart gateway receives an input signal from an input device according to an embodiment of the present invention. Although only the server 140 is illustrated as an example of the management device in FIG. 5 , the present invention is not limited thereto.

게이트웨이(120)는 입력신호를 입력장치(118)로부터 수신한다(S510).The gateway 120 receives an input signal from the input device 118 (S510).

게이트웨이(120)는 입력신호에 대응되는 단말의 동작 제어 종류를 분석한다(S520).The gateway 120 analyzes the type of operation control of the terminal corresponding to the input signal (S520).

게이트웨이(120)는 분석한 단말의 동작 제어신호를 유선 또는 릴레이통신으로 단말(110, 114)로 전송한다(S530).The gateway 120 transmits the analyzed operation control signal of the terminal to the terminals 110 and 114 through wire or relay communication (S530).

게이트웨이(120)는 기 설정된 제6 데이터 프레임을 갖는, 단말의 동작상태 요청신호를 제어장치로부터 수신한다(S540).The gateway 120 receives a terminal operation state request signal having a preset sixth data frame from the control device (S540).

게이트웨이(120)는 기 설정된 제6 데이터 프레임을 분석한다(S550).The gateway 120 analyzes the preset sixth data frame (S550).

게이트웨이(120)는 기 설정된 제5 데이터 프레임을 갖는, 단말의 동작요청에 대한 응답신호를 관리장치로 전송한다(S560).The gateway 120 transmits a response signal to the operation request of the terminal having a preset fifth data frame to the management device (S560).

이상의 설명은 본 실시예의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 실시예의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 실시예들은 본 실시예의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 실시예의 기술 사상의 범위가 한정되는 것은 아니다. 본 실시예의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 실시예의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The above description is merely illustrative of the technical idea of this embodiment, and various modifications and variations will be possible by those skilled in the art to which this embodiment belongs without departing from the essential characteristics of the present embodiment. Accordingly, the present embodiments are intended to explain rather than limit the technical spirit of the present embodiment, and the scope of the technical spirit of the present embodiment is not limited by these embodiments. The protection scope of this embodiment should be interpreted by the following claims, and all technical ideas within the equivalent range should be interpreted as being included in the scope of the present embodiment.

100: 홈 네트워크 시스템
110, 114: 단말
118: 입력장치
120: 게이트웨이
130: 월패드
140: 서버
150: 사용자 단말
210: 유선 통신부
213: 릴레이 통신부
216: 제1 통신부
219: 데이터 입력부
220: 커넥터
230: 제어부
240: 메모리부
100: home network system
110, 114: terminal
118: input device
120: gateway
130: wall pad
140: server
150: user terminal
210: wired communication unit
213: relay communication unit
216: first communication unit
219: data input unit
220: connector
230: control unit
240: memory unit

Claims (6)

유선 통신으로 제1 단말로부터 입력신호를 수신하거나, 상기 제1 단말로 응답신호를 전송하는 유선 통신부;
릴레이 통신으로 제2 단말로부터 입력신호를 수신하거나, 상기 제2 단말로 제어신호를 전송하는 릴레이 통신부;
기 설정된 제1 데이터 프레임 또는 기 설정된 제3 데이터 프레임을 갖는 신호를 관리장치로 전송하거나, 상기 관리장치로부터 기 설정된 제2 데이터 프레임 또는 기 설정된 제4 데이터 프레임을 수신하는 제1 통신부;
상기 유선 통신부가 수신한 입력신호를 상기 기 설정된 제1 데이터 프레임으로 변환하거나, 상기 릴레이 통신부가 수신한 입력신호를 상기 기 설정된 제3 데이터 프레임으로 변환하거나, 상기 제1 통신부가 수신한 기 설정된 제2 데이터 프레임 또는 기 설정된 제4 데이터 프레임을 분석하여 상기 기 설정된 제2 데이터 프레임 또는 기 설정된 제4 데이터 프레임 내 응답신호 또는 제어신호를 확인하고, 상기 제1 통신부가 각각 상기 기 설정된 제1 데이터 프레임을 관리장치로 전송하거나, 상기 유선 통신부가 상기 제1 단말로 응답신호를 전송하거나, 상기 릴레이 통신부가 상기 제2 단말로 제어신호를 전송하도록 제어하는 제어부; 및
상기 제어부가 데이터 프레임을 변환하기 위한 데이터 프레임 포맷을 저장하는 메모리부를 포함하며,
상기 기 설정된 제1 데이터 프레임은 자신에게 부여된 ID값을 의미하는 필드, 자신에게 부여된 ID 값의 길이를 의미하는 필드, 자신의 MAC 주소를 의미하는 필드, 자신의 MAC 주소의 길이를 의미하는 필드, 관리장치로 받아들인 포트 번호를 의미하는 필드 및 별도의 가공없이 수신한 데이터를 포함하는 필드를 포함하며,
상기 기 설정된 제2 데이터 프레임은 데이터 프레임의 시작을 의미하는 필드, 자신이 관리장치로부터 데이터를 수신할 포트 번호를 의미하는 필드, 상기 관리장치가 송신한 데이터 프레임의 번호를 의미하는 필드, 데이터 프레임이 전송할 데이터를 포함하는 필드, 각 데이터를 포함하는 필드의 길이를 의미하는 제1 필드, 데이터 전체와 상기 제1 필드의 길이를 의미하는 필드 및 프레임의 종료를 의미하는 필드를 포함하고,
상기 기 설정된 제3 데이터 프레임은 릴레이 통신을 이용하여 수신한 데이터를 전송함을 알리기 위한 필드, 상기 제2 단말에 부여된 ID를 의미하는 필드, 데이터 프레임을 전송하며 지시하고자 하는 정보를 포함하는 필드, 상기 제2 단말의 동작 내용을 의미하는 데이터 필드, 데이터 필드의 길이를 의미하는 필드 및 프레임의 무결성을 검증하기 위한 필드를 포함하고,
상기 기 설정된 제4 데이터 프레임은 응답신호 또는 동작 지시를 위한 신호를 전송함을 알리기 위한 필드, 상기 제2 단말에 부여된 ID를 의미하는 필드, 데이터 프레임을 전송하며 지시하고자 하는 정보를 포함하는 필드, 응답신호 또는 동작 지시를 위한 신호를 의미하는 데이터 필드, 데이터 필드의 길이를 의미하는 필드 및 프레임의 무결성을 검증하기 위한 필드를 포함하고,
상기 기 설정된 제3 데이터 프레임은 상기 기 설정된 제1 데이터 프레임에 결합되어 전송되며, 상기 기 설정된 제4 데이터 프레임은 상기 기 설정된 제2 데이터 프레임에 결합되어 전송되는 것을 특징으로 하는 게이트웨이.
a wired communication unit for receiving an input signal from the first terminal through wired communication or transmitting a response signal to the first terminal;
a relay communication unit for receiving an input signal from a second terminal through relay communication or transmitting a control signal to the second terminal;
a first communication unit for transmitting a signal having a preset first data frame or a preset third data frame to a management device, or for receiving a preset second data frame or a preset fourth data frame from the management device;
Converts the input signal received by the wired communication unit into the preset first data frame, converts the input signal received by the relay communication unit into the preset third data frame, or converts the input signal received by the first communication unit into the preset first data frame The second data frame or the preset fourth data frame is analyzed to check a response signal or a control signal within the preset second data frame or the preset fourth data frame, and the first communication unit determines the preset first data frame, respectively. a control unit for controlling to transmit to the management device, the wired communication unit to transmit a response signal to the first terminal, or the relay communication unit to transmit a control signal to the second terminal; and
The control unit includes a memory unit for storing a data frame format for converting the data frame,
The preset first data frame includes a field meaning an ID value assigned to itself, a field meaning a length of an ID value assigned to itself, a field meaning its own MAC address, and a field meaning its own MAC address length. It includes a field, a field indicating the port number accepted by the management device, and a field containing data received without additional processing.
The preset second data frame includes a field indicating the start of a data frame, a field indicating a port number to receive data from the management device, a field indicating the number of a data frame transmitted by the management device, and a data frame. A field including the data to be transmitted, a first field indicating the length of a field including each data, a field indicating the entire data and the length of the first field, and a field indicating the end of a frame,
The preset third data frame includes a field for notifying that data received using relay communication is transmitted, a field indicating an ID assigned to the second terminal, and a field including information to indicate while transmitting a data frame , a data field indicating the operation contents of the second terminal, a field indicating the length of the data field, and a field for verifying the integrity of the frame,
The preset fourth data frame includes a field for notifying that a response signal or a signal for operation instruction is transmitted, a field indicating an ID assigned to the second terminal, and a field including information to be indicated while transmitting a data frame , a data field indicating a response signal or a signal for an operation instruction, a field indicating the length of the data field, and a field for verifying the integrity of the frame,
The preset third data frame is coupled to the preset first data frame and transmitted, and the preset fourth data frame is coupled to the preset second data frame and transmitted.
제1항에 있어서,
상기 유선 통신부는,
RS-232. RS-423 또는 RS-485를 이용하여 제1 단말과 통신하는 것을 특징으로 하는 게이트웨이.
According to claim 1,
The wired communication unit,
RS-232. A gateway, characterized in that it communicates with the first terminal using RS-423 or RS-485.
제1항에 있어서,
상기 제1 통신부는,
TCP/IP를 이용하여 상기 관리장치와 통신하는 것을 특징으로 하는 게이트웨이.
According to claim 1,
The first communication unit,
A gateway, characterized in that it communicates with the management device using TCP/IP.
제1항에 있어서,
외부의 통신모듈과 연결될 수 있는 커넥터를 더 포함하는 것을 특징으로 하는 게이트웨이.
According to claim 1,
Gateway, characterized in that it further comprises a connector that can be connected to an external communication module.
제4항에 있어서,
상기 커넥터는,
외부의 와이파이 모듈, RF 모듈, 지그비 모듈 또는 지웨이브 모듈과 연결되는 것을 특징으로 하는 게이트웨이.
5. The method of claim 4,
The connector is
A gateway, characterized in that it is connected to an external Wi-Fi module, RF module, Zigbee module or G-Wave module.
제1항에 있어서,
상기 관리장치는,
사용자 단말, 서버 또는 월패드를 포함하는 것을 특징으로 하는 게이트웨이.



According to claim 1,
The management device is
Gateway, characterized in that it comprises a user terminal, server or wall pad.



KR1020200178072A 2020-12-18 2020-12-18 Smart Gateway for Building Home Network System KR102287986B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200178072A KR102287986B1 (en) 2020-12-18 2020-12-18 Smart Gateway for Building Home Network System

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200178072A KR102287986B1 (en) 2020-12-18 2020-12-18 Smart Gateway for Building Home Network System

Publications (1)

Publication Number Publication Date
KR102287986B1 true KR102287986B1 (en) 2021-08-09

Family

ID=77313411

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200178072A KR102287986B1 (en) 2020-12-18 2020-12-18 Smart Gateway for Building Home Network System

Country Status (1)

Country Link
KR (1) KR102287986B1 (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010048601A (en) * 1999-11-27 2001-06-15 윤종용 Home gateway system for connecting home network and access network each having diverse protocols and network interfacing method thereof
KR20050112806A (en) * 2004-05-28 2005-12-01 엘지전자 주식회사 Home network system based on gateway
KR20060095323A (en) * 2005-02-28 2006-08-31 엘지전자 주식회사 Method of controlling home network devices
WO2006126355A1 (en) * 2005-05-24 2006-11-30 Matsushita Electric Industrial Co., Ltd. Gateway device and control device
KR200435425Y1 (en) * 2006-08-17 2007-01-22 주식회사 렉터슨 Home gateway for controlling different brand devices in a home network system using the power line communication
KR20080101553A (en) * 2007-05-18 2008-11-21 티에스씨시스템 주식회사 Apparatus and method for automatically installing protocol in home network system
KR20090010564A (en) * 2007-07-24 2009-01-30 주식회사이노텔레콤 System for building home network gateway using broadband power line communication and b-cdma
KR20110134212A (en) * 2010-06-08 2011-12-14 서일대학산학협력단 Homenetwork remote monitoring and control system using mobile station as gateway, and method thereof
JP2013097599A (en) * 2011-11-01 2013-05-20 Hitachi Ltd Virtualization home gateway, system and application execution method
KR20150073057A (en) * 2013-12-20 2015-06-30 삼성전자주식회사 Method and apparatus of communication for smart home devices
KR101773173B1 (en) * 2017-06-01 2017-09-13 이상국 Home monitoring system and method for smart home
KR20180058415A (en) * 2016-11-24 2018-06-01 금오기전 주식회사 IoT gateway device and method linking multiple protocol

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010048601A (en) * 1999-11-27 2001-06-15 윤종용 Home gateway system for connecting home network and access network each having diverse protocols and network interfacing method thereof
KR20050112806A (en) * 2004-05-28 2005-12-01 엘지전자 주식회사 Home network system based on gateway
KR20060095323A (en) * 2005-02-28 2006-08-31 엘지전자 주식회사 Method of controlling home network devices
WO2006126355A1 (en) * 2005-05-24 2006-11-30 Matsushita Electric Industrial Co., Ltd. Gateway device and control device
KR200435425Y1 (en) * 2006-08-17 2007-01-22 주식회사 렉터슨 Home gateway for controlling different brand devices in a home network system using the power line communication
KR20080101553A (en) * 2007-05-18 2008-11-21 티에스씨시스템 주식회사 Apparatus and method for automatically installing protocol in home network system
KR20090010564A (en) * 2007-07-24 2009-01-30 주식회사이노텔레콤 System for building home network gateway using broadband power line communication and b-cdma
KR20110134212A (en) * 2010-06-08 2011-12-14 서일대학산학협력단 Homenetwork remote monitoring and control system using mobile station as gateway, and method thereof
JP2013097599A (en) * 2011-11-01 2013-05-20 Hitachi Ltd Virtualization home gateway, system and application execution method
KR20150073057A (en) * 2013-12-20 2015-06-30 삼성전자주식회사 Method and apparatus of communication for smart home devices
KR20180058415A (en) * 2016-11-24 2018-06-01 금오기전 주식회사 IoT gateway device and method linking multiple protocol
KR101773173B1 (en) * 2017-06-01 2017-09-13 이상국 Home monitoring system and method for smart home

Similar Documents

Publication Publication Date Title
KR100605209B1 (en) Converting apparatus for network
US20220360495A1 (en) Device Communication, Monitoring and Control Architecture and Method
CN104885406B (en) For the method and apparatus in domestic network system medium-long range control household equipment
KR100424297B1 (en) Home Appliance Controlling System and Operating Method for the Same
EP1598714B1 (en) Apparatus and method for remotely controlling household appliances
CN102945029B (en) Intelligent gateway, smart home system and intelligent control method for home appliance equipment
US20070223500A1 (en) Home Network System
WO2013033469A4 (en) Resource manager, system, and method for communicating resource management information for smart energy and media resources
US8484323B2 (en) Network system connected with multiple master devices and method for operating the same
CN108810061A (en) A kind of intelligent domestic system
KR101066827B1 (en) Intelligent remote reading system
US7839299B2 (en) Remote control device, remote control method, and remotely controlled device
CN110045705A (en) Using the intelligent home furnishing control method of heterogeneous wireless network, apparatus and system
KR102287986B1 (en) Smart Gateway for Building Home Network System
CN106777755B (en) Verification device and system for spacer layer locking logic
KR101066822B1 (en) Intelligent remote reading system
KR20180112325A (en) Voice transmission method, voice transmission apparatus implementing the same, and system including the same
US20150005909A1 (en) Communication Device, Communication Method, and Management Device
Leite et al. A ZigBee wireless domotic system with Bluetooth interface
KR20180077490A (en) Home network service providing system using portable terminal
KR100712922B1 (en) Home Network Unification System
KR100550774B1 (en) Reservation information processing apparatus for mobile home network system
KR20010028882A (en) System for Monitoring and Controlling Electric Appliances
KR20070036909A (en) An internet home-network management methode by using the computer installed with a power line controller
CN113419441B (en) Intelligent home system for confidential places

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant