KR102326162B1 - Gateway apparatus - Google Patents

Gateway apparatus Download PDF

Info

Publication number
KR102326162B1
KR102326162B1 KR1020200046126A KR20200046126A KR102326162B1 KR 102326162 B1 KR102326162 B1 KR 102326162B1 KR 1020200046126 A KR1020200046126 A KR 1020200046126A KR 20200046126 A KR20200046126 A KR 20200046126A KR 102326162 B1 KR102326162 B1 KR 102326162B1
Authority
KR
South Korea
Prior art keywords
server
gateway device
port
controller
ports
Prior art date
Application number
KR1020200046126A
Other languages
Korean (ko)
Other versions
KR20210128214A (en
Inventor
김범석
한동희
이청용
Original Assignee
주식회사 엘지유플러스
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 엘지유플러스 filed Critical 주식회사 엘지유플러스
Priority to KR1020200046126A priority Critical patent/KR102326162B1/en
Publication of KR20210128214A publication Critical patent/KR20210128214A/en
Application granted granted Critical
Publication of KR102326162B1 publication Critical patent/KR102326162B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements
    • 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
    • H04L41/0672
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors

Abstract

게이트웨이 장치가 개시된다. 일 실시예는 통신 모듈; 복수의 포트들; 및 상기 통신 모듈 및 상기 복수의 포트들과 커플링되는 컨트롤러를 포함한다. 상기 복수의 포트들은 제1 통신 방식을 지원하는 제1 포트, 제2 통신 방식을 지원하는 제2 포트, 및 접점과 관련된 복수의 제3 포트를 포함하고, 상기 컨트롤러는 서버로부터 수신한 메시지를 상기 복수의 포트들 중 어느 하나와 연결된 장비로 전송하고, 상기 장비의 메시지를 상기 서버로 전송한다.A gateway device is disclosed. One embodiment includes a communication module; a plurality of ports; and a controller coupled to the communication module and the plurality of ports. The plurality of ports include a first port supporting a first communication method, a second port supporting a second communication method, and a plurality of third ports associated with a contact, and the controller transmits the message received from the server. Transmits to a device connected to any one of a plurality of ports, and transmits a message of the device to the server.

Description

게이트웨이 장치{GATEWAY APPARATUS}Gateway Device {GATEWAY APPARATUS}

아래 실시예들은 게이트웨이 장치에 관한 것이다.The embodiments below relate to a gateway device.

기존 IoT 용 게이트웨이 장치는 특정 장비(예를 들어, 정류기, 발전기 등)와 연동하기 위한 특정 인터페이스와 프로토콜(예를 들어, Modbus 등)을 지원한다. 이에 따라, 기존 게이트웨이 장치는 다양한 장비와 연동하기 어렵다. 또한, 장비 별로 게이트웨이 장치가 필요하여 운영 및 유지 보수 비용 효율이 낮다. Existing gateway devices for IoT support specific interfaces and protocols (eg, Modbus, etc.) for interworking with specific equipment (eg, rectifiers, generators, etc.). Accordingly, it is difficult for the existing gateway device to interwork with various devices. In addition, the operation and maintenance cost efficiency is low because a gateway device is required for each equipment.

관련 선행기술로, 한국 공개특허공보 제10-2019-0119217호(발명의 명칭: IoT 기기 통합 모니터링을 위한 게이트웨이, 출원인: 이영돈)가 있다. 해당 공개특허공보에 개시된 IOT 기기 통합 모니터링을 위한 게이트웨이는 블루투스 비콘과 블루투스 프로토콜을 이용하여 통신하는 블루투스 통신부, RFID 태그에 저장된 태그정보를 획득하는 RFID 통신부 및 상기 블루투스 통신부를 통해 연결된 상기 블루투스 비콘의 정보를 수집하고, 상기 RFID 리더를 통해 획득한 상기 태그정보를 수집하는 제어부를 포함한다.As a related prior art, there is Korean Patent Application Laid-Open No. 10-2019-0119217 (Title of the Invention: Gateway for Integrated Monitoring of IoT Devices, Applicant: Youngdon Lee). The gateway for integrated monitoring of IOT devices disclosed in the corresponding publication is a Bluetooth communication unit that communicates with a Bluetooth beacon using a Bluetooth protocol, an RFID communication unit that acquires tag information stored in an RFID tag, and the Bluetooth beacon information connected through the Bluetooth communication unit. and a controller for collecting the tag information acquired through the RFID reader.

전술한 배경기술은 발명자가 본원의 개시 내용을 도출하는 과정에서 보유하거나 습득한 것으로서, 반드시 본 출원 전에 일반 공중에 공개된 공지기술이라고 할 수는 없다. The above-mentioned background art is possessed or acquired by the inventor in the process of deriving the disclosure of the present application, and it cannot be said that it is necessarily known technology disclosed to the general public prior to the present application.

일 측에 따른 게이트웨이 장치는 통신 모듈; 복수의 포트들; 및 상기 통신 모듈 및 상기 복수의 포트들과 커플링되는 컨트롤러를 포함한다. A gateway device according to one side includes a communication module; a plurality of ports; and a controller coupled to the communication module and the plurality of ports.

상기 복수의 포트들은 제1 통신 방식을 지원하는 제1 포트, 제2 통신 방식을 지원하는 제2 포트, 및 접점과 관련된 복수의 제3 포트를 포함하고, 상기 컨트롤러는 서버로부터 수신한 메시지를 상기 복수의 포트들 중 어느 하나와 연결된 장비로 전송하고, 상기 장비의 메시지를 상기 서버로 전송한다.The plurality of ports include a first port supporting a first communication method, a second port supporting a second communication method, and a plurality of third ports associated with a contact, and the controller transmits the message received from the server. Transmits to a device connected to any one of a plurality of ports, and transmits a message of the device to the server.

상기 제1 포트는 직렬 통신 포트를 포함할 수 있다.The first port may include a serial communication port.

상기 제2 포트는 이더넷 통신 포트를 포함할 수 있다.The second port may include an Ethernet communication port.

상기 복수의 제3 포트는 접점 제어 포트, 접점 감시 포트, 및 상태 감시 포트 중 적어도 하나를 포함할 수 있다.The plurality of third ports may include at least one of a contact control port, a contact monitoring port, and a status monitoring port.

상기 컨트롤러는 상기 접점 감시 포트를 통해 감시 대상 장비의 무전원 접점을 감시하고 상기 감시 결과를 상기 서버로 전송할 수 있다.The controller may monitor the non-powered contact of the equipment to be monitored through the contact monitoring port and transmit the monitoring result to the server.

상기 컨트롤러는 상기 접점 제어 포트를 통해 장비를 제어할 수 있다.The controller may control the equipment through the contact control port.

상기 컨트롤러는 상기 상태 감시 포트를 통해 인가되는 전압을 수치값으로 변환하고 상기 수치값을 상기 서버로 전송할 수 있다.The controller may convert the voltage applied through the status monitoring port into a numerical value and transmit the numerical value to the server.

상기 컨트롤러는 오류 발생 시 리부팅을 수행하고, 상기 리부팅에 관한 메시지를 상기 서버로 전송할 수 있다.The controller may reboot when an error occurs, and transmit a message regarding the reboot to the server.

상기 컨트롤러는 미리 설정된 주기에 따라 KEEP ALIVE 메시지를 상기 서버로 전송할 수 있다.The controller may transmit a KEEP ALIVE message to the server according to a preset period.

상기 컨트롤러는 외장 배터리가 장착된 경우, 정전 발생을 감지하고 상기 정전 발생에 관한 메시지를 상기 서버로 전송할 수 있다.When an external battery is installed, the controller may detect an occurrence of a power failure and transmit a message regarding the occurrence of the power failure to the server.

상기 컨트롤러는 상기 서버로 전송할 데이터가 있는 경우, 네트워크 접속 상태를 체크할 수 있다.When there is data to be transmitted to the server, the controller may check a network connection state.

상기 컨트롤러는 상기 서버로 전송할 데이터가 있는 경우, 데이터 전송 AT 커맨드를 수행하고, 상기 데이터 전송 AT 커맨드에 응답이 있는 경우, 전송 카운터를 증가하고 상기 데이터를 상기 서버로 전송하며, 상기 서버로부터 ack를 미리 정해진 시간 이내에 수신하였는지 여부를 확인할 수 있다.When there is data to be transmitted to the server, the controller executes a data transmission AT command, and when there is a response to the data transmission AT command, increments a transmission counter and transmits the data to the server, and receives an ack from the server You can check whether it has been received within a predetermined time.

상기 컨트롤러는 상기 데이터 전송 AT 커맨드를 여러 번 수행하였으나 무응답 또는 에러가 연속적으로 발생한 경우, 상기 통신 모듈을 리셋할 수 있다.The controller may reset the communication module when no response or an error occurs continuously after executing the data transmission AT command several times.

상기 컨트롤러는 상기 서버로부터 ack를 상기 미리 정해진 시간 이내에 수신하지 못한 경우, 네트워크에 등록되었는지 여부를 확인할 수 있다.When the controller does not receive the ack from the server within the predetermined time, the controller may check whether it is registered in the network.

실시예들은 다양한 전원/환경 장비를 단일 게이트웨이 장치로 연동 감시하여 운영 및 유지보수 효율을 향상시킬 수 있고, 다양한 산업 환경의 장비의 감시에 사용될 수 있어 활용 범위가 넓다.Embodiments can improve operation and maintenance efficiency by interworking and monitoring various power/environmental equipment as a single gateway device, and can be used for monitoring equipment in various industrial environments, so that the application range is wide.

도 1 내지 도 2는 일 실시예에 따른 게이트웨이 장치를 설명하기 위한 도면이다.
도 3은 일 실시예에 따른 게이트웨이 장치의 설정을 위한 GUI 화면을 설명하는 도면이다.
도 4 내지 도 5는 일 실시예에 따른 게이트웨이 장치가 메시지 기반의 서버와 통신하는 것을 설명하기 위한 도면이다.
도 6는 일 실시예에 따른 게이트웨이 장치가 데이터 전송 전 망접속이 불가한 경우의 동작 방법을 설명하기 위한 순서도이다.
1 to 2 are diagrams for explaining a gateway device according to an embodiment.
3 is a view for explaining a GUI screen for setting a gateway device according to an embodiment.
4 to 5 are diagrams for explaining that a gateway device communicates with a message-based server according to an embodiment.
6 is a flowchart illustrating an operation method when a gateway device cannot access a data transmission network according to an embodiment.

이하에서, 첨부된 도면을 참조하여 실시예들을 상세하게 설명한다. 그러나, 실시예들에는 다양한 변경이 가해질 수 있어서 특허출원의 권리 범위가 이러한 실시예들에 의해 제한되거나 한정되는 것은 아니다. 실시예들에 대한 모든 변경, 균등물 내지 대체물이 권리 범위에 포함되는 것으로 이해되어야 한다.Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. However, since various changes may be made to the embodiments, the scope of the patent application is not limited or limited by these embodiments. It should be understood that all modifications, equivalents and substitutes for the embodiments are included in the scope of the rights.

실시예에서 사용한 용어는 단지 설명을 목적으로 사용된 것으로, 한정하려는 의도로 해석되어서는 안된다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서 상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the examples are used for description purposes only, and should not be construed as limiting. The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present specification, terms such as “comprise” or “have” are intended to designate that a feature, number, step, operation, component, part, or combination thereof described in the specification exists, but one or more other features It should be understood that this does not preclude the existence or addition of numbers, steps, operations, components, parts, or combinations thereof.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which the embodiment 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, in the description with reference to the accompanying drawings, the same components are given the same reference numerals regardless of the reference numerals, and the overlapping description thereof will be omitted. In the description of the embodiment, if it is determined that a detailed description of a related known technology may unnecessarily obscure the gist of the embodiment, the detailed description thereof will be omitted.

또한, 실시 예의 구성 요소를 설명하는 데 있어서, 제 1, 제 2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 어떤 구성 요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 그 구성 요소는 그 다른 구성요소에 직접적으로 연결되거나 접속될 수 있지만, 각 구성 요소 사이에 또 다른 구성 요소가 "연결", "결합" 또는 "접속"될 수도 있다고 이해되어야 할 것이다. In addition, in describing the components of the embodiment, terms such as first, second, A, B, (a), (b), etc. may be used. These terms are only for distinguishing the components from other components, and the essence, order, or order of the components are not limited by the terms. When it is described that a component is “connected”, “coupled” or “connected” to another component, the component may be directly connected or connected to the other component, but another component is between each component. It will be understood that may also be "connected", "coupled" or "connected".

어느 하나의 실시 예에 포함된 구성요소와, 공통적인 기능을 포함하는 구성요소는, 다른 실시 예에서 동일한 명칭을 사용하여 설명하기로 한다. 반대되는 기재가 없는 이상, 어느 하나의 실시 예에 기재한 설명은 다른 실시 예에도 적용될 수 있으며, 중복되는 범위에서 구체적인 설명은 생략하기로 한다.Components included in one embodiment and components having a common function will be described using the same names in other embodiments. Unless otherwise stated, a description described in one embodiment may be applied to another embodiment, and a detailed description in the overlapping range will be omitted.

도 1 내지 도 2는 일 실시예에 따른 게이트웨이 장치를 설명하기 위한 도면이다. 1 to 2 are diagrams for explaining a gateway device according to an embodiment.

일 실시예에 따른 게이트웨이 장치는 여러 장비(예를 들어, 국사 장비 및/또는 IoT 장비)와 연동할 수 있어, IoT 게이트웨이 장치, 국사용 IoT 게이트웨이로 달리 표현될 수 있다.The gateway device according to an embodiment may interwork with various equipment (eg, national equipment and/or IoT equipment), and thus may be expressed differently as an IoT gateway device and a stationary IoT gateway.

도 1을 참조하면, 일 실시예에 따른 게이트웨이 장치(110)는 통신 모듈(111), 컨트롤러(112), 및 복수의 포트들(113-1 내지 113-n)을 포함한다.Referring to FIG. 1 , a gateway device 110 according to an embodiment includes a communication module 111 , a controller 112 , and a plurality of ports 113-1 to 113-n.

컨트롤러(112)는 통신 모듈(111) 및 복수의 포트들(113-1 내지 113-n)과 커플링 또는 연결된다. 컨트롤러는(112)는 서버로부터 수신한 메시지를 복수의 포트들(113-1 내지 113-n) 중 어느 하나와 연결된 장비로 전송하고, 장비의 메시지를 서버로 전송한다. 메시지 송수신에 대해선 후술한다.The controller 112 is coupled or connected to the communication module 111 and the plurality of ports 113-1 to 113-n. The controller 112 transmits the message received from the server to the device connected to any one of the plurality of ports 113-1 to 113-n, and transmits the message of the device to the server. Message transmission and reception will be described later.

통신 모듈(111)은 서버 및/또는 외부 장치와 통신하기 위한 통신 모뎀을 포함할 수 있다. 통신 모듈(111)은, 예를 들어, LTE Cat.M1일 수 있으나 이에 제한되지 않는다.The communication module 111 may include a communication modem for communicating with a server and/or an external device. The communication module 111 may be, for example, LTE Cat.M1, but is not limited thereto.

복수의 포트들(113-1 내지 113-n) 중 하나 이상은 제1 통신 방식(예를 들어, 직렬(serial) 통신)을 지원하는 제1 포트에 해당할 수 있다. 달리 표현하면, 하나 이상의 제1 포트는 직렬 통신 포트를 포함하거나 직렬 통신 포트에 해당할 수 있다. 하나 이상의 제1 포트는 설정에 따라 RS232 또는 RS485로 동작할 수 있다. One or more of the plurality of ports 113 - 1 to 113 - n may correspond to a first port supporting a first communication method (eg, serial communication). In other words, the one or more first ports may include or correspond to serial communication ports. One or more of the first ports may operate as RS232 or RS485 depending on the configuration.

실시예에 있어서, 물리적인 하나의 DB9 커넥터를 기반으로 RS232와 RS485 통신 방식이 소프트웨어 설정으로 지원될 수 있다. 일례로, 서버는 게이트웨이 장치(110)의 제1 포트(또는 직렬 통신 포트)가 RS232 통신 방식으로 동작할지 아니면 RS485 통신 방식으로 동작할지를 설정할 수 있고, 게이트웨이 장치(110)의 제1 포트(또는 직렬 통신 포트)는 서버의 설정에 따라 RS232 통신 방식 또는 RS485 통신 방식으로 동작할 수 있다.In an embodiment, based on one physical DB9 connector, RS232 and RS485 communication methods may be supported by software setting. As an example, the server may set whether the first port (or serial communication port) of the gateway device 110 operates in the RS232 communication method or the RS485 communication method, and the first port (or serial communication port) of the gateway device 110 . communication port) can be operated by RS232 communication method or RS485 communication method according to the setting of the server.

실시예에 있어서, 컨트롤러(112)는 직렬 통신 포트와 연결된 장비가 사용하는 통신 프로토콜(예를 들어, Modbus RTU(Remote Terminal Unit)) 데이터를 변환없이 서버와 송수신(Bypass)할 수 있다. 이에 따라, 게이트웨이 장치(110)는 다양한 통신 프로토콜의 수용이 가능하다. In an embodiment, the controller 112 may transmit/receive (bypass) data using a communication protocol (eg, Modbus RTU (Remote Terminal Unit)) used by the equipment connected to the serial communication port with the server without conversion. Accordingly, the gateway device 110 can accommodate various communication protocols.

실시예에 있어서, 직렬 통신 포트를 통해 연결된 장비와 서버가 Polling 방식으로 동작하는 경우, 컨트롤러(112)는 서버에서 해당 장비로 전송하는 동일 명령 메시지를 게이트웨이 장치(110) 내부의 메모리에 저장할 수 있고, 설정된 주기에 따라 해당 메시지를 자동으로 장비로 전송할 수 있다. 이에 따라, 트래픽 최적화가 이루어질 수 있다.In an embodiment, when the device and the server connected through the serial communication port operate in a polling method, the controller 112 may store the same command message transmitted from the server to the corresponding device in the memory inside the gateway device 110 and , the corresponding message can be automatically transmitted to the equipment according to the set period. Accordingly, traffic optimization can be achieved.

복수의 포트들(113-1 내지 113-n) 중 하나 이상은 제2 통신 방식(예를 들어, 이더넷 통신)을 지원하는 제2 포트에 해당할 수 있다. 달리 표현하면, 하나 이상의 제2 포트는 SNMP(Simple Network Management Protocol) 통신용 이더넷 포트를 포함하거나 이더넷 통신 포트에 해당할 수 있다. 게이트웨이 장치(110)는 이더넷 포트기반 SNMP 프로토콜을 지원하여 서버와 통신할 수 있고, SNMP TRAP 메시지 전송기능을 지원할 수 있다.One or more of the plurality of ports 113 - 1 to 113 - n may correspond to a second port supporting a second communication method (eg, Ethernet communication). In other words, the one or more second ports may include an Ethernet port for Simple Network Management Protocol (SNMP) communication or correspond to an Ethernet communication port. The gateway device 110 may communicate with a server by supporting an Ethernet port-based SNMP protocol, and may support an SNMP TRAP message transmission function.

복수의 포트들(113-1 내지 113-n)에는 접점과 관련된 제3 포트가 있을 수 있다. 복수의 제3 포트는 하나 이상의 접점 제어 포트, 하나 이상의 접점 감시 포트, 및 하나 이상의 상태 감시 포트 중 적어도 하나를 포함할 수 있다. 접점 제어 포트는, 예를 들어, DO(Digital Output) 포트에 해당할 수 있고, 접점 감시 포트는, 예를 들어, DI(Digital Input) 포트에 해당할 수 있으며, 상태 감시 포트는, 예를 들어, AI(Analog Input) 포트에 해당할 수 있다.The plurality of ports 113 - 1 to 113 - n may include a third port associated with a contact point. The plurality of third ports may include at least one of one or more contact control ports, one or more contact monitoring ports, and one or more status monitoring ports. The contact control port, for example, may correspond to a DO (Digital Output) port, the contact monitoring port, for example, may correspond to a DI (Digital Input) port, and the status monitoring port is, for example, , may correspond to an AI (Analog Input) port.

게이트웨이 장치(110)는 접점 감시 포트를 통해 장비(예를 들어, 냉방기 등)와 연결될 수 있다. 컨트롤러(112)는 접점 감시 포트를 통해 연결된 장비(달리 표현하면, 감시 대상 장비)의 무전원 접점을 감시할 수 있고 감시 결과를 서버로 전송할 수 있다. 일례로, 컨트롤러(112)는 감시 대상 장비의 무전원 접점을 감시하여 알람 발생 시 메시지를 서버로 전송할 수 있다. 실시예에 있어서, 게이트웨이 장치(110)의 접점 감시 포트가 A접점(Normal Open) 방식을 할지 아니면 B접점(Normal Close) 방식을 할지를 소프트웨어 설정으로 지원될 수 있다. 일례로, 서버는 게이트웨이 장치(110)의 접점 감시 포트가 A접점 방식을 할지 아니면 B접점 방식을 할지를 설정 또는 제어할 수 있다. 게이트웨이 장치(110)의 접점 감시 포트는 서버의 설정 또는 제어에 따라 A접점 방식 또는 B접점 방식으로 동작할 수 있다.The gateway device 110 may be connected to equipment (eg, air conditioner, etc.) through a contact monitoring port. The controller 112 may monitor the non-powered contact of the equipment (in other words, the equipment to be monitored) connected through the contact monitoring port and transmit the monitoring result to the server. For example, the controller 112 may monitor the non-powered contact of the monitoring target device and transmit a message to the server when an alarm occurs. In an embodiment, whether the contact monitoring port of the gateway device 110 uses a contact A (Normal Open) method or a B contact (Normal Close) method may be supported by software setting. For example, the server may set or control whether the contact monitoring port of the gateway device 110 uses the A contact method or the B contact method. The contact point monitoring port of the gateway device 110 may operate in the A contact method or the B contact method according to the setting or control of the server.

게이트웨이 장치(110)는 접점 제어 포트를 통해 장비(예를 들어, 도어락 제어 장비 등의 IoT 장비)와 연결될 수 있다. 이 때, 컨트롤러(112)는 접점 제어 포트를 통해 연결된 장비를 제어할 수 있다. 일례로, 컨트롤러(112)는 서버로부터 도어락 열림 또는 닫힘 명령을 수신할 수 있고 해당 명령에 해당하는 DC 전압 신호를 접점 제어 포트를 통해 도어락 제어 장비로 전송할 수 있다. 도어락 제어 장비는 DC 전압 신호에 따라 도어락의 열림 또는 닫힘을 제어할 수 있다. 실시예에 있어서, 순간전압 인가와 인가전압 유지의 두가지 신호인가 방식이 소프트웨어 설정으로 지원될 수 있다. 일례로, 서버는 게이트웨이 장치(110)의 접점 제어 포트가 순간전압 인가의 방식으로 동작할지 아니면 인가전압 유지의 방식으로 동작할지를 설정 또는 제어할 수 있다. 게이트웨이 장치(110)의 접점 제어 포트는 서버의 설정 또는 제어에 따라 순간전압 인가의 방식 또는 인가전압 유지의 방식으로 동작할 수 있다.The gateway device 110 may be connected to equipment (eg, IoT equipment such as door lock control equipment) through a contact control port. At this time, the controller 112 may control the connected equipment through the contact control port. For example, the controller 112 may receive a door lock open or close command from the server and transmit a DC voltage signal corresponding to the command to the door lock control equipment through a contact control port. The door lock control equipment may control the opening or closing of the door lock according to the DC voltage signal. In an embodiment, two signal application methods of applying an instantaneous voltage and maintaining the applied voltage may be supported by software setting. For example, the server may set or control whether the contact control port of the gateway device 110 operates by applying an instantaneous voltage or by maintaining the applied voltage. The contact control port of the gateway device 110 may operate in a manner of applying an instantaneous voltage or maintaining an applied voltage according to a setting or control of a server.

게이트웨이 장치(110)는 상태 감시 포트를 통해 장비(예를 들어, IoT 장비)와 연결될 수 있다. 상태 감시 포트를 통해 장비로부터 게이트웨이 장치(110)로 전압이 인가될 수 있고, 컨트롤러(112)는 인가된 전압을 읽어 수치값으로 변환할 수 있다. 컨트롤러(112)는 수치값을 서버로 전송할 수 있다. 실시예에서 있어서, 상태 감시 포트를 통해 인가되는 전압을 읽는 주기와 읽어서 생성된 수치값을 서버로 전송하는 주기는 소프트웨어 설정으로 지원될 수 있다. 일례로, 서버는 상태 감시 포트를 통해 인가되는 전압을 읽는 주기와 전압을 읽어 생성된 수치값을 전송하는 주기를 설정할 수 있고, 컨트롤러(112)는 설정된 주기에 따라 전압을 읽고 설정된 주기에 따라 수치값을 서버로 전송할 수 있다.The gateway device 110 may be connected to a device (eg, IoT device) through a status monitoring port. A voltage may be applied from the equipment to the gateway device 110 through the status monitoring port, and the controller 112 may read the applied voltage and convert it into a numerical value. The controller 112 may transmit the numerical value to the server. In an embodiment, the period of reading the voltage applied through the status monitoring port and the period of transmitting the read-generated numerical value to the server may be supported by software setting. For example, the server may set a period for reading a voltage applied through the status monitoring port and a period for transmitting a numerical value generated by reading the voltage, and the controller 112 reads the voltage according to the set period and numerical values according to the set period. Values can be sent to the server.

도 2에 게이트웨이 장치(110)의 일례가 도시된다. 도 2에 도시된 예를 참조하면, 게이트웨이 장치(110)는 DC(6V) 전원공급 포트(201) 및 GUI(Graphical User Interface) 포트(206)를 더 포함할 수 있다. GUI 포트는 USB(Universal Serial Bus) 포트일 수 있다.An example of a gateway device 110 is shown in FIG. 2 . Referring to the example shown in FIG. 2 , the gateway device 110 may further include a DC (6V) power supply port 201 and a Graphical User Interface (GUI) port 206 . The GUI port may be a Universal Serial Bus (USB) port.

게이트웨이 장치(110)와 연결된 장비(예를 들어, 도어락 등)는 DC(6V) 전원공급 포트(201)를 통해 전력을 공급받을 수 있다.Equipment (eg, door lock, etc.) connected to the gateway device 110 may receive power through the DC (6V) power supply port 201 .

게이트웨이 장치(110)는 GUI 포트(206)를 통해 사용자 단말(예를 들어, PC 등)과 연결될 수 있다. 사용자는 사용자 단말을 통해 게이트웨이 장치(110)를 설정할 수 있다. 게이트웨이 장치(110)를 설정하기 위한 GUI 화면에 대해선 도 3을 통해 후술한다.The gateway device 110 may be connected to a user terminal (eg, a PC, etc.) through the GUI port 206 . The user may set the gateway device 110 through the user terminal. A GUI screen for setting the gateway device 110 will be described later with reference to FIG. 3 .

도 2에 도시된 예에서, 게이트웨이 장치(110)의 DO 포트(202)는 1개이고, DI 포트(203-1 내지 203-6)는 6개이며, AI 포트(204-1 및 204-2)는 2개이며, 직렬 통신 포트(205)는 1개이고, 이더넷 통신 포트(207)는 1개이다. 이에 대응되게, 게이트웨이 장치(110)는 1개의 DO 포트 상태 표시 LED, 6개의 DI 포트 상태 표시 LED, 2개의 AI 포트 상태 표시 LED를 포함할 수 있다. 또한, 게이트웨이 장치(110)는 RS485의 송신 상태 표시 LED와 수신 상태 표시 LED를 포함할 수 있고, RS232의 송신 상태 표시 LED와 수신 상태 표시 LED를 포함할 수 있다. 또한, 게이트웨이 장치(110)는 통신 모뎀의 상태 표시 LED와 DC 전원 공급 포트의 상태 표시 LED를 포함할 수 있다. 게이트웨이 장치(110)의 각 LED를 통해 각 포트의 상태, 전원 공급 상태, 및 통신 모뎀의 상태가 확인될 수 있다.In the example shown in Fig. 2, the DO port 202 of the gateway device 110 is one, the DI ports 203-1 to 203-6 are six, and the AI ports 204-1 and 204-2. is two, the serial communication port 205 is one, and the Ethernet communication port 207 is one. Correspondingly, the gateway device 110 may include one DO port status LED, six DI port status LEDs, and two AI port status LEDs. In addition, the gateway device 110 may include a transmission status display LED and a reception status LED of RS485, and may include a transmission status indication LED and a reception status LED of RS232. Also, the gateway device 110 may include a status indication LED of a communication modem and a status indication LED of a DC power supply port. The state of each port, the power supply state, and the state of the communication modem may be checked through each LED of the gateway device 110 .

도 2에 도시된 예에서, 게이트웨이 장치(110)는 LTE 통신용 안테나(210), USIM 장착부(211), 전원 스위치(212), 보조 배터리(또는 외장 배터리) 연결부(213), 및 주전원(어댑터) 연결부(214)를 포함할 수 있다. 게이트웨이 장치(110)는 주전원(어댑터) 연결부(214)를 통해 전력을 공급받을 수 있다. 경우에 따라, 게이트웨이 장치(110)는 보조 배터리 연결부(213)를 통해 보조 배터리와 연결될 수 있고 보조 배터리로부터 전력을 공급받을 수 있다.In the example shown in FIG. 2 , the gateway device 110 includes an antenna 210 for LTE communication, a USIM mounting unit 211 , a power switch 212 , an auxiliary battery (or external battery) connection unit 213 , and a main power source (adapter). A connector 214 may be included. The gateway device 110 may receive power through the main power (adapter) connection unit 214 . In some cases, the gateway device 110 may be connected to the auxiliary battery through the auxiliary battery connection unit 213 and may receive power from the auxiliary battery.

아래 표 1은 게이트웨이 장치(110)의 스펙의 일례를 보여준다.Table 1 below shows an example of specifications of the gateway device 110 .

Figure 112020039308021-pat00001
Figure 112020039308021-pat00001

게이트웨이 장치(110)는 운영 안정성 및 관리를 위한 기능을 수행할 수 있다. The gateway device 110 may perform a function for operational stability and management.

실시예에 따르면, 운영 안정성 및 관리를 위한 기능에는 호스트 이름(host name) 설정 기능이 포함될 수 있다. 일례로, 컨트롤러(112)는 게이트웨이 장치(110)의 관리명(또는 이름)을 부여하여 메시지에 포함시킬 수 있고 이를 서버 또는 장비에 전송할 수 있다.According to an embodiment, the function for operational stability and management may include a host name setting function. For example, the controller 112 may give a management name (or name) of the gateway device 110 to include in the message and transmit it to a server or equipment.

실시예에 따르면, 운영 안정성 및 관리를 위한 기능에는 KEEP ALIVE를 위한 메시지 전송 기능이 포함될 수 있다. 일례로, 컨트롤러(112)는 설정된 주기에 따라 KEEP ALIVE 메시지를 서버로 전송할 수 있다. 이에 따라, 서버는 게이트웨이 장치(110)의 통신 이상 여부를 확인할 수 있다.According to an embodiment, the function for operational stability and management may include a message transmission function for KEEP ALIVE. For example, the controller 112 may transmit a KEEP ALIVE message to the server according to a set period. Accordingly, the server may check whether the communication of the gateway device 110 is abnormal.

실시예에 따르면, 운영 안정성 및 관리를 위한 기능에는 자동 재부팅 기능이 포함될 수 있다. 일례로, 컨트롤러(112)는 통신 이상 및/또는 게이트웨이 장치(110) 내부의 오류가 발생한 경우, 자동으로 리부팅을 수행할 수 있고 리부팅 수행 시 서버로 메시지를 전송할 수 있다.According to an embodiment, the function for operational stability and management may include an automatic reboot function. For example, when a communication error and/or an internal error occurs in the gateway device 110 , the controller 112 may automatically reboot and transmit a message to the server when rebooting.

실시예에 따르면, 운영 안정성 및 관리를 위한 기능에는 정전 감지 및 백업 배터리 사용 기능이 포함될 수 있다. 일례로, 컨트롤러(112)는 위에서 설명한 보조 배터리 연결부(213)를 통해 외장 배터리가 장착되면 정전이 발생한 것으로 추정하여 정전 발생에 관한 메시지를 서버로 전송할 수 있다.According to an embodiment, functions for operational stability and management may include power failure detection and backup battery usage functions. For example, the controller 112 may transmit a message regarding the occurrence of a power failure to the server by estimating that a power failure has occurred when an external battery is mounted through the auxiliary battery connection unit 213 described above.

상술한 것과 같이, 일 실시예에 따른 게이트웨이 장치(110)는 다양한 장비의 감시 연동을 위한 여러 인터페이스(또는 포트)를 지원할 수 있고 다양한 통신 프로토콜 연동이 가능할 수 있으며, 서버와 무선 통신을 수행할 수 있다. 이에 따라, 일 실시예는 기존 서버와 유선 통신 방식의 게이트웨이 장치와 비교할 때, 통신 케이블 설치 및 유선 감시망 구성이 불필요하여 비용 절감을 이룰 수 있고, 다양한 전원/환경 장비를 단일 게이트웨이 장치(110)로 연동 감시하여 운영 및 유지보수 효율을 향상시킬 수 있으며, 다양한 산업 환경의 장비의 감시에 사용될 수 있어 활용 범위가 넓을 수 있다. As described above, the gateway device 110 according to an embodiment may support multiple interfaces (or ports) for monitoring and interworking of various equipment, may be capable of interworking with various communication protocols, and may perform wireless communication with a server. have. Accordingly, in one embodiment, compared to the gateway device of the existing server and wired communication method, communication cable installation and wire monitoring network configuration are unnecessary, thereby reducing costs, and various power/environmental equipment can be converted into a single gateway device (110). Operation and maintenance efficiency can be improved by interlocking monitoring, and it can be used for monitoring equipment in various industrial environments, so the range of application can be wide.

도 3은 일 실시예에 따른 게이트웨이 장치의 설정을 위한 GUI 화면을 설명하는 도면이다. 3 is a diagram for explaining a GUI screen for setting a gateway device according to an exemplary embodiment.

게이트웨이 장치(110)는 앞서 도 2를 통해 설명한 GUI 포트(또는 USB 포트)(206)를 통해 사용자 단말과 연결될 수 있고, 사용자 단말은 게이트웨이 장치(110)의 설정을 위한 GUI를 디스플레이에 표시할 수 있다. 도 3에 게이트웨이 장치(110)의 설정을 위한 GUI 화면의 일례가 도시된다. 도 3에 도시된 GUI 화면은 일 실시예에 따른 예시적인 사항일 뿐, 도 3에 도시된 것으로 제한되지 않는다. 관리자는 사용자 단말을 통해 게이트웨이 장치(110)의 DI 포트, DO 포트, AI 포트, 직렬 통신 포트, 및 이더넷 통신 포트 중 적어도 하나의 설정을 변경할 수 있다.The gateway device 110 may be connected to the user terminal through the GUI port (or USB port) 206 described above with reference to FIG. 2 , and the user terminal may display a GUI for setting the gateway device 110 on the display. have. 3 shows an example of a GUI screen for setting the gateway device 110 . The GUI screen shown in FIG. 3 is merely exemplary according to an embodiment, and is not limited to that shown in FIG. 3 . The administrator may change the setting of at least one of the DI port, the DO port, the AI port, the serial communication port, and the Ethernet communication port of the gateway device 110 through the user terminal.

도 4 내지 도 5는 일 실시예에 따른 게이트웨이 장치가 메시지 기반의 서버와 통신하는 것을 설명하기 위한 도면이다. 4 to 5 are diagrams for explaining that a gateway device communicates with a message-based server according to an embodiment.

도 4를 참조하면, 게이트웨이 장치(110)는 국사 장비와 통신할 수 있다. 게이트웨이 장치(110)는 여러 종류의 포트를 포함하고 있으므로, 다양한 국사 장비와 통신할 수 있다. 국사 장비는, 예를 들어, 정류기, 발전기, UPS(Uninterruptible Power Supply System) 등을 포함할 수 있으나 이에 제한되지 않는다. 도 4에 도시되지 않았으나, 게이트웨이 장치(110)는 다양한 종류의 IoT 디바이스(예를 들어, 도어락 제어 장비, 냉난방기 제어 장비, 누수 감지기 등)와 연결되어 통신할 수 있다.Referring to FIG. 4 , the gateway device 110 may communicate with the office equipment. Since the gateway device 110 includes several types of ports, it can communicate with various office equipment. National equipment may include, for example, a rectifier, a generator, an uninterruptible power supply system (UPS), and the like, but is not limited thereto. Although not shown in FIG. 4 , the gateway device 110 may be connected to and communicate with various types of IoT devices (eg, door lock control equipment, air conditioner control equipment, water leak detector, etc.).

게이트웨이 장치(110)는 디바이스 규격으로 정의된 메시지를 기반으로 서버와 통신할 수 있다. 게이트웨이 장치(110)와 서버 사이에는 알람 전송 메시지, 확인 응답 메시지, 제어 전송 메시지, 설정 전송 메시지가 교환될 수 있는데, 이러한 메시지는 도 5에 도시된 메시지 포맷에 따라 정의될 수 있다. The gateway device 110 may communicate with the server based on a message defined by a device standard. An alarm transmission message, an acknowledgment message, a control transmission message, and a setting transmission message may be exchanged between the gateway device 110 and the server, and these messages may be defined according to the message format shown in FIG. 5 .

도 5에 도시된 예를 참조하면, 메시지 프레임은 SOH(Start of Header) 필드, 버전(ver) 필드, 디바이스 ID 필드, 시퀀스(seq) 필드, 에러 코드(Err_code) 필드, 타입 필드, 포트 넘버(portNum) 필드, EQ 코드 필드, 프로토콜 필드, 타임 스탬프 필드, 길이 필드, 데이터 필드, FCS(Frame Check Sequence) 필드, 및 EOT(End of transmission) 필드를 포함할 수 있다.Referring to the example shown in FIG. 5 , the message frame includes a Start of Header (SOH) field, a version (ver) field, a device ID field, a sequence (seq) field, an error code (Err_code) field, a type field, a port number ( portNum) field, EQ code field, protocol field, timestamp field, length field, data field, frame check sequence (FCS) field, and end of transmission (EOT) field.

데이터 필드에는 최대 1000byte가 기록될 수 있으나 이에 제한되지 않는다.A maximum of 1000 bytes may be recorded in the data field, but is not limited thereto.

실시예에 있어서, 게이트웨이 장치(110)를 리셋시키는 명령이 있다. 일례로, 서버는 해당 명령을 게이트웨이 장치(110)로 전송할 수 있고, 게이트웨이 장치(110)는 해당 명령에 따라 자신을 리셋시킬 수 있다.In an embodiment, there is a command to reset the gateway device 110 . For example, the server may transmit a corresponding command to the gateway device 110 , and the gateway device 110 may reset itself according to the corresponding command.

실시예에 있어서, 게이트웨이 장치(110)에 저장된 설정값을 초기화시키는 명령이 있다. 일례로, 서버는 해당 명령을 게이트웨이 장치(110)로 전송할 수 있고, 게이트웨이 장치(110)는 해당 명령에 따라 설정값을 초기화할 수 있다.In an embodiment, there is a command to initialize the setting values stored in the gateway device 110 . For example, the server may transmit a corresponding command to the gateway device 110 , and the gateway device 110 may initialize a setting value according to the corresponding command.

실시예에 있어서, 포트들(202, 203-1 내지 203-6, 204-1 내지 204-2, 205, 및 207) 각각의 현재 상태를 서버로 전송하도록하는 명령이 있다. 일례로, 게이트웨이 장치(110)는 포트들(202, 203-1 내지 203-6, 204-1 내지 204-2, 205, 및 207) 각각의 현재 상태를 포함하는 메시지를 생성하여 서버로 전송할 수 있다. 서버는 해당 메시지를 게이트웨이 장치(110)로부터 수신하면 포트들(202, 203-1 내지 203-6, 204-1 내지 204-2, 205, 및 207) 각각의 현재 상태를 체크할 수 있다.In an embodiment, there is a command to send the current state of each of ports 202, 203-1 to 203-6, 204-1 to 204-2, 205, and 207 to the server. For example, the gateway device 110 may generate a message including the current status of each of the ports 202, 203-1 to 203-6, 204-1 to 204-2, 205, and 207 and transmit it to the server. have. When the server receives the corresponding message from the gateway device 110 , the server may check the current status of each of the ports 202 , 203-1 to 203-6 , 204-1 to 204-2 , 205 , and 207 .

실시예에 있어서, DO 포트(202)의 내장된 릴레이스위치를 ON/OFF 시키는 명령이 있다. 일례로, 서버는 해당 명령을 게이트웨이 장치(110)로 전송할 수 있고 게이트웨이 장치(110)는 해당 명령에 따라 DO 포트(202)의 내장된 릴레이스위치를 ON 또는 OFF할 수 있다.In an embodiment, there is a command to turn ON/OFF the built-in relay switch of the DO port 202 . For example, the server may transmit a corresponding command to the gateway device 110 and the gateway device 110 may turn ON or OFF the built-in relay switch of the DO port 202 according to the corresponding command.

실시예에 있어서, 게이트웨이 장치(110)와 연동된 장비를 제어할 수 있는 메시지를 전달하는 명령이 있다. 일례로, 서버는 해당 명령을 게이트웨이 장치(110)로 전송할 수 있고 게이트웨이 장치(110)는 해당 명령에 따라 장비(예를 들어, 직렬 포트(205) 및/또는 이더넷 포트(207)를 통해 연결된 장비)를 제어할 수 있다.In an embodiment, there is a command for transmitting a message capable of controlling equipment interworking with the gateway device 110 . As an example, the server may send a corresponding command to the gateway device 110 and the gateway device 110 according to the command is a device (eg, a device connected through the serial port 205 and/or the Ethernet port 207 ) ) can be controlled.

실시예에 있어서, 게이트웨이 장치(110)와 연동된 장비를 제어할 수 있는 메시지를 저장하여 주기적으로 해당 장비로 자동 전달하는 명령이 있다. 일례로, 서버는 장비를 제어하기 위한 명령을 게이트웨이 장치(110)로 전송할 수 있고 게이트웨이 장치(110)는 해당 명령을 저장할 수 있다. 게이트웨이 장치(110)는 주기적으로 해당 명령을 장비(예를 들어, 직렬 포트(205) 및/또는 이더넷 포트(207)를 통해 연결된 장비)로 전달할 수 있다.In an embodiment, there is a command to store a message for controlling a device interlocked with the gateway device 110 and automatically deliver it periodically to the corresponding device. For example, the server may transmit a command for controlling the equipment to the gateway device 110 , and the gateway device 110 may store the command. Gateway device 110 may periodically transmit the corresponding command to equipment (eg, equipment connected through serial port 205 and/or Ethernet port 207 ).

도 6는 일 실시예에 따른 게이트웨이 장치가 데이터 전송 전 망접속이 불가한 경우의 동작 방법을 설명하기 위한 순서도이다.6 is a flowchart illustrating an operation method when a gateway device cannot access a data transmission network according to an embodiment.

도 6을 참조하면, 게이트웨이 장치(110)에서 서버로 전송할 데이터가 발생한다(610). Referring to FIG. 6 , data to be transmitted from the gateway device 110 to the server is generated ( 610 ).

게이트웨이 장치(110)는 전송 데이터가 알람 데이터에 해당하는지 여부를 체크할 수 있다(611). The gateway device 110 may check whether the transmission data corresponds to alarm data ( S611 ).

게이트웨이 장치(110)는 전송 데이터가 알람 데이터에 해당하는 경우, 알람 정보(즉, 전송 데이터)를 저장할 수 있다(612). 게이트웨이 장치(110)의 리셋 이후에도 해당 알람 정보가 보존될 수 있도록 게이트웨이 장치(110)는 메모리에 알람 정보를 저장할 수 있다.When the transmission data corresponds to the alarm data, the gateway device 110 may store alarm information (ie, transmission data) ( 612 ). The gateway device 110 may store the alarm information in a memory so that the corresponding alarm information can be preserved even after the gateway device 110 is reset.

게이트웨이 장치(110)는 전송 데이터가 알람 데이터에 해당하지 않는 경우, 데이터 전송 AT 커맨드를 수행할 수 있고(613), AT 커맨드에 대해 OK 응답이 있는지 여부를 체크할 수 있다(614). If the transmission data does not correspond to the alarm data, the gateway device 110 may perform a data transmission AT command ( 613 ) and check whether there is an OK response to the AT command ( 614 ).

게이트웨이 장치(110)는 AT 커맨드에 대해 OK 응답이 있는 경우, 전송 카운터를 증가할 수 있다(615). When there is an OK response to the AT command, the gateway device 110 may increment the transmission counter ( 615 ).

게이트웨이 장치(110)는 전송 데이터를 서버로 전송할 수 있다.The gateway device 110 may transmit transmission data to a server.

게이트웨이 장치(110)는 서버로부터 미리 정해진 시간(예를 들어, 60초) 이내에 ACK를 수신하는지 여부를 체크할 수 있다(616).The gateway device 110 may check whether an ACK is received from the server within a predetermined time (eg, 60 seconds) ( 616 ).

게이트웨이 장치(110)는 서버로부터 미리 정해진 시간 이내에 ACK를 수신하는 경우, 전송 카운터를 초기화하고 알람 재전송 타이머를 스타트한다(617).When receiving the ACK from the server within a predetermined time, the gateway device 110 initializes a transmission counter and starts an alarm retransmission timer (617).

