KR20160121034A - Apparatus and method for serial communication control - Google Patents

Apparatus and method for serial communication control Download PDF

Info

Publication number
KR20160121034A
KR20160121034A KR1020150050419A KR20150050419A KR20160121034A KR 20160121034 A KR20160121034 A KR 20160121034A KR 1020150050419 A KR1020150050419 A KR 1020150050419A KR 20150050419 A KR20150050419 A KR 20150050419A KR 20160121034 A KR20160121034 A KR 20160121034A
Authority
KR
South Korea
Prior art keywords
data
serial communication
packet
serial
buffer
Prior art date
Application number
KR1020150050419A
Other languages
Korean (ko)
Other versions
KR102208656B1 (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 KR1020150050419A priority Critical patent/KR102208656B1/en
Publication of KR20160121034A publication Critical patent/KR20160121034A/en
Application granted granted Critical
Publication of KR102208656B1 publication Critical patent/KR102208656B1/en

Links

Images

Classifications

    • H04L29/02
    • H04L29/10

Abstract

Disclosed are an apparatus and a method for serial communication control. The apparatus for serial communication control includes an interrupt process part which analyzes serial data received through a serial port of a smart plug device in a byte unit to be configured in a packet unit, a buffer process part which classifies reception data configured in the packet unit according to types of messages, so as to be stored as buffer data of a packet column type, and a reception function process part which extracts real data from the buffer data and transmits the extracted real data to an application program through an application program interface. So, serial communication with high reliability can be provided.

Description

시리얼 통신 제어 장치 및 방법{Apparatus and method for serial communication control}[0001] Apparatus and method for serial communication control [

본 발명은 시리얼 통신 제어 장치 및 방법에 관한 것이다.
The present invention relates to an apparatus and a method for controlling a serial communication.

에너지 수요가 급증하고, 환경 변화에 대응하기 위하여 소비자단에서의 에너지 절감을 기반으로 하는 수요관리 기술에 대한 연구가 전세계적으로 활발해지고 있으며, 주택, 건물, 공장 등에서의 전체 에너지 사용량 정보 외에도 최종적으로 에너지를 소비하는 개별 부하기기에 대한 에너지 소비량 모니터링 및 전원 제어 기능을 수행하는 스마트 플러그 장치에 대한 보급이 활발해지고 있다.In order to cope with the rapid increase of energy demand and to cope with environmental change, researches on demand management technology based on energy saving at the consumer end are becoming active all over the world. In addition to the information of total energy consumption in houses, buildings and factories, The spread of smart plug devices that perform energy consumption monitoring and power control functions for individual load devices consuming energy is becoming more active.

스마트 플러그 장치는 스마트 그리드 기술 관점에서 최종 사용자단에 해당하는 장치의 특성상, 주로 저전력의 초경량 임베디드 시스템 형태로 개발이 이루어지고 있으며, 내부의 하드웨어 모듈간의 통신은 주로 RS232C 기반의 시리얼 통신이 사용된다. 그러나, 스마트 플러그 기술은 다수개의 스마트 플러그 장치가 하나의 스마트 플러그 집중기(Access Point)에 연결되고, 미터링 데이터 외에 제어 메시지가 전송되어야 하는 에너지 네트워크 특성상, 시리얼 통신의 높은 신뢰성이 요구된다.Smart plug devices are developed in the form of ultra-lightweight embedded systems mainly due to the characteristics of devices corresponding to the end users in terms of smart grid technology. RS232C-based serial communication is mainly used for communication between internal hardware modules. However, the Smart Plug technology requires a high reliability of the serial communication due to the nature of the energy network in which a plurality of Smart Plug devices are connected to one Smart Plug concentrator (access point) and a control message is transmitted in addition to the metering data.

따라서, 저전력 및 저사양의 임베디드 시스템 형태의 스마트 플러그 장치에서 하드웨어의 추가 없이, 소프트웨어적으로 시리얼 통신의 신뢰성을 높이기 위한 통신 메시지 포맷, 처리 절차 및 다양한 종류의 메시지에 대한 최적 관리 방법이 필요하다.
Therefore, there is a need for a communication message format, a processing procedure, and an optimal management method for various kinds of messages for enhancing the reliability of serial communication in software without adding hardware in a Smart Plug device in the form of an embedded system of low power and low cost.

본 발명은 저전력 및 저사양의 임베디드 시스템 형태의 스마트 플러그 장치에서 고신뢰성의 시리얼 통신을 제공하기 위한 시리얼 통신 제어 장치 및 방법을 제안하는 것이다.
The present invention proposes a serial communication control apparatus and method for providing a highly reliable serial communication in a smart plug device in the form of an embedded system of low power and low cost.

본 발명의 일 측면에 따르면, 스마트 플러그 장치의 시리얼 통신을 제어하는 시리얼 통신 제어 장치가 개시된다.According to an aspect of the present invention, a serial communication control device for controlling serial communication of a smart plug device is disclosed.

본 발명의 실시예에 따른 시리얼 통신 제어 장치는 상기 스마트 플러그 장치의 시리얼 포트를 통해 수신되는 시리얼 데이터를 바이트 단위로 분석하여 패킷 단위로 구성하는 인터럽트 처리부, 상기 패킷 단위로 구성된 수신 데이터를 메시지 종류별로 분류하여 패킷열 형태의 버퍼 데이터로 저장하는 버퍼 처리부 및 상기 버퍼 데이터에서 실제 데이터를 추출하고, 상기 추출한 실제 데이터를 응용 프로그램 인터페이스를 통해 응용 프로그램으로 전달하는 수신 함수 처리부를 포함한다.
The serial communication control apparatus according to an embodiment of the present invention includes an interrupt processor for analyzing serial data received through a serial port of the Smart Plug device on a byte-by-byte basis to form packet units, And a reception function processor for extracting actual data from the buffer data and transmitting the extracted actual data to an application program through an application program interface.

본 발명은 저전력 및 저사양의 임베디드 시스템 형태의 스마트 플러그 장치에서 고신뢰성의 시리얼 통신을 제공할 수 있다.
The present invention can provide a highly reliable serial communication in a Smart Plug device in the form of an embedded system of low power and low cost.

도 1은 스마트 플러그 장치의 구성을 개략적으로 예시한 도면.
도 2는 시리얼 통신 제어 장치의 구성을 개략적으로 예시한 도면.
도 3은 도 2의 인터럽트 처리부의 구성을 개략적으로 예시한 도면.
도 4는 도 2의 시리얼 통신 제어 장치에서 수신 데이터의 처리 방법을 설명하기 위한 도면.
도 5는 도 2의 시리얼 통신 제어 장치에서 송신 데이터의 처리 방법을 설명하기 위한 도면.
1 schematically illustrates a configuration of a smart plug device;
2 is a diagram schematically illustrating a configuration of a serial communication control device;
3 is a view schematically illustrating the configuration of the interrupt processing unit of FIG. 2;
Fig. 4 is a diagram for explaining a method of processing received data in the serial communication control apparatus of Fig. 2; Fig.
Fig. 5 is a diagram for explaining a method of processing transmission data in the serial communication control apparatus of Fig. 2; Fig.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 이를 상세한 설명을 통해 상세히 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.While the present invention has been described in connection with certain exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, is intended to cover various modifications and similarities. It should be understood, however, that the invention is not intended to be limited to the particular embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.

본 발명을 설명함에 있어서, 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. 또한, 본 명세서의 설명 과정에서 이용되는 숫자는 하나의 구성요소를 다른 구성요소와 구분하기 위한 식별기호에 불과하다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the following description of the present invention, detailed description of known related arts will be omitted when it is determined that the gist of the present invention may be unnecessarily obscured. In addition, numerals used in the description of the present invention are merely an identifier for distinguishing one component from another.

또한, 본 명세서에서, 일 구성요소가 다른 구성요소와 "연결된다" 거나 "접속된다" 등으로 언급된 때에는, 상기 일 구성요소가 상기 다른 구성요소와 직접 연결되거나 또는 직접 접속될 수도 있지만, 특별히 반대되는 기재가 존재하지 않는 이상, 중간에 또 다른 구성요소를 매개하여 연결되거나 또는 접속될 수도 있다고 이해되어야 할 것이다.Also, in this specification, when an element is referred to as being "connected" or "connected" with another element, the element may be directly connected or directly connected to the other element, It should be understood that, unless an opposite description is present, it may be connected or connected via another element in the middle.

이하, 본 발명의 실시예를 첨부한 도면들을 참조하여 상세히 설명하기로 한다. 본 발명을 설명함에 있어 전체적인 이해를 용이하게 하기 위하여 도면 번호에 상관없이 동일한 수단에 대해서는 동일한 참조 번호를 사용하기로 한다.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In order to facilitate a thorough understanding of the present invention, the same reference numerals are used for the same means regardless of the number of the drawings.

도 1은 스마트 플러그 장치의 구성을 개략적으로 예시한 도면이다.BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic illustration of a configuration of a smart plug device. FIG.

도 1을 참조하면, 스마트 플러그 장치(100)는 에너지 미터링 모듈(110), 임베디드 CPU 모듈(120), 전원 제어 모듈(130) 및 유무선 통신 모듈(140)을 포함한다. Referring to FIG. 1, the smart plug device 100 includes an energy metering module 110, an embedded CPU module 120, a power control module 130, and a wired / wireless communication module 140.

에너지 미터링 모듈(110)은 부하 기기(300)의 에너지 사용량을 측정하여 부하 기기(300)의 에너지 사용량 데이터를 수집한다. 여기서, 수집된 에너지 사용량 데이터는 시리얼 통신을 통해 임베디으 CPU 모듈(120)로 전달될 수 있다.The energy metering module 110 measures energy usage of the load device 300 and collects energy usage data of the load device 300. Here, the collected energy usage data may be transmitted to the CPU module 120 via the serial communication.

전원 제어 모듈(130)은 임베디드 CPU 모듈(120)의 제어에 따라 부하 기기(300)로의 전원 공급을 제어한다.The power control module 130 controls power supply to the load device 300 under the control of the embedded CPU module 120.

유무선 통신 모듈(140)은 스마트 플러그 집중기(200)에 연결되어 다른 스마트 플러그 장치들과 통신을 수행한다.The wired / wireless communication module 140 is connected to the smart plug concentrator 200 and performs communication with other smart plug devices.

임베디드 CPU 모듈(120)은 스마트 플러그 장치(100)의 전반적인 동작을 제어하며, 특히, 에너지 미터링 모듈(110)에 의하여 수집되는 부하 기기(300)의 에너지 사용량 데이터를 이용하여, 부하 기기(300)의 에너지 사용량에 따라 부하 기기(300)의 온오프를 제어할 수 있다.The embedded CPU module 120 controls the overall operation of the smart plug device 100 and uses the energy usage data of the load device 300 collected by the energy metering module 110, The on / off state of the load device 300 can be controlled according to the energy consumption of the load device 300.

또한, 임베디드 CPU 모듈(120)은 시리얼 통신 인터페이스를 가지며, 저전력 및 저사양의 동작환경에서 에너지 사용량 데이터 및 제어 메시지를 처리하는 시리얼 통신 제어 기능을 제공할 수 있다. 즉, 본 발명에 따른 시리얼 통신 제어 장치 및 방법은 시리얼 통신 인터페이스를 가지는 임베디드 CPU 모듈(120)에서 구현될 수 있다.
In addition, the embedded CPU module 120 has a serial communication interface and can provide a serial communication control function for processing energy usage data and control messages in a low-power and low-operation operating environment. That is, the serial communication control apparatus and method according to the present invention can be implemented in an embedded CPU module 120 having a serial communication interface.

도 2는 시리얼 통신 제어 장치의 구성을 개략적으로 예시한 도면이다. 도 2의 시리얼 통신 제어 장치(20)는 스마트 플러그 장치(100)의 시리얼 통신을 제어하기 위하여, 특수 필드를 이용하여 패킷을 조립 및 분할하는 패킷 처리 절차를 수행한다.2 is a diagram schematically illustrating a configuration of a serial communication control device. The serial communication control device 20 of FIG. 2 performs a packet processing procedure for assembling and dividing a packet using a special field, in order to control serial communication of the smart plug device 100.

도 2를 참조하면, 시리얼 통신 제어 장치(20)는 인터럽트 처리부(21), 버퍼 처리부(22), 수신 함수 처리부(23) 및 송신 함수 처리부(24)를 포함한다.2, the serial communication control device 20 includes an interrupt processing unit 21, a buffer processing unit 22, a reception function processing unit 23, and a transmission function processing unit 24.

인터럽트 처리부(21)는 시리얼 포트(10)를 통해 수신되는 시리얼 데이터를 바이트 단위로 분석하여 패킷 단위로 구성한다. 저전력 및 저사양의 임베디드 시스템에서, 버퍼 단위로 수신한 시리얼 데이터는 상위 응용 소프트웨어에 의하여 처리되기 어려우므로, 인터럽트 처리부(21)는 바이트 단위로 호출되는 인터럽트 서비스 루틴(ISR)을 기반으로, 직접 바이트 단위로 수신되는 시리얼 데이터를 분석하여 패킷 단위로 구성한다.The interrupt processing unit 21 analyzes serial data received through the serial port 10 on a byte-by-byte basis to form a packet unit. In the embedded system of low power and low cost, since the serial data received by the buffer unit is difficult to be processed by the upper application software, the interrupt processing unit 21 can directly access the interrupt service routine (ISR) And analyzes the received serial data to form a packet unit.

버퍼 처리부(22)는 패킷 단위로 구성된 수신 데이터를 메시지 종류별로 분류하여 패킷열 형태의 버퍼 데이터로 저장한다.The buffer processing unit 22 classifies received data configured in units of packets into message types and stores the received data as buffer data in the form of a packet column.

수신 함수 처리부(23)는 패킷열 형태의 버퍼 데이터에서 실제 데이터를 추출하고, 추출한 실제 데이터를 응용 프로그램 인터페이스(API)(30)를 통해 응용 프로그램으로 전달한다. 예를 들어, 상위의 응용 프로그램은 응용 프로그램 인터페이스(30)를 함수처럼 이용하여 호출하고, 호출에 따라 수신 함수 처리부(23)는 버퍼를 검색하여 실제 데이터를 상위의 응용 프로그램으로 전달할 수 있다.The reception function processing unit 23 extracts the actual data from the buffer data in the form of a packet column, and delivers the extracted actual data to the application program via the application program interface (API) For example, an upper application program calls the application program interface 30 using a function as a function, and the receive function processor 23 can search the buffer and transmit actual data to an upper application program according to the call.

송신 함수 처리부(24)는 응용 프로그램 인터페이스(30)를 통해 전달된 응용 프로그램의 전송 요청에 따라 응용 프로그램의 송신 요청 데이터를 패킷 처리하여 시리얼 포트(10)로 전송한다.
The transmission function processing unit 24 packet-processes the transmission request data of the application program according to the transmission request of the application program transmitted through the application program interface 30 and transmits the data to the serial port 10.

도 3은 도 2의 인터럽트 처리부의 구성을 개략적으로 예시한 도면이다.FIG. 3 is a diagram schematically illustrating the configuration of the interrupt processing unit of FIG. 2. FIG.

도 3을 참조하면, 인터럽트 처리부(21)는 인터럽트 서비스 루틴(25), S0 상태 처리부(26), S01 상태 처리부(27) 및 S02 상태 처리부(28)를 포함한다.3, the interrupt processing unit 21 includes an interrupt service routine 25, an S0 state processing unit 26, an S01 state processing unit 27, and a S02 state processing unit 28. [

시리얼 포트(10)를 통해 수신되는 시리얼 데이터는 인터럽트 서비스 루틴(25)으로 전달된다. The serial data received through the serial port 10 is transferred to the interrupt service routine 25.

S0상태 처리부(26)는 인터럽트 서비스 루틴(25)으로 전달되는 수신 데이터를 바이트 단위로 검사한다. 즉, S0상태 처리부(26)는 바이트 단위의 수신 데이터가 SOF(Start_Of_Frame)인지 확인하고, SOF인 경우, 다음 상태인 S01상태 처리부(27)로 제어권을 넘긴다. The S0 state processing unit 26 checks the received data transmitted to the interrupt service routine 25 in units of bytes. That is, the SO state processing unit 26 confirms whether the received data in byte units is SOF (Start_Of_Frame), and in the case of SOF, transfers the control right to the S01 state processing unit 27 which is the next state.

SOF는 신뢰도를 높이기 위해 2번 연속 사용된다. 그래서, S01상태 처리부(27)는 바이트 단위의 수신 데이터가 SOF인지 확인하고, SOF인 경우, SOF가 다시 전달되어 정상적으로 데이터가 시작되는 것으로 간주하고, S02 상태 처리부(28)로 제어권을 넘긴다.SOF is used twice in succession to increase reliability. Thus, the S01 state processing unit 27 confirms whether the received data in byte units is SOF, and in the case of the SOF, the SOF is transmitted again and the data is considered to be normally started, and the control is transferred to the S02 state processing unit 28. [

S02상태 처리부(28)는 EOF(End_Of_Frame)가 수신될 때까지 바이트 단위의 데이터들을 모아 패킷 형태로 처리한다.The S02 state processing unit 28 collects the data in units of bytes until the EOF (End_Of_Frame) is received and processes it in a packet form.

만약, S0상태 처리부(26)와 S01상태 처리부(27)는 SOF가 수신되지 않은 경우, 정상적인 데이터 수신이 이루어지지 않았다고 판단하여, 초기 상태인 S0 상태 처리부(26)로 제어권을 넘긴다.If the SOF is not received, the S0 state processing unit 26 and the S01 state processing unit 27 determine that normal data reception has not been performed, and transfer the control right to the S0 state processing unit 26, which is the initial state.

이러한 상태 기반 데이터 제어권 처리 방법을 이용하여, 시리얼로 수신되는 데이터의 시작과 끝 지점이 정확하게 파악될 수 있으며, 인터럽트 서비스 루틴(25)에서 패킷 처리가 이루어지므로, 스마트 플러그 장치(100)와 같은 저전력 및 저사양의 임베디드 시스템은 고신뢰성과 유연성을 가지는 시리얼 통신을 제공할 수 있다.
Based on this state-based data control right processing method, since the start and end points of the data received in the serial can be accurately grasped and the packet processing is performed in the interrupt service routine 25, And low-end embedded systems can provide serial communication with high reliability and flexibility.

도 4는 도 2의 시리얼 통신 제어 장치에서 수신 데이터의 처리 방법을 설명하기 위한 도면이다. 도 4는 도 2에서 설명한 시리얼 통신 제어 장치(20)가 바이트 단위의 수신 데이터를 조립하는 과정을 단계별로 보여주고 있다.4 is a diagram for explaining a method of processing received data in the serial communication control apparatus of FIG. FIG. 4 is a flowchart illustrating a process of assembling received data in units of bytes by the serial communication control unit 20 illustrated in FIG.

도 4를 참조하면, 수신된 시리얼 데이터는 인터럽트 처리부(21)에 의하여 SOF와 EOF가 제거되고, TYPE과 LEN를 포함하는 데이터 형태로 변환된다. 이어, 버퍼 처리부(22)는 TYPE 필드를 검사하여 스마트 플러그 장치(100)에서 사용되는 메시지 종류별로 버퍼를 구분하여 수신 데이터를 저장한다. 이렇게 저장된 패킷 형태의 각각의 데이터에서 수신 함수 처리부(23)는 실제 데이터를 추출한다.
Referring to FIG. 4, the received serial data is converted into a data format including TYPE and LEN by removing the SOF and EOF by the interrupt processing unit 21. Then, the buffer processor 22 examines the TYPE field and stores the received data by dividing the buffer according to the message type used in the smart plug device 100. The reception function processing unit 23 extracts actual data from each of the data of the packet type stored in this way.

도 5는 도 2의 시리얼 통신 제어 장치에서 송신 데이터의 처리 방법을 설명하기 위한 도면이다. 도 5는 응용 프로그램이 스마트 플러그 장치(100)의 에너지 미터링 주기를 변경하거나, 연결된 부하 기기(300)에 대한 전원 온오프 제어를 수행하는 등과 같이, 송신 메시지가 전송되는 경우의 송신 데이터 처리 절차를 보여주고 있다.5 is a diagram for explaining a method of processing transmission data in the serial communication control apparatus of FIG. 5 shows a transmission data processing procedure when a transmission message is transmitted, such as when an application program changes the energy metering cycle of the smart plug device 100 or performs a power on / off control for the connected load device 300 .

도 5를 참조하면, 응용 프로그램에 의하여 호출된 송신 함수 처리부(24)는 TYPE 필드 및 LEN 필드의 정보를 파라미터 형태로, 사용자 메시지를 송신 데이터 형태로 전달받고, 이를 조합하고 SOF와 EOF를 추가하여 최종적인 송신 데이터를 생성한다. 이어, 송신 함수 처리부(24)는 생성한 송신 데이터를 시리얼 포트(10)를 통해 전송한다.Referring to FIG. 5, the transmission function processing unit 24 called by the application program receives the information of the TYPE field and the LEN field in a parameter form, receives the user message in the form of transmission data, combines them, adds SOF and EOF And generates final transmission data. Then, the transmission function processing unit 24 transmits the generated transmission data through the serial port 10.

이러한 수신 및 송신 기능은 시리얼 통신 인터페이스로 연동되는 스마트 플러그 장치(100) 및 스마트 플러그 집중기(200)에 적용될 수 있으며, 에너지 미터링 모듈(110) 및 유무선 통신 모듈(140) 등을 통해서 송수신 기능이 구현될 수 있다.
The receiving and transmitting function can be applied to the smart plug device 100 and the smart plug concentrator 200 interlocked with the serial communication interface and the transmitting and receiving function can be performed through the energy metering module 110 and the wired / wireless communication module 140 Can be implemented.

한편, 본 발명의 실시예에 따른 시리얼 통신 제어 방법은 다양한 전자적으로 정보를 처리하는 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 저장 매체에 기록될 수 있다. 저장 매체는 프로그램 명령, 데이터 파일, 데이터 구조등을 단독으로 또는 조합하여 포함할 수 있다. Meanwhile, the serial communication control method according to an embodiment of the present invention may be implemented in a form of a program command that can be executed through a variety of means for processing information electronically and recorded in a storage medium. The storage medium may include program instructions, data files, data structures, and the like, alone or in combination.

저장 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 소프트웨어 분야 당업자에게 공지되어 사용 가능한 것일 수도 있다. 저장 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media) 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 또한 상술한 매체는 프로그램 명령, 데이터 구조 등을 지정하는 신호를 전송하는 반송파를 포함하는 광 또는 금속선, 도파관 등의 전송 매체일 수도 있다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 전자적으로 정보를 처리하는 장치, 예를 들어, 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. Program instructions to be recorded on the storage medium may be those specially designed and constructed for the present invention or may be available to those skilled in the art of software. Examples of storage media include magnetic media such as hard disks, floppy disks and magnetic tape, optical media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, magneto-optical media and hardware devices specifically configured to store and execute program instructions such as ROM, RAM, flash memory, and the like. The above-mentioned medium may also be a transmission medium such as a light or metal wire, wave guide, etc., including a carrier wave for transmitting a signal designating a program command, a data structure and the like. Examples of program instructions include machine language code such as those produced by a compiler, as well as devices for processing information electronically using an interpreter or the like, for example, a high-level language code that can be executed by a computer.

상술한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.
The hardware devices described above may be configured to operate as one or more software modules to perform the operations of the present invention, and vice versa.

상기에서는 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당 기술 분야에서 통상의 지식을 가진 자라면 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention as defined in the appended claims. It will be understood that the invention may be varied and varied without departing from the scope of the invention.

10: 시리얼 포트
20: 시리얼 통신 제어 장치
21: 인터럽트 처리부
22: 버퍼 처리부
23: 수신 함수 처리부
24: 송신 함수 처리부
30: 응용 프로그램 인터페이스
10: Serial port
20: Serial communication control device
21:
22: buffer processor
23: Receive function processor
24: Transmission function processor
30: Application Interface

Claims (1)

스마트 플러그 장치의 시리얼 통신을 제어하기 위하여, 특수 필드를 이용하여 패킷을 조립 및 분할하는 패킷 처리 절차를 수행하는 시리얼 통신 제어 장치에 있어서,
상기 스마트 플러그 장치의 시리얼 포트를 통해 수신되는 시리얼 데이터를 바이트 단위로 분석하여 패킷 단위로 구성하는 인터럽트 처리부;
상기 패킷 단위로 구성된 수신 데이터를 메시지 종류별로 분류하여 패킷열 형태의 버퍼 데이터로 저장하는 버퍼 처리부; 및
상기 버퍼 데이터에서 실제 데이터를 추출하고, 상기 추출한 실제 데이터를 응용 프로그램 인터페이스를 통해 응용 프로그램으로 전달하는 수신 함수 처리부를 포함하는 시리얼 통신 제어 장치.


A serial communication control device for performing a packet processing procedure for assembling and dividing a packet using a special field to control serial communication of a smart plug device,
An interrupt processing unit for analyzing serial data received through a serial port of the smart plug device by byte unit and structuring it in packet units;
A buffer processor for classifying received data configured in units of packets into message types and storing the received data as buffer data in a packet column; And
And a reception function processor for extracting actual data from the buffer data and transmitting the extracted actual data to an application program via an application program interface.


KR1020150050419A 2015-04-09 2015-04-09 Apparatus and method for serial communication control KR102208656B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020150050419A KR102208656B1 (en) 2015-04-09 2015-04-09 Apparatus and method for serial communication control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020150050419A KR102208656B1 (en) 2015-04-09 2015-04-09 Apparatus and method for serial communication control

Publications (2)

Publication Number Publication Date
KR20160121034A true KR20160121034A (en) 2016-10-19
KR102208656B1 KR102208656B1 (en) 2021-01-28

Family

ID=57250491

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020150050419A KR102208656B1 (en) 2015-04-09 2015-04-09 Apparatus and method for serial communication control

Country Status (1)

Country Link
KR (1) KR102208656B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020169905A1 (en) * 2001-05-14 2002-11-14 Seiko Epson Corporation Data transfer control device, electronic equipment, and data transfer control method
KR20090043724A (en) * 2007-10-30 2009-05-07 엘지전자 주식회사 A method for serial transmitting/receiving high volume data
KR20090077327A (en) * 2008-01-10 2009-07-15 정중호 Intelligent power multi-tap and receptacle capable of cable controlling or remote controlling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020169905A1 (en) * 2001-05-14 2002-11-14 Seiko Epson Corporation Data transfer control device, electronic equipment, and data transfer control method
KR20090043724A (en) * 2007-10-30 2009-05-07 엘지전자 주식회사 A method for serial transmitting/receiving high volume data
KR20090077327A (en) * 2008-01-10 2009-07-15 정중호 Intelligent power multi-tap and receptacle capable of cable controlling or remote controlling

Also Published As

Publication number Publication date
KR102208656B1 (en) 2021-01-28

Similar Documents

Publication Publication Date Title
CN107926075B (en) System and method for supporting data communication in heterogeneous environment
US20170255451A1 (en) Multi-module compilation system, multi-module compilation method, and non-transitory computer-readable storage medium
CN104967585A (en) Method for remote debugging of mobile terminal and apparatus thereof
EP3217279A1 (en) Module system, module-based robot system, and update method for module system
CN111628967A (en) Log data transmission method and device, computer equipment and storage medium
US9276819B2 (en) Network traffic monitoring
CN109688207A (en) Log transmission method, apparatus and server
CN113228567A (en) Information processing method and device and information processing system
CN101763324B (en) Method for realizing equipment simulating and device thereof
CN113656164B (en) Task execution method, system, electronic device and computer storage medium
JP6042243B2 (en) Monitoring system, monitoring server, and monitoring method
CN114928562B (en) Flow processing method and system of graph computing platform
CN103391246A (en) Message processing method and device
JP5500332B2 (en) IC chip, information processing apparatus, software module control method, information processing system and method, and program
KR20160121034A (en) Apparatus and method for serial communication control
CN113992644B (en) Internet of things system based on no-service technology and data processing method thereof
CN114422297B (en) Multi-scene virtual network flow monitoring method, system, terminal and medium
CN110417860A (en) File transfer management method, apparatus, equipment and storage medium
CN109189705A (en) A kind of usb expansion method, apparatus, equipment, storage medium and system
CN113630442B (en) Data transmission method, device and system
CN108307286B (en) Method and system for realizing communication between android devices based on NFC
CN112436982B (en) Network flow automatic mixed running test method, system, terminal and storage medium
CN112637370B (en) Data processing method, device, equipment and storage medium
CN115604070A (en) Message transmission method, device, equipment and medium based on MCTP (Multi-function peripheral protocol)
CN114490458A (en) Data transmission method, chip, server and storage medium

Legal Events

Date Code Title Description
A201 Request for examination
AMND Amendment
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
X091 Application refused [patent]
AMND Amendment
X701 Decision to grant (after re-examination)