KR101936338B1 - Method for mornitering sun-sensor using iot gateway based on mqtt and apparatus using the same - Google Patents

Method for mornitering sun-sensor using iot gateway based on mqtt and apparatus using the same Download PDF

Info

Publication number
KR101936338B1
KR101936338B1 KR1020170113253A KR20170113253A KR101936338B1 KR 101936338 B1 KR101936338 B1 KR 101936338B1 KR 1020170113253 A KR1020170113253 A KR 1020170113253A KR 20170113253 A KR20170113253 A KR 20170113253A KR 101936338 B1 KR101936338 B1 KR 101936338B1
Authority
KR
South Korea
Prior art keywords
mqtt
data
monitoring
log data
sun
Prior art date
Application number
KR1020170113253A
Other languages
Korean (ko)
Other versions
KR20180065868A (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 한국전자통신연구원
Publication of KR20180065868A publication Critical patent/KR20180065868A/en
Application granted granted Critical
Publication of KR101936338B1 publication Critical patent/KR101936338B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Telephonic Communication Services (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

MQTT 기반의 IoT 게이트웨이를 이용한 SUN 센서 모니터링 방법 및 이를 위한 장치가 개시된다. 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법은 IoT 게이트웨이가, 스마트 유틸리티 네트워크(Smart Utility Network)에 연결된 복수개의 센서 노드들에 대한 모니터링 데이터를 수집하는 단계; 및 상기 IoT 게이트웨이가, 수집된 모니터링 데이터를 상기 MQTT 프로토콜에 구독 등록된 MQTT 서브스크리버(Subscriber)에게 제공하는 단계를 포함한다.A SUN sensor monitoring method using an MQTT based IoT gateway and an apparatus therefor are disclosed. A method of monitoring a SUN sensor according to an embodiment of the present invention includes: collecting monitoring data for a plurality of sensor nodes connected to a Smart Utility Network; And the IoT gateway providing the collected monitoring data to an MQTT subscriber subscribed to the MQTT protocol.

Figure R1020170113253
Figure R1020170113253

Description

MQTT 기반의 IoT 게이트웨이를 이용한 SUN 센서 모니터링 방법 및 이를 위한 장치 {METHOD FOR MORNITERING SUN-SENSOR USING IOT GATEWAY BASED ON MQTT AND APPARATUS USING THE SAME}TECHNICAL FIELD [0001] The present invention relates to a method for monitoring a SUN sensor using an MQTT-based IoT gateway and a method for monitoring the SUN sensor using the MQTT based IoT gateway.

본 발명은 MQTT 기반의 IoT 게이트웨이를 이용하여 SUN(Smart Utility Network) 센서를 모니터링 하는 기술에 관한 것으로, 특히 SUN 센서들로부터 수집된 모니터링 데이터를 MQTT(Message Queuing Telemetry Transfer) 프로토콜을 이용하여 편리하게 사용자에게 제공할 수 있는 기술에 관한 것이다.The present invention relates to a technology for monitoring a Smart Utility Network (SUN) sensor using an MQTT-based IoT gateway. More particularly, the present invention relates to a technology for monitoring a Smart Utility Network (SUN) sensor by using an MQTT (Message Queuing Telemetry Transfer) To the technology that can be provided to the user.

SUN(Smart Utility Network)은 900Mhz 대역에서 수백 미터부터 1km까지의 전송 거리를 지원하는 네트워크 표준 기술로서, 주로 전기, 가스 및 수도 등의 유틸리티 회사에서 원격 장거리 모니터링 서비스를 구현하기 위해서 개발되었다.The Smart Utility Network (SUN) is a network standard technology that supports transmission distances from several hundred meters to one kilometer in the 900Mhz band. It has been developed primarily to implement remote long distance monitoring services in utilities such as electricity, gas, and water.

그러나 이러한 SUN 통신 기술은 개발자에 의해 정의된 프로토콜에 따라서 데이터 송수신이 이루어지며, 인터넷과 같은 범용 네트워크가 지원되지 않는 폐쇄성으로 인해 시스템 유지 보수 비용 및 서비스 확산에 문제점을 가진다.However, this SUN communication technology has data transmission / reception according to the protocol defined by the developer, and has a problem in system maintenance cost and service diffusion due to the obstacle that the general purpose network such as the Internet is not supported.

한국 공개 특허 제10-2016-0118813호, 2016년 10월 12일 공개(명칭: 이동통신망을 통해 원격 서버와 연결되는 게이트웨이 장치 및 그것의 IP관리 방법)Korean Patent Publication No. 10-2016-0118813, published October 12, 2016 (name: gateway device connected to a remote server via a mobile communication network and IP management method thereof)

본 발명의 목적은 별도의 서버 없이도 인터넷 서비스를 직접 제공할 수 있는 IoT 게이트웨이를 제공하는 것이다.It is an object of the present invention to provide an IoT gateway capable of directly providing Internet service without a separate server.

또한, 본 발명의 목적은 SUN(Smart Utility Network) 기반의 모니터링 시스템에 인터넷 연동을 직접 제공함으로써 서비스 확장과 보급을 효율적으로 수행하는 것이다.In addition, the object of the present invention is to efficiently perform service expansion and dissemination by directly providing Internet interworking to a monitoring utility based on a Smart Utility Network (SUN).

또한, 본 발명의 목적은 MQTT(Message Queuing Telemetry Transfer) 환경에서 범용 서비스 제공이 가능한 SUN 기반의 모니터링 기술을 제공하는 것이다.It is another object of the present invention to provide a SUN-based monitoring technology capable of providing general-purpose services in an MQTT (Message Queuing Telemetry Transfer) environment.

상기한 목적을 달성하기 위한 본 발명에 따른 SUN(Smart Utility Network) 센서 모니터링 방법은 MQTT(Message Queuing Telemetry Transfer) 프로토콜을 포함하는 IoT(Internet of Thing) 게이트웨이가, 스마트 유틸리티 네트워크(SUN)에 연결된 복수개의 센서 노드들에 대한 모니터링 데이터를 수집하는 단계; 및 상기 IoT 게이트웨이가, 수집된 모니터링 데이터를 상기 MQTT 프로토콜에 구독 등록된 MQTT 서브스크리버(Subscriber)에게 제공하는 단계를 포함한다.According to an aspect of the present invention, there is provided a method for monitoring a Smart Utility Network (SUN) sensor, the method comprising: providing an IoT (Internet of Thing) gateway including a Message Queuing Telemetry Transfer (MQTT) Collecting monitoring data for the sensor nodes; And the IoT gateway providing the collected monitoring data to an MQTT subscriber subscribed to the MQTT protocol.

이 때, 수집하는 단계는 상기 복수개의 센서 노드들 각각에 대한 데이터 쿼리 메시지를 생성하고, 상기 데이터 쿼리 메시지를 상기 복수개의 센서 노드들과 연동되어 동작하는 AP(Access Point) 노드에게 전달하는 단계; 및 상기 AP 노드를 기반으로 상기 데이터 쿼리 메시지를 상기 복수개의 센서 노드들과 순차적으로 송수신하는 단계를 포함할 수 있다.The collecting may include generating a data query message for each of the plurality of sensor nodes, and transmitting the data query message to an access point (AP) node operating in cooperation with the plurality of sensor nodes; And sequentially transmitting and receiving the data query message to and from the plurality of sensor nodes based on the AP node.

이 때, SUN 센서 모니터링 방법은 상기 IoT 게이트웨이가, 상기 수집된 모니터링 데이터를 로그 데이터로 생성하여 저장하는 단계; 및 상기 IoT 게이트웨이가, 저장된 로그 데이터 중 기설정된 보관 시간을 초과한 로그 데이터는 삭제하는 단계를 더 포함할 수 있다.At this time, in the SUN sensor monitoring method, the IoT gateway generates and stores the collected monitoring data as log data; And deleting log data in which the IoT gateway has exceeded a predetermined storage time of the stored log data.

이 때, 로그 데이터는 로그 생성시간에 해당하는 파일명에 상응하게 생성될 수 있다.At this time, the log data may be generated corresponding to the file name corresponding to the log generation time.

이 때, SUN 센서 모니터링 방법은 상기 IoT 게이트웨이의 구동 시 MQTT 퍼블리셔(publisher)를 통해 MQTT 브로커(broker)에 MQTT 발행 등록을 요청하는 단계를 더 포함할 수 있다.At this time, the SUN sensor monitoring method may further include a step of requesting the MQTT broker to register the MQTT issue through the MQTT publisher when the IOT gateway is activated.

이 때, 수집하는 단계는 상기 MQTT 퍼블리셔로부터 기설정된 주기마다 발생하는 모니터링 요청에 상응하게 상기 모니터링 데이터를 수집할 수 있다.In this case, the collecting step may collect the monitoring data corresponding to the monitoring request generated from the MQTT publisher every predetermined period.

또한, 본 발명의 일실시예에 따른 IoT 게이트웨이는, 스마트 유틸리티 네트워크(Smart Utility Network)에 연결된 복수개의 센서 노드들에 대한 모니터링 데이터를 수집하고, 수집된 모니터링 데이터를 MQTT(Message Queuing Telemetry Transfer) 프로토콜에 구독 등록된 MQTT 서브스크리버(Subscriber)에게 제공하는 프로세서; 및 상기 수집된 모니터링 데이터에 상응하는 로그 데이터를 저장하는 메모리를 포함한다.The IoT gateway according to an embodiment of the present invention collects monitoring data for a plurality of sensor nodes connected to a Smart Utility Network and transmits the collected monitoring data to a Message Queuing Telemetry Transfer (MQTT) To an MQTT Subscriber subscribed to the MQTT; And a memory for storing log data corresponding to the collected monitoring data.

이 때, 프로세서는 상기 복수개의 센서 노드들 각각에 대한 데이터 쿼리 메시지를 생성하고, 상기 데이터 쿼리 메시지를 상기 복수개의 센서 노드들과 연동되어 동작하는 AP(Access Point) 노드에게 전달하고, AP 노드를 기반으로 상기 데이터 쿼리 메시지를 상기 복수개의 센서 노드들과 순차적으로 송수신할 수 있다.At this time, the processor generates a data query message for each of the plurality of sensor nodes, delivers the data query message to an AP (Access Point) operating in cooperation with the plurality of sensor nodes, And sequentially transmit and receive the data query message to and from the plurality of sensor nodes.

이 때, 프로세서는 상기 수집된 모니터링 데이터를 로그 데이터로 생성하고, 저장된 로그 데이터 중 기설정된 보관 시간을 초과한 로그 데이터는 삭제할 수 있다.At this time, the processor may generate the collected monitoring data as log data, and may delete log data that exceeds the preset retention time of the stored log data.

이 때, 로그 데이터는 로그 생성시간에 해당하는 파일명에 상응하게 생성될 수 있다.At this time, the log data may be generated corresponding to the file name corresponding to the log generation time.

이 때, 프로세서는 MQTT 퍼블리셔(publisher)를 통해 MQTT 브로커(broker)에 MQTT 발행 등록을 요청할 수 있다.At this time, the processor can request the MQTT broker to register the MQTT issue via the MQTT publisher.

이 때, 프로세서는 상기 MQTT 퍼블리셔로부터 기설정된 주기마다 발생하는 모니터링 요청에 상응하게 상기 모니터링 데이터를 수집할 수 있다.At this time, the processor may collect the monitoring data corresponding to the monitoring request generated from the MQTT publisher every predetermined period.

본 발명에 따르면, 별도의 서버 없이도 인터넷 서비스를 직접 제공할 수 있는 IoT 게이트웨이를 제공할 수 있다.According to the present invention, it is possible to provide an IoT gateway that can directly provide Internet service without a separate server.

또한, 본 발명은 SUN(Smart Utility Network) 기반의 모니터링 시스템에 인터넷 연동을 직접 제공함으로써 서비스 확장과 보급을 효율적으로 수행할 수 있다.In addition, the present invention can efficiently perform service expansion and dissemination by directly providing Internet interworking to a monitoring system based on a Smart Utility Network (SUN).

또한, 본 발명은 MQTT(Message Queuing Telemetry Transfer) 환경에서 범용 서비스 제공이 가능한 SUN 기반의 모니터링 기술을 제공할 수 있다.In addition, the present invention can provide a SUN-based monitoring technology capable of providing a general-purpose service in an MQTT (Message Queuing Telemetry Transfer) environment.

도 1은 본 발명의 일실시예에 따른 MQTT 기반의 IoT 게이트웨이를 이용한 SUN 센서 모니터링 시스템을 나타낸 도면이다.
도 2는 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법을 나타낸 동작 흐름도이다.
도 3은 본 발명에 따른 IoT 게이트웨이와 SUN 센서 모니터링 시스템의 구체적인 구조의 일 예를 나타낸 도면이다.
도 4는 본 발명에 따른 SUN 센서 모니터링 과정의 일 예를 나타낸 도면이다.
도 5는 본 발명에 따른 로그 데이터 관리 과정의 일 예를 나타낸 도면이다.
도 6은 본 발명의 일실시예에 따른 IoT 게이트웨이를 나타낸 블록도이다.
1 is a block diagram of a SUN sensor monitoring system using an MQTT based IoT gateway according to an embodiment of the present invention.
2 is a flowchart illustrating a method of monitoring a SUN sensor according to an exemplary embodiment of the present invention.
3 is a diagram illustrating an example of a specific structure of the IOT gateway and the SUN sensor monitoring system according to the present invention.
4 is a diagram illustrating an example of a SUN sensor monitoring process according to the present invention.
5 is a diagram illustrating an example of a log data management process according to the present invention.
6 is a block diagram illustrating an IoT gateway according to an embodiment of the present invention.

본 발명을 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다. 여기서, 반복되는 설명, 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능, 및 구성에 대한 상세한 설명은 생략한다. 본 발명의 실시형태는 당 업계에서 평균적인 지식을 가진 자에게 본 발명을 보다 완전하게 설명하기 위해서 제공되는 것이다. 따라서, 도면에서의 요소들의 형상 및 크기 등은 보다 명확한 설명을 위해 과장될 수 있다.The present invention will now be described in detail with reference to the accompanying drawings. Hereinafter, a repeated description, a known function that may obscure the gist of the present invention, and a detailed description of the configuration will be omitted. Embodiments of the present invention are provided to more fully describe the present invention to those skilled in the art. Accordingly, the shapes and sizes of the elements in the drawings and the like can be exaggerated for clarity.

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

도 1은 본 발명의 일실시예에 따른 MQTT 기반의 IoT 게이트웨이를 이용한 SUN 센서 모니터링 시스템을 나타낸 도면이다.FIG. 1 is a block diagram of a SUN sensor monitoring system using an MQTT based IoT gateway according to an embodiment of the present invention. Referring to FIG.

도 1을 참조하면, 본 발명의 일실시예에 따른 MQTT 기반의 IoT 게이트웨이를 이용한 SUN 센서 모니터링 시스템은 IoT 게이트웨이(110), 복수개의 SUN 센서들 (120-1~120-N), 인터넷(130) 및 사용자 단말(140-1~140-3)을 포함한다. 1, a SUN sensor monitoring system using an MQTT-based IoT gateway according to an exemplary embodiment of the present invention includes an IoT gateway 110, a plurality of SUN sensors 120-1 to 120-N, And user terminals 140-1 to 140-3.

IoT 게이트웨이(110)는 SUN(Smart Utility Network) 기반 모니터링 시스템을 인터넷(130) 기반의 범용 서비스 형태로 확장하기 위한 장치로써 MQTT(Message Queuing Telemetry Transfer) 프로토콜을 제공할 수 있다. The IoT gateway 110 is a device for expanding a Smart Utility Network (SUN) based monitoring system into a general service type based on the Internet 130, and can provide a Message Queuing Telemetry Transfer (MQTT) protocol.

종래의 SUN 통신 기술은 인터넷 기반의 범용 서비스를 제공하지 않으므로 일반적인 SUN 기반의 모니터링 시스템은 서비스 확장 및 보급에 문제점을 가지고 있다. 따라서, SUN 통신 데이터를 TCP/IP 및 HTTP 소켓 프로그램으로 변경하여 인터넷 서비스를 제공하는 별도의 서버를 필요로 하는 단점이 존재하였다.Since the conventional SUN communication technology does not provide Internet-based general service, a general SUN-based monitoring system has problems in expansion and dissemination of services. Therefore, there is a disadvantage that a separate server for providing Internet service by changing the SUN communication data to the TCP / IP and HTTP socket program is required.

그러나, 본 발명에 따른 SUN 센서 모니터링 시스템은 MQTT 프로토콜을 기반으로 인터넷 서비스를 별도의 서버 없이 직접 제공하는 IoT 게이트웨이(110)를 제공하고, SUN 모듈을 IoT 게이트웨이(110)에 직접 연동하여 데이터 변환 기능을 제공함으로써 SUN 기반의 모니터링 시스템에 인터넷 연동을 직접 제공할 수 있다. However, the SUN sensor monitoring system according to the present invention provides the IoT gateway 110 directly providing the Internet service without a separate server based on the MQTT protocol, and directly connects the SUN module to the IoT gateway 110, , It is possible to directly provide the Internet connection to the SUN-based monitoring system.

이와 같은 IoT 게이트웨이(110)는 스마트 유틸리티 네트워크(SUN)에 연결된 복수개의 센서 노드들, 즉 도 1에 도시된 복수개의 SUN 센서들(120-1~120-N)에 대한 모니터링 데이터를 수집한다.The IoT gateway 110 collects monitoring data for a plurality of sensor nodes connected to the smart utility network SUN, i.e., the plurality of SUN sensors 120-1 to 120-N shown in FIG.

이 때, 복수개의 SUN 센서들(120-1~120-N) 각각에 대한 데이터 쿼리 메시지를 생성하고, 데이터 쿼리 메시지를 복수개의 SUN 센서들(120-1~120-N)과 연동되어 동작하는 AP(Access Point) 노드에게 전달할 수 있다.At this time, a data query message is generated for each of the plurality of SUN sensors 120-1 to 120-N, and the data query message is operated in conjunction with the plurality of SUN sensors 120-1 to 120-N AP (Access Point) node.

이 때, AP 노드를 기반으로 데이터 쿼리 메시지를 복수개의 SUN 센서들(120-1~120-N)과 순차적으로 송수신할 수 있다. At this time, it is possible to sequentially transmit and receive a data query message to the plurality of SUN sensors 120-1 to 120-N based on AP nodes.

이 때, MQTT 퍼블리셔로부터 기설정된 주기마다 발생하는 모니터링 요청에 상응하게 모니터링 데이터를 수집할 수 있다. At this time, the monitoring data may be collected from the MQTT publisher in accordance with the monitoring request generated every predetermined period.

또한, IoT 게이트웨이(110)는 수집된 모니터링 데이터를 MQTT 프로토콜에 구독 등록된 MQTT 서브스크리버(Subscriber)에게 제공한다. Also, the IoT gateway 110 provides the collected monitoring data to the MQTT subscriber subscribed to the MQTT protocol.

이 때, MQTT 서브스크리버는 일반적으로 사용자 단말(140-1~140-3)에 장착되어 구동될 수 있으며, MQTT 연결이 가능한 환경하에서는 어떤 장치에든 구현이 가능할 수 있다. In this case, the MQTT subscriber can be generally installed in the user terminals 140-1 to 140-3 and can be implemented in any device under the environment where the MQTT connection is possible.

또한, IoT 게이트웨이(110)는 수집된 모니터링 데이터를 로그 데이터로 생성하여 저장할 수 있다. In addition, the IoT gateway 110 can generate and store the collected monitoring data as log data.

이 때, 로그 데이터는 로그 생성시간에 해당하는 파일명에 상응하게 생성될 수 있다. At this time, the log data may be generated corresponding to the file name corresponding to the log generation time.

또한, IoT 게이트웨이(110)는 저장된 로그 데이터 중 기설정된 보관 시간을 초과한 로그 데이터는 삭제할 수 있다.In addition, the IOT gateway 110 can delete log data that exceeds the preset retention time of the stored log data.

또한, IoT 게이트웨이(110)는 IoT 게이트웨이(110) 구동 시 MQTT 퍼블리셔를 통해 MQTT 브로커에 MQTT 발생 등록을 요청할 수 있다.The IoT gateway 110 may request the MQTT broker to register the MQTT occurrence via the MQTT publisher when the IOT gateway 110 is operating.

복수개의 SUN 센서들(120-1~120-N)은 단거리 무선망(Wireless Personal Area Network, WPAN)의 범위를 확장하여 전력망, 가스망, 수도망 등 공공분야의 센서 네트워크를 구축하는 스마트 유틸리티 네트워크(SUN) 환경에서 동작하는 센서에 상응할 수 있다.The plurality of SUN sensors 120-1 to 120-N is a smart utility network that establishes a sensor network in the public sector such as a power network, a gas network, and a water network by extending a range of a wireless personal area network (WPAN) RTI ID = 0.0 > (SUN) < / RTI > environment.

인터넷(130)은 IoT 게이트웨이(110) 및 사용자 단말(140-1~140-3) 사이에 데이터를 전달하는 통로를 제공하는 네트워크에 상응할 수 있다. 이 때, 인터넷(130)은 기존에 이용되는 네트워크 및 향후 개발 가능한 네트워크를 모두 포괄하는 개념일 수 있다. 예를 들어, 인터넷(130)은 한정된 지역 내에서 각종 정보장치들의 통신을 제공하는 유무선근거리 통신망, 이동체 상호 간 및 이동체와 이동체 외부와의 통신을 제공하는 이동통신망, 위성을 이용해 지구국과 지구국간 통신을 제공하는 위성통신망이거나 유무선 통신망 중에서 어느 하나이거나, 둘 이상의 결합으로 이루어질 수 있다. 한편, 인터넷(130)에 상응하는 네트워크의 전송 방식 표준은, 기존의 전송 방식 표준에 한정되는 것은 아니며, 향후 개발될 모든 전송 방식 표준을 포함할 수 있다.The Internet 130 may correspond to a network that provides a pathway for communicating data between the IOT gateway 110 and the user terminals 140-1 through 140-3. At this time, the Internet 130 may be a concept covering both existing networks and future developable networks. For example, the Internet 130 may be a wired / wireless local area network that provides communication of various information devices within a limited area, a mobile communication network that provides communication between mobile objects and mobile objects outside the mobile object, Or a wired / wireless communication network, or a combination of two or more. Meanwhile, the transmission standard of the network corresponding to the Internet 130 is not limited to the existing transmission standard, and may include all the transmission standard to be developed in the future.

사용자 단말(140-1~140-3)은 IoT 게이트웨이(110)를 통해 모니터링 데이터를 제공받는 대상으로, MQTT 서브스크리버(Subscriber)가 장착된 기기에 상응할 수 있다. The user terminals 140-1 to 140-3 may receive the monitoring data through the IOT gateway 110 and may correspond to a device equipped with an MQTT subscriber.

이 때, 사용자 단말(140-1~140-3)은 MQTT 서브스크리버(Subscriber)를 기반으로 MQTT 연결이 가능한 장치라면 어떤 장치든 해당할 수 있다.In this case, the user terminals 140-1 to 140-3 may be any device that can perform an MQTT connection based on an MQTT subscriber.

도 2는 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법을 나타낸 동작 흐름도이다.2 is a flowchart illustrating a method of monitoring a SUN sensor according to an exemplary embodiment of the present invention.

도 2를 참조하면, 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법은 MQTT(Message Queuing Telemetry Transfer) 프로토콜을 포함하는 IoT(Internet of Thing) 게이트웨이가, 스마트 유틸리티 네트워크(SUN)에 연결된 복수개의 센서 노드들에 대한 모니터링 데이터를 수집한다(S210).2, an SUN sensor monitoring method according to an exemplary embodiment of the present invention includes an IoT (Internet of Thing) gateway including a Message Queuing Telemetry Transfer (MQTT) protocol, a plurality of sensors Monitoring data for the nodes is collected (S210).

예를 들어, IoT 게이트웨이는 스마트 유틸리티 네트워크에 의한 통신환경에서 SUN End 노드들로부터 모니터링 데이터를 수집할 수 있다. 이 때, SUN End 노드들은 SUN 센서에 상응할 수도 있다. For example, an IOT gateway may collect monitoring data from SUN End nodes in a communication environment by a smart utility network. At this time, the SUN End nodes may correspond to the SUN sensor.

이 때, 복수개의 센서 노드들 각각에 대한 데이터 쿼리 메시지를 생성하고, 데이터 쿼리 메시지를 복수개의 센서 노드들과 연동되어 동작하는 AP(Access Point) 노드에게 전달할 수 있다. At this time, a data query message may be generated for each of the plurality of sensor nodes, and the data query message may be transmitted to an AP (Access Point) operating in conjunction with the plurality of sensor nodes.

이 때, AP 노드는 SUN을 기반으로 복수개의 SUN 센서들과 연동되어 데이터를 송수신하는 장치일 수 있다. 예를 들어, AP 노드는 SUN 프로토콜을 통해서 REQ/ACK 메시지를 복수개의 센서 노드들과 송수신하여 모니터링 데이터를 수집할 수 있다.In this case, the AP node may be a device that transmits and receives data in cooperation with a plurality of SUN sensors based on the SUN. For example, the AP node can collect the monitoring data by transmitting / receiving a REQ / ACK message to / from a plurality of sensor nodes through the SUN protocol.

이 때, AP 노드를 기반으로 데이터 쿼리 메시지를 복수개의 센서 노드들과 순차적으로 송수신할 수 있다.At this time, a data query message can be sequentially transmitted and received to a plurality of sensor nodes based on the AP node.

예를 들어, 센서 노드가 1번부터 10번까지 존재한다고 가정하면, AP 노드는 먼저 1번 센서 노드에 대해 REQ/ACK 메시지를 송수신하여 모니터링 데이터를 수집할 수 있다. 이 후, 2번 센서 노드에 대해서도 동일한 과정을 수행하여 모니터링 데이터를 수집하고, 2번 센서 노드에 대한 수집이 완료된 이후에 3번 센서 노드에 대한 수집을 수행할 수 있다. 이와 같은 방식으로 10번 센서 노드까지 모니터링 데이터를 순차적으로 수집할 수 있다.For example, assuming that sensor nodes 1 through 10 are present, the AP node may collect the monitoring data by first transmitting and receiving a REQ / ACK message to the first sensor node. Thereafter, the same process is performed on the second sensor node to collect the monitoring data, and after the collection of the second sensor node is completed, the third sensor node can be collected. In this way, the monitoring data can be sequentially collected up to the 10th sensor node.

이 때, MQTT 퍼블리셔(Publisher)로부터 기설정된 주기마다 발생하는 모니터링 요청에 상응하게 모니터링 데이터를 수집할 수 있다. At this time, the monitoring data may be collected from the MQTT Publisher in accordance with a monitoring request generated every predetermined period.

이 때, MQTT 퍼블리셔는 MQTT 프로토콜에서 제공되는 QoS(Quality of Service)레벨 중 하나로 MQTT 브로커(Broker)를 통해 MQTT 서브스크리버(Subscriber)에게 메시지를 전달할 수 있다.At this time, the MQTT publisher can deliver the message to the MQTT subscriber through the MQTT broker as one of the QoS (Quality of Service) levels provided by the MQTT protocol.

즉, 본 발명에 따르면, MQTT 퍼블리셔는 기설정된 주기마다 모니터링 요청에 의해 수집된 모니터링 데이터를 MQTT 서브스크리버에게 제공할 수 있다.That is, according to the present invention, the MQTT publisher can provide the MQTT subscriber with the monitoring data collected by the monitoring request every predetermined period.

예를 들어, MQTT 퍼블리셔는 정보를 만들어 내는 센서에 해당할 수 있으며, MQTT 브로커는 MQTT 퍼블리셔에서 만든 정보를 중계하는 프록시 서버(proxy server)와 같은 역할을 수행할 수 있다. 또한, MQTT 서브스크리버는 정보를 사용하는 사용자, 즉 센서 데이터를 사용하는 어플리케이션에 해당할 수 있다.For example, an MQTT publisher may correspond to a sensor that generates information, and an MQTT broker may serve as a proxy server for relaying information generated by an MQTT publisher. In addition, the MQTT subscriber may correspond to a user using information, that is, an application using sensor data.

이 때, MQTT 퍼블리셔는 IoT 게이트웨이에 포함된 별도의 모니터링 데이터 수집모듈로부터 복수개의 센서 노드들에 대한 모니터링 데이터를 전달받을 수 있다. 예를 들어, 모니터링 데이터 수집모듈을 통해 복수개의 센서 노드들에 대해서 모니터링 데이터가 모두 수집된 경우에 수집된 모니터링 데이터 전체를 MQTT 퍼블리셔로 전달할 수 있다. At this time, the MQTT publisher can receive monitoring data for a plurality of sensor nodes from a separate monitoring data collection module included in the IoT gateway. For example, when the monitoring data is collected for a plurality of sensor nodes through the monitoring data collection module, the entire collected monitoring data can be transmitted to the MQTT publisher.

따라서, MQTT 서브스크리버는 일반적으로 스마트폰, PC 및 노트북과 같은 사용자 디바이스에 장착되어 구동될 수 있다. 또한, MQTT 연결이 가능한 환경하에서는 어떤 장치에든 MQTT 서브스크리버를 구현할 수 있다.Thus, an MQTT subscriber can generally be mounted and operated on a user device such as a smart phone, a PC, and a notebook. In addition, an MQTT subscriber can be implemented in any device under an environment where an MQTT connection is possible.

또한, 도 2에는 도시하지 아니하였으나, 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법은 IoT 게이트웨이의 구동 시 MQTT 퍼블리셔(publisher)를 통해 MQTT 브로커(Broker)에 MQTT 발생 등록을 요청할 수 있다. In addition, although not shown in FIG. 2, the SUN sensor monitoring method according to an embodiment of the present invention may request the MQTT broker to register the MQTT occurrence through the MQTT publisher when the IoT gateway is operated.

예를 들어, 본 발명의 일실시예에 따른 IoT 게이트웨이가 구동되면, MQTT 퍼블리셔는 MQTT 브로커에 MQTT 발생 등록을 요청하고, 또한 MQTT 서브스크리버는 MQTT 브로커에 구동 등록을 요청할 수 있다. 이 때, MQTT 브로커는 IoT 게이트웨이의 구동 시 자동으로 실행되어 메모리에 상주할 수 있다. For example, when the IoT gateway according to an embodiment of the present invention is activated, the MQTT publisher requests the MQTT broker to register the MQTT occurrence, and the MQTT subscriber can request the MQTT broker to register the MQTT broker. At this time, the MQTT broker is automatically executed when the IOT gateway runs and can reside in the memory.

또한, 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법은 IoT 게이트웨이가, 수집된 모니터링 데이터를 MQTT 프로토콜에 구독 등록된 MQTT 서브스크리버(Subscriber)에게 제공한다(S220).In the method of monitoring a SUN sensor according to an embodiment of the present invention, the IoT gateway provides the collected monitoring data to an MQTT subscriber subscribed to the MQTT protocol (S220).

이 때, MQTT 퍼블리셔는 모니터링 데이터를 MQTT 통신 규약에 맞는 MQTT 메시지로 변형시켜 MQTT 브로커에게 발행할 수 있다. At this time, the MQTT publisher can transform the monitoring data into an MQTT message conforming to the MQTT communication protocol and issue it to the MQTT broker.

이 때, MQTT 퍼블리셔는 MQTT 메시지를 발행한 이후에 일정한 주기 동안 Sleep 상태로 천이할 수 있고, 다시 모니터링 요청을 위한 기설정된 주기가 돌아오면 Wake-up 상태로 천이하여 모니터링 기능이 동작하도록 할 수 있다. At this time, the MQTT publisher can transition to the sleep state for a predetermined period after issuing the MQTT message, and when the predetermined period for monitoring request returns, the MQTT publisher can transition to the wake-up state to operate the monitoring function .

이 때, MQTT 브로커는 MQTT 퍼블리셔로부터 발생된 MQTT 메시지를 구동 등록된 MQTT 서브스크리버에게 제공함으로써 MQTT 서브스크리버가 장착된 사용자의 단말 또는 디바이스로 모니터링 데이터를 제공할 수 있다.At this time, the MQTT broker can provide the MQTT message generated from the MQTT publisher to the registered MQTT subscriber, thereby providing the monitoring data to the terminal or device of the user equipped with the MQTT subscriber.

또한, 도 2에는 도시하지 아니하였으나, 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법은 IoT 게이트웨이가 수집된 모니터링 데이터를 로그 데이터로 생성하여 저장할 수 있다.In addition, although not shown in FIG. 2, the SUN sensor monitoring method according to an embodiment of the present invention can generate and store monitoring data collected by the IoT gateway as log data.

이 때, 모니터링 데이터를 로그 데이터의 형태로 관리함으로써 모니터링 시스템에 대한 유지보수 및 기능 확인을 편리하게 제공할 수 있다. 예를 들어, 로그 데이터를 기반으로 모니터링 데이터가 MQTT 프로토콜을 통해서 사용자에게 제대로 전달되지 않을 경우를 대비한 분석 기능을 제공하거나, 또는 시스템 관리자에게 유지보수를 위한 정보 제공의 목적으로 로그 데이터를 제공할 수도 있다. In this case, by monitoring data in the form of log data, it is possible to conveniently provide maintenance and function confirmation to the monitoring system. For example, if the monitoring data based on the log data is not properly transmitted to the user through the MQTT protocol, the analysis function may be provided or the log data may be provided to the system administrator for the purpose of providing information for maintenance It is possible.

이 때, 로그 데이터는 로그 생성시간에 해당하는 파일명에 상응하게 생성될 수 있다. 예를 들어, 로그 데이터는 연, 월, 일, 시, 분, 초 기반의 파일명을 가지는 파일의 형태로 생성될 수 있다. At this time, the log data may be generated corresponding to the file name corresponding to the log generation time. For example, the log data may be generated in the form of a file having a filename based on year, month, day, hour, minute, and second.

이 때, 로그 데이터는 기설정된 주기에 따라 모니터링 데이터가 수집될 때마다 생성되어 저장될 수 있다. 즉, MQTT 퍼블리셔에 의해 모니터링이 요청되어 모니터링 데이터가 수집될 때마다 해당 모니터링 데이터에 상응하는 로그 데이터가 생성되고 관리될 수 있다. At this time, the log data may be generated and stored every time monitoring data is collected according to a predetermined period. That is, whenever monitoring is requested by the MQTT publisher and the monitoring data is collected, log data corresponding to the monitoring data can be generated and managed.

이 때, 로그 데이터는 IoT 게이트웨이의 내부에 존재하는 메모리에 저장되거나 또는 IoT 게이트웨이와 연동되어 동작하는 별도의 저장 모듈에 저장될 수도 있다. In this case, the log data may be stored in a memory existing inside the IoT gateway or in a separate storage module operating in conjunction with the IoT gateway.

또한, 도 2에는 도시하지 아니하였으나, 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법은 IoT 게이트웨이가 저장된 로그 데이터 중 기설정된 보관 시간을 초과한 로그 데이터는 삭제할 수 있다. Although not shown in FIG. 2, the method of monitoring a SUN sensor according to an exemplary embodiment of the present invention can delete log data stored in the IoT gateway in excess of a predetermined storage time.

이 때, 로그 데이터를 주기적으로 삭제함으로써 불필요한 데이터가 축적되어 IoT 게이트웨이의 성능이 저하되거나 시스템이 다운되는 것을 방지할 수 있다. At this time, by deleting the log data periodically, it is possible to prevent the performance of the IOT gateway from being degraded or the system to be down due to accumulation of unnecessary data.

따라서, IoT 게이트웨이 내부에서 로그 데이터를 삭제하기 위한 별도의 로그 데이터 삭제 모듈은 Sleep 상태에서 일정한 시간마다 Wake-up 상태로 천이되면서 기설정된 보관 시간을 초과한 로그 데이터를 찾아 삭제하도록 명령할 수 있다. Accordingly, the separate log data deletion module for deleting log data in the IoT gateway can be instructed to search for and delete log data exceeding a predetermined storage time while transitioning from the sleep state to the wake-up state at regular time intervals.

또한, 도 2에는 도시하지 아니하였으나, 본 발명의 일실시예에 따른 SUN 센서 모니터링 방법은 상술한 바와 같이 SUN 센서 모니터링 과정에서 발생하는 다양한 정보를 저장할 수 있다. Also, although not shown in FIG. 2, the method for monitoring a SUN sensor according to an embodiment of the present invention may store various information generated in the SUN sensor monitoring process as described above.

이와 같은 SUN 센서 모니터링 방법을 통해, 별도의 서버 없이도 인터넷 서비스를 직접 제공할 수 있는 IoT 게이트웨이를 제공할 수 있다.Through the SUN sensor monitoring method, it is possible to provide an IoT gateway that can directly provide Internet service without a separate server.

또한, SUN(Smart Utility Network) 기반의 모니터링 시스템에 인터넷 연동을 직접 제공함으로써 서비스 확장과 보급을 효율적으로 수행할 수 있다.In addition, it is possible to efficiently perform service expansion and dissemination by directly providing Internet interworking to a monitoring utility based on a SUN (Smart Utility Network).

또한, MQTT(Message Queuing Telemetry Transfer) 환경에서 범용 서비스 제공이 가능한 SUN 기반의 모니터링 기술을 제공할 수 있다.In addition, it is possible to provide a SUN-based monitoring technology capable of providing a general-purpose service in an MQTT (Message Queuing Telemetry Transfer) environment.

도 3은 본 발명에 따른 IoT 게이트웨이와 SUN 센서 모니터링 시스템의 구체적인 구조의 일 예를 나타낸 도면이다.3 is a diagram illustrating an example of a specific structure of the IOT gateway and the SUN sensor monitoring system according to the present invention.

도 3을 참조하면, 본 발명에 따른 SUN 센서 모니터링 시스템은 도 3에 도시된 IoT 게이트웨이(300)를 중심으로 동작하되, 복수개의 SUN END 노드 제어 모듈들(320-1~320-N)로부터 모니터링 데이터를 수집하여 최종적으로 MQTT Subscriber(310)에게 제공하는 구조에 해당할 수 있다. Referring to FIG. 3, the SUN sensor monitoring system according to the present invention operates based on the IoT gateway 300 shown in FIG. 3, and monitors a plurality of SUN END node control modules 320-1 to 320- And finally collects the data and provides it to the MQTT Subscriber 310. [

이 때, 도 3에 도시된 IoT 게이트웨이(300)의 구체적인 구조를 기반으로 SUN 센서 모니터링을 수행하는 과정을 설명하면 다음과 같다. Hereinafter, a process of monitoring the SUN sensor based on the specific structure of the IoT gateway 300 shown in FIG. 3 will be described.

먼저, 모니터링을 수행하기 위해 IoT 게이트웨이(300)를 구동시킬 수 있다. First, the IoT gateway 300 may be driven to perform monitoring.

이 때, IoT 게이트웨이(300)의 구동과 함께 MQTT 브로커(301)가 실행되어 IoT 게이트웨이(300)의 메모리에 상주할 수 있다.At this time, the MQTT broker 301 may be executed together with the IOT gateway 300 to reside in the memory of the IoT gateway 300. [

이 후, MQTT 프로토콜을 사용하기 위해서 MQTT 퍼블리셔(302)가 MQTT 브로커(301)로 발생 등록 요청을 수행할 수 있고, MQTT 서브스크리버(310)는 MQTT 브로커(301)로 구독 등록 요청을 수행할 수 있다. Thereafter, in order to use the MQTT protocol, the MQTT publisher 302 can perform an occurrence registration request to the MQTT broker 301, and the MQTT subscriber 310 performs a subscription registration request to the MQTT broker 301 .

이 후, 기설정된 주기마다 MQTT 퍼블리셔(302)가 모니터링을 요청하는 경우, 모니터링 데이터 수집 모듈(303)이 SUN AP 노드 제어모듈(304)을 통해 복수개의 SUN END 노드 제어 모듈들(320-1~320-N)로부터 모니터링 데이터를 수집할 수 있다. Thereafter, when the MQTT publisher 302 requests monitoring every predetermined period, the monitoring data collection module 303 transmits a plurality of SUN END node control modules 320-1 to 320-n through the SUN AP node control module 304, 0.0 > 320-N. ≪ / RTI >

이 때, SUN AP 노드 제어모듈(304)은 모니터링 데이터 수집 모듈로부터 데이터 쿼리 메시지를 전달받고, 이를 바탕으로 복수개의 SUN END 노드 제어 모듈들(320-1~320-N)로부터 모니터링 데이터를 순차적으로 수신할 수 있다. At this time, the SUN AP node control module 304 receives the data query message from the monitoring data collection module, and sequentially receives the monitoring data from the plurality of SUN END node control modules 320-1 to 320-N .

이 후, 모니터링 데이터 수집 모듈(303)은 SUN AP 노드 제어 모듈(304)로부터 전달받은 모니터링 데이터를 각각 MQTT 퍼블리셔(302)와 로그 데이터 생성 모듈(305)에게 전달해줄 수 있다.Thereafter, the monitoring data collection module 303 may transmit the monitoring data received from the SUN AP node control module 304 to the MQTT publisher 302 and the log data generation module 305, respectively.

이 때, MQTT 퍼블리셔(302)가 전달받은 모니터링 데이터를 MQTT 메시지에 상응하는 형태로 변환하여 MQTT 브로커(301)에 발행하면, MQTT 서브스크리버(310)가 MQTT 브로커(301)를 통해 모니터링 데이터에 상응하는 MQTT 메시지를 제공받아, 모니터링 데이터를 획득할 수 있다.At this time, when the MQTT publisher 302 converts the received monitoring data into a form corresponding to the MQTT message and issues the same to the MQTT broker 301, the MQTT subscriber 310 transmits the monitoring data to the MQTT broker 301 through the MQTT broker 301 The corresponding MQTT message can be received and the monitoring data can be obtained.

또한, 로그 데이터 생성 모듈(305)에서는 전달받은 모니터링 데이터를 로그 데이터의 형태로 생성하여 메모리(307)에 저장할 수 있다.In addition, the log data generation module 305 may generate the received monitoring data in the form of log data and store the generated monitoring data in the memory 307.

이 때, 로그 데이터는 그 생성 시기를 알 수 있도록 로그 생성시간에 해당하는 파일명에 상응하게 생성될 수 있다. At this time, the log data may be generated corresponding to the file name corresponding to the log generation time so that the generation time of the log data can be known.

이 때, 로그 데이터 생성 모듈(305)은 모니터링 데이터를 로그 데이터로 변환하기 위한 요청 또는 명령만을 수행하고, 별도의 모듈을 통해 모니터링 데이터를 로그 데이터로 변환할 수도 있다. At this time, the log data generation module 305 may perform only a request or command to convert the monitoring data into log data, and may convert the monitoring data into log data through a separate module.

또한, 로그 데이터 삭제 모듈(306)은 메모리(307)에 저장된 로그 데이터 중 기설정된 보관 시간이 초과된 로그 데이터를 삭제하는 역할을 수행할 수 있다. In addition, the log data deletion module 306 may delete the log data stored in the memory 307 for which the preset retention time has been exceeded.

예를 들어, 로그 데이터 삭제 모듈(306)은 일정한 주기마다 동작하여 메모리(307)에 저장된 전체 로그 데이터들 중 기설정된 보관 시간이 초과된 로그 데이터만을 검색하여 삭제하도록 할 수 있다. 이 때, 로그 데이터의 파일명을 기반으로 로그 데이터의 보관 시간을 판단할 수도 있다.For example, the log data deletion module 306 may operate only at predetermined intervals to retrieve and delete only log data whose total retention time has been exceeded, out of all log data stored in the memory 307. At this time, the storage time of the log data may be determined based on the file name of the log data.

도 4는 본 발명에 따른 SUN 센서 모니터링 과정의 일 예를 나타낸 도면이다.4 is a diagram illustrating an example of a SUN sensor monitoring process according to the present invention.

도 4를 참조하면, 본 발명에 따른 SUN 센서 모니터링 과정은 먼저, IoT 게이트웨이가 구동하여 MQTT 브로커(301)가 메모리에 상주하는 상황에서, MQTT 퍼블리셔(302)가 MQTT 브로커(301)에게 MQTT 발행 등록을 요청할 수 있다(S402).4, in the SUN sensor monitoring process according to the present invention, when the IOT gateway is driven and the MQTT broker 301 resides in the memory, the MQTT publisher 302 transmits an MQTT issuance registration (S402).

또한, MQTT 서브스크리버(310)는 MQTT 브로커(301)에게 MQTT 구독 등록을 요청할 수 있다(S404).In addition, the MQTT subscriber 310 may request the MQTT broker 301 to register the MQTT subscription (S404).

상기와 같은 과정을 통해 MQTT 발행 등록과 MQTT 구동 등록이 완료되어 MQTT 프로토콜의 사용 준비가 완료된 경우, MQTT 퍼블리셔(302)가 복수개의 END 노드들에 대한 모니터링을 요청할 수 있다(S406).If the MQTT publish registration and the MQTT start registration are completed and the MQTT protocol is ready for use, the MQTT publisher 302 may request monitoring of a plurality of END nodes (S406).

이 후, 모니터링 데이터 수집 모듈(303)은 모니터링 요청에 따라 복수개의 SUN END 노드들로부터 모니터링 데이터를 수집하기 위한 쿼리 메시지를 복수개의 SUN END 노드들에 상응하게 순차적으로 생성하여 SUN AP 노드 제어 모듈(304)로 제공할 수 있다.Thereafter, the monitoring data collection module 303 sequentially generates a query message for collecting monitoring data from a plurality of SUN END nodes according to a monitoring request, and sequentially transmits the query message to a SUN AP node control module 304 < / RTI >

즉, 도 4에 도시된 것과 같이 먼저 SUN END 노드 1에 대한 쿼리 메시지를 생성하여 SUN AP 노드 제어 모듈(304)로 제공하면(S408), SUN AP 노드 제어 모듈(304)이 수신된 쿼리 메시지를 기반으로 SUN AP 노드를 이용하여 SUN END 노드 1로 REQ 메시지를 전송할 수 있다(S410). 4, first, a query message for the SUN END node 1 is generated and provided to the SUN AP node control module 304 (S408). Then, the SUN AP node control module 304 transmits the received query message The REQ message can be transmitted to the SUN END node 1 using the SUN AP node (S410).

이 후, SUN END 노드 1에 상응하는 SUN END 노드 제어 모듈(320)이 REQ 메시지에 대한 응답으로 ACK 메시지를 SUN AP 노드에게 전송하면(S412), SUN AP 노드 제어 모듈(304)이 ACK 메시지에 포함된 SUN END 노드 1에 대한 모니터링 데이터를 수집하여 모니터링 데이터 수집 모듈(303)로 제공할 수 있다(S414).Thereafter, when the SUN END node control module 320 corresponding to the SUN END node 1 transmits an ACK message to the SUN AP node in response to the REQ message (S412), the SUN AP node control module 304 transmits an ACK message The monitoring data for the included SUN END node 1 may be collected and provided to the monitoring data collection module 303 (S414).

이 후, 상기와 같은 방식으로 SUN END 노드 2, SUN END 노드 3, ..., SUN END 노드 N까지 모니터링 데이터를 수집할 수 있다(S416~S424).Thereafter, the monitoring data can be collected up to the SUN END node 2, the SUN END node 3, ..., and the SUN END node N in the same manner as described above (S416 to S424).

이 후, 모든 SUN END 노드들에 대한 모니터링 데이터 수집이 완료되면, 모니터링 데이터 수집 모듈(303)은 수집된 모니터링 데이터를 MQTT 퍼블리셔(302)에게 전달할 수 있다(S426).Thereafter, when the collection of the monitoring data for all the SUN END nodes is completed, the monitoring data collection module 303 may transmit the collected monitoring data to the MQTT publisher 302 (S426).

이 후, MQTT 퍼블리셔(302)는 모니터링 데이터를 MQTT 메시지 형태로 변환하여 MQTT 브로커(301)에게 발생할 수 있고(S428), MQTT 서브스크리버(310)는 MQTT 브로커(301)를 통해 모니터링 데이터에 상응하는 MQTT 메시지를 전달받을 수 있다(S430).Thereafter, the MQTT publisher 302 converts the monitoring data into an MQTT message type and may be generated in the MQTT broker 301 (S428), and the MQTT subscriber 310 may receive the monitoring data via the MQTT broker 301 The MQTT message may be received (S430).

이 때, MQTT 퍼블리셔(302)는 모니터링 데이터에 해당하는 MQTT 메시지를 발행한 이후에 일정한 기간 동안 sleep 상태로 천이되었다가(S432), 모니터링을 수행하기 위한 주기가 돌아오면 Wake-up 상태로 천이되어 다시 모니터리 요청을 수행할 수 있다(S434).At this time, after issuing the MQTT message corresponding to the monitoring data, the MQTT publisher 302 transitions to the sleep state for a certain period of time (S432). When the period for performing monitoring returns, the state transitions to the wake-up state The monitoring request may be performed again (S434).

도 5는 본 발명에 따른 로그 데이터 관리 과정의 일 예를 나타낸 도면이다.5 is a diagram illustrating an example of a log data management process according to the present invention.

도 5를 참조하면, 본 발명에 따른 로그 데이터 관리 과정은 먼저, 모니터링 데이터 수집 모듈(303)에 의해 복수개의 SUN END 노드들로부터 모니터링 데이터가 수집되면(S502), 모니터링 데이터 수집 모듈(303)은 모니터링 데이터를 각각 MQTT 퍼블리셔와(302) 로그 데이터 생성 모듈(305)로 전달할 수 있다(S504, S506).5, when the monitoring data is collected from the plurality of SUN END nodes by the monitoring data collection module 303 (S502), the monitoring data collection module 303 analyzes the monitoring data The monitoring data may be transmitted to the MQTT publisher 302 and the log data generation module 305, respectively (S504 and S506).

이 때, MQTT 퍼블리셔(302)와 로그 데이터 생성 모듈(305)로 전달되는 모니터링 데이터는 동일한 데이터일 수 있다.At this time, the monitoring data transmitted to the MQTT publisher 302 and the log data generation module 305 may be the same data.

이 후, 로그 데이터 생성 모듈(305)은 전달받은 모니터링 데이터에 대해 로그 데이터 생성을 요청할 수 있고(S508), 메모리(307)에서는 로그 데이터 생성 요청에 따라 모니터링 데이터에 상응하는 로그 데이터를 생성하여 저장할 수 있다(S510).Thereafter, the log data generation module 305 can request log data generation for the received monitoring data (S508). In the memory 307, log data corresponding to the monitoring data is generated and stored according to the log data generation request (S510).

또한, 로그 데이터 삭제 모듈(306)은 일반적으로는 Sleep 상태로 유지될 수 있고(S512), 일정한 주기마다 Wake-up 상태로 천이되어 동작할 수 있다(S514).In addition, the log data deletion module 306 may be kept in a sleep state (S512), and may be transited to a wake-up state at regular intervals (S514).

이 때, 로그 데이터 삭제 모듈(306)은 메모리(307)에 저장된 로그 데이터들 중 기설정된 보관 시간이 초과된 로그 데이터에 대해 로그 데이터 삭제 명령을 수행할 수 있다(S516).At this time, the log data deletion module 306 can execute a log data deletion command on the log data whose preset retention time has been exceeded among the log data stored in the memory 307 (S516).

이 후, 메모리(307)에서는 로그 데이터 삭제 명령에 따라 기설정된 보관 시간이 초과된 로그 데이터를 삭제할 수 있다(S518).Thereafter, in the memory 307, the log data exceeding the preset retention time may be deleted according to the log data delete command (S518).

이 때, 로그 데이터 삭제 모듈(306)에 의해 주기적으로 로그 데이터 삭제가 구현되지 않을 경우, IoT 게이트웨이는 로그 데이터의 대량 누적으로 인한 성능 저하나 시스템다운 등의 문제가 발생할 수도 있다.If log data deletion is not periodically performed by the log data deletion module 306, the IoT gateway may experience problems such as performance degradation or system down due to mass accumulation of log data.

도 6은 본 발명의 일실시예에 따른 IoT 게이트웨이를 나타낸 블록도이다.6 is a block diagram illustrating an IoT gateway according to an embodiment of the present invention.

도 6을 참조하면, 본 발명의 일실시예에 따른 IoT 게이트웨이는 통신부(610), 프로세서(620), 메모리(630) 및 저장부(640)를 포함한다.6, an IOT gateway according to an embodiment of the present invention includes a communication unit 610, a processor 620, a memory 630, and a storage unit 640.

통신부(610)는 네트워크와 같은 통신망을 통해 SUN 센서 모니터링을 위해 필요한 정보를 송수신하는 역할을 한다. The communication unit 610 transmits and receives information required for monitoring the SUN sensor through a communication network such as a network.

프로세서(620)는 스마트 유틸리티 네트워크(Smart Utility Network)에 연결된 복수개의 센서 노드들에 대한 모니터링 데이터를 수집한다.Processor 620 collects monitoring data for a plurality of sensor nodes connected to a Smart Utility Network.

예를 들어, IoT 게이트웨이는 스마트 유틸리티 네트워크에 의한 통신환경에서 SUN End 노드들로부터 모니터링 데이터를 수집할 수 있다. 이 때, SUN End 노드들은 SUN 센서에 상응할 수도 있다. For example, an IOT gateway may collect monitoring data from SUN End nodes in a communication environment by a smart utility network. At this time, the SUN End nodes may correspond to the SUN sensor.

이 때, 복수개의 센서 노드들 각각에 대한 데이터 쿼리 메시지를 생성하고, 데이터 쿼리 메시지를 복수개의 센서 노드들과 연동되어 동작하는 AP(Access Point) 노드에게 전달할 수 있다. At this time, a data query message may be generated for each of the plurality of sensor nodes, and the data query message may be transmitted to an AP (Access Point) operating in conjunction with the plurality of sensor nodes.

이 때, AP 노드는 SUN을 기반으로 복수개의 SUN 센서들과 연동되어 데이터를 송수신하는 장치일 수 있다. 예를 들어, AP 노드는 SUN 프로토콜을 통해서 REQ/ACK 메시지를 복수개의 센서 노드들과 송수신하여 모니터링 데이터를 수집할 수 있다.In this case, the AP node may be a device that transmits and receives data in cooperation with a plurality of SUN sensors based on the SUN. For example, the AP node can collect the monitoring data by transmitting / receiving a REQ / ACK message to / from a plurality of sensor nodes through the SUN protocol.

이 때, AP 노드를 기반으로 데이터 쿼리 메시지를 복수개의 센서 노드들과 순차적으로 송수신할 수 있다.At this time, a data query message can be sequentially transmitted and received to a plurality of sensor nodes based on the AP node.

예를 들어, 센서 노드가 1번부터 10번까지 존재한다고 가정하면, AP 노드는 먼저 1번 센서 노드에 대해 REQ/ACK 메시지를 송수신하여 모니터링 데이터를 수집할 수 있다. 이 후, 2번 센서 노드에 대해서도 동일한 과정을 수행하여 모니터링 데이터를 수집하고, 2번 센서 노드에 대한 수집이 완료된 이후에 3번 센서 노드에 대한 수집을 수행할 수 있다. 이와 같은 방식으로 10번 센서 노드까지 모니터링 데이터를 순차적으로 수집할 수 있다.For example, assuming that sensor nodes 1 through 10 are present, the AP node may collect the monitoring data by first transmitting and receiving a REQ / ACK message to the first sensor node. Thereafter, the same process is performed on the second sensor node to collect the monitoring data, and after the collection of the second sensor node is completed, the third sensor node can be collected. In this way, the monitoring data can be sequentially collected up to the 10th sensor node.

이 때, MQTT 퍼블리셔(Publisher)로부터 기설정된 주기마다 발생하는 모니터링 요청에 상응하게 모니터링 데이터를 수집할 수 있다. At this time, the monitoring data may be collected from the MQTT Publisher in accordance with a monitoring request generated every predetermined period.

이 때, MQTT 퍼블리셔는 MQTT 프로토콜에서 제공되는 QoS(Quality of Service)레벨 중 하나로 MQTT 브로커(Broker)를 통해 MQTT 서브스크리버(Subscriber)에게 메시지를 전달할 수 있다.At this time, the MQTT publisher can deliver the message to the MQTT subscriber through the MQTT broker as one of the QoS (Quality of Service) levels provided by the MQTT protocol.

즉, 본 발명에 따르면, MQTT 퍼블리셔는 기설정된 주기마다 모니터링 요청에 의해 수집된 모니터링 데이터를 MQTT 서브스크리버에게 제공할 수 있다.That is, according to the present invention, the MQTT publisher can provide the MQTT subscriber with the monitoring data collected by the monitoring request every predetermined period.

예를 들어, MQTT 퍼블리셔는 정보를 만들어 내는 센서에 해당할 수 있으며, MQTT 브로커는 MQTT 퍼블리셔에서 만든 정보를 중계하는 프록시 서버(proxy server)와 같은 역할을 수행할 수 있다. 또한, MQTT 서브스크리버는 정보를 사용하는 사용자, 즉 센서 데이터를 사용하는 어플리케이션에 해당할 수 있다.For example, an MQTT publisher may correspond to a sensor that generates information, and an MQTT broker may serve as a proxy server for relaying information generated by an MQTT publisher. In addition, the MQTT subscriber may correspond to a user using information, that is, an application using sensor data.

이 때, MQTT 퍼블리셔는 IoT 게이트웨이에 포함된 별도의 모니터링 데이터 수집모듈로부터 복수개의 센서 노드들에 대한 모니터링 데이터를 전달받을 수 있다. 예를 들어, 모니터링 데이터 수집모듈을 통해 복수개의 센서 노드들에 대해서 모니터링 데이터가 모두 수집된 경우에 수집된 모니터링 데이터 전체를 MQTT 퍼블리셔로 전달할 수 있다. At this time, the MQTT publisher can receive monitoring data for a plurality of sensor nodes from a separate monitoring data collection module included in the IoT gateway. For example, when the monitoring data is collected for a plurality of sensor nodes through the monitoring data collection module, the entire collected monitoring data can be transmitted to the MQTT publisher.

따라서, MQTT 서브스크리버는 일반적으로 스마트폰, PC 및 노트북과 같은 사용자 디바이스에 장착되어 구동될 수 있다. 또한, MQTT 연결이 가능한 환경하에서는 어떤 장치에든 MQTT 서브스크리버를 구현할 수 있다.Thus, an MQTT subscriber can generally be mounted and operated on a user device such as a smart phone, a PC, and a notebook. In addition, an MQTT subscriber can be implemented in any device under an environment where an MQTT connection is possible.

또한, 프로세서(620)는 IoT 게이트웨이의 구동 시 MQTT 퍼블리셔(publisher)를 통해 MQTT 브로커(Broker)에 MQTT 발생 등록을 요청할 수 있다.In addition, the processor 620 can request the MQTT broker to register the MQTT occurrence via the MQTT publisher when the IOT gateway is started.

예를 들어, 본 발명의 일실시예에 따른 IoT 게이트웨이가 구동되면, MQTT 퍼블리셔는 MQTT 브로커에 MQTT 발생 등록을 요청하고, 또한 MQTT 서브스크리버는 MQTT 브로커에 구동 등록을 요청할 수 있다. 이 때, MQTT 브로커는 IoT 게이트웨이의 구동 시 자동으로 실행되어 메모리에 상주할 수 있다.For example, when the IoT gateway according to an embodiment of the present invention is activated, the MQTT publisher requests the MQTT broker to register the MQTT occurrence, and the MQTT subscriber can request the MQTT broker to register the MQTT broker. At this time, the MQTT broker is automatically executed when the IOT gateway runs and can reside in the memory.

또한, 프로세서(620)는 수집된 모니터링 데이터를 MQTT(Message Queuing Telemetry Transfer) 프로토콜에 구독 등록된 MQTT 서브스크리버(Subscriber)에게 제공한다. In addition, the processor 620 provides the collected monitoring data to the MQTT subscriber subscribed to the MQTT (Message Queuing Telemetry Transfer) protocol.

이 때, MQTT 퍼블리셔는 모니터링 데이터를 MQTT 통신 규약에 맞는 MQTT 메시지로 변형시켜 MQTT 브로커에게 발행할 수 있다. At this time, the MQTT publisher can transform the monitoring data into an MQTT message conforming to the MQTT communication protocol and issue it to the MQTT broker.

이 때, MQTT 퍼블리셔는 MQTT 메시지를 발행한 이후에 일정한 주기 동안 Sleep 상태로 천이할 수 있고, 다시 모니터링 요청을 위한 기설정된 주기가 돌아오면 Wake-up 상태로 천이하여 모니터링 기능이 동작하도록 할 수 있다. At this time, the MQTT publisher can transition to the sleep state for a predetermined period after issuing the MQTT message, and when the predetermined period for monitoring request returns, the MQTT publisher can transition to the wake-up state to operate the monitoring function .

이 때, MQTT 브로커는 MQTT 퍼블리셔로부터 발생된 MQTT 메시지를 구동 등록된 MQTT 서브스크리버에게 제공함으로써 MQTT 서브스크리버가 장착된 사용자의 단말 또는 디바이스로 모니터링 데이터를 제공할 수 있다.At this time, the MQTT broker can provide the MQTT message generated from the MQTT publisher to the registered MQTT subscriber, thereby providing the monitoring data to the terminal or device of the user equipped with the MQTT subscriber.

또한, 프로세서(620)는 IoT 게이트웨이가 수집된 모니터링 데이터를 로그 데이터로 생성하여 저장할 수 있다.In addition, the processor 620 can generate and store the collected monitoring data as log data by the IoT gateway.

이 때, 모니터링 데이터를 로그 데이터의 형태로 관리함으로써 모니터링 시스템에 대한 유지보수 및 기능 확인을 편리하게 제공할 수 있다. 예를 들어, 로그 데이터를 기반으로 모니터링 데이터가 MQTT 프로토콜을 통해서 사용자에게 제대로 전달되지 않을 경우를 대비한 분석 기능을 제공하거나, 또는 시스템 관리자에게 유지보수를 위한 정보 제공의 목적으로 로그 데이터를 제공할 수도 있다. In this case, by monitoring data in the form of log data, it is possible to conveniently provide maintenance and function confirmation to the monitoring system. For example, if the monitoring data based on the log data is not properly transmitted to the user through the MQTT protocol, the analysis function may be provided or the log data may be provided to the system administrator for the purpose of providing information for maintenance It is possible.

이 때, 로그 데이터는 로그 생성시간에 해당하는 파일명에 상응하게 생성될 수 있다. 예를 들어, 로그 데이터는 연, 월, 일, 시, 분, 초 기반의 파일명을 가지는 파일의 형태로 생성될 수 있다. At this time, the log data may be generated corresponding to the file name corresponding to the log generation time. For example, the log data may be generated in the form of a file having a filename based on year, month, day, hour, minute, and second.

이 때, 로그 데이터는 기설정된 주기에 따라 모니터링 데이터가 수집될 때마다 생성되어 저장될 수 있다. 즉, MQTT 퍼블리셔에 의해 모니터링이 요청되어 모니터링 데이터가 수집될 때마다 해당 모니터링 데이터에 상응하는 로그 데이터가 생성되고 관리될 수 있다. At this time, the log data may be generated and stored every time monitoring data is collected according to a predetermined period. That is, whenever monitoring is requested by the MQTT publisher and the monitoring data is collected, log data corresponding to the monitoring data can be generated and managed.

이 때, 로그 데이터는 IoT 게이트웨이의 내부에 존재하는 메모리에 저장되거나 또는 IoT 게이트웨이와 연동되어 동작하는 별도의 저장 모듈에 저장될 수도 있다.In this case, the log data may be stored in a memory existing inside the IoT gateway or in a separate storage module operating in conjunction with the IoT gateway.

또한, 프로세서(620)는 IoT 게이트웨이가 저장된 로그 데이터 중 기설정된 보관 시간을 초과한 로그 데이터는 삭제할 수 있다.In addition, the processor 620 can delete log data that exceeds the predetermined retention time of the log data stored in the IoT gateway.

이 때, 로그 데이터를 주기적으로 삭제함으로써 불필요한 데이터가 축적되어 IoT 게이트웨이의 성능이 저하되거나 시스템이 다운되는 것을 방지할 수 있다. At this time, by deleting the log data periodically, it is possible to prevent the performance of the IOT gateway from being degraded or the system to be down due to accumulation of unnecessary data.

따라서, IoT 게이트웨이 내부에서 로그 데이터를 삭제하기 위한 별도의 로그 데이터 삭제 모듈은 Sleep 상태에서 일정한 시간마다 Wake-up 상태로 천이되면서 기설정된 보관 시간을 초과한 로그 데이터를 찾아 삭제하도록 명령할 수 있다.Accordingly, the separate log data deletion module for deleting log data in the IoT gateway can be instructed to search for and delete log data exceeding a predetermined storage time while transitioning from the sleep state to the wake-up state at regular time intervals.

메모리(630)는 수집된 모니터링 데이터에 상응하는 로그 데이터를 저장한다.The memory 630 stores log data corresponding to the collected monitoring data.

저장부(640)는 상술한 바와 같이 본 발명의 일실시예에 따른 IoT 게이트웨이에서 발생하는 다양한 정보를 저장한다.The storage unit 640 stores various information generated in the IoT gateway according to an embodiment of the present invention as described above.

실시예에 따라, 저장부(640)는 IoT 게이트웨이와 독립적으로 구성되어 SUN 센서 모니터링을 위한 기능을 지원할 수 있다. 이 때, 저장부(640)는 별도의 대용량 스토리지로 동작할 수 있고, 동작 수행을 위한 제어 기능을 포함할 수도 있다.According to the embodiment, the storage unit 640 may be configured independently of the IOT gateway to support the function for monitoring the SUN sensor. At this time, the storage unit 640 may operate as a separate mass storage and may include a control function for performing operations.

한편, IoT 게이트웨이는 메모리가 탑재되어 그 장치 내에서 정보를 저장할 수 있다. 일 구현예의 경우, 메모리는 컴퓨터로 판독 가능한 매체이다. 일 구현 예에서, 메모리는 휘발성 메모리 유닛일 수 있으며, 다른 구현예의 경우, 메모리는 비휘발성 메모리 유닛일 수도 있다. 일 구현예의 경우, 저장장치는 컴퓨터로 판독 가능한 매체이다. 다양한 서로 다른 구현 예에서, 저장장치는 예컨대 하드디스크 장치, 광학디스크 장치, 혹은 어떤 다른 대용량 저장장치를 포함할 수도 있다.On the other hand, the IoT gateway can store information in the device by mounting the memory. In one implementation, the memory is a computer-readable medium. In one implementation, the memory may be a volatile memory unit, and in other embodiments, the memory may be a non-volatile memory unit. In one implementation, the storage device is a computer-readable medium. In various different implementations, the storage device may comprise, for example, a hard disk device, an optical disk device, or any other mass storage device.

이와 같은 IoT 게이트웨이를 이용함으로써 별도의 서버 없이도 인터넷 서비스를 직접 제공할 수 있는 IoT 게이트웨이를 제공할 수 있다.By using such an IoT gateway, it is possible to provide an IoT gateway that can directly provide Internet service without a separate server.

또한, SUN(Smart Utility Network) 기반의 모니터링 시스템에 인터넷 연동을 직접 제공함으로써 서비스 확장과 보급을 효율적으로 수행할 수 있다.In addition, it is possible to efficiently perform service expansion and dissemination by directly providing Internet interworking to a monitoring utility based on a SUN (Smart Utility Network).

또한, MQTT(Message Queuing Telemetry Transfer) 환경에서 범용 서비스 제공이 가능한 SUN 기반의 모니터링 기술을 제공할 수 있다.In addition, it is possible to provide a SUN-based monitoring technology capable of providing a general-purpose service in an MQTT (Message Queuing Telemetry Transfer) environment.

이상에서와 같이 본 발명에 따른 MQTT 기반의 IoT 게이트웨이를 이용한 SUN 센서 모니터링 방법 및 이를 위한 장치는 상기한 바와 같이 설명된 실시예들의 구성과 방법이 한정되게 적용될 수 있는 것이 아니라, 상기 실시예들은 다양한 변형이 이루어질 수 있도록 각 실시예들의 전부 또는 일부가 선택적으로 조합되어 구성될 수도 있다.As described above, the method and apparatus for monitoring the SUN sensor using the MQTT-based IoT gateway according to the present invention are not limited to the configuration and method of the embodiments described above, All or some of the embodiments may be selectively combined so as to allow the modification to be made.

110, 300: IoT 게이트웨이 120-1~120-N: SUN 센서
130: 인터넷 140-1~140-3: 사용자 단말
301: MQTT 브로커(Broker) 302: MQTT 퍼블리셔(Publisher)
303: 모니터링 데이터 수집 모듈 304: SUN AP 노드 제어모듈
305: 로그 데이터 생성모듈 306: 로그 데이터 삭제모듈
307: 메모리 310: MQTT 서브스크리버(Subscriber)
320, 320-1~320-N: SUN End 노드 제어모듈
610: 통신부 620: 프로세서
630: 메모리 640: 저장부
110 and 300: IoT gateways 120-1 to 120-N: SUN sensors
130: Internet 140-1 to 140-3: User terminal
301: MQTT Broker 302: MQTT Publisher
303: Monitoring data collection module 304: SUN AP node control module
305: log data generation module 306: log data deletion module
307: Memory 310: MQTT Subscriber
320, 320-1 to 320-N: SUN End node control module
610: communication unit 620: processor
630: memory 640:

Claims (10)

MQTT(Message Queuing Telemetry Transfer) 프로토콜을 포함하는 IoT(Internet of Thing) 게이트웨이를 이용한 SUN(Smart Utility Network) 센서 모니터링 방법에 있어서,
상기 IoT 게이트웨이의 구동 시 MQTT 퍼블리셔(publisher)를 통해 MQTT 브로커(broker)에 MQTT 발행 등록을 요청하는 단계;
상기 IoT 게이트웨이가, 상기 MQTT 퍼블리셔로부터 기설정된 주기마다 발생하는 모니터링 요청에 상응하게 스마트 유틸리티 네트워크(SUN)에 연결된 복수개의 센서 노드들에 대한 모니터링 데이터를 수집하는 단계;
상기 IoT 게이트웨이가, 수집된 모니터링 데이터를 상기 MQTT 프로토콜에 구독 등록된 MQTT 서브스크리버(Subscriber)에게 제공하는 단계; 및
상기 IoT 게이트웨이가 상기 수집된 모니터링 데이터를 로그 데이터로 생성하여 저장하고, 상기 IoT 게이트웨이가 저장된 로그 데이터 중 기설정된 보관 시간을 초과한 로그 데이터는 삭제하는 단계
를 포함하고,
상기 MQTT 퍼블리셔 및 상기 IoT 게이트웨이 내부에서 상기 로그 데이터를 삭제하는 로그 데이터 삭제 모듈 중 적어도 하나는, 동작하지 않는 주기 동안에 Sleep 상태로 천이되고, 동작하는 주기가 돌아오면 Wake-up 상태로 천이되어 동작하는 것을 특징으로 하는 SUN 센서 모니터링 방법.
A Smart Utility Network (SUN) sensor monitoring method using an Internet of Thing (IoT) gateway including a Message Queuing Telemetry Transfer (MQTT) protocol,
Requesting an MQTT broker to register an MQTT issue through an MQTT publisher when the IOT gateway is operated;
Collecting monitoring data for a plurality of sensor nodes connected to the smart utility network (SUN) in accordance with a monitoring request generated by the IOT gateway every predetermined period from the MQTT publisher;
The IoT gateway providing the collected monitoring data to an MQTT subscriber subscribed to the MQTT protocol; And
The IoT gateway generates and stores the collected monitoring data as log data, and deletes log data in which the IoT gateway has exceeded a predetermined storage time of the log data stored in the IoT gateway
Lt; / RTI >
At least one of the MQTT publisher and the log data deletion module for deleting the log data in the IOT gateway transits to a sleep state during a period in which the MQTT does not operate and then transitions to a wake-up state when an operating period returns Wherein the SUN sensor monitoring method comprises:
청구항 1에 있어서,
상기 수집하는 단계는
상기 복수개의 센서 노드들 각각에 대한 데이터 쿼리 메시지를 생성하고, 상기 데이터 쿼리 메시지를 상기 복수개의 센서 노드들과 연동되어 동작하는 AP(Access Point) 노드에게 전달하는 단계; 및
상기 AP 노드를 기반으로 상기 데이터 쿼리 메시지를 상기 복수개의 센서 노드들과 순차적으로 송수신하는 단계를 포함하는 것을 특징으로 하는 SUN 센서 모니터링 방법.
The method according to claim 1,
The collecting step
Generating a data query message for each of the plurality of sensor nodes, and transmitting the data query message to an AP (Access Point) operating in cooperation with the plurality of sensor nodes; And
And sequentially transmitting and receiving the data query message to and from the plurality of sensor nodes based on the AP node.
삭제delete 청구항 1에 있어서,
상기 로그 데이터는 로그 생성시간에 해당하는 파일명에 상응하게 생성되는 것을 특징으로 하는 SUN 센서 모니터링 방법.
The method according to claim 1,
Wherein the log data is generated corresponding to a file name corresponding to a log generation time.
삭제delete 삭제delete MQTT 퍼블리셔(publisher)를 통해 MQTT 브로커(broker)에 MQTT 발행 등록을 요청하고, 상기 MQTT 퍼블리셔로부터 기설정된 주기마다 발생하는 모니터링 요청에 상응하게 스마트 유틸리티 네트워크(Smart Utility Network)에 연결된 복수개의 센서 노드들에 대한 모니터링 데이터를 수집하고, 수집된 모니터링 데이터를 MQTT(Message Queuing Telemetry Transfer) 프로토콜에 구독 등록된 MQTT 서브스크리버(Subscriber)에게 제공하고, 상기 수집된 모니터링 데이터를 로그 데이터로 생성하여 저장하고, 저장된 로그 데이터 중 기설정된 보관 시간을 초과한 로그 데이터는 삭제하는 프로세서; 및
상기 수집된 모니터링 데이터에 상응하는 로그 데이터를 저장하는 메모리
를 포함하고,
상기 MQTT 퍼블리셔 및 상기 프로세서에 의해 상기 로그 데이터를 삭제하는 로그 데이터 삭제 모듈 중 적어도 하나는, 동작하지 않는 주기 동안에 Sleep 상태로 천이되고, 동작하는 주기가 돌아오면 Wake-up 상태로 천이되어 동작하는 것을 특징으로 하는 IoT(Internet of Thing) 게이트웨이.
Requesting the MQTT broker to register the MQTT issuance through an MQTT publisher and transmitting a plurality of sensor nodes connected to the Smart Utility Network in response to a monitoring request generated every predetermined period from the MQTT publisher And provides the collected monitoring data to an MQTT subscriber subscribed to the MQTT (Message Queuing Telemetry Transfer) protocol. The collected monitoring data is generated and stored as log data, A processor for deleting log data exceeding a preset retention time of the stored log data; And
A memory for storing log data corresponding to the collected monitoring data,
Lt; / RTI >
At least one of the MQTT publisher and the log data deletion module for deleting the log data by the processor transits to a sleep state during a period in which the MQTT publisher and the log data deletion module do not operate and transitions to a wake- Features an IoT (Internet of Thing) gateway.
청구항 7에 있어서,
상기 프로세서는
상기 복수개의 센서 노드들 각각에 대한 데이터 쿼리 메시지를 생성하고, 상기 데이터 쿼리 메시지를 상기 복수개의 센서 노드들과 연동되어 동작하는 AP(Access Point) 노드에게 전달하고, 상기 AP 노드를 기반으로 상기 데이터 쿼리 메시지를 상기 복수개의 센서 노드들과 순차적으로 송수신하는 것을 특징으로 하는 IoT 게이트웨이.
The method of claim 7,
The processor
Generating a data query message for each of the plurality of sensor nodes, transmitting the data query message to an AP (Access Point) operating in cooperation with the plurality of sensor nodes, And sequentially transmits and receives a query message to and from the plurality of sensor nodes.
삭제delete 삭제delete
KR1020170113253A 2016-12-07 2017-09-05 Method for mornitering sun-sensor using iot gateway based on mqtt and apparatus using the same KR101936338B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20160165565 2016-12-07
KR1020160165565 2016-12-07

Publications (2)

Publication Number Publication Date
KR20180065868A KR20180065868A (en) 2018-06-18
KR101936338B1 true KR101936338B1 (en) 2019-01-08

Family

ID=62765725

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170113253A KR101936338B1 (en) 2016-12-07 2017-09-05 Method for mornitering sun-sensor using iot gateway based on mqtt and apparatus using the same

Country Status (1)

Country Link
KR (1) KR101936338B1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102074916B1 (en) * 2018-08-01 2020-02-07 충북대학교 산학협력단 Distributed MQTT Broker Architecture based on RPL
KR102204417B1 (en) * 2020-05-11 2021-01-18 (주)오리오르 System and method for contolling smart farms in open field and computer program for the same
KR102422229B1 (en) * 2020-12-18 2022-07-18 주식회사 비카누스 Message broker-based data processing system
KR102476393B1 (en) * 2020-12-24 2022-12-12 한국전자기술연구원 IoT MONITORING SYSTEM FOR DETECTING HARMFUL GASES AND FIRES IN WORK FIELD
KR102357376B1 (en) * 2021-03-16 2022-02-08 한전케이디엔주식회사 Message relay hub, and distribution power facility diagnosis system and method for preventing data loss using the same
KR102631235B1 (en) * 2021-09-16 2024-01-31 화진기업(주) A system for measuring the piping environment information of a ship using a sensor module capable of wireless networking
CN114501186B (en) * 2022-01-28 2023-10-03 瀚云科技有限公司 Data acquisition system, method, electronic equipment and storage medium
CN116016703B (en) * 2022-12-27 2024-01-05 中铁建工集团有限公司 Intelligent building site AI super gateway system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100514082B1 (en) * 2003-04-17 2005-09-09 서울통신기술 주식회사 server system for log information management and method thereof
KR101677462B1 (en) * 2016-01-12 2016-11-18 (주) 마이크로프랜드 Actuator control system for adaptation according environment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101578428B1 (en) * 2009-07-06 2015-12-17 엘지전자 주식회사 Mobile terminal and method for visualizing life log
KR20160118813A (en) 2015-04-03 2016-10-12 한국전자통신연구원 Gateway device being connected to remote server through mobile network and ip management method thereof
KR20160122572A (en) * 2015-04-14 2016-10-24 주식회사 신성엔지니어링 Smart air conditioning control system based on cloud computing environment
KR101635200B1 (en) * 2016-02-23 2016-06-30 주식회사 효성기술 Home Smart intelligent monitoring systemusing IOT and Wideband radar sensing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100514082B1 (en) * 2003-04-17 2005-09-09 서울통신기술 주식회사 server system for log information management and method thereof
KR101677462B1 (en) * 2016-01-12 2016-11-18 (주) 마이크로프랜드 Actuator control system for adaptation according environment

Also Published As

Publication number Publication date
KR20180065868A (en) 2018-06-18

Similar Documents

Publication Publication Date Title
KR101936338B1 (en) Method for mornitering sun-sensor using iot gateway based on mqtt and apparatus using the same
KR101370318B1 (en) Method and Server for Collecting Contents Usage Information
KR101351821B1 (en) Method and Server for Delivering Contents using Delivering Contents List to Mobile Terminal
WO2011059600A2 (en) System, apparatus, and method for communication in a tactical network
WO2019119922A1 (en) Wireless sensor management method, apparatus, and system
CN109982152B (en) P2P CDN service processing method, intelligent gateway and CDN platform
JP6841368B2 (en) Wireless sensor system, wireless terminal device, communication control method and communication control program
KR20130037368A (en) Intermediate node apparatus for configuring sensor network and sensor data processing method using intermediate node apparatus
Schmitt et al. TinyIPFIX: An efficient application protocol for data exchange in cyber physical systems
CN109257425A (en) Novel things-internet gateway and things-internet gateway working method
US20160119740A1 (en) Identifying Resources from a Device in a Communications Network
JP5851374B2 (en) Data management system
CN103401943A (en) Information sharing system and method based on WIFI
CN112672328A (en) Data transmission method, device and equipment and environmental data acquisition method
US9274754B2 (en) Program generating apparatus, program generation method and computer readable medium
JP2005182643A (en) Environment measurement device driven by natural energy
CN104754618A (en) Wireless data transmission method and device
Oliveira et al. Ubiquitous monitoring solution for Wireless Sensor Networks with push notifications and end-to-end connectivity
Choi et al. Implementation of IoT based PV monitoring system with message queuing telemetry transfer protocol and smart utility network
KR20160103110A (en) Network element data access method and apparatus, and network management system
JP2009152899A (en) Radio terminal, radio base station, time distributing system and time distributing method
Zachariah et al. The internet of things still has a gateway problem
JP2010049560A (en) Observation station, server thereof, observation system, and observation method
KR101004798B1 (en) Potential peer producing method and system thereof using P2P sensor network
FR3095568A1 (en) Fluid meter reading process

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