단계(614)에서, 게이트웨이 장치(110)는 데이터 전송 AT 커맨드에 대한 무응답 또는 에러가 발생한 경우, 이러한 무응답 또는 에러가 연속 3회 발생한 것인지 여부를 체크할 수 있다(618). 연속 3회 발생한 것이 아니면 게이트웨이 장치(110)는 데이터 전송 AT 커맨드를 수행할 수 있다(613). 만약, AT 커맨드에 대한 무응답 또는 에러가 연속 3회 발생한 경우, 게이트웨이 장치(110)는 통신 모뎀을 리셋할 수 있다(619). 달리 표현하면, 게이트웨이 장치(110)는 데이터 전송 AT 커맨드를 여러 번 수행하였으나 무응답 또는 에러가 연속적으로 3회 발생한 경우, 통신 모뎀을 리셋할 수 있다. In step 614 , when a non-response or an error to the data transmission AT command occurs, the gateway device 110 may check whether the non-response or error occurs three consecutive times ( 618 ). If it does not occur three times in a row, the gateway device 110 may perform the data transmission AT command ( 613 ). If there is no response to the AT command or an error occurs three times in a row, the gateway device 110 may reset the communication modem (S619). In other words, the gateway device 110 may reset the communication modem when the data transmission AT command is performed several times but no response or error occurs three times in a row.

게이트웨이 장치(110)는 통신 모뎀을 리셋한 경우, AT+CEREG를 통해 게이트웨이 장치(110)(또는 통신 모뎀)이 네트워크에 정상적으로 등록되었는지 여부를 체크할 수 있다(620). 단계(620)에서 게이트웨이 장치(110)는 AT+CEREG에 대한 응답이 비정상인 경우, 게이트웨이 장치(110)는 통신 모뎀의 리셋을 미리 정해진 횟수(예를 들어, 6회) 수행하였는지 여부를 체크할 수 있다(621). 실시예에 있어서, 게이트웨이 장치(110)는 AT+CEREG에 대한 응답 0,2가 60초 이상 발생한 경우, AT+CEREG에 대한 응답이 비정상이라고 결정할 수 있다 응답 0,2에서 0은 네트워크 등록 unsolicited result code를 사용하지 않음을 나타내고 2는 등록 되지 않음(검색 중)을 나타낸다.When the communication modem is reset, the gateway device 110 may check whether the gateway device 110 (or the communication modem) is normally registered in the network through AT+CEREG ( 620 ). In step 620, when the response to the AT+CEREG is abnormal, the gateway device 110 checks whether the reset of the communication modem is performed a predetermined number of times (eg, 6 times). can (621). In an embodiment, the gateway device 110 may determine that the response to AT+CEREG is abnormal when response 0,2 to AT+CEREG occurs for more than 60 seconds. Responses 0,2 to 0 are network registration unsolicited result code is not used and 2 is not registered (searching).

게이트웨이 장치(110)는 통신 모뎀의 리셋이 미리 정해진 횟수(예를 들어, 6회)만큼 수행된 경우, 게이트웨이 장치(110) 자체를 리셋할 수 있고(622), 게이트웨이 장치(110) 리셋 후 AT+CEREG를 통해 게이트웨이 장치(110)(또는 통신 모뎀)이 네트워크에 정상적으로 등록되었는지 여부를 체크할 수 있다(620). 만약, 게이트웨이 장치(110)는 통신 모뎀의 리셋이 미리 정해진 횟수(예를 들어, 6회) 미만으로 수행된 경우, 통신 모뎀을 리셋할 수 있다(619).When the reset of the communication modem is performed a predetermined number of times (eg, 6 times), the gateway device 110 may reset the gateway device 110 itself ( 622 ), and after resetting the gateway device 110 , the AT It may be checked whether the gateway device 110 (or communication modem) is normally registered in the network through +CEREG ( 620 ). If the reset of the communication modem is performed less than a predetermined number of times (eg, 6 times), the gateway device 110 may reset the communication modem ( 619 ).

게이트웨이 장치(110)는 단계(620)의 AT+CEREG에 대한 응답이 정상인 경우(예를 들어, 응답이 0,1인 경우), 리셋 카운터를 초기화할 수 있다(623). 응답 0,1에서 0은 네트워크 등록 unsolicited result code를 사용하지 않음을 나타내고 1은 등록됨을 나타낸다. 게이트웨이 장치(110)는 전송 카운터가 특정 횟수(예를 들어, 5) 미만인지 여부를 체크할 수 있다(624). 게이트웨이 장치(110)는 전송 카운터가 특정 횟수 미만인 경우, 데이터 전송 AT 커맨드를 수행할 수 있다(613). 게이트웨이 장치(110)는 전송 카운터가 특정 횟수 이상인 경우, 특정 시간(예를 들어, 30분) 동안 대기할 수 있다(625). 이 경우, 게이트웨이 장치(110)는 서버 장애가 발생하였다고 추정 또는 결정할 수 있다.When the response to AT+CEREG in step 620 is normal (eg, when the response is 0, 1), the gateway device 110 may initialize a reset counter (623). In responses 0,1, 0 indicates that the network registration unsolicited result code is not used, and 1 indicates registration. The gateway device 110 may check whether the transmission counter is less than a certain number of times (eg, 5) ( 624 ). When the transmission counter is less than a specific number of times, the gateway device 110 may perform a data transmission AT command ( 613 ). When the transmission counter is equal to or greater than a specific number of times, the gateway device 110 may wait for a specific time (eg, 30 minutes) ( 625 ). In this case, the gateway device 110 may estimate or determine that a server failure has occurred.

게이트웨이 장치(110)는 서버로 전송 데이터를 전송하였으나 단계(616)에서 서버로부터 ACK를 미리 정해진 시간 이내에 수신하지 못한 경우, AT+CEREG를 통해 게이트웨이 장치(110)(또는 통신 모뎀)이 네트워크에 정상적으로 등록되었는지 여부를 체크할 수 있다(620). 이후 과정에 대해선 상술한 설명이 적용될 수 있으므로 자세한 설명을 생략한다.When the gateway device 110 transmits transmission data to the server but does not receive an ACK from the server within a predetermined time in step 616, the gateway device 110 (or communication modem) normally connects to the network through AT+CEREG. It may be checked whether or not it is registered ( 620 ). Since the above-described description may be applied to subsequent processes, a detailed description thereof will be omitted.

실시예에 있어서, 게이트웨이 장치(110)는 초기 부팅 시 단계(619)부터 수행할 수 있다. 보다 구체적으로, 초기 부팅 시 게이트웨이 장치(110)는 통신 모뎀을 리셋할 수 있고(619), AT+CEREG를 통해 게이트웨이 장치(110)(또는 통신 모뎀)이 네트워크에 정상적으로 등록되었는지 여부를 체크할 수 있다(620). 이후 과정에 대해선 상술한 설명이 적용될 수 있으므로 자세한 설명을 생략한다.In an embodiment, the gateway device 110 may perform from step 619 at the time of initial booting. More specifically, upon initial booting, the gateway device 110 may reset the communication modem ( 619 ), and may check whether the gateway device 110 (or communication modem) is normally registered in the network through AT+CEREG. There is (620). Since the above-described description may be applied to subsequent processes, a detailed description thereof will be omitted.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 실시예의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.The method according to the embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, etc. alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the embodiment, or may be known and available to those skilled in the art of computer software. Examples of the computer-readable recording medium include magnetic media such as hard disks, floppy disks and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic such as floppy disks. - includes magneto-optical media, and hardware devices specially configured to store and carry out program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine language codes such as those generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치, 또는 전송되는 신호 파(signal wave)에 영구적으로, 또는 일시적으로 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.Software may comprise a computer program, code, instructions, or a combination of one or more thereof, which configures a processing device to operate as desired or is independently or collectively processed You can command the device. The software and/or data may be any kind of machine, component, physical device, virtual equipment, computer storage medium or device, to be interpreted by or to provide instructions or data to the processing device. , or may be permanently or temporarily embody in a transmitted signal wave. The software may be distributed over networked computer systems, and stored or executed in a distributed manner. Software and data may be stored in one or more computer-readable recording media.

이상과 같이 실시예들이 비록 한정된 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기를 기초로 다양한 기술적 수정 및 변형을 적용할 수 있다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described with reference to the limited drawings, those skilled in the art may apply various technical modifications and variations based on the above. For example, the described techniques are performed in a different order than the described method, and/or the described components of the system, structure, apparatus, circuit, etc. are combined or combined in a different form than the described method, or other components Or substituted or substituted by equivalents may achieve an appropriate result.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and equivalents to the claims are also within the scope of the following claims.

Claims (12)

서버와의 무선 통신을 위한 통신 모듈;
복수의 포트들; 및
상기 통신 모듈 및 상기 복수의 포트들과 커플링되는 컨트롤러
를 포함하고,
상기 복수의 포트들은,
직렬 통신 방식을 지원하는 직렬 통신 포트, 이더넷 통신 방식을 지원하는 이더넷 통신 포트, 및 접점 제어 포트, 접점 감시 포트 및 상태 감시 포트 중 적어도 하나를 포함하는 복수의 제3 포트를 포함하고,
상기 컨트롤러는,
상기 서버로부터 수신한 메시지를 상기 복수의 포트들 중 어느 하나와 연결된 장비로 전송하고, 상기 장비의 메시지를 상기 서버로 전송하고,
상기 접점 감시 포트를 통해 상기 장비의 무전원 접점을 감시하고 상기 감시 결과를 상기 서버로 전송하고,
상기 접점 제어 포트를 통해 상기 장비를 제어하고,
상기 상태 감시 포트를 통해 인가되는 전압을 수치값으로 변환하고 상기 수치값을 상기 서버로 전송하는,
게이트웨이 장치.
a communication module for wireless communication with the server;
a plurality of ports; and
a controller coupled with the communication module and the plurality of ports
including,
The plurality of ports are
A serial communication port supporting a serial communication method, an Ethernet communication port supporting an Ethernet communication method, and a plurality of third ports including at least one of a contact control port, a contact monitoring port, and a status monitoring port,
The controller is
Transmitting a message received from the server to a device connected to any one of the plurality of ports, and transmitting a message of the device to the server,
Monitoring the non-powered contact of the equipment through the contact monitoring port and transmitting the monitoring result to the server,
control the equipment through the contact control port,
converting the voltage applied through the status monitoring port into a numerical value and transmitting the numerical value to the server,
gateway device.
삭제delete 삭제delete 삭제delete 삭제delete 제1항에 있어서,
상기 컨트롤러는,
오류 발생 시 리부팅을 수행하고, 상기 리부팅에 관한 메시지를 상기 서버로 전송하는,
게이트웨이 장치.
According to claim 1,
The controller is
performing a reboot when an error occurs, and transmitting a message about the reboot to the server,
gateway device.
제1항에 있어서,
상기 컨트롤러는,
미리 설정된 주기에 따라 KEEP ALIVE 메시지를 상기 서버로 전송하는,
게이트웨이 장치.
According to claim 1,
The controller is
Transmitting a KEEP ALIVE message to the server according to a preset period,
gateway device.
제1항에 있어서,
상기 컨트롤러는,
외장 배터리가 장착된 경우, 정전 발생을 감지하고 상기 정전 발생에 관한 메시지를 상기 서버로 전송하는,
게이트웨이 장치.
According to claim 1,
The controller is
When an external battery is installed, detecting the occurrence of a power failure and transmitting a message regarding the occurrence of the power failure to the server,
gateway device.
제1항에 있어서,
상기 컨트롤러는,
상기 서버로 전송할 데이터가 있는 경우, 네트워크 접속 상태를 체크하는,
게이트웨이 장치.
According to claim 1,
The controller is
If there is data to be transmitted to the server, checking the network connection status,
gateway device.
제1항에 있어서,
상기 컨트롤러는,
상기 서버로 전송할 데이터가 있는 경우, 데이터 전송 AT 커맨드를 수행하고, 상기 데이터 전송 AT 커맨드에 응답이 있는 경우, 전송 카운터를 증가하고 상기 데이터를 상기 서버로 전송하며, 상기 서버로부터 ack를 미리 정해진 시간 이내에 수신하였는지 여부를 확인하는,
게이트웨이 장치.
According to claim 1,
The controller is
When there is data to be transmitted to the server, a data transmission AT command is executed, and when there is a response to the data transmission AT command, a transmission counter is incremented and the data is transmitted to the server, and an ack is received from the server for a predetermined time. to confirm whether it has been received within
gateway device.
제10항에 있어서,
상기 컨트롤러는,
상기 데이터 전송 AT 커맨드를 여러 번 수행하였으나 무응답 또는 에러가 연속적으로 발생한 경우, 상기 통신 모듈을 리셋하는,
게이트웨이 장치.
11. The method of claim 10,
The controller is
To reset the communication module when the data transmission AT command is performed several times, but no response or an error occurs continuously,
gateway device.
제10항에 있어서,
상기 컨트롤러는,
상기 서버로부터 ack를 상기 미리 정해진 시간 이내에 수신하지 못한 경우, 네트워크에 등록되었는지 여부를 확인하는,
게이트웨이 장치.
11. The method of claim 10,
The controller is
If it does not receive the ack from the server within the predetermined time, to check whether it is registered in the network,
gateway device.
KR1020200046126A 2020-04-16 2020-04-16 Gateway apparatus KR102326162B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200046126A KR102326162B1 (en) 2020-04-16 2020-04-16 Gateway apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200046126A KR102326162B1 (en) 2020-04-16 2020-04-16 Gateway apparatus

Publications (2)

Publication Number Publication Date
KR20210128214A KR20210128214A (en) 2021-10-26
KR102326162B1 true KR102326162B1 (en) 2021-11-12

Family

ID=78268571

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200046126A KR102326162B1 (en) 2020-04-16 2020-04-16 Gateway apparatus

Country Status (1)

Country Link
KR (1) KR102326162B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101723984B1 (en) * 2017-01-31 2017-04-06 (주)그립 Device and Method for Controlling Internet of Things Device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101723984B1 (en) * 2017-01-31 2017-04-06 (주)그립 Device and Method for Controlling Internet of Things Device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MGate MB3000 Modbus Gateway User’s Manual. Version 11.2. 2019.11.30*

Also Published As

Publication number Publication date
KR20210128214A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN202750100U (en) System for identifying wire connection of target apparatus
US9395208B2 (en) System and method for a power meter to communicate through a power line
EP1956758B1 (en) Method and apparatus for automatically recognizing a connection of a device to a building management system
EP3576159A1 (en) Method and device for controlling solar energy system, central controller and solar energy system
US9350638B2 (en) Ethernet physical layer monitoring system employing social networking service for delivery of alerts to mobile devices
TW201349795A (en) A method for power source management and an apparatus for power source management
KR101082522B1 (en) Multi-Functional Gataway System for Providing Power Information
CN102782595A (en) Control cabinet monitoring device
CN105140886A (en) Protective relaying system and method for gathering data using thereof
KR102326162B1 (en) Gateway apparatus
CN109120063B (en) Plug-and-play sensor monitoring method, system and acquisition unit thereof
CN113630187A (en) PHY initialization method, system, equipment and medium
CN111656750A (en) Rollback secure network communication logical unit for IOT equipment and method for managing rollback secure network communication logical unit
KR20140005551A (en) Apparatus and method for acquiring data
JP6840280B1 (en) Network reset system including router function termination device
CN106856559A (en) A kind of intelligent residential district management method
CN110224877A (en) PDU management system based on Ethernet
KR20200114699A (en) Energy management system
KR20180113957A (en) Apparatus and method for acquiring data
Zhang et al. An IoT Application-Layer Protocol Modem: A Case Study on Interfacing IEEE 1888 with AT Commands
Knauth et al. Sarbau-an ip-fieldbus based building automation network
CN117270665A (en) Power supply control method and device, electronic equipment and storage medium
KR101458967B1 (en) Power monitoring device for femtocell base station, and operating method thereof
KR20180040274A (en) Distribution automation system and communication method thereof
CN114498919A (en) Remote control system and remote control method for intelligent substation

Legal Events

Date Code Title Description
GRNT Written decision to grant