KR100631510B1 - Method and apparatus for processing request based living network control protocol - Google Patents
Method and apparatus for processing request based living network control protocol Download PDFInfo
- Publication number
- KR100631510B1 KR100631510B1 KR1020040052657A KR20040052657A KR100631510B1 KR 100631510 B1 KR100631510 B1 KR 100631510B1 KR 1020040052657 A KR1020040052657 A KR 1020040052657A KR 20040052657 A KR20040052657 A KR 20040052657A KR 100631510 B1 KR100631510 B1 KR 100631510B1
- Authority
- KR
- South Korea
- Prior art keywords
- handler
- request
- packet
- command code
- index
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2807—Exchanging configuration information on appliance services in a home automation network
- H04L12/281—Exchanging configuration information on appliance services in a home automation network indicating a format for calling an appliance service function in a home automation network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
Abstract
본 발명은 라이브러리가 구비된 네트워크 시스템의 리퀘스트 처리 방법 및 장치에 관한 것으로 특히, 다양한 리퀘스트(request)에 대응하는 핸들러(handler)를 등록하고 수신된 패킷이 리퀘스트 패킷으로 판정되면 해당 핸들러를 호출하여 해당 패킷을 처리하도록 함으로써 처리 효율을 향상시킬 수 있도록 함에 그 목적이 있다. 이러한 목적의 본 발명은 등록요청된 리퀘스트 핸들러(request handler)를 그 핸들러가 작동할 커맨드 코드를 인덱스로 하여 테이블(122)에 등록하는 단계와, 패킷 파싱 모듈(110)에서 파싱된 수신패킷의 에러 유무를 점검하는 단계와, 상기에서 에러가 없는 정상 패킷으로 확인되면 리퀘스트 패킷인지 확인하는 단계와, 상기에서 리퀘스트 패킷으로 확인되면 그 패킷에서 추출한 커맨드 코드를 기반으로 상기 테이블에서 리퀘스트 패킷에 대응하는 해당 핸들러를 검색하여 호출하는 단계를 리퀘스트 처리 모듈(120)에서 수행하도록 구성함을 특징으로 한다. The present invention relates to a method and an apparatus for processing a request of a network system equipped with a library, and more particularly, to register handlers corresponding to various requests and to call the handler when the received packet is determined to be a request packet. The purpose is to improve the processing efficiency by processing the packet. The present invention for this purpose is to register the requested request handler in the table 122 with the command code to operate the handler as an index, and errors in the received packet parsed by the packet parsing module 110 Checking whether there is a normal packet without an error, if the packet is a request packet, and if the packet is a request packet, corresponding to the request packet in the table based on a command code extracted from the packet. The request processing module 120 is configured to perform a step of searching for and calling a handler.
Description
도1은 본 발명의 실시 예에 따른 리퀘스트 처리 장치의 블록 구성도. 1 is a block diagram of a request processing apparatus according to an embodiment of the present invention.
도2는 본 발명의 실시 예에서 리퀘스트 처리 과정을 보인 동작 순서도. 2 is a flowchart illustrating a request processing process according to an exemplary embodiment of the present invention.
* 도면의 주요부분에 대한 부호 설명 * Explanation of symbols on the main parts of the drawings
110 : 패킷 파싱 모듈 120 : 리퀘스트 처리 모듈 110: packet parsing module 120: request processing module
121 : 쓰레드(thread) 122 : 리퀘스트 핸들러 테이블 121: thread 122: request handler table
130 : 리퀘스트 핸들러 130: request handler
본 발명은 가전 제어에 관한 것으로 특히, 홈 네트워크 시스템(일례를 들면 LnCP 를 기반으로 구성됨)을 포함하는 네트워크 시스템에서 리퀘스트 처리 방법 및 장치에 관한 것이다. The present invention relates to home appliance control, and more particularly, to a method and apparatus for processing a request in a network system including a home network system (for example, based on LnCP).
최근 가정 내에 설치된 복수개의 가전기기를 네트워크로 연결하여 인터넷 등을 통해 원격 제어할 수 있도록 한 홈 자동화 시스템의 구축이 확산되고 있다. Recently, the construction of a home automation system that enables remote control via the Internet by connecting a plurality of home appliances installed in a home through a network is spreading.
현재 가전기기는 직렬통신 기능이 구비된 마이크로칩이 내장되어 마이크로 컴퓨터 또는 기기와 통신할 수 있다. Currently, home appliances have a microchip equipped with a serial communication function to communicate with a microcomputer or a device.
그런데, 가전기기에 내장되는 마이크로칩은 기기의 성능에 따라 통신에 사용할 수 있는 자원이 다양하다. However, microchips embedded in home appliances have various resources that can be used for communication according to the performance of the device.
예를 들어, PC(Personal Computer) 또는 티브이, 오디오 등의 멀티미디어 기기의 경우에는 다양한 기능을 실현하기 위해 고기능의 하드웨어 사양이 채택됨으로 많은 데이터 량과 빠른 속도의 통신을 위한 규격이 필요하다. For example, in the case of a personal computer (PC) or a multimedia device such as TV or audio, a high-performance hardware specification is adopted to realize various functions, and thus a specification for a large amount of data and high-speed communication is required.
반면 냉장고, 세탁기, 전자레인지, 전등 또는 보일러 등의 기능은 PC 또는 멀티미디어 기기의 기능에 비해 매우 단순함으로 일반적으로 8비트 이하의 저기능 마이크로칩을 채용한다. On the other hand, functions such as refrigerators, washing machines, microwave ovens, lights, or boilers are very simple compared to those of PCs or multimedia devices, and generally adopt low-function microchips of 8 bits or less.
이와 같은 저기능의 마이크로칩을 채용한 가전기기의 경우 원격 제어 또는 동작상태 모니터링을 위하여 최소의 자원으로 통신할 수 있는 규격을 필요로 한다. In the case of a home appliance employing such a low-function microchip, a standard capable of communicating with minimum resources is required for remote control or operation status monitoring.
LG전자는 가정 내에 설치된 가전기기에 인터넷 서비스를 제공하기 위한 LnCP(Living network Control Protocol)를 개발하였다. LG Electronics has developed Living Network Control Protocol (LnCP) to provide Internet services to home appliances installed in homes.
LnCP 기술을 적용한 LG 홈넷(HomNet)은 가정 내의 가전기기를 인터넷을 통해 제어할 수 있는 서비스를 제공한다. LG HomeNet (HomNet), which uses LnCP technology, provides a service to control home appliances through the Internet.
LnCP 기반의 홈 네트워크는 가정 내의 다양한 가전기기를 통합 조정할 수 있는 서버를 구비하며, 냉장고, 에어컨, 세탁기, 전자레인지 등의 각종 디지털 가전기기를 별도의 장치나 복잡한 공사 없이 전기코드만 연결되면 다양한 가전기기를 하나의 네트워크로 연결할 수 있도록 전력선통신(PLC ; Power Line Communication) 방식을 이용한다. 상기 서버는 게이투웨이(Gateway) 기능을 포함하여 구성될 수 있다. The home network based on LnCP is equipped with a server that can coordinate various home appliances in the home. Power Line Communication (PLC) is used to connect the devices to one network. The server may be configured to include a gateway function.
그러나, 종래의 서버는 기능별로 계층(layer)이나 핸들러(handler)를 구분하여 구현하지 않았기 때문에 하나의 루틴에서 패킷의 헤더(header)로부터 테일(tail)까지 연속적(sequential)으로 처리하여야 함으로 처리 과정이 복잡함은 물론 처리 시간이 지연되는 단점이 있다. However, since the conventional server does not implement a layer or a handler for each function, it must be processed sequentially from the header of the packet to the tail in one routine. This complexity has the disadvantage of delaying processing time.
따라서, 본 발명은 종래의 문제점을 개선하기 위하여 다양한 리퀘스트(request)에 대응하는 핸들러(handler)를 등록하고 수신패킷이 리퀘스트 패킷으로 판정되면 해당 핸들러를 호출하여 해당 패킷을 처리하도록 함으로써 처리 효율을 향상시킬 수 있도록 창안한 리퀘스트 처리 방법 및 장치를 제공함에 목적이 있다. Accordingly, the present invention improves processing efficiency by registering handlers corresponding to various requests to solve the conventional problems and calling the corresponding handlers to process the packets when the received packet is determined to be a request packet. It is an object of the present invention to provide a method and apparatus for request processing that can be invented.
본 발명은 상기의 목적을 달성하기 위하여 리퀘스트 패킷 처리를 위한 리퀘스트 핸들러(request handler)를 테이블에 등록하는 단계와, 수신패킷을 파싱하여 에러 유무를 점검하는 단계와, 상기에서 에러가 없는 정상 패킷으로 확인되면 리퀘스트 패킷인지 확인하는 단계와, 상기에서 리퀘스트 패킷으로 확인되면 리퀘스트 핸들러 테이블에서 상기 리퀘스트 패킷에 대응하는 해당 핸들러를 검색하여 호출하는 단계를 수행하도록 구성함을 특징으로 한다. In order to achieve the above object, the present invention includes the steps of registering a request handler for processing a request packet in a table, parsing a received packet and checking whether there is an error; And if it is confirmed that the request packet is found, and if the request packet is identified, searching for and calling a corresponding handler corresponding to the request packet in the request handler table.
상기 핸들러 등록 단계는 리퀘스트 핸들러를 생성하고 그 핸들러가 작동할 대상 커맨드 코드(command code)를 설정하는 과정과, 상기 커맨트 코드를 인덱스로 하여 그 하위에 해당 핸들러를 삽입하는 과정과, 상기 생성된 핸들러가 기존에 존 재하면 그 핸들러 하위에 현재 생성된 핸들러를 포인터로 연결하여 삽입하는 과정으로 이루어짐을 특징으로 한다. The handler registration step may include generating a request handler and setting a target command code to operate the handler, inserting the corresponding handler below the command code as an index, and generating the handler. If exists, the process consists of inserting by connecting the currently created handler under the handler with a pointer.
상기 핸들러 검색 단계는 수신 패킷에서 커맨드 코드를 추출하는 과정과, 그 커맨드 코드에 일치하는 인덱스에 해당하는 리퀘스트 핸들러를 검색하는 과정과, 수신 패킷의 주소와 상기 검색된 핸들러의 주소가 일치하는지 비교하는 과정과, 상기 비교 결과 주소가 일치하면 해당 핸들러를 호출하는 과정으로 이루어짐을 특징으로 한다. The searching of the handler may include extracting a command code from a received packet, searching for a request handler corresponding to an index corresponding to the command code, and comparing the address of the received packet with an address of the found handler. And, if the comparison result is the address is characterized in that the process of calling the handler.
또한, 본 발명은 상기의 목적을 달성하기 위하여 수신 패킷을 파싱하는 패킷 파싱 모듈과, 리퀘스트 핸들러를 그 핸들러가 작동할 커맨드 코드를 인덱스 코드로 하여 내부 테이블에 등록하고 상기 파싱된 패킷이 에러가 없는 정상 패킷으로 확인되면 리퀘스트 패킷인지 확인하며 리퀘스트 패킷으로 판정되면 그 리퀘스트 패킷에서 추출한 커맨드 코드를 기반으로 상기 테이블에서 해당 리퀘스트 핸들러를 검색하여 호출하는 리퀘스트 처리 모듈을 LnCP 라이브러리에 포함하여 구성함을 특징으로 한다. The present invention also provides a packet parsing module for parsing a received packet and a request handler for registering the request handler in an internal table with an index code as a command code for the handler to operate. If it is determined that the packet is a normal packet, the LnCP library includes a request processing module including a request processing module that searches for and invokes a request handler in the table based on the command code extracted from the request packet. do.
이하, 본 발명을 도면에 의거 상세히 설명하면 다음과 같다. Hereinafter, the present invention will be described in detail with reference to the drawings.
일반적으로 가전네트워크시스템은 1사이클 방식으로 통신한다. 1사이클 방식은 1리퀘스트-1리스폰스 방식, 1리퀘스트-멀티리스폰스 방식, 1리퀘스트 방식으로 구분할 수 있다. In general, home appliance network systems communicate in a single cycle. One cycle can be classified into one request-one response method, one request-multi-response method, and one request method.
본 발명의 실시 예에서는 리퀘스트 처리 과정만을 설명하기로 한다. In the embodiment of the present invention, only the request processing process will be described.
도1은 본 발명의 실시 예에 따른 리퀘스트 처리 장치의 블록 구성도로서 이에 도시한 바와 같이, 수신 패킷을 파싱하는 패킷 파싱 모듈(120)과, 쓰레드(thread)(121)가 등록 요청된 리퀘스트 핸들러를 그 리퀘스트 핸들러가 작동할 커맨드 코드를 인덱스로 하여 내부의 리퀘스트 핸들러 테이블(122)에 등록하고 상기 파싱된 패킷이 에러가 없는 정상 패킷으로 확인되면 리퀘스트 패킷인지 확인하며 리퀘스트 패킷으로 판정되면 그 리퀘스트 패킷에서 추출한 커맨드 코드를 인덱스로 하여 상기 리퀘스트 테이블(122)에서 해당 리퀘스트 핸들러를 검색하여 해당 리퀘스트 핸들러(130)를 호출하는 리퀘스트 처리 모듈(120)을 포함하여 구성한다. 1 is a block diagram of a request processing apparatus according to an exemplary embodiment of the present invention. As shown in FIG. 1, a request handler in which a
이와 같이 구성한 본 발명의 실시 예에 대한 동작 및 작용 효과를 도2의 동작 순서도를 참조하여 설명하면 다음과 같다. The operation and the effect of the embodiment of the present invention configured as described above will be described with reference to the operation flowchart of FIG. 2.
우선, 사용자는 LnCP 라이브러리 내부에 구비되어 있는 리퀘스트 핸들러 테이블(122)에 각각의 리퀘스트에 대해 처리할 리퀘스트 핸들러를 등록한다. 이는 핸들러 등록이 요청되면 리퀘스트 처리 모듈(120)는 쓰레드(121)가 이를 인식하여 해당 핸들러를 리퀘스트 핸들러 테이블(122)에 등록하는 것이다. 이때, 리퀘스트 핸들러 등록 과정을 설명하면, 해당 핸들러를 생성하고 그 핸들러가 작동할 커맨드 코드를 설정하고 그 커맨드 코드를 인덱스로 하여 리퀘스트 핸들러 테이블(122)에 등록한 후 그 인덱스의 하위에 해당 핸들러를 삽입한다. 만일, 생성된 핸들러와 동일한 핸들러가 기존에 존재하면 현재 생성된 핸들러를 기존 핸들러의 하위에 포인터로 연결하여 삽입한다. First, a user registers a request handler to be processed for each request in the request handler table 122 provided in the LnCP library. When the handler registration is requested, the
이후, 패킷 파싱 모듈(110)은 수신된 패킷을 파싱(parsing)하여 리퀘스트 처리 모듈(120)로 전달한다. Thereafter, the
이때, 리퀘스트 처리 모듈(120)은 쓰레드(121)가 파싱된 패킷의 에러 유무를 확인하고 에러가 없는 정상 패킷으로 확인되면 리퀘스트 패킷인지를 확인한다. At this time, the
이에 따라, 리퀘스트 패킷으로 확인되면 쓰레드(121)는 리퀘스트 핸들러 테이블(122)를 검색하여 상기 리퀘스트 패킷을 처리할 핸들러를 확인하고 해당 리퀘스트 핸들러(130)를 호출하여 상기 리퀘스트 패킷을 처리하게 한다. Accordingly, when it is confirmed as a request packet, the
상기 핸들러 검색 과정을 상세히 설명하면, 수신패킷에서 커맨드 코드를 추출하고 그 커맨드 코드에 해당하는 인덱스가 리퀘스트 핸들러 테이블(122)에 존재하는지 검색한다. 이후, 커맨드 코드에 해당하는 인덱스를 찾으면 그 인덱스 하위에 삽입된 핸들러를 검색하는데 포인터를 참조하여 상기 인덱스 하위에 삽입된 모든 핸들러를 찾는다. 이후, 수신패킷에서 추출한 주소(address)와 상기에서 검색된 핸들러의 주소를 비교하고 주소가 일치하는 핸들러를 현재 검색하려는 핸들러로 판단한다. The handler search process will be described in detail. The command code is extracted from the received packet, and the index corresponding to the command code is searched for in the request handler table 122. Then, when an index corresponding to the command code is found, all handlers inserted below the index are searched by referring to a pointer to search for a handler inserted below the index. Thereafter, the address extracted from the receiving packet is compared with the address of the handler retrieved above, and the handler matching the address is determined as the handler to be searched.
만일, 상기 과정에서 파싱된 패킷에 에러가 존재한다고 확인되면 에러로 처리하고 필요한 경우 해당 패킷의 재전송을 요청하게 된다. If it is determined that an error exists in the parsed packet in the above process, it is treated as an error and if necessary, retransmission of the packet is requested.
이후, 리퀘스트 핸들러가 필요없다고 판단되어 핸들러 해지가 요청되면 리퀘스트 처리 모듈(120)은 쓰레드(121)가 리퀘스트 핸들러 테이블(122)에서 해당 핸들러 함수를 삭제하여 해당 핸들러의 등록을 해지시키게 된다. 본 발명의 실시예에서는 홈 네트워크 시스템을 예로 들어 설명하였지만, 홈 네트워크 시스템은 본 발명이 사용될 수 있는 네트워크 시스템의 일 실시예에 불과하며 본 발명은 홈 네트워크 시스템에 한정되지 않는다.Subsequently, if it is determined that the request handler is not necessary and the handler is requested to cancel, the
상기에서 상세히 설명한 바와 같이 본 발명은 LnCP 라이브러리에 리퀘스트 패킷을 분류하여 처리함에 있어서 해당 핸들러를 필요에 따라 등록/해지할 수 있도 록 유동성을 보장함으로써 라이브러리의 자원을 효율적으로 활용할 수 있도록 하는 효과가 있다. As described in detail above, the present invention has an effect of efficiently utilizing the resources of the library by ensuring flexibility in registering and canceling the handler as necessary in classifying and processing request packets in the LnCP library. .
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040052657A KR100631510B1 (en) | 2004-07-07 | 2004-07-07 | Method and apparatus for processing request based living network control protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040052657A KR100631510B1 (en) | 2004-07-07 | 2004-07-07 | Method and apparatus for processing request based living network control protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20060003674A KR20060003674A (en) | 2006-01-11 |
KR100631510B1 true KR100631510B1 (en) | 2006-10-09 |
Family
ID=37106079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020040052657A KR100631510B1 (en) | 2004-07-07 | 2004-07-07 | Method and apparatus for processing request based living network control protocol |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100631510B1 (en) |
-
2004
- 2004-07-07 KR KR1020040052657A patent/KR100631510B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR20060003674A (en) | 2006-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100483966C (en) | Control device and method for automatic household system | |
US11310066B2 (en) | Method and apparatus for pushing information | |
CN107635027B (en) | Domain name resolution method, medium, device and computing equipment | |
JP2002368747A5 (en) | ||
CN113615141B (en) | Account association method, device, system, server and storage medium | |
US6865732B1 (en) | Providing an embedded application specific web server | |
JP2011520169A (en) | Method and device for accessing a directory | |
JP2002196932A (en) | Extensible providing mechanism for service gateway | |
US7899911B2 (en) | Method and apparatus to retrieve information in a network | |
JP6701377B2 (en) | SIP information analysis method, device, server and medium | |
TW201733314A (en) | Method for executing request and associated server | |
KR100631510B1 (en) | Method and apparatus for processing request based living network control protocol | |
US6763387B1 (en) | Method and system for sharing a single communication port between a plurality of servers | |
KR100556759B1 (en) | Method and apparatus for processing system event based living network control protocol | |
KR100631511B1 (en) | Method and apparatus for processing response based living network control protocol | |
KR100608635B1 (en) | Method and apparatus for processing event based network protocol | |
US20030131118A1 (en) | Apparatus for managing networks operated by different protocols and method thereof | |
US11442735B2 (en) | Search instruction to access a TCAM and memory to return a program counter value from the TCAM | |
US7580990B1 (en) | Method and system for footprint minimized, HTML/HTTP-based systems for Java-based embedded device management applications | |
CN105577658A (en) | Method and system used for network link transmission | |
EP2051169A1 (en) | Tracing of individual directory access operations | |
US11416557B2 (en) | System and method to identifying network appliances by data endpoints | |
JP2002229875A (en) | Built-in type electronic apparatus and built-in electronic apparatus managing method, and built-in electronic apparatus | |
EP2041660A2 (en) | Conditional url for computer devices | |
KR100556758B1 (en) | Message interface method for master handler based living network control procotol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20090619 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |