KR20210004097A - TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF - Google Patents

TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF Download PDF

Info

Publication number
KR20210004097A
KR20210004097A KR1020190079970A KR20190079970A KR20210004097A KR 20210004097 A KR20210004097 A KR 20210004097A KR 1020190079970 A KR1020190079970 A KR 1020190079970A KR 20190079970 A KR20190079970 A KR 20190079970A KR 20210004097 A KR20210004097 A KR 20210004097A
Authority
KR
South Korea
Prior art keywords
command
setting
mode
iot
input
Prior art date
Application number
KR1020190079970A
Other languages
Korean (ko)
Other versions
KR102432960B1 (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 KR1020190079970A priority Critical patent/KR102432960B1/en
Publication of KR20210004097A publication Critical patent/KR20210004097A/en
Application granted granted Critical
Publication of KR102432960B1 publication Critical patent/KR102432960B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present invention discloses an IoT terminal device and a control method thereof. According to an aspect of the present invention, the IoT terminal device includes: a wireless communication unit for performing wireless communication with other IoT terminal devices; a serial communication unit for performing serial communication; an MCU unit which implements IoT protocols, determines an operation mode by monitoring the input of the serial communication unit, and controls to operate according to the determined operation mode. According to the present invention, it is possible to simply implement and change complex settings and operation control of IoT protocols.

Description

사물인터넷 단말장치 및 이의 제어방법{TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF}IoT terminal device and its control method {TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF}

본 발명은 사물인터넷 단말장치 및 이의 제어방법에 관한 것으로서, 보다 상세하게는 사물인터넷 프로토콜들의 복잡한 설정 및 동작을 AT Command 기반의 시리얼 통신을 통해 원격으로 제어할 수 있는 사물인터넷 단말장치 및 이의 제어방법에 관한 것이다. The present invention relates to an IoT terminal device and a control method thereof, and more particularly, to an IoT terminal device capable of remotely controlling complex settings and operations of IoT protocols through AT command-based serial communication, and a control method thereof. It is about.

사물인터넷 시장의 폭발적인 성장과 더불어 수많은 단말장치를 제어하기 위해서는 하드웨어의 사양에 구애받기 마련이다. In addition to the explosive growth of the IoT market, in order to control a number of terminal devices, it is inevitable to be constrained by hardware specifications.

일반적인 사물인터넷 플랫폼은 도 1과 같을 수 있다. 도 1을 참조하면, LWM2M, CoAP 국제 표준에 기반한 사물인터넷 플랫폼은 센서 디바이스(Sensor Devices)(10), IoT Gateway(20), IoT Server(30)를 포함하여 구성될 수 있다. A typical IoT platform may be as shown in FIG. 1. Referring to FIG. 1, an IoT platform based on LWM2M and CoAP international standards may include a sensor device 10, an IoT gateway 20, and an IoT server 30.

여기서, 단말장치라 함은 ‘통신거리를 늘려주고 데이터를 연계하는 기능의 게이트웨이’와 ‘센서부와 연결되어 게이트웨이와 통신하는 디바이스’ 두 가지 종류의 단말장치를 포함한다. 사물인터넷 단말장치를 통해서 생성된 데이터의 가공 및 전송을 위해서는 단말장치의 최종 단에서 아날로그 및 물리정보를 수집하는 센서부, 정보 모델링이 구현된 소프트웨어를 탑재한 마이크로 프로세서(또는 중앙처리)와 원거리로 전송하기 위한 유/무선 통신부 간의 연결이 중요하다. Here, the terminal device includes two types of terminal devices:'a gateway that extends the communication distance and connects data' and'a device that communicates with the gateway by being connected to the sensor unit'. In order to process and transmit the data generated through the IoT terminal device, a sensor unit that collects analog and physical information at the final end of the terminal device, and a microprocessor (or central processing) equipped with software implementing information modeling The connection between wired/wireless communication units for transmission is important.

이러한 구성 요소를 데이터 모델링 측면에서 살펴보면 도 2에 도시된 바와 같은 OSI 계위구조 스택을 갖는다. 계층으로 표현하자면 Application Layer에서는 상위로 사용자가 필요한 서비스와 연계된다. 사물인터넷을 통해 제공하고자 하는 혹은 사업하고자 하는 서비스는 여러 가지가 있을 것이다. 예를 들면 전력 분야에서는 전력설비의 감시, 대기 및 환경 감시에서부터 공공 영역에서 보호 및 협조 등의 서비스가 있다. 이러한 서비스를 위해 데이터를 정보모델링한 후 일정한 주소체계와 규칙으로 구성하여 주고받는 목적의 메시지 규약이 프로토콜인데, Application Layer에서 사용되는 대표적인 프로토콜은 CoAP 및 LwM2M, OneM2M 등이 있다. Looking at these components in terms of data modeling, they have an OSI hierarchy stack as shown in FIG. 2. In terms of hierarchical representation, the application layer is linked to the services required by the user at the upper level. There will be a number of services to be provided or to do business through the IoT. For example, in the electric power field, there are services such as monitoring of power facilities, standby and environmental monitoring, and protection and cooperation in the public domain. The protocol is a message protocol for the purpose of sending and receiving data by modeling data for this service and then configuring it with a certain address system and rules. Representative protocols used in the application layer include CoAP, LwM2M, and OneM2M.

Transport Layer부터 Adaption Layer 까지는 네트워크 계층에서 사용되는 프로토콜로서 일련의 절차에 따라 효율적인 데이터 전송을 담당한다. 대부분이 국제 표준으로 규정되어 있고, 에너지분야 사물인터넷에서는 오픈된 국제 규약을 그대로 사용한다. 이상으로 서비스계층부터 네트워크계층까지를 하나의 프로파일로 묶어서 중앙 처리부에서 담당한다. From Transport Layer to Adaption Layer, protocols used in the network layer are in charge of efficient data transmission according to a series of procedures. Most of them are regulated as international standards, and the Internet of Things in the energy field uses open international conventions as they are. As described above, the central processing unit takes charge of the service layer to the network layer in one profile.

Phy/MAC layer부터는 유무선 통신 방법에 따른 하드웨어 특성에 종속된다. 예를 들면 에너지분야 사물인터넷에서는 전력설비 운영 환경(전력 설치 장소 및 설비 간 이격, 주파수 제한 및 전파거리 등)을 고려하여 LoRa, Wi-SUN 등과 같은 무선 통신 기술을 사용한다. 특정 무선 통신 기술을 구성하는 디지털신호처리(코딩 및 암복호화)부와 RF 무선신호 처리단과 안테나 등으로 이루어진 하드웨어 특성에 따라 통신 신호의 세기 및 수신감도가 달라진다. 사물인터넷이 운영되는 환경에 따라 적합한 통신 기술의 선택이 필요한 이유이다. 여기까지가 유/무선 통신부에서 처리하는 부분이다.From the Phy/MAC layer, it depends on the hardware characteristics according to the wired/wireless communication method. For example, in the IoT field of energy, wireless communication technologies such as LoRa and Wi-SUN are used in consideration of the power facility operating environment (electric power installation location and spacing between facilities, frequency limit and propagation distance, etc.). The strength and reception sensitivity of a communication signal vary according to hardware characteristics consisting of a digital signal processing (coding and decoding) unit, an RF radio signal processing unit, and an antenna constituting a specific wireless communication technology. This is why it is necessary to select an appropriate communication technology according to the environment in which the IoT is operated. This is the part that the wired/wireless communication department handles.

그러나, 종래의 시스템은 에너지 사물인터넷 분야로 확보한 표준 프로토콜이 특정 무선기술(LoRa, Wi-SUN)에 종속됨에 따라, 사물인터넷 표준 프로토콜의 설정 및 동작 제어를 구현하고 변경하기 위해서는 여러 프로토콜 스택들의 특징들을 알아야 하기 때문에 상당한 개발 난이도를 가지는 단점이 있었다. 이는 사물인터넷 시장에서 단말장치가 대량으로 생산되고 활용되는데 걸림돌이 되어왔다. However, in the conventional system, as the standard protocol secured in the energy IoT field depends on specific wireless technologies (LoRa, Wi-SUN), various protocol stacks are required to implement and change the setting and operation control of the IoT standard protocol. There was a drawback of having considerable difficulty in development because you need to know the features. This has been an obstacle to mass production and utilization of terminal devices in the IoT market.

이에, 사물인터넷 프로토콜들의 복잡한 설정 및 동작 제어를 간단히 구현 및 변경할 수 있는 기술 개발이 요구되고 있다. Accordingly, there is a need to develop a technology that can easily implement and change complex settings and operation control of IoT protocols.

본 발명과 관련된 선행기술로는 대한민국 공개특허공보 제2018-0107951호(2018.10.04. 공개, 발명의 명칭 : 사물 인터넷 서비스 제공 방법 및 이를 수행하는 장치들)가 있다.As a prior art related to the present invention, there is Korean Patent Publication No. 2018-0107951 (published on October 4, 2018, title of the invention: a method of providing an Internet of Things service and devices for performing the same).

본 발명은 상기와 같은 문제점들을 개선하기 위하여 안출된 것으로, 본 발명의 목적은 사물인터넷 프로토콜들의 복잡한 설정 및 동작 제어를 간단히 구현 및 변경할 수 있는 사물인터넷 단말장치 및 이의 제어방법을 제공하는 것이다. The present invention has been conceived to improve the above problems, and an object of the present invention is to provide an IoT terminal device and a control method thereof that can easily implement and change complex setting and operation control of IoT protocols.

본 발명이 해결하고자 하는 과제는 이상에서 언급한 과제(들)로 제한되지 않으며, 언급되지 않은 또 다른 과제(들)은 아래의 기재로부터 당업자에게 명확하게 이해될 수 있을 것이다.The problem to be solved by the present invention is not limited to the problem(s) mentioned above, and another problem(s) not mentioned will be clearly understood by those skilled in the art from the following description.

본 발명의 일 측면에 따른 사물인터넷 단말장치는, 다른 사물인터넷 단말장치와 무선통신을 수행하도록 하는 무선통신부, 시리얼 통신을 수행하도록 하는 시리얼 통신부, 사물인터넷 프로토콜들이 구현되고, 상기 시리얼 통신부의 입력을 감시하여 동작 모드를 판단하며, 상기 판단된 동작 모드에 따라 동작하도록 제어하는 MCU부를 포함한다. An IoT terminal device according to an aspect of the present invention includes a wireless communication unit for performing wireless communication with other IoT terminal devices, a serial communication unit for performing serial communication, and IoT protocols, and inputting the serial communication unit. It monitors and determines an operation mode, and includes an MCU unit controlling to operate according to the determined operation mode.

본 발명에 있어, 상기 시리얼 통신부는, UART 통신을 수행할 수 있다. In the present invention, the serial communication unit may perform UART communication.

본 발명에 있어, 상기 MCU부는, 상기 시리얼 통신부와 연결되고, 시리얼 입력을 감시하여 동작 모드를 판단하는 시리얼 드라이버, 상기 동작 모드가 AT 모드인 경우, 상기 시리얼 드라이버를 통해 입력된 AT 명령어(Command)를 기반으로 상기 사물인터넷 프로토콜의 설정 및 동작을 제어하는 AT 명령어 파서 및 상기 동작 모드가 일반 모드인 경우, 상기 사물인터넷 프로토콜에 의해 동작되도록 제어하는 설정 및 동작 제어부를 포함할 수 있다. In the present invention, the MCU unit is a serial driver that is connected to the serial communication unit and monitors a serial input to determine an operation mode, and when the operation mode is an AT mode, an AT command input through the serial driver Based on the AT command parser for controlling the setting and operation of the IoT protocol, and when the operation mode is a normal mode, a setting and operation control unit may be included to control to be operated by the IoT protocol.

본 발명에 있어, 상기 시리얼 드라이버는, 상기 시리얼 입력이 디버그 메시지(debug message)인 경우 동작 모드를 일반 모드로 판단할 수 있다. In the present invention, when the serial input is a debug message, the serial driver may determine an operation mode as a normal mode.

본 발명에 있어, 상기 AT 명령어 파서는, 상기 입력된 AT 명령어를 분석하여 설정 적용 명령, 설정 저장 명령 및 동작 실행 명령 중 어느 명령에 해당하는지 판단하고, 그 판단결과 설정 적용 명령인 경우 기 입력된 설정 정보를 저장하고 단말장치를 리셋시킨 후 상기 설정 정보를 적용시키며, 설정 저장 명령인 경우 해당 설정 저장 명령을 통해 입력된 설정 정보를 저장하고, 동작 실행 명령인 경우 해당 동작 실행 명령을 통해 입력된 동작을 실행시킬 수 있다. In the present invention, the AT command parser analyzes the input AT command to determine which command corresponds to a setting application command, a setting save command, and an operation execution command, and in the case of a setting application command, the previously input After saving the setting information and resetting the terminal device, the above setting information is applied. In the case of a setting save command, the setting information input through the corresponding setting save command is saved, and in the case of an action execution command, the input through the corresponding action execution command Actions can be executed.

본 발명에 있어, 상기 설정 저장 명령은, 상기 사물인터넷 프로토콜에서 사용되는 실행 관련 설정 정보를 변경하기 위한 명령으로, 게이트웨이의 IP 및 서버 IP 설정 명령, 게이트웨이의 OID 설정 명령, 디바이스의 OID 설정 명령, 단순 등록 설정 명령, 단순 등록 해제 명령, 복합 데이터 URI 설정 명령을 중 적어도 하나를 포함하고, 상기 동작 실행 명령은, 현재 동작 중에 필요한 동작을 수행하기 위한 명령으로, 단순 응답 명령, AT 모드 설정 명령, 시스템 리셋 명령, AT 명령어 리스트 출력 명령, 복합 데이터 전송 명령, 설정 정보 출력 명령, 설정 정보 초기화 명령, AT 모드 종료 명령 중 적어도 하나를 포함할 수 있다. In the present invention, the setting storage command is a command for changing execution-related setting information used in the IoT protocol, and includes a gateway IP and server IP setting command, a gateway OID setting command, a device OID setting command, It includes at least one of a simple registration setting command, a simple registration cancellation command, and a complex data URI setting command, and the operation execution command is a command for performing an operation required during a current operation, a simple response command, an AT mode setting command, It may include at least one of a system reset command, an AT command list output command, a composite data transmission command, a setting information output command, a setting information initialization command, and an AT mode end command.

본 발명의 다른 측면에 따른 사물인터넷 단말장치의 제어방법은, 시리얼 드라이버가 시리얼 입력을 감시하여 동작 모드를 판단하는 단계, 상기 동작 모드가 AT 모드인 경우, AT 명령어 파서가 상기 시리얼 드라이버를 통해 입력된 AT 명령어(Command)를 기반으로 상기 사물인터넷 프로토콜의 설정 및 동작을 제어하는 단계를 포함한다. A method for controlling an IoT terminal device according to another aspect of the present invention includes the steps of determining an operation mode by monitoring a serial input by a serial driver. When the operation mode is an AT mode, an AT command parser inputs through the serial driver. And controlling the setting and operation of the IoT protocol based on the AT command.

본 발명은 상기 동작 모드를 판단하는 단계에서, 상기 시리얼 드라이버는, 상기 시리얼 입력이 디버그 메시지(debug message)인 경우, 동작 모드를 일반 모드로 판단할 수 있다. In the present invention, in determining the operation mode, when the serial input is a debug message, the serial driver may determine the operation mode as a normal mode.

본 발명에 있어, 상기 사물인터넷 프로토콜의 설정 및 동작을 제어하는 단계는, 상기 AT 명령어 파서가 상기 입력된 AT 명령어를 분석하여 설정 적용 명령, 설정 저장 명령 및 동작 실행 명령 중 어느 명령에 해당하는지 판단하는 단계, 상기 판단결과 설정 적용 명령인 경우 기 입력된 설정 정보를 저장하고 단말장치를 리셋시킨 후 상기 설정 정보를 적용시키며, 설정 저장 명령인 경우 해당 설정 저장 명령을 통해 입력된 설정 정보를 저장하고, 동작 실행 명령인 경우 해당 동작 실행 명령을 통해 입력된 동작을 실행시키는 단계를 포함할 수 있다. In the present invention, in the controlling of the setting and operation of the IoT protocol, the AT command parser analyzes the input AT command to determine which command corresponds to a setting application command, a setting save command, and an operation execution command. In the case of a setting application command as a result of the determination, the previously input setting information is stored and the terminal device is reset, and then the setting information is applied. In the case of a setting saving command, the setting information input through the corresponding setting storage command is stored. In the case of an operation execution command, it may include executing the operation input through the corresponding operation execution command.

본 발명에 있어, 상기 설정 저장 명령은, 상기 사물인터넷 프로토콜에서 사용되는 실행 관련 설정 정보를 변경하기 위한 명령으로, 게이트웨이의 IP 및 서버 IP 설정 명령, 게이트웨이의 OID 설정 명령, 디바이스의 OID 설정 명령, 단순 등록 설정 명령, 단순 등록 해제 명령, 복합 데이터 URI 설정 명령을 중 적어도 하나를 포함하고, 상기 동작 실행 명령은, 현재 동작 중에 필요한 동작을 수행하기 위한 명령으로, 단순 응답 명령, AT 모드 설정 명령, 시스템 리셋 명령, AT 명령어 리스트 출력 명령, 복합 데이터 전송 명령, 설정 정보 출력 명령, 설정 정보 초기화 명령, AT 모드 종료 명령 중 적어도 하나를 포함할 수 있다. In the present invention, the setting storage command is a command for changing execution-related setting information used in the IoT protocol, and includes a gateway IP and server IP setting command, a gateway OID setting command, a device OID setting command, It includes at least one of a simple registration setting command, a simple registration cancellation command, and a complex data URI setting command, and the operation execution command is a command for performing an operation required during a current operation, a simple response command, an AT mode setting command, It may include at least one of a system reset command, an AT command list output command, a composite data transmission command, a setting information output command, a setting information initialization command, and an AT mode end command.

본 발명은 상기 동작 모드가 일반 모드인 경우, 설정 및 동작 제어부가 상기 사물인터넷 프로토콜을 이용하여 사물인터넷 서비스를 제공하는 단계를 더 포함할 수 있다. The present invention may further include providing, by a setting and operation control unit, an IoT service using the IoT protocol when the operation mode is a normal mode.

본 발명에 따르면, 사물인터넷 단말장치에 시리얼 통신부 및 CoAP/AT Command Parser를 구현함으로써, 사물인터넷 프로토콜들의 복잡한 설정 및 동작을 AT Command 기반의 시리얼 통신을 통해 원격으로 제어할 수 있다. According to the present invention, by implementing a serial communication unit and a CoAP/AT command parser in an IoT terminal device, complex settings and operations of IoT protocols can be remotely controlled through AT Command-based serial communication.

한편, 본 발명의 효과는 이상에서 언급한 효과들로 제한되지 않으며, 이하에서 설명할 내용으로부터 통상의 기술자에게 자명한 범위 내에서 다양한 효과들이 포함될 수 있다. Meanwhile, the effects of the present invention are not limited to the above-mentioned effects, and various effects may be included within a range that is apparent to a person skilled in the art from the contents to be described below.

도 1은 일반적인 사물인터넷 플랫폼을 설명하기 위한 도면이다.
도 2는 일반적인 사물인터넷 프로토콜 스택을 설명하기 위한 도면이다.
도 3 및 도 4는 본 발명의 일 실시예에 따른 사물인터넷 단말장치를 설명하기 위한 블록도이다.
도 5는 본 발명의 일 실시예에 따른 사물인터넷 단말장치를 제어하는 방법을 설명하기위한 흐름도이다.
도 6은 본 발명의 일 실시예에 따른 사물인터넷 단말장치를 게이트웨이로 설정하는 예시도이다.
도 7은 본 발명의 일 실시예에 따른 사물인터넷 단말장치를 센서 디바이스로 설정하는 예시도이다.
도 8은 본 발명의 일 실시예에 따른 일반 모드를 AT 모드로 전환하는 방법을 설명하기 위한 예시도이다.
1 is a diagram illustrating a general IoT platform.
2 is a diagram for describing a general IoT protocol stack.
3 and 4 are block diagrams illustrating an IoT terminal device according to an embodiment of the present invention.
5 is a flowchart illustrating a method of controlling an IoT terminal device according to an embodiment of the present invention.
6 is an exemplary diagram of setting an IoT terminal device as a gateway according to an embodiment of the present invention.
7 is an exemplary diagram of setting an IoT terminal device according to an embodiment of the present invention as a sensor device.
8 is an exemplary view for explaining a method of converting a normal mode to an AT mode according to an embodiment of the present invention.

이하, 첨부된 도면들을 참조하여 본 발명의 일 실시예에 따른 사물인터넷 단말장치 및 이의 제어방법을 설명한다. 이 과정에서 도면에 도시된 선들의 두께나 구성요소의 크기 등은 설명의 명료성과 편의상 과장되게 도시되어 있을 수 있다. Hereinafter, an IoT terminal device and a control method thereof according to an embodiment of the present invention will be described with reference to the accompanying drawings. In this process, the thickness of the lines or the size of components shown in the drawings may be exaggerated for clarity and convenience of description.

또한, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례에 따라 달라질 수 있다. 그러므로 이러한 용어들에 대한 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.In addition, terms to be described later are terms defined in consideration of functions in the present invention and may vary according to the intention or custom of users or operators. Therefore, definitions of these terms should be made based on the contents throughout the present specification.

또한, 본 명세서에서 설명된 구현은, 예컨대, 방법 또는 프로세스, 장치, 소프트웨어 프로그램, 데이터 스트림 또는 신호로 구현될 수 있다. 단일 형태의 구현의 맥락에서만 논의(예컨대, 방법으로서만 논의)되었더라도, 논의된 특징의 구현은 또한 다른 형태(예컨대, 장치 또는 프로그램)로도 구현될 수 있다. 장치는 적절한 하드웨어, 소프트웨어 및 펌웨어 등으로 구현될 수 있다. 방법은, 예컨대, 컴퓨터, 마이크로프로세서, 집적 회로 또는 프로그래밍가능한 로직 디바이스 등을 포함하는 프로세싱 디바이스를 일반적으로 지칭하는 프로세서 등과 같은 장치에서 구현될 수 있다. 프로세서는 또한 최종-사용자 사이에 정보의 통신을 용이하게 하는 컴퓨터, 셀 폰, 휴대용/개인용 정보 단말기(personal digital assistant: "PDA") 및 다른 디바이스 등과 같은 통신 디바이스를 포함한다.In addition, the implementation described herein may be implemented in, for example, a method or process, an apparatus, a software program, a data stream or a signal. Although discussed only in the context of a single form of implementation (eg, only as a method), the implementation of the discussed features may also be implemented in other forms (eg, an apparatus or program). The device may be implemented with appropriate hardware, software and firmware. The method may be implemented in an apparatus such as a processor, which generally refers to a processing device including, for example, a computer, microprocessor, integrated circuit or programmable logic device, or the like. Processors also include communication devices such as computers, cell phones, personal digital assistants ("PDAs") and other devices that facilitate communication of information between end-users.

도 3 및 도 4는 본 발명의 일 실시예에 따른 사물인터넷 단말장치를 설명하기 위한 블록도이다. 3 and 4 are block diagrams illustrating an IoT terminal device according to an embodiment of the present invention.

도 3 및 도 4를 참조하면, 본 발명의 일 실시예에 따른 사물인터넷 단말장치(100)는 센서부(110), 메모리부(120), 무선통신부(130), 시리얼 통신부(140) 및 MCU부(150)를 포함한다. 3 and 4, the IoT terminal device 100 according to an embodiment of the present invention includes a sensor unit 110, a memory unit 120, a wireless communication unit 130, a serial communication unit 140, and an MCU. Includes part 150.

센서부(110)는 IoT 데이터를 검출하여 MCU부(150)로 전송한다. 이때, IoT 데이터는 전력설비 또는 기기와 관련된 각종 압력, 열, 배출가스, 주파수, 아크, 가스, 온도, 진동 중 적어도 하나 이상을 포함할 수 있다. 센서부(110)는 IoT 단말장치(100)가 게이트웨이로 동작할 경우 생략될 수 있다.The sensor unit 110 detects IoT data and transmits it to the MCU unit 150. In this case, the IoT data may include at least one or more of various pressures, heat, exhaust gas, frequency, arc, gas, temperature, and vibration related to power facilities or devices. The sensor unit 110 may be omitted when the IoT terminal device 100 operates as a gateway.

무선통신부(130)는 다른 IoT 단말장치와 무선통신을 수행할 수 있는 환경을 제공한다. 무선 통신부(130)는 전력설비 운영 환경(전력 설치 장소 및 설비 간 이격, 주파수 제한 및 전파거리 등)을 고려하여 LoRa, Wi-SUN 등과 같은 무선 통신 기술을 사용할 수 있다.The wireless communication unit 130 provides an environment capable of performing wireless communication with other IoT terminal devices. The wireless communication unit 130 may use a wireless communication technology such as LoRa and Wi-SUN in consideration of the power facility operating environment (a power installation location and spacing between facilities, a frequency limitation, and a propagation distance, etc.).

한편, 종래에는 사물인터넷 분야로 확보한 표준 프로토콜이 특정 무선기술(LoRa, Wi-SUN)에 종속됨에 따라, 사물인터넷 단말장치(100)의 개발 및 서비스 구현에 난이도가 높았고, 이는 사물인터넷 시장에서 사물인터넷 단말장치(100)를 대량으로 생산하고 활용하는 데 걸림돌이 되어왔다.On the other hand, conventionally, as the standard protocol secured in the IoT field is subordinated to specific wireless technologies (LoRa, Wi-SUN), the difficulty in the development and service implementation of the IoT terminal device 100 has been high. It has been an obstacle to mass production and utilization of the IoT terminal device 100.

이에, 본 발명은 사물인터넷 프로토콜들의 복잡한 설정 및 동작 제어를 간단한 AT Command 기반의 시리얼 통신을 통해 원격 제어하고자 한다. 이를 위해, IoT 단말장치(100)는 시리얼 통신부(140)를 구비하여, 사물인터넷 프로토콜들의 복잡한 설정 및 동작을 AT Command 기반의 시리얼 통신을 통해 원격으로 제어할 수 있다.Accordingly, the present invention intends to remotely control complex setting and operation control of IoT protocols through simple AT Command-based serial communication. To this end, the IoT terminal device 100 includes a serial communication unit 140 to remotely control complex settings and operations of IoT protocols through AT Command-based serial communication.

MCU부(150)에는 기본적으로 칩 간 통신을 위해 다양한 방식의 UART, I2C, GPIO, SPI 등의 시리얼 통신 포트가 있다. 본 실시예에서는 시리얼 통신부(140)를 UART 통신으로 구현한 경우이다. 이하에서는 설명의 편의를 위해 시리얼 통신부(140)를 UART 통신부로 한정하여 설명하기로 한다. UART는 범용 직렬 통신 방식으로 외부 유/무선 통신부와 RX, TX용으로 2개 포트를 할당받아 사용하므로, UART 통신부는 통신용 기본 포트인 UART 2개 핀을 이용하여 명령어를 전송한다.The MCU unit 150 basically includes serial communication ports such as UART, I2C, GPIO, and SPI of various types for inter-chip communication. In this embodiment, the serial communication unit 140 is implemented through UART communication. Hereinafter, for convenience of explanation, the serial communication unit 140 is limited to a UART communication unit. UART is a general-purpose serial communication method, and because the external wired/wireless communication unit and two ports for RX and TX are allocated and used, the UART communication unit transmits commands using two UART pins, which are the basic ports for communication.

MCU부(150)는 사물인터넷 프로토콜들이 구현되고, 시리얼 통신부(140)의 입력을 감시하여, 현재 동작 모드를 판단하며, 현재 동작 모드에 따라 동작하도록 제어한다.The MCU unit 150 implements IoT protocols, monitors the input of the serial communication unit 140, determines a current operation mode, and controls to operate according to the current operation mode.

이러한 MCU부(150)에 대해 도 4를 참조하면, MCU부(150)는 센서부(110)와의 인터페이스를 위한 센서 드라이버(151), 설정 및 동작 제어부(152), 외부 IoT 단말장치와의 무선 통신을 위한 RF 디바이스 드라이버(153), AT 명령어 파서(CoAP/AT Command Parser)(154) 및 UART 드라이버(155)를 포함한다. Referring to FIG. 4 for this MCU unit 150, the MCU unit 150 includes a sensor driver 151 for an interface with the sensor unit 110, a setting and operation control unit 152, and wireless communication with an external IoT terminal device. It includes an RF device driver 153 for communication, an AT command parser (CoAP/AT Command Parser) 154, and a UART driver 155.

센서 드라이버(151)는 센서부(110)에서 수집된 IoT 데이터를 수신하여, 설정 및 동작 제어부(152)로 전송한다. 설정 및 동작 제어부(152)는 센서 드라이버(151)로부터 전송된 IoT 데이터를 프로파일을 통해 동작 제어할 수 있다. The sensor driver 151 receives IoT data collected by the sensor unit 110 and transmits it to the setting and operation control unit 152. The setting and operation control unit 152 may control the operation of IoT data transmitted from the sensor driver 151 through a profile.

설정 및 동작 제어부(152)는 CoAP, LwM2M 등의 표준 프로토콜을 설정 및 동작시킨다. 이때, 설정 및 동작 제어부(152)는 CoAP/LwM2M 프로토콜 스택, 네트워크스택 및 보안 스택을 포함하는 프로파일에 기초하여 사물인터넷 서비스를 제공한다. The setting and operation control unit 152 sets and operates standard protocols such as CoAP and LwM2M. In this case, the setting and operation control unit 152 provides an IoT service based on a profile including a CoAP/LwM2M protocol stack, a network stack, and a security stack.

UART 드라이버(155)는 UART 통신부(140)와 연결되고, 시리얼 입력을 감시하여 동작 모드를 결정한다. 즉, UART 드라이버(155)는 UART 입력을 감시하여 현재 동작 모드가 AT 모드 또는 일반 모드인지 판단한다. 이때, UART 드라이버(155)는 UART TX로 다수의 디버그 메시지(debug message)가 출력되는 경우, 일반 모드라고 판단할 수 있다.The UART driver 155 is connected to the UART communication unit 140 and monitors a serial input to determine an operation mode. That is, the UART driver 155 monitors the UART input and determines whether the current operation mode is an AT mode or a normal mode. At this time, the UART driver 155 may determine that it is a normal mode when a plurality of debug messages are output to the UART TX.

동작 모드는 일반 모드와 AT 모드를 포함할 수 있다. 일반 모드는 IoT 표준에 의해 동작되는 모드로, AT Command를 통해 설정된 정보가 있는 경우 해당 설정으로 동작되며, AT Command의 설정이 없을 경우 default 설정으로 동작된다. 일반 모드에서는 UART TX로 다수의 디버그 메시지가 출력되고, 일반 모드에서 AT 모드로 전환하기 위해서는 AT 모드로 전환하기 위한 AT Command 예컨대, “AT+MODE<CR><LF>“ 를 이용할 수 있다. The operation mode may include a normal mode and an AT mode. The general mode is a mode operated by the IoT standard, and if there is information set through AT Command, it operates with the corresponding setting, and if there is no AT Command setting, it operates with the default setting. In general mode, a number of debug messages are output to UART TX, and to convert from general mode to AT mode, an AT command for converting to AT mode, such as “AT+MODE<CR><LF>”, can be used.

AT 모드는 AT Command들을 사용할 수 있는 모드일 수 있다, AT 모드에서 IoT 단말장치(100)는 동작을 중지하고 AT Command 입력을 대기한다. AT 모드를 종료하고 일반 모드로 전환하기 위해서는 일반 모드로 전환하기 위한 AT Command 예컨대, “AT+EXIT<CR><LF>”(설정 정보 저장 안됨) 또는 “AT+SET+CONFIG<CR><LF>”(설정 정보 저장)를 이용할 수 있다. The AT mode may be a mode in which AT commands can be used. In the AT mode, the IoT terminal device 100 stops the operation and waits for an AT command input. To exit the AT mode and switch to the normal mode, the AT command for converting to the normal mode, such as “AT+EXIT<CR><LF>” (setting information not saved) or “AT+SET+CONFIG<CR><LF” >” (Save setting information) can be used.

AT 명령어 파서(154)는 현재 동작 모드가 AT 모드인 경우, UART 드라이버(155)를 통해 입력된 AT 명령어가 설정 적용 명령인지 판단하고, 설정 적용 명령인 경우 기 입력된 설정 정보를 저장하고, 단말장치(100)를 리셋 시킨 후, 해당 설정 정보를 적용시킨다. When the current operation mode is the AT mode, the AT command parser 154 determines whether the AT command input through the UART driver 155 is a setting application command, and in the case of a setting application command, stores previously input setting information, and After the device 100 is reset, the setting information is applied.

또한, AT 명령어 파서(154)는 AT 명령어가 일반 명령인 경우, 입력된 일반 명령이 설정 저장 명령 또는 동작 실행 명령인지를 판단하고, 그 판단결과에 따라 동작을 수행하도록 제어한다. In addition, when the AT command is a general command, the AT command parser 154 determines whether the input general command is a setting storage command or an operation execution command, and controls to perform an operation according to the determination result.

즉, AT 명령어 파서(154)는 AT 명령어가 설정 저장 명령인 경우, 해당 설정 정보를 메모리부(120)에 저장한다. 이때, 설정 저장 명령은 CoAP/LwM2M 사물인터넷 프로토콜에서 사용되는 실행 관련 설정 정보를 변경하기 위한 명령으로, 게이트웨이의 IP 및 서버 IP 설정 명령, 게이트웨이의 OID 설정 명령, 디바이스의 OID 설정 명령, 단순 등록 설정 명령, 단순 등록 해제 명령, 복합 데이터 URI 설정 명령 등을 포함할 수 있다. AT 명령어 파서(154)는 이러한 설정 저장 명령을 통해 동작에 필요한 설정 정보를 변경하여 메모리부(120)에 저장한다. 실제 적용을 위해서는 설정 적용 명령(AT-SET_Config) 입력을 통해 사물인터넷 단말장치(100)를 reset하여야만 변경된 설정 정보가 IoT 단말장치(100)에 반영될 수 있다. That is, when the AT command is a setting storage command, the AT command parser 154 stores the corresponding setting information in the memory unit 120. At this time, the setting save command is a command to change the execution-related setting information used in the CoAP/LwM2M IoT protocol.The gateway IP and server IP setting command, the gateway OID setting command, the device OID setting command, and simple registration setting It may include an instruction, a simple deregistration instruction, and a complex data URI setting instruction. The AT command parser 154 changes setting information required for operation through such a setting storage command and stores it in the memory unit 120. For actual application, the changed setting information can be reflected in the IoT terminal device 100 only when the IoT terminal device 100 is reset through the input of the setting application command (AT-SET_Config).

또한, AT 명령어 파서(154)는 AT 명령어가 동작 실행 명령인 경우 해당 동작 실행 명령을 설정 및 동작 제어부(152)로 전송한다. 그러면, 설정 및 동작 제어부(152)는 동작 실행 명령에 따라 해당 동작을 실행할 수 있다. 이때, 동작 실행 명령은 현재 동작 중에 필요한 동작을 바로 수행하기 위한 명령으로, 단순 응답 명령, AT 모드 설정 명령, 시스템 리셋 명령, AT 명령어 리스트 출력 명령, 복합 데이터 전송 명령, 설정 정보 출력 명령, 설정 정보 초기화 명령, AT 모드 종료 명령 등을 포함할 수 있다. In addition, when the AT command is an operation execution command, the AT command parser 154 sets and transmits a corresponding operation execution command to the operation control unit 152. Then, the setting and operation control unit 152 may execute the corresponding operation according to the operation execution command. At this time, the operation execution command is a command to immediately perform an operation required during the current operation, and is a simple response command, AT mode setting command, system reset command, AT command list output command, complex data transmission command, setting information output command, setting information. It may include an initialization command, an AT mode end command, and the like.

이하, 사물인터넷 프로토콜들의 설정 및 동작 제어를 위한 AT Command에 대해 구체적으로 설명하기로 한다. Hereinafter, an AT command for setting and controlling the operation of IoT protocols will be described in detail.

AT Command는 ASCII 문자로 구성된 제어 명령으로써, 사물인터넷 단말장치(100)와 제어 장치(MCU, PC 등)간에 사용되는 통신 프로토콜이다. 본 발명에서 사용되는 AT Command에서 일반 명령은 "AT+XXX<CR><LF>"을 기본 구성으로 하고, 데이터를 포함한 명령은 "AT+XXX=DATA...<CR><LF>"을 기본 구성으로 할 수 있다. 또한, 모든 AT Command의 끝은 줄 바꿈 문자인 "<CR><LF>"로 구성되며, 명령에 대한 응답의 경우 성공 응답은 "OK+XXX<CR><LF>" 형태일 수 있고, 실패 응답은 "ERR+XXX<CR><LF>" 형태일 수 있다.AT Command is a control command composed of ASCII characters and is a communication protocol used between the IoT terminal device 100 and a control device (MCU, PC, etc.). In the AT Command used in the present invention, the general command is "AT+XXX<CR><LF>" as the basic configuration, and the command including data is "AT+XXX=DATA...<CR><LF>". You can do it with a basic configuration. In addition, the end of all AT commands is composed of a line feed character "<CR><LF>", and in the case of a response to a command, the success response may be in the form of "OK+XXX<CR><LF>", and failure The response may be in the form of "ERR+XXX<CR><LF>".

AT Command를 사용하기 위해, 사물인터넷 단말장치(100)는 Serial BaudRate, Data Bit, Stop Bit, 패리티 Bit, RTS/CTS, Serial 통신을 위한 핀, 데이터를 포함하는 명령의 데이터 최대 Buffer, AT 모드에 들어가기 위한 명령, AT 모드를 종료하기 위한 명령을 설정해야 한다. 예컨대, Serial BaudRate는 115200 bps, Data Bit는 8 bits, Stop Bit는 1 bit, 패리티 Bit는 사용 안함, RTS/CTS는 사용 안함, Serial 통신을 위해 필요한 핀은 GND, UART RX 및 UART TX, 데이터를 포함하는 명령의 데이터 최대 Buffer는 192 Bytes, AT 모드에 들어가기 위한 명령은 AT+MODE<CR><LF>, AT 모드를 종료하기 위한 명령은 AT+EXIT<CR><LF> 혹은 AT+SET+CONFIG<CR><LF>일 수 있다. In order to use the AT Command, the IoT terminal device 100 has the Serial BaudRate, Data Bit, Stop Bit, Parity Bit, RTS/CTS, pin for serial communication, the maximum data buffer of commands including data, and AT mode. A command to enter and a command to exit AT mode must be set. For example, Serial Baud Rate is 115200 bps, Data Bit is 8 bits, Stop Bit is 1 bit, Parity Bit is not used, RTS/CTS is not used, Pins required for serial communication are GND, UART RX and UART TX, data. The maximum data buffer of the included command is 192 Bytes, the command to enter the AT mode is AT+MODE<CR><LF>, the command to end the AT mode is AT+EXIT<CR><LF> or AT+SET+ May be CONFIG<CR><LF>.

이러한 AT 명령어는 아래 표 1같이 분류될 수 있다. These AT commands can be classified as shown in Table 1 below.

Figure pat00001
Figure pat00001

표 1에는 없으나, 정확한 AT Command를 입력하지 않았을 경우 출력되는 메시지로, AT Command 입력 실패 시 응답이 있을 수 있다. AT Command 입력 실패 시 응답은 예컨대, 'ERR+UnkownCMD:[입력문자수]입력문자' 구조일 수 있다. Although not shown in Table 1, this message is output when the correct AT Command is not input, and there may be a response when AT Command input fails. When AT Command input fails, the response may be, for example, in the structure of'ERR+UnkownCMD:[number of input characters] input characters'.

이하, 표 1에 개시된 AT Command에 대해 상세히 살명하기로 한다. Hereinafter, the AT Command disclosed in Table 1 will be described in detail.

"AT+NOP"는 AT Command 입력에 대한 단순 응답을 확인하는 명령어로, 아래 표 2와 같은 특징을 갖는다. "AT+NOP" is a command to check a simple response to AT Command input, and has the characteristics as shown in Table 2 below.

명령Command AT+NOPAT+NOP 설명Explanation AT Command 입력에 대한 단순 응답 명령Simple response command for AT Command input 입력 예시Input example AT+NOP<CR><LF>AT+NOP<CR><LF> 성공 응답Success response OK+NOP<CR><LF>OK+NOP<CR><LF> 실패 응답Failure response 실패 없음No failure

"AT+MODE"는 일반 모드에서 AT 모드로 전환하기 위한 명령어로, 일반 모드와 AT 모드에서 모두 사용이 가능하며, 아래 표 3과 같은 특징을 갖는다. "AT+MODE" is a command for converting from normal mode to AT mode, and can be used in both normal mode and AT mode, and has the features as shown in Table 3 below.

명령Command AT+MODEAT+MODE 설명Explanation AT 모드로 전환 명령Command to switch to AT mode 입력 예시Input example AT+MODE<CR><LF>AT+MODE<CR><LF> 성공 응답Success response (AT 모드) OK+MODE<CR><LF>
(일반 모드) Waiting...<CR><LF>
OK+AT_ModeStarted<CR><LF>
(AT mode) OK+MODE<CR><LF>
(Normal mode) Waiting...<CR><LF>
OK+AT_ModeStarted<CR><LF>
실패 응답Failure response 실패 없음No failure

"AT+RBT"은 사물인터넷 단말장치(100)를 HW적으로 Reboot하기 위한 명령어로, 일반 모드와 AT 모드에서 모두 사용이 가능하며, 아래 표 4와 같은 특징을 갖는다. "AT+RBT" is a command for rebooting the IoT terminal device 100 in HW, and can be used in both the normal mode and the AT mode, and has features as shown in Table 4 below.

명령Command AT+RBTAT+RBT 설명Explanation HW Reboot 명령HW Reboot command 입력 예시Input example AT+RBT<CR><LF>AT+RBT<CR><LF> 성공 응답Success response OK+RBT<CR><LF>OK+RBT<CR><LF> 실패 응답Failure response 실패 없음No failure

"AT+HELP"는 AT Command 리스트 및 설명 출력 명령어로, 아래 표 5와 같은 특징을 갖는다."AT+HELP" is an AT Command list and description output command, and has features as shown in Table 5 below.

명령Command AT+HELPAT+HELP 설명Explanation AT Command 리스트 출력AT Command list output 입력 예시Input example AT+HELP<CR><LF>AT+HELP<CR><LF> 성공 응답Success response OK+CMD_LISTs<CR><LF> - 설명들 xx ...OK+CMD_LISTs<CR><LF>-comments xx ... 실패 응답Failure response 실패 없음No failure

"AT+SET_GW_IPv4="는 사물인터넷 GW용 단말장치(100)에서의 Ethernet 연결 설정을 위한 명령어로써, IP, NetMask, Default Gateway 및 IoT 서버 IP 주소를 데이터로 입력할 수 있다. 각 데이터는 "," 문자로 구분되며 데이터 사이의 공백은 없어야 한다. 예컨대, IP, NetMask, Default Gateway IP, eIoT 서버 IP 주소가 각각 192.168.5.2,255.255.255.0,192.168.5.1,1.2.3.4 일 경우 해당 명령의 입력은 " AT+SET_GW_IPv4=192.168.5.2,255.255.255.0,192.168.5.1,1.2.3.4 "일 수 있다. "AT+SET_GW_IPv4=" is a command for setting an Ethernet connection in the terminal device 100 for IoT GW, and can input IP, NetMask, Default Gateway, and IoT server IP address as data. Each data is separated by a "," character and there should be no spaces between the data. For example, if the IP, NetMask, Default Gateway IP, and eIoT server IP address are 192.168.5.2,255.255.255.0,192.168.5.1,1.2.3.4, respectively, the command input is "AT+SET_GW_IPv4=192.168.5.2,255.255.255.0 ,192.168.5.1,1.2.3.4".

명령Command AT+SET_GW_IPv4=AT+SET_GW_IPv4= 설명Explanation Ethernet 연결 설정 명령Ethernet connection setting command 입력 예시Input example AT+SET_GW_IPv4=192.168.5.19,255.255.255.0,192.168.5.1,219.250.188.238<CR><LF>AT+SET_GW_IPv4=192.168.5.19,255.255.255.0,192.168.5.1,219.250.188.238<CR><LF> 성공 응답Success response OK+입력문자열<CR><LF>OK + input string <CR><LF> 실패 응답Failure response ERR+입력문자열<CR><LF>ERR+Input string<CR><LF>

"AT+SET_GW_OID="는 사물인터넷 GW용 단말장치(자신의 OID) 혹은 Device용 단말장치(접속할 GW의 OID)에 GW OID를 설정하기 위한 명령어로, 아래 표 7과 같은 특징을 갖는다. "AT+SET_GW_OID=" is a command for setting the GW OID in the IoT GW terminal device (own OID) or the device terminal device (OID of the GW to be connected), and has the characteristics as shown in Table 7 below.

명령Command AT+SET_GW_OID=AT+SET_GW_OID= 설명Explanation GW OID 설정 명령GW OID setting command 입력 예시Input example AT+SET_GW_OID=1.2.410.200073.1.101.1.225.101.000001<CR><LF>AT+SET_GW_OID=1.2.410.200073.1.101.1.225.101.000001<CR><LF> 성공 응답Success response OK+입력문자열<CR><LF>OK + input string <CR><LF> 실패 응답Failure response ERR+입력문자열<CR><LF>ERR+Input string<CR><LF>

"AT+SET_DEV_OID="는 사물인터넷 Device용 단말장치(자신의 OID)에 Device OID를 설정하기 위한 명령어로, 아래 표 8과 같은 특징을 갖는다. "AT+SET_DEV_OID=" is a command for setting a device OID in a terminal device (own OID) for an IoT device, and has features as shown in Table 8 below.

명령Command AT+SET_GW_OID=AT+SET_GW_OID= 설명Explanation Device OID 설정 명령Device OID setting command 입력 예시Input example AT+SET_GW_OID=1.2.410.200073.1.101.1.225.102.000001<CR><LF>AT+SET_GW_OID=1.2.410.200073.1.101.1.225.102.000001<CR><LF> 성공 응답Success response OK+입력문자열<CR><LF>OK + input string <CR><LF> 실패 응답Failure response ERR+입력문자열<CR><LF>ERR+Input string<CR><LF>

"AT+SET_SIMPLE_REG"는 IoT 단말장치(100)의 단순등록 동작을 수행시키기 위해 설정하기 위한 명령어로, 아래 표 9와 같은 특징을 갖는다.“AT+SET_SIMPLE_REG” is a command for setting in order to perform a simple registration operation of the IoT terminal device 100, and has features as shown in Table 9 below.

명령Command AT+SET_SIMPLE_REGAT+SET_SIMPLE_REG 설명Explanation 단순등록 동작 설정 명령Simple registration operation setting command 입력 예시Input example AT+SET_SIMPLE_REG<CR><LF>AT+SET_SIMPLE_REG<CR><LF> 성공 응답Success response OK+입력문자열<CR><LF>OK + input string <CR><LF> 실패 응답Failure response 실패 없음No failure

"AT+CLR_SIMPLE_REG"는 사물인터넷 단말장치(100)의 단순등록 동작을 해제시키기 위한 설정 명령어로, 아래 표 10과 같은 특징을 갖는다. "AT+CLR_SIMPLE_REG" is a setting command for canceling the simple registration operation of the IoT terminal device 100, and has features as shown in Table 10 below.

명령Command AT+CLR_SIMPLE_REGAT+CLR_SIMPLE_REG 설명Explanation 단순등록 동작 해제 명령Command to cancel simple registration operation 입력 예시Input example AT+SET_SIMPLE_REG<CR><LF>AT+SET_SIMPLE_REG<CR><LF> 성공 응답Success response OK+입력문자열<CR><LF>OK + input string <CR><LF> 실패 응답Failure response 실패 없음No failure

"AT+SET_COMP_DATA="는 일반 모드와 AT 모드에서 모두 사용이 가능한 명령어로, AT 모드에서 사용할 경우 사물인터넷 단말장치(100)의 초기 복합 데이터의 데이터 값을 설정하기 위한 명령어일 수 있고, 일반 모드에서 사용할 경우 해당 명령을 전송할 때마다 명령에 포함된 복합 데이터를 단순 보고에 의해 IoT 서버로 전송하기 위한 명령어일 수 있다. "AT+SET_COMP_DATA=" is a command that can be used in both the normal mode and the AT mode. When used in the AT mode, it may be a command for setting the data value of the initial complex data of the IoT terminal device 100, and the normal mode When used in, it may be a command for transmitting the complex data included in the command to the IoT server by a simple report whenever the command is transmitted.

"AT+SET_COMP_DATA="는 아래 표 11과 같은 특징을 갖는다."AT+SET_COMP_DATA=" has the characteristics as shown in Table 11 below.

명령Command AT+SET_COMP_DATA=AT+SET_COMP_DATA= 설명Explanation (AT모드) 초기 복합데이터 값 설정 명령
(일반모드) 단순 보고 동작 명령
(AT mode) Initial complex data value setting command
(General mode) Simple report operation command
입력 예시Input example AT+SET_COMP_DATA=1;2;3<CR><LF>AT+SET_COMP_DATA=1;2;3<CR><LF> 성공 응답Success response (AT모드) OK+입력문자열<CR><LF>
(일반모드) OK+SIMPLE_REPORT<CR><LF>
(AT mode) OK+Input string <CR><LF>
(Normal Mode) OK+SIMPLE_REPORT<CR><LF>
실패 응답Failure response ERR+LONG_DATA <192Bytes<CR><LF> (입력 문자열이 192 bytes를 넘는 경우)ERR+LONG_DATA <192Bytes<CR><LF> (if input string exceeds 192 bytes)

"AT+SET_COMP_URI="는 IoT 단말장치(100)의 초기 복합 데이터 URI 구성 값을 설정하기 위한 명령어로, 아래 표 12와 같은 특징을 갖는다. "AT+SET_COMP_URI=" is a command for setting the initial complex data URI configuration value of the IoT terminal device 100, and has features as shown in Table 12 below.

명령Command AT+SET_COMP_URI=AT+SET_COMP_URI= 설명Explanation 초기 복합 데이터 URI 구성 설정 명령Initial complex data URI configuration setup command 입력 예시Input example AT+SET_COMP_DATA=/7/0/2;/7/0/3;/7/0/1000<CR><LF>AT+SET_COMP_DATA=/7/0/2;/7/0/3;/7/0/1000<CR><LF> 성공 응답Success response OK+입력문자열<CR><LF>OK + input string <CR><LF> 실패 응답Failure response ERR+LONG_DATA <192Bytes<CR><LF> (입력 문자열이 192 bytes를 넘는 경우)ERR+LONG_DATA <192Bytes<CR><LF> (if input string exceeds 192 bytes)

"AT+GET_CONFIG"는 현재 설정된 값들을 출력하는 명령어로, 아래 표 13과 같은 특징을 갖는다."AT+GET_CONFIG" is a command that outputs the currently set values, and has the characteristics shown in Table 13 below.

명령Command AT+GET_CONFIGAT+GET_CONFIG 설명Explanation 현재 설정값 출력 명령Current setting value output command 입력 예시Input example AT+GET_CONFIG<CR><LF>AT+GET_CONFIG<CR><LF> 성공 응답Success response OK+설정값들...<CR><LF>OK+settings...<CR><LF> 실패 응답Failure response ERR+NoInfo<CR><LF> (설정된 값 없음)ERR+NoInfo<CR><LF> (no value set)

"AT+SET_CONFIG"는 현재 설정된 값들을 메모리부(120)에 저장하고, 일반 모드를 실행하는 명령어로, 아래 표 14와 같은 특징을 갖는다. "AT+SET_CONFIG" is a command for storing the currently set values in the memory unit 120 and executing the normal mode, and has the characteristics as shown in Table 14 below.

명령Command AT+SET_CONFIGAT+SET_CONFIG 설명Explanation 현재 설정값 저장 및 일반 모드 전환 명령Save current setting value and command to change general mode 입력 예시Input example AT+SET_CONFIG<CR><LF>AT+SET_CONFIG<CR><LF> 성공 응답Success response OK+SET_CONFIG<CR><LF>OK+SET_CONFIG<CR><LF> 실패 응답Failure response 실패 없음No failure

"AT+RST_CONFIG"는 현재 메모리부(120)에 저장된 설정 값들을 RESET하는 명령어로, 아래 표 15와 같은 특징을 갖는다. "AT+RST_CONFIG" is a command for RESET of setting values currently stored in the memory unit 120, and has the characteristics as shown in Table 15 below.

명령Command AT+RST_CONFIGAT+RST_CONFIG 설명Explanation 현재 설정값 RESET 명령Current set value RESET command 입력 예시Input example AT+RST_CONFIG<CR><LF>AT+RST_CONFIG<CR><LF> 성공 응답Success response OK+RST_CONFIG<CR><LF>OK+RST_CONFIG<CR><LF> 실패 응답Failure response 실패 없음No failure

"AT+EXIT"는 AT 모드를 종료하고, 일반 모드를 실행하는 명령어로, 아래 표 16과 같은 특징을 갖는다. "AT+EXIT" is a command for ending AT mode and executing normal mode, and has the characteristics as shown in Table 16 below.

명령Command AT+EXITAT+EXIT 설명Explanation AT 모드 종료 -> 일반 모드 실행 명령AT mode exit -> normal mode execution command 입력 예시Input example AT+EXIT<CR><LF>AT+EXIT<CR><LF> 성공 응답Success response OK+EXIT<CR><LF>OK+EXIT<CR><LF> 실패 응답Failure response 실패 없음No failure

사물인터넷 단말장치(100)는 상술한 AT Command를 이용하여 사물인터넷 프로토콜들의 복잡한 설정 및 동작을 시리얼 통신을 통해 원격으로 제어할 수 있다.The IoT terminal device 100 may remotely control complex settings and operations of IoT protocols through serial communication using the AT command described above.

한편, 사물인터넷 단말장치(100)는 IoT 게이트웨이 또는 센서 디바이스로 동작할 수 있다. 사물인터넷 단말장치(100)를 IoT 게이트웨이로 동작시키기 위해서는 AT Command 중에서 필수적으로 설정해야 하는 명령이 있다. 즉, AT Command 중에서 "AT+SET_GW_IPv4=xxx", "AT+SET_GW_OID=xxx", "AT+SET_SIMPLE_REG (단순 등록을 사용할 경우에만)", "AT+SET_COMP_DATA= (복합 데이터를 사용할 경우에만)", "AT+SET_COMP_URI= (복합 데이터를 사용할 경우에만)" 및 "AT+SET_CONFIG"을 설정해야 한다. Meanwhile, the IoT terminal device 100 may operate as an IoT gateway or a sensor device. Internet of Things In order to operate the terminal device 100 as an IoT gateway, there are commands that must be set among AT commands. That is, among AT Commands, "AT+SET_GW_IPv4=xxx", "AT+SET_GW_OID=xxx", "AT+SET_SIMPLE_REG (only when using simple registration)", "AT+SET_COMP_DATA= (only when using complex data)", "AT+SET_COMP_URI= (only when using composite data)" and "AT+SET_CONFIG" must be set.

예컨대, 게이트웨이로 동작시키기 위해 사물인터넷 단말장치(100)에 설정할 정보를 "모듈 IP의 주소:192.168.5.19", "모듈 IP의 NetMask: 255.255.255.0", "모듈 IP의 Default GW:192.168.5.1", "eIoT 서버 주소: 219.250.188.238", "모듈의 OID: 1.2.410.200073.1.101.1.225.101.000001", "단순 등록 사용", "복합 데이터: 1;2;3" 및 "복합 데이터 URI: /7/0/2;/7/0/3;/7/0/1000"로 가정하면, AT Command는 도 6과 같을 수 있다. For example, in order to operate as a gateway, information to be set in the IoT terminal device 100 is "Module IP address: 192.168.5.19", "Module IP NetMask: 255.255.255.0", "Default GW of module IP: 192.168.5.1 ", "eIoT server address: 219.250.188.238", "OID of module: 1.2.410.200073.1.101.1.225.101.000001", "Use simple registration", "Compound data: 1;2;3" and "Compound data URI: Assuming that /7/0/2;/7/0/3;/7/0/1000", the AT Command may be as shown in FIG. 6.

또한, 사물인터넷 단말장치(100)를 센서 디바이스로 동작시키기 위해서는 AT Command 중에서 필수적으로 설정해야 하는 명령이 있다. 즉, AT Command 중에서 "AT+SET_GW_OID=xxx", "AT+SET_DEV_OID=xxx", "AT+SET_SIMPLE_REG (단순 등록을 사용할 경우에만)", "AT+SET_COMP_DATA= (복합 데이터를 사용할 경우에만)", "AT+SET_COMP_URI= (복합 데이터를 사용할 경우에만)" 및 "AT+SET_CONFIG"를 설정해야 한다. In addition, in order to operate the IoT terminal device 100 as a sensor device, there are commands that must be set among AT commands. In other words, among AT Commands, "AT+SET_GW_OID=xxx", "AT+SET_DEV_OID=xxx", "AT+SET_SIMPLE_REG (only when using simple registration)", "AT+SET_COMP_DATA= (only when using complex data)", "AT+SET_COMP_URI= (only when using composite data)" and "AT+SET_CONFIG" must be set.

예컨대, 센서 디바이스로 동작시키기 위해 사물인터넷 단말장치(100)에 설정할 정보를 "등록될 GW OID: 1.2.410.200073.1.101.1.225.101.000001, 모듈의 DEV OID: 1.2.410.200073.1.101.1.225.102.000001, 단순 등록 사용, 복합 데이터: 1;2;3, 복합 데이터 URI: /7/0/2;/7/0/3;/7/0/1000"로 가정하면, AT Command는 도 7과 같을 수 있다. For example, in order to operate as a sensor device, information to be set in the IoT terminal device 100 is "registered GW OID: 1.2.410.200073.1.101.1.225.101.000001, module DEV OID: 1.2.410.200073.1.101.1.225.102.000001, and Assuming that simple registration is used, complex data: 1;2;3, complex data URI: /7/0/2;/7/0/3;/7/0/1000", the AT command can be as shown in FIG. have.

또한, 사물인터넷 단말장치(100)는 일반 모드로 동작중에 AT 모드로 전환할 수 있다. 이 경우, AT 명령어 파서는 일반모드에서 AT 모드로 전환하기 AT Command인 “AT+MODE<CR><LF>"가 입력되면, AT 모드로 전환시킨다. 예를 들어, 도 8과 같이 일반모드로 동작중에 “AT+MODE<CR><LF>"가 입력되고, "OK+AT_ModeStarted" 성공 응답이 수신되면, AT 모드로 전환할 수 있다. In addition, the IoT terminal device 100 may switch to the AT mode while operating in the normal mode. In this case, the AT command parser converts from normal mode to AT mode, and when the AT command “AT+MODE<CR><LF>” is input, it converts to AT mode as shown in FIG. During operation, when “AT+MODE<CR><LF>” is input and a success response “OK+AT_ModeStarted” is received, the AT mode can be switched.

상술한 바와 같이, AT Command는 아스키 문자로 구성된 명령어 체계로서 직관적으로 이해하기 쉬우며, 몇 가지 조합만으로 CoAP에서 제공하는 RESTful 명령어 체계에 대응되고, 게다가 모든 통신에 기본으로 제공되는 TX, RX, GND만 사용한 UART 직렬통신은 구현 난이도가 낮고 어떤 종류의 통신매체와도 내/외장하여 확대 및 응용 가능하므로, 본 발명은 에너지분야 사물인터넷 시장에서 활용성과 효과성을 기대할 수 있다.As described above, AT Command is a command system composed of ASCII characters, which is easy to understand intuitively, corresponds to the RESTful command system provided by CoAP with only a few combinations, and TX, RX, GND, which are basically provided for all communications. Since the UART serial communication using only UART is low in implementation difficulty and can be expanded and applied with internal/external communication media of any kind, the present invention can be expected to have utility and effectiveness in the IoT market in the energy field.

도 5는 본 발명의 일 실시예에 따른 사물인터넷 단말장치를 제어하는 방법을 설명하기위한 흐름도이다. 5 is a flowchart illustrating a method of controlling an IoT terminal device according to an embodiment of the present invention.

도 5를 참조하면, AT 명령어 파서(154)는 UART 입력이 발생하면(S510), 현재 동작 모드가 AT 모드인지 판단한다(S520). 이때, AT 명령어 파서(154)는 UART 입력이 디버그 메시지인 경우 AT 모드로 판단할 수 있다. Referring to FIG. 5, when a UART input occurs (S510), the AT command parser 154 determines whether the current operation mode is an AT mode (S520). At this time, the AT command parser 154 may determine the AT mode when the UART input is a debug message.

단계 S520의 판단결과, 현재 동작 모드가 AT 모드이면, AT 명령어 파서(154)는 입력된 AT 명령어를 분석하여(S530), 설정 적용 명령인지 판단한다(S540).As a result of the determination in step S520, if the current operation mode is the AT mode, the AT command parser 154 analyzes the input AT command (S530) and determines whether it is a setting application command (S540).

단계 S540의 판단결과 설정 적용 명령인 경우, AT 명령어 파서(154)는 해당 설정 정보를 저장하고 사물인터넷 단말장치(100)를 리셋시킨 후 해당 설정 정보를 적용한다(S550). 즉, AT 명령어 파서(154)는 설정 적용 명령이 입력된 경우, 설정 저장 명령을 통해 기 입력된 설정 정보를 기반으로 CoAP/LwM2M 사물인터넷 프로토콜이 동작되도록 사물인터넷 단말장치(100)를 리셋시킨 후, 해당 설정 정보를 적용한다. As a result of the determination in step S540, in the case of a setting application command, the AT command parser 154 stores the corresponding setting information, resets the IoT terminal device 100, and then applies the setting information (S550). That is, when the setting application command is input, the AT command parser 154 resets the IoT terminal device 100 so that the CoAP/LwM2M IoT protocol is operated based on the setting information previously input through the setting save command. , Apply the relevant setting information.

만약, 단계 S540의 판단결과 설정 적용 명령이 아니면, AT 명령어 파서(154)는 일반 명령으로 판단하고(S560), 일반 명령이 설정 저장 명령인지 판단한다(S570).If the determination result of step S540 is not the setting application command, the AT command parser 154 determines as a general command (S560), and determines whether the general command is a setting save command (S570).

단계 S570의 판단결과 설정 저장 명령이면, AT 명령어 파서(154)는 해당 설정 정보를 메모리부(120)에 저장한다(S580). 설정 저장 명령은 CoAP/LwM2M 사물인터넷 프로토콜에서 사용되는 OID, 단순등록 사용 여부, 서버 주소 등의 CoAP/LwM2M 실행 관련 설정 정보를 변경하기 위한 명령일 수 있다. AT 명령어 파서(154)는 이러한 설정 저장 명령을 통해 동작에 필요한 설정 정보를 변경하여 메모리부(120)에 저장한다. 실제 적용을 위해서는 설정 적용 명령(AT-SET_Config) 입력을 통해 사물인터넷 단말장치(100)를 reset하여야만 변경된 설정 정보가 사물인터넷 단말장치(100)에 반영될 수 있다. If the result of the determination in step S570 is a setting storage command, the AT command parser 154 stores the setting information in the memory unit 120 (S580). The setting saving command may be a command for changing setting information related to CoAP/LwM2M execution such as OID used in the CoAP/LwM2M IoT protocol, whether simple registration is used, and a server address. The AT command parser 154 changes setting information required for operation through such a setting storage command and stores it in the memory unit 120. For actual application, the changed setting information can be reflected in the IoT terminal device 100 only when the IoT terminal device 100 is reset through the input of the setting application command (AT-SET_Config).

만약, 단계 S570의 판단결과 동작 실행 명령이면(S590), AT 명령어 파서(154)는 해당 동작을 실행한다(S600). 동작 실행 명령은 현재 동작 중에 필요한 동작을 바로 수행하고자 할 때 사용되는 명령으로, AT Mode 변환, 시스템 Reset, 복합 데이터 전송 등의 동작에 사용될 수 있다. If, as a result of the determination in step S570, an operation execution command (S590), the AT command parser 154 executes the corresponding operation (S600). The operation execution command is a command used to immediately perform an operation required during the current operation, and can be used for operations such as AT mode conversion, system reset, and complex data transmission.

만약, 단계 S520의 판단결과 AT 모드가 아니면, AT 명령어 파서(154)는 일반 모드로 판단한다(S610). If, as a result of the determination in step S520, it is not the AT mode, the AT command parser 154 determines the normal mode (S610).

상술한 바와 같이, 본 발명에 따른 사물인터넷 단말장치 및 이의 제어방법은, IoT 단말장치에 시리얼 통신부 및 CoAP/AT Command Parser를 구현함으로써, 사물인터넷 프로토콜들의 복잡한 설정 및 동작을 AT Command 기반의 시리얼 통신을 통해 원격으로 제어할 수 있다. As described above, the IoT terminal device and the control method thereof according to the present invention implement a serial communication unit and a CoAP/AT command parser in the IoT terminal device, so that the complex setting and operation of the IoT protocols can be performed by AT Command-based serial communication. It can be controlled remotely via.

본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나, 이는 예시적인 것에 불과하며, 당해 기술이 속하는 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다.Although the present invention has been described with reference to the embodiments shown in the drawings, this is only illustrative, and those of ordinary skill in the field to which the technology pertains, various modifications and other equivalent embodiments are possible. I will understand.

따라서 본 발명의 진정한 기술적 보호범위는 아래의 특허청구범위에 의해서 정하여져야 할 것이다.Therefore, the true technical protection scope of the present invention should be determined by the following claims.

100 : IoT 단말장치
110 : 센서부
120 : 메모리부
130 : 무선통신부
140 : 시리얼 통신부
150 : MCU부
151 : 센서 드라이버
152 : 설정 및 동작 제어부
153 : RF 디바이스 드라이버
154 : AT 명령어 파서
155 : UART 드라이버
100: IoT terminal device
110: sensor unit
120: memory unit
130: Ministry of Wireless Communication
140: serial communication unit
150: MCU unit
151: sensor driver
152: setting and operation control unit
153: RF device driver
154: AT command parser
155: UART driver

Claims (11)

다른 사물인터넷 단말장치와 무선통신을 수행하도록 하는 무선통신부;
시리얼 통신을 수행하도록 하는 시리얼 통신부; 및
사물인터넷 프로토콜들이 구현되고, 상기 시리얼 통신부의 입력을 감시하여 동작 모드를 판단하며, 상기 판단된 동작 모드에 따라 동작하도록 제어하는 MCU(Micro Controller Unit)부
를 포함하는 사물인터넷 단말장치.
A wireless communication unit for performing wireless communication with other IoT terminal devices;
A serial communication unit to perform serial communication; And
A microcontroller unit (MCU) unit that implements IoT protocols, determines an operation mode by monitoring the input of the serial communication unit, and controls to operate according to the determined operation mode
IoT terminal device comprising a.
제1항에 있어서,
상기 시리얼 통신부는,
UART(Universal Asynchronous Receiver Transmitter)통신을 수행하는 것을 특징으로 하는 사물인터넷 단말장치.
The method of claim 1,
The serial communication unit,
An IoT terminal device, characterized in that it performs UART (Universal Asynchronous Receiver Transmitter) communication.
제1항에 있어서,
상기 MCU부는,
상기 시리얼 통신부와 연결되고, 시리얼 입력을 감시하여 동작 모드를 판단하는 시리얼 드라이버;
상기 동작 모드가 AT 모드인 경우, 상기 시리얼 드라이버를 통해 입력된 AT 명령어(Command)를 기반으로 상기 사물인터넷 프로토콜의 설정 및 동작을 제어하는 AT 명령어 파서; 및
상기 동작 모드가 일반 모드인 경우, 상기 사물인터넷 프로토콜에 의해 동작되도록 제어하는 설정 및 동작 제어부를 포함하는 것을 특징으로 하는 사물인터넷 단말장치.
The method of claim 1,
The MCU unit,
A serial driver connected to the serial communication unit and configured to monitor a serial input to determine an operation mode;
An AT command parser for controlling the setting and operation of the IoT protocol based on an AT command input through the serial driver when the operation mode is an AT mode; And
And a setting and an operation control unit for controlling to be operated according to the IoT protocol when the operation mode is a general mode.
제3항에 있어서,
상기 시리얼 드라이버는,
상기 시리얼 입력이 디버그 메시지(debug message)인 경우 동작 모드를 일반 모드로 판단하는 것을 특징으로 하는 사물인터넷 단말장치.
The method of claim 3,
The serial driver,
When the serial input is a debug message, an operation mode is determined as a general mode.
제3항에 있어서,
상기 AT 명령어 파서는,
상기 입력된 AT 명령어를 분석하여 설정 적용 명령, 설정 저장 명령 및 동작 실행 명령 중 어느 명령에 해당하는지 판단하고, 그 판단결과 설정 적용 명령인 경우 기 입력된 설정 정보를 저장하고 단말장치를 리셋시킨 후 상기 설정 정보를 적용시키며, 설정 저장 명령인 경우 해당 설정 저장 명령을 통해 입력된 설정 정보를 저장하고, 동작 실행 명령인 경우 해당 동작 실행 명령을 통해 입력된 동작을 실행시키는 것을 특징으로 하는 사물인터넷 단말장치.
The method of claim 3,
The AT command parser,
The input AT command is analyzed to determine which of the command to apply the setting, the command to save the setting, and the command to execute the operation, and in the case of the command to apply the setting as a result of the determination, save the previously input setting information and reset the terminal device. An IoT terminal, characterized in that the setting information is applied, and in the case of a setting-save command, the setting information input through the corresponding setting-save command is stored, and in the case of an operation execution command, an operation input through a corresponding operation execution command is executed. Device.
제5항에 있어서,
상기 설정 저장 명령은, 상기 사물인터넷 프로토콜에서 사용되는 실행 관련 설정 정보를 변경하기 위한 명령으로, 게이트웨이의 IP 및 서버 IP 설정 명령, 게이트웨이의 OID(Object Identifier) 설정 명령, 디바이스의 OID 설정 명령, 단순 등록 설정 명령, 단순 등록 해제 명령, 복합 데이터 URI 설정 명령을 중 적어도 하나를 포함하고,
상기 동작 실행 명령은, 현재 동작 중에 필요한 동작을 수행하기 위한 명령으로, 단순 응답 명령, AT 모드 설정 명령, 시스템 리셋 명령, AT 명령어 리스트 출력 명령, 복합 데이터 전송 명령, 설정 정보 출력 명령, 설정 정보 초기화 명령, AT 모드 종료 명령 중 적어도 하나를 포함하는 것을 특징으로 하는 사물인터넷 단말장치.
The method of claim 5,
The setting saving command is a command for changing execution-related setting information used in the IoT protocol. Including at least one of a registration setting command, a simple unregistration command, a complex data URI setting command,
The operation execution command is a command for performing an operation required during the current operation, such as a simple response command, an AT mode setting command, a system reset command, an AT command list output command, a complex data transmission command, a setting information output command, and setting information initialization. An IoT terminal device comprising at least one of a command and an AT mode termination command.
시리얼 드라이버가 시리얼 입력을 감시하여 동작 모드를 판단하는 단계; 및
상기 동작 모드가 AT 모드인 경우, AT 명령어 파서가 상기 시리얼 드라이버를 통해 입력된 AT 명령어(Command)를 기반으로 상기 사물인터넷 프로토콜의 설정 및 동작을 제어하는 단계;
를 포함하는 사물인터넷 단말장치의 제어방법.
Determining, by the serial driver, an operation mode by monitoring the serial input; And
When the operation mode is the AT mode, controlling, by an AT command parser, the setting and operation of the IoT protocol based on an AT command input through the serial driver;
Control method of an IoT terminal device comprising a.
제7항에 있어서,
상기 동작 모드를 판단하는 단계에서,
상기 시리얼 드라이버는, 상기 시리얼 입력이 디버그 메시지(debug message)인 경우, 동작 모드를 일반 모드로 판단하는 것을 특징으로 하는 사물인터넷 단말장치의 제어방법.
The method of claim 7,
In the step of determining the operation mode,
The serial driver, when the serial input is a debug message, determines an operation mode as a general mode.
제7항에 있어서,
상기 사물인터넷 프로토콜의 설정 및 동작을 제어하는 단계는,
상기 AT 명령어 파서가 상기 입력된 AT 명령어를 분석하여 설정 적용 명령, 설정 저장 명령 및 동작 실행 명령 중 어느 명령에 해당하는지 판단하는 단계; 및
상기 판단결과 설정 적용 명령인 경우 기 입력된 설정 정보를 저장하고 단말장치를 리셋시킨 후 상기 설정 정보를 적용시키며, 설정 저장 명령인 경우 해당 설정 저장 명령을 통해 입력된 설정 정보를 저장하고, 동작 실행 명령인 경우 해당 동작 실행 명령을 통해 입력된 동작을 실행시키는 단계를 포함하는 것을 특징으로 하는 것을 특징으로 하는 사물인터넷 단말장치의 제어방법.
The method of claim 7,
The step of controlling the setting and operation of the IoT protocol,
Determining, by the AT command parser, which command corresponds to a setting application command, a setting saving command, and an operation execution command by analyzing the input AT command; And
As a result of the determination, in the case of a setting application command, the previously input setting information is saved and the terminal device is reset, and the setting information is applied. In the case of a setting saving command, the setting information input through the corresponding setting saving command is saved, and the operation is executed And, in the case of a command, executing an operation input through a corresponding operation execution command.
제9항에 있어서,
상기 설정 저장 명령은, 상기 사물인터넷 프로토콜에서 사용되는 실행 관련 설정 정보를 변경하기 위한 명령으로, 게이트웨이의 IP 및 서버 IP 설정 명령, 게이트웨이의 OID 설정 명령, 디바이스의 OID 설정 명령, 단순 등록 설정 명령, 단순 등록 해제 명령, 복합 데이터 URI 설정 명령을 중 적어도 하나를 포함하고,
상기 동작 실행 명령은, 현재 동작 중에 필요한 동작을 수행하기 위한 명령으로, 단순 응답 명령, AT 모드 설정 명령, 시스템 리셋 명령, AT 명령어 리스트 출력 명령, 복합 데이터 전송 명령, 설정 정보 출력 명령, 설정 정보 초기화 명령, AT 모드 종료 명령 중 적어도 하나를 포함하는 것을 특징으로 하는 사물인터넷 단말장치의 제어방법.
The method of claim 9,
The setting storage command is a command for changing execution-related setting information used in the IoT protocol, and includes a gateway IP and server IP setting command, a gateway OID setting command, a device OID setting command, a simple registration setting command, Including at least one of a simple deregistration command, a complex data URI setting command,
The operation execution command is a command for performing an operation required during the current operation, such as a simple response command, an AT mode setting command, a system reset command, an AT command list output command, a complex data transmission command, a setting information output command, and setting information initialization. A method for controlling an IoT terminal device comprising at least one of a command and an AT mode termination command.
제7항에 있어서,
상기 동작 모드가 일반 모드인 경우, 설정 및 동작 제어부가 상기 사물인터넷 프로토콜을 이용하여 사물인터넷 서비스를 제공하는 단계를 더 포함하는 사물인터넷 단말장치의 제어방법.
The method of claim 7,
When the operation mode is a general mode, the setting and operation control unit providing an IoT service using the IoT protocol.
KR1020190079970A 2019-07-03 2019-07-03 TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF KR102432960B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190079970A KR102432960B1 (en) 2019-07-03 2019-07-03 TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190079970A KR102432960B1 (en) 2019-07-03 2019-07-03 TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF

Publications (2)

Publication Number Publication Date
KR20210004097A true KR20210004097A (en) 2021-01-13
KR102432960B1 KR102432960B1 (en) 2022-08-17

Family

ID=74142333

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190079970A KR102432960B1 (en) 2019-07-03 2019-07-03 TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF

Country Status (1)

Country Link
KR (1) KR102432960B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230068518A (en) * 2021-11-11 2023-05-18 시큐리티플랫폼 주식회사 Serial communication protection platform system using secure communication device for iot

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"[IOTMAKERS 03] IOTMAKERS, 쉽게 사용하기", https://1byte.tistory.com/6(2016.10.10.)* *
"AT Command Set", https://web.archive.org/web/20170729225543/http://wizwiki.net/wiki/doku.php?id=products:wizfi250:wizfi250pg:at_command_set(2017.07.29.)* *
"IoT Device(WizFi250) 관점에서의 IoT Cloud System", https://ilikethisplus.tistory.com/10(2014.11.14.)* *
"WizFi250] AT+SCON", https://wizdaniel.wordpress.com/2015/05/13/atscon/(2015.05.13.)* *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230068518A (en) * 2021-11-11 2023-05-18 시큐리티플랫폼 주식회사 Serial communication protection platform system using secure communication device for iot

Also Published As

Publication number Publication date
KR102432960B1 (en) 2022-08-17

Similar Documents

Publication Publication Date Title
KR100462598B1 (en) Wireless LAN card having function of access point and network Printer having the same and Method for transmitting data using the printer
US20070130286A1 (en) Network device management
EP1978767A2 (en) Configuration and management of wireless network devices
WO2016112728A1 (en) Data transmission method, network server, user terminal and system
EP2499804B1 (en) Method and apparatus for changing input type in input system using universal plug and play
KR20060103152A (en) System and method for dynamic interface management
EP1934796A2 (en) Wireless remote device management utilizing mesh topology
EP2640002B1 (en) Method, apparatus and system for configuring device
CN112566113B (en) Key generation and terminal network distribution method, device and equipment
WO2020181486A1 (en) Information processing method, apparatus, and system
TWI489900B (en) Wireless network system and connecting method thereof
JP2016206940A (en) Information processor and control thereof, and program
CN106792694B (en) Access authentication method and access equipment
US20230140769A1 (en) REMOTE RECONFIGURATION SYSTEM FOR INTERNET OF THINGS (IoT) INTELLIGENT SENSING TERMINAL
US11586303B2 (en) Software framework and development platform for Wi-Fi chipsets
CN109587230B (en) Remote control terminal and control method for Internet of things
CN108684021B (en) Bluetooth low-power-consumption communication method and device
KR102432960B1 (en) TERMINAL APPARATUS SUPPORTING INTERNET OF THINGS(IoT) AND CONTROL METHOD THEREOF
WO2018053895A1 (en) Type-based uplink data encryption control method and device for internet-of-things access point
WO2023088198A1 (en) Network connection method and apparatus, and electronic device
US10666492B1 (en) Method and apparatus of providing emergency communication services
US20230073061A1 (en) Mesh network update system and method thereof
TWI795619B (en) Gateway device with built-in server module and communication system thereof
CN113472637A (en) LORA gateway
US7543049B2 (en) Systems and methods for efficient discovery of a computing device on a network

Legal Events

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