KR101094218B1 - Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler - Google Patents

Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler Download PDF

Info

Publication number
KR101094218B1
KR101094218B1 KR1020050013677A KR20050013677A KR101094218B1 KR 101094218 B1 KR101094218 B1 KR 101094218B1 KR 1020050013677 A KR1020050013677 A KR 1020050013677A KR 20050013677 A KR20050013677 A KR 20050013677A KR 101094218 B1 KR101094218 B1 KR 101094218B1
Authority
KR
South Korea
Prior art keywords
handler
packet
master
slave
address
Prior art date
Application number
KR1020050013677A
Other languages
Korean (ko)
Other versions
KR20060092641A (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 KR1020050013677A priority Critical patent/KR101094218B1/en
Publication of KR20060092641A publication Critical patent/KR20060092641A/en
Application granted granted Critical
Publication of KR101094218B1 publication Critical patent/KR101094218B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/72Routing based on the source address
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computing Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

본 발명은 마스터 및 슬레이브 핸들러와, 트랜스미션 핸들러 사이에 위치하여 상기 두 핸들러 간 패킷을 전달시키는 메시지 후킹 핸들러를 포함하는 홈네트워크 시스템에 있어서, 메시지 후킹 핸들러는 트랜스미션 핸들러에서 오는 패킷을 마스터 핸들러 또는 슬레이브 핸들러로 보낼것인지 체크하는 검출부; 및 상기 검출부에서 체크된 패킷을 해당 핸들러로 보내는 제어부를 포함함을 특징으로 한다.  The present invention provides a home network system including a master and slave handler and a message hooking handler positioned between a transmission handler and transferring a packet between the two handlers, wherein the message hooking handler is configured to transmit a packet coming from the transmission handler to a master handler or a slave handler. Detecting unit to check whether to send to; And a controller for transmitting the packet checked by the detector to a corresponding handler.

또한, 본 발명에 따른 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법은 패킷의 주소가 마스터의 주소 범위 내에 해당하는지 체크하고, 패킷의 주소가 마스터의 주소 범위 내에 해당하면 마스터 핸들러용 패킷으로 구분하고, 패킷의 주소가 마스터의 주소 범위 내에 해당하지 않으면 슬레이브 핸들러에서 가지고 있는 고유의 주소 값을 불러오는 단계; 및 패킷의 주소가 슬레이브 핸들러의 주소 값과 일치하는지 체크하고, 패킷의 주소가 슬레이브 핸들러의 주소 값과 일치하면 슬레이브 핸들러용 패킷으로 구분하는 단계를 포함한다.In addition, in the message hooking handler according to the present invention, a packet for master / slave packet discrimination method checks whether an address of a packet falls within a master address range, and if a packet address falls within a master address range, a master handler packet. Classifying a packet, and if a packet address does not fall within a master address range, retrieving a unique address value of the slave handler; And checking whether the address of the packet matches the address value of the slave handler, and dividing the packet into a packet for the slave handler if the address of the packet matches the address value of the slave handler.

이상에서와 같이, 본 발명은 마스터이면서 동시에 슬레이브로서 동작하는 홈네트워크 제품의 중복적인 기능을 통합시키는 메시지 후킹 핸들러를 포함하는 홈네트워크 시스템 및 상기 메시지 후킹 핸들러에서의 메시지 패킷을 마스터용 또는 슬레이브용으로 구분하는 방법을 제공함으로써 보다 효율적으로 홈네트워크 시스템을 구축할 수 있다. As described above, the present invention provides a home network system including a message hooking handler for integrating the redundant functions of a home network product which is both a master and a slave, and a message packet for the master or slave. By providing a method of dividing, it is possible to build a home network system more efficiently.

홈네트워크, 마스터, 슬레이브, 메시지 후킹 핸들러  Home network, master, slave, message hooking handler

Description

메시지 후킹 핸들러를 포함한 홈 네트워크 시스템 및 상기 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법{Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler} Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler}

도 1은 종래의 기술에 따른 홈네트워크 시스템의 프로그램 구조이다. 1 is a program structure of a home network system according to the related art.

도 2는 본 발명에 따른 홈 네트워크 시스템의 구성도이다.2 is a block diagram of a home network system according to the present invention.

도 3은 도 2에서의 LnCP 라이브러리 모듈의 구성도이다. 3 is a block diagram of the LnCP library module shown in FIG.

도 4는 도 3에서의 메시지 후킹 핸들러의 상세 구성도이다.4 is a detailed block diagram of the message hooking handler of FIG. 3.

도 5는 본 발명에 따른 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법을 나타내는 순서도이다.5 is a flowchart illustrating a method for classifying a packet for a master / a packet for a slave in a message hooking handler according to the present invention.

<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>

10 : 인터넷 20 : LnCP 서버10: Internet 20: LnCP Server

30 : LnCP 라이브러리 모듈 31a : 마스터 핸들러 30: LnCP Library Module 31a: Master Handler

31b : 슬레이브 핸들러 32 : 메시지 후킹 핸들러31b: Slave handler 32: Message hooking handler

32a : 제어부 32b : 검출부32a: control unit 32b: detection unit

32c : 버퍼부 33 : 트랜스미션 핸들러32c: buffer section 33: transmission handler

34 : 채널 핸들러 35 : 인터페이스부34: channel handler 35: interface

본 발명은 메시지 후킹 핸들러를 포함한 홈 네트워크 시스템 및 상기 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법에 관한 것으로, 특히 마스터이면서 동시에 슬레이브로서 동작하는 홈네트워크 제품의 중복적인 기능을 통합시켜 작업의 효율성을 향상시킬 수 있는 메시지 후킹 핸들러를 포함한 홈 네트워크 시스템 및 상기 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법에 관한 것이다. The present invention relates to a home network system including a message hooking handler and a packet discrimination method for a master / slave packet in the message hooking handler, and in particular, integrates the redundant functions of a home network product that operates as a master and a slave. The present invention relates to a home network system including a message hooking handler and a method for distinguishing packets for master / slave in the message hooking handler.

여기서, 마스터로서의 기능은 슬레이브 디바이스에 명령을 하달시켜 해당 디바이스의 동작을 제어하거나 그러한 상태를 모니터링하는 작업을 말하며, 슬레이브로서의 기능은 상기 마스터 장치의 요구에 응답하는 기능과 자신의 상태 변화에 대한 정보를 알리는 기능을 말한다.Here, the function as a master refers to a task of controlling a device operation or monitoring such a state by giving a command to a slave device, and the function as a slave responds to a request of the master device and information about a change in its state. Speaks function to inform.

일례로, 홈 서버(Home Server)는 텔레비젼(TV)에 명령을 내려 TV 온/오프(ON/OFF) 등 다양한 기능을 수행하도록 할 수 있으며, 또한 상기 텔레비젼은 에어콘 등 다른 홈네트워크 제품(디바이스 : 기기)에 명령을 내려 에어콘 온/오프(ON/OFF) 등 다양한 기능을 수행하도록 할 수 있다.For example, a home server may command a TV to perform various functions such as TV ON / OFF, and the TV may also be used for other home network products such as air conditioners. Command) to perform various functions such as air conditioning on / off.

이 때, 상기 '텔레비젼'을 마스터와 슬레이브로서의 기능을 동시에 수행하는 홈네트워크 제품(디바이스 ; 기기)이라고 말한다.In this case, the TV is referred to as a home network product (device; device) that simultaneously performs functions as a master and a slave.

이를, 도 1을 참조하여 보다 상세히 설명하기로 한다.This will be described in more detail with reference to FIG. 1.

도 1에 도시된 바와 같이, 종래에는 마스터와 슬레이브의 기능을 동시에 수행하는 홈네트워크 제품인 경우, 프로그램 내부적으로 마스터 프로그램(Master Program)과 슬레이브 프로그램(Slave Program)이 따로 존재하여서 자신에 해당하는 작업을 따로따로 수행하였다. As shown in FIG. 1, in the related art, in the case of a home network product which simultaneously performs a function of a master and a slave, a master program and a slave program are separately present in the program to perform a corresponding task. It was performed separately.

즉, 마스터로서의 기능을 수행할 때는 마스터 모듈에서 발생된 명령(메시지 패킷)이 트랜스미션 층(Transmission Layer)을 통해 인터페이스부(PLC 인터페이스 등)를 거쳐 홈네트워크 제품을 제어하였으며, 슬레이브로서의 기능을 수행할 때는 홈네트워크 제품에서 발생된 메시지 패킷이 트랜스미션 층을 통해 슬레이브 모듈로 전달되어 처리된다.In other words, when performing a function as a master, a command (message packet) generated from the master module controls the home network product through an interface unit (PLC interface, etc.) through the transmission layer, and performs a function as a slave. In this case, the message packet generated by the home network product is delivered to the slave module through the transmission layer and processed.

상기와 같이, 종래에는 마스터와 슬레이브의 기능을 동시에 수행하는 홈네트워크 제품인 경우, 마스터 모듈과 슬레이브 모듈을 각각 구비되어 유사한 작업을 중복적으로 수행하도록 되어 있으므로 비효율적이다.As described above, in the case of the home network product which performs the functions of the master and the slave at the same time, the master module and the slave module are respectively provided, and thus are inefficient.

본 발명은 상기와 같은 문제점을 해결하기 위해 안출된 것으로, 그 목적은 마스터이면서 동시에 슬레이브로서 동작하는 홈네트워크 제품의 중복적인 기능을 통합시켜 작업의 효율성을 향상시킬 수 있는 메시지 후킹 핸들러를 포함한 홈 네트 워크 시스템을 제공하는 데 있다. The present invention has been made to solve the above problems, the object of which is a home net including a message hooking handler that can improve the efficiency of work by integrating the redundant functions of a home network product that operates as a master and a slave To provide a work system.

또한, 본 발명에서는 하층(트랜스미션 핸들러)에서 상기 메시지 후킹 핸들러로 전달된 메시지 패킷을 마스터용 또는 슬레이브용으로 구분하는 방법을 제공하는 데 있다.In addition, the present invention provides a method for classifying a message packet delivered to the message hooking handler in a lower layer (transmission handler) for a master or a slave.

상기와 같은 목적을 이루기 위해 본 발명은 마스터 및 슬레이브 핸들러와, 트랜스미션 핸들러 사이에 위치하여 상기 두 핸들러 간 패킷을 전달시키는 메시지 후킹 핸들러를 포함하는 홈네트워크 시스템에 있어서, 메시지 후킹 핸들러는 트랜스미션 핸들러에서 오는 패킷을 마스터 핸들러 또는 슬레이브 핸들러로 보낼것인지 체크하는 검출부; 및 상기 검출부에서 체크된 패킷을 해당 핸들러로 보내는 제어부를 포함함을 특징으로 한다. In order to achieve the above object, the present invention provides a home network system including a master and slave handler and a message hooking handler positioned between a transmission handler and transferring a packet between the two handlers, wherein the message hooking handler comes from the transmission handler. A detector for checking whether to send a packet to a master handler or a slave handler; And a controller for transmitting the packet checked by the detector to a corresponding handler.

또한, 상기 메시지 후킹 핸들러는 트랜스미션 핸들러에서 오는 패킷을 임시저장하는 버퍼부를 더 포함함을 특징으로 한다.The message hooking handler may further include a buffer unit for temporarily storing a packet coming from the transmission handler.

본 발명에 따른 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법은 패킷의 주소가 마스터의 주소 범위 내에 해당하는지 체크하고, 패킷의 주소가 마스터의 주소 범위 내에 해당하면 마스터 핸들러용 패킷으로 구분하고, 패킷의 주소가 마스터의 주소 범위 내에 해당하지 않으면 슬레이브 핸들러에서 가지고 있는 고유의 주소 값을 불러오는 단계; 및 패킷의 주소가 슬레이브 핸들러의 주소 값과 일치하는지 체크하고, 패킷의 주소가 슬레이브 핸들러의 주소 값과 일치하 면 슬레이브 핸들러용 패킷으로 구분하는 단계를 포함한다.In the message hooking handler according to the present invention, a method for distinguishing a packet for a master / a packet for a slave checks whether an address of a packet falls within a master address range, and classifies a packet for a master handler if an address of a packet falls within an address range of a master. If the address of the packet does not fall within the address range of the master, retrieving a unique address value held by the slave handler; And checking whether the address of the packet matches the address value of the slave handler, and classifying the packet into a packet for the slave handler if the address of the packet matches the address value of the slave handler.

또한 본 발명은 상기 패킷의 주소가 슬레이브 핸들러의 주소 값과 일치하지 않으면 그 패킷은 무시되는 단계를 더 포함함을 특징으로 한다.In addition, the present invention is characterized in that it further comprises the step of the packet is ignored if the address of the packet does not match the address value of the slave handler.

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

본 발명의 일실시예에서는 LG 홈넷(HomeNet) 프로토콜인 리빙 네트워크 제어 프로토콜(living network control protocol: LnCP)을 사용하여 설명하기로 한다.An embodiment of the present invention will be described using a living network control protocol (LnCP), which is an LG HomeNet protocol.

먼저, 본 명세서에서는 도 2 및 도 3을 참조하여 상기 LnCP에 대해 보다 상세히 살펴본다.First, in the present specification, the LnCP will be described in more detail with reference to FIGS. 2 and 3.

도 2는 일반적인 홈 네트워크 시스템의 구성도이며, 도 3은 도 2에서의 LnCP 라이브러리 모듈의 구성도이다. 2 is a configuration diagram of a general home network system, and FIG. 3 is a configuration diagram of the LnCP library module of FIG. 2.

도 2를 참조하면, 홈 네트워크 시스템은 인터넷(10)을 통해 TCP/IP 기반의 메시지 송, 수신을 수행하는 LnCP 서버(20); 및 상기 LnCP 서버(20)가 수신한 제어명령을 홈 네트워크 내에 존재하는 홈네트워크 제품(디바이스)(41~43) 중 해당 디바이스로 전달하고, 상기 디바이스의 제어에 따른 응답을 상기 LnCP 서버(20)로 전달하는 LnCP 라이브러리 모듈(30)을 포함하여 이루어진다.Referring to FIG. 2, the home network system includes an LnCP server 20 performing TCP / IP-based message transmission and reception through the Internet 10; And a control command received by the LnCP server 20 to a corresponding device among home network products (devices) 41 to 43 existing in a home network, and sends a response according to the control of the device to the LnCP server 20. Including the LnCP library module 30 to deliver.

상기 LnCP 서버(20)와 LnCP 라이브러리 모듈(30)사이에는 인터페이싱 지원을 위한 LnGate API(36)가 구비된다. An LnGate API 36 for interfacing support is provided between the LnCP server 20 and the LnCP library module 30.

상기 LnCP 서버(20)는 인터넷(10)과 홈 네트워크간의 연결을 위한 게이트웨 이(Gateway) 기능을 구비하거나 별도의 게이트웨이가 접속된다. The LnCP server 20 has a gateway function for connection between the Internet 10 and a home network or a separate gateway is connected.

상기 LnCP 라이브러리 모듈(30)은 도 3에 도시한 바와 같이, 마스터 핸들러(Master Handler)(31a) 및 슬레이브 핸들러(Slave Handler)(31b)와, 메시지 후킹 핸들러(Message Hooking Handler)(32)와, 전달(트랜스미션) 핸들러(Transmission handler)(33)와, 채널 핸들러(channel handler)(34) 및 홈 네트워크에 존재하는 LnCP 기반의 디바이스와의 통신을 지원하기 위한 디바이스(물리적) 인터페이스(35)를 포함하여 구성한다. As shown in FIG. 3, the LnCP library module 30 includes a master handler 31a and a slave handler 31b, a message hooking handler 32, A transmission (transmission) handler 33, a channel handler 34, and a device (physical) interface 35 for supporting communication with LnCP-based devices residing in the home network. To configure.

상기 LnCP 라이브러리 모듈(30)은 로그 핸들러(log handler)와 데이터베이스 핸들러(database handler)를 더 포함한다. The LnCP library module 30 further includes a log handler and a database handler.

상기 마스터 핸들러(31a)는 슬레이브 디바이스에 명령을 하달시켜 소정의 작업이 이루어지도록 하며, 슬레이브 핸들러(31b)는 상기 마스터의 제어를 받아 해당 기능(작업)을 수행한다.The master handler 31a issues a command to the slave device to perform a predetermined task, and the slave handler 31b performs the corresponding function (task) under the control of the master.

즉, 상기 마스터 핸들러(31a)는 홈 코드(Home code) 관리, 주소 할당, 다수의 네트워크 매니저(Network Manager : NM)의 데이터베이스(DataBase : DB) 처리를 위한 멀티 NM 관리, 원하는 시간에 원하는 제어를 지원하기 위한 스케쥴 관리, 디바이스 등록 관리, 디바이스 유형/모델별 제어, 이벤트 액션 관리, 디바이스 이벤트 처리를 수행한다. That is, the master handler 31a manages a home code, assigns an address, manages multiple NMs for processing a database of a plurality of network managers (NMs), and manages a desired control at a desired time. Schedule management, device registration management, device type / model control, event action management, and device event processing to support.

상기 후킹 핸들러(32)는 상층 레이어(31)와 하층 레이어(33)간 패킷을 전송시키는 역할을 담당한다. 이에 대한 상세한 설명은 도 4에서 이루어지므로 여기서는 생략하기로 한다.The hooking handler 32 is responsible for transmitting a packet between the upper layer 31 and the lower layer 33. Since a detailed description thereof is made in FIG. 4, it will be omitted here.

상기 트랜스미션 핸들러(33)는 상위 레이어(32)에서 전달된 패킷을 채널 핸들러(34)를 통해 인터페이스(35)로 전달될 수 있도록 처리하고 상기 채널 핸들러(34)로부터 수신된 LnCP 패킷을 상층 레이어(메시지 후킹 핸들러)(32)로 전달한다. 만일, 전송 오류가 발생하면 재전송 처리를 한다. The transmission handler 33 processes the packet transmitted from the upper layer 32 to be delivered to the interface 35 through the channel handler 34 and processes the LnCP packet received from the channel handler 34 into the upper layer ( Message hooking handler). If a transmission error occurs, the retransmission process is performed.

상기 채널 핸들러(34)는 LnCP 인터페이스(35)를 관리한다. 즉, 채널 핸들러(34)는 트랜스미션 핸들러(33)로부터 받은 패킷을 해당 LnCP 인터페이스(35)로 전달하고 LnCP 인터페이스(35)로부터 전달받은 패킷을 트랜스미션 핸들러(33)에게 전달한다. The channel handler 34 manages the LnCP interface 35. That is, the channel handler 34 transmits the packet received from the transmission handler 33 to the LnCP interface 35 and the packet received from the LnCP interface 35 to the transmission handler 33.

상기 LnCP 디바이스 인터페이스(35)는 최종 물리 인터페이스로, 전력선 통신(Power Line Communication : PLC),직렬 통신(RS-232C, RS-485), 무선통신(RF 통신), USB 인터페이스에 직접 패킷을 전달하고 그에 따른 응답을 전달받아 채널 핸들러(34)로 전달한다. The LnCP device interface 35 is a final physical interface, and directly transmits a packet to a power line communication (PLC), serial communication (RS-232C, RS-485), wireless communication (RF communication), and a USB interface. The response is received and delivered to the channel handler 34.

도 4는 도 3에서의 메시지 후킹 핸들러의 상세 구성도이다.4 is a detailed block diagram of the message hooking handler of FIG. 3.

도 4를 참조하면, 본 발명에 따른 메시지 후킹 핸들러(32)는 버퍼부(32c)와, 검출부(32b) 및 제어부(32a)를 포함하여 이루어진다.Referring to FIG. 4, the message hooking handler 32 according to the present invention includes a buffer unit 32c, a detector unit 32b, and a controller unit 32a.

상기 버퍼부(32c)는 상기 트랜스미션 핸들러에서 전송된 메시지 패킷을 임시 저장시키는 패킷 저장소이다.The buffer unit 32c is a packet store for temporarily storing a message packet transmitted from the transmission handler.

상기 검출부(32b)는 상기 버퍼부에 저장되어 있는 메시지 패킷이 마스터 핸들러 또는 슬레이브 핸들러로 보낼것인지 체크한다.The detection unit 32b checks whether the message packet stored in the buffer unit is to be sent to the master handler or the slave handler.

상기 체크 방법에 대한 상세한 설명은 도 5 설명부분에서 이루어지므로, 여기서는 생략하기로 한다.Detailed description of the check method is made in the description of FIG.

상기 제어부(32a)는 상기 검출부(32b)에서 체크된 패킷을 해당 핸들러로 보낸다. 즉, 상기 검출부(32b)에 의해 상기 패킷이 마스터 핸들러용 패킷으로 구분되면 상기 제어부(32a)에서는 상기 패킷을 마스터 핸들러(31a)로 보내고, 또한 상기 검출부(32b)에 의해 상기 패킷이 슬레이브 핸들러용 패킷으로 구분되면 상기 제어부(32a)에서는 상기 패킷을 슬레이브 핸들러(31b)로 보낸다.The control unit 32a sends the packet checked by the detection unit 32b to the handler. That is, when the packet is divided into a master handler packet by the detector 32b, the controller 32a sends the packet to the master handler 31a, and the packet is transmitted to the slave handler by the detector 32b. When divided into packets, the controller 32a sends the packets to the slave handler 31b.

도 5는 본 발명에 따른 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법을 나타내는 순서도이다.5 is a flowchart illustrating a method for classifying a packet for a master / a packet for a slave in a message hooking handler according to the present invention.

도 5를 참조하면, 먼저 본 발명에서는 메시지 후킹 핸들러(32)의 버퍼부(32c)에서 메시지 패킷을 불러온다.(S101) Referring to FIG. 5, first, in the present invention, a message packet is read from the buffer unit 32c of the message hooking handler 32 (S101).

상기 메시지 패킷은 홈네트워크 제품(41~ 43)에서 발생되어 인터페이스부(35), 채널 핸들러(34), 트랜스미션 핸들러(33)를 경유하여 소정의 처리(Process)를 수행하고, 메시지 후킹 핸들러(32)의 버퍼부에 저장된 패킷을 말한다.The message packet is generated in the home network products 41 to 43 to perform a predetermined process via the interface unit 35, the channel handler 34, and the transmission handler 33, and the message hooking handler 32 Packet stored in the buffer section of the

본 발명에서는 단계 101과 같이 버퍼부(32c)에서 메시지 패킷을 불러온 후, 상기 패킷의 주소가 사용자가 기 설정한 마스터 주소에 해당하는지 체크한다.(S102)In the present invention, after reading the message packet from the buffer unit 32c as in step 101, it is checked whether the address of the packet corresponds to a master address preset by the user (S102).

만약, 메시지 패킷의 주소가 사용자가 기 설정한 마스터 주소에 해당하면 본 발명에서는 상기 패킷을 마스터 핸들러용 패킷으로 구분한다.(S103)If the address of the message packet corresponds to the master address preset by the user, the packet is divided into a master handler packet (S103).

또한, 본 발명에서는 상기 단계 102에서 메시지 패킷의 주소가 사용자가 기 설정한 마스터 주소에 해당하지 않으면 슬레이브 핸들러(31b)에서 가지고 있는 고유의 주소 값을 불러온다.(S104)In addition, in the present invention, if the address of the message packet does not correspond to the master address set by the user in step 102, the unique address value of the slave handler 31b is retrieved.

그런 후, 본 발명에서는 상기 패킷의 주소가 단계 104에서 불러온 슬레이브 핸들러의 주소 값과 같은지 체크한다.(S105)Then, in the present invention, it is checked whether the address of the packet is equal to the address value of the slave handler called up in step 104 (S105).

만약, 단계 105에서 두 주소 값, 즉 메시지 패킷의 주소와 슬레이브 핸들러의 주소 값이 일치하면(같으면) 슬레이브 핸들러용 패킷으로 구분한다.(S106)If, at step 105, the two address values, that is, the address of the message packet and the address of the slave handler coincide with each other (the same), the packet is classified into a slave handler packet (S106).

또한, 상기 단계 105에서 두 주소 값(메시지 패킷의 주소와 슬레이브 핸들러의 주소 값)이 일치하지 않으면 상기 패킷은 마스터용 패킷도 아니고 슬레이브용 패킷도 아니므로 본 발명에서는 상기 패킷을 무시한다.(S107)In addition, if the two address values (the address of the message packet and the address of the slave handler) do not match in step 105, the packet is neither a master packet nor a slave packet. In the present invention, the packet is ignored. )

상기 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법을 일례를 들어 설명하면, 상기 단계 103에서 사용자가 기 설정한 마스터 주소의 범위가 0x0000 ~ 0x00FE이고, 또한 상기 트랜스미션 핸들러(33)에서 전달된 메시지 패킷의 주소가 '0x000E'이면 상기 패킷은 마스터 핸들러(31a)로 전달된다.Referring to the method for distinguishing the master packet and the slave packet in the message hooking handler as an example, the range of the master address preset by the user in step 103 is 0x0000 to 0x00FE, and the transmission handler 33 transmits the message. If the address of the received message packet is '0x000E', the packet is delivered to the master handler 31a.

만약, 상기 패킷이 상기 마스터 주소의 범위에서 벗어나면 슬레이브 핸들러(31b)에서 가지고 있는 고유의 주소 값을 불러와서 이와 비교하며, 두 값이 일치하면 슬레이브 핸들러에게 상기 패킷이 전달되고, 그렇지 않으면 그 패킷은 무시된다.If the packet is out of the range of the master address, the unique address value of the slave handler 31b is retrieved and compared with the packet. If the two values match, the packet is delivered to the slave handler. Is ignored.

본 발명에서는 상층(Up Layer)(31)에서 하층(Low layer)(33)으로 패킷을 보낼 때는 마스터(Master) 및 슬레이브(Slave) 둘 다 메시지 후킹 핸들러(Message Hooking Handler)로 보내 주어서 같은 경로를 통해 패킷이 보내진다.In the present invention, when the packet is sent from the upper layer 31 to the lower layer 33, both the master and the slave send the message hooking handler to the same message. Packets are sent through.

종래에는 메시지 후킹 핸들러가 없어서 LnGate 마스터이면서 동시에 슬레이브로 동작하는 디바이스(Device)인 경우에는, 마스터 모듈(Master Module)과 슬레이브 모듈(Slave Module)을 각각 구비시켜 비슷한 작업을 중복적으로 수행하도록 되어 있었으나, 본 발명에서는 메시지 후킹(Message Hooking)기법을 이용함으로써 2개의 파트(Part)를 하나로 합치고, 비슷한 기능을 하는 모듈을 통합시켜 반복적인 작업을 줄임으로써 작업의 효율성을 향상시킬 수 있다.Conventionally, when there is no message hooking handler and a device operating as a LnGate master and a slave at the same time, a master module and a slave module are provided to perform similar tasks in duplicate. In the present invention, by using the message hooking (Message Hooking) technique, it is possible to improve the efficiency of the work by combining two parts into one and integrating a module having a similar function to reduce repetitive work.

상기와 같이, 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자라면 하기의 특허청구범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.As described above, with reference to the preferred embodiment of the present invention, those skilled in the art will be variously modified and modified within the scope of the present invention without departing from the spirit and scope of the present invention described in the claims below. It will be appreciated that it can be changed.

이상에서와 같이, 본 발명은 마스터이면서 동시에 슬레이브로서 동작하는 홈네트워크 제품의 중복적인 기능을 통합시키는 메시지 후킹 핸들러를 포함하는 홈네트워크 시스템 및 상기 메시지 후킹 핸들러에서의 메시지 패킷을 마스터용 또는 슬레이브용으로 구분하는 방법을 제공함으로써 보다 효율적으로 홈네트워크 시스템을 구축할 수 있다.  As described above, the present invention provides a home network system including a message hooking handler for integrating the redundant functions of a home network product which is both a master and a slave, and a message packet for the master or slave. By providing a method of dividing, it is possible to build a home network system more efficiently.

Claims (5)

마스터 및 슬레이브 핸들러와, 트랜스미션 핸들러 사이에 위치하여 상기 두 핸들러 간 패킷을 전달시키는 메시지 후킹 핸들러를 포함하는 홈네트워크 시스템에 있어서,  A home network system comprising a message hooking handler which is located between a master and a slave handler and a transmission handler to transfer a packet between the two handlers. 메시지 후킹 핸들러는 트랜스미션 핸들러에서 오는 패킷을 마스터 핸들러 또는 슬레이브 핸들러로 보낼것인지 체크하는 검출부; 및 상기 검출부에서 체크된 패킷을 해당 핸들러로 보내는 제어부를 포함함을 특징으로 하는 홈네트워크 시스템.The message hooking handler may include: a detector for checking whether to send a packet from a transmission handler to a master handler or a slave handler; And a control unit which sends a packet checked by the detection unit to a corresponding handler. 제 1항에 있어서, 메시지 후킹 핸들러는 트랜스미션 핸들러에서 오는 패킷을 임시저장하는 버퍼부를 더 포함함을 특징으로 하는 홈네트워크 시스템. The home network system according to claim 1, wherein the message hooking handler further comprises a buffer unit for temporarily storing a packet coming from the transmission handler. 패킷의 주소가 마스터의 주소 범위 내에 해당하는지 체크하고, 패킷의 주소가 마스터의 주소 범위 내에 해당하면 마스터 핸들러용 패킷으로 구분하고, 패킷의 주소가 마스터의 주소 범위 내에 해당하지 않으면 슬레이브 핸들러에서 가지고 있는 고유의 주소 값을 불러오는 단계; 및 패킷의 주소가 슬레이브 핸들러의 주소 값과 일치하는지 체크하고, 패킷의 주소가 슬레이브 핸들러의 주소 값과 일치하면 슬레이브 핸들러용 패킷으로 구분하는 단계를 포함하는 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법. Check if the address of the packet is within the address range of the master. If the address of the packet is within the address range of the master, classify it as a packet for the master handler. If the address of the packet is not within the address range of the master, the slave handler has Retrieving a unique address value; And checking whether the address of the packet matches the address value of the slave handler and, if the address of the packet matches the address value of the slave handler, dividing the packet into a packet for the slave handler. How to distinguish packets. 제 3항에 있어서, 패킷은 메시지 후킹 핸들러의 버퍼부에 임시 저장된 패킷인 것을 특징으로 하는 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법. 4. The method according to claim 3, wherein the packet is a packet temporarily stored in a buffer part of the message hooking handler. 제 3항에 있어서, 패킷의 주소가 슬레이브 핸들러의 주소 값과 일치하지 않으면 그 패킷은 무시되는 단계를 더 포함함을 특징으로 하는 메시지 후킹 핸들러에서의 마스터용 패킷/ 슬레이브용 패킷 구분 방법. 4. The method according to claim 3, further comprising the step of ignoring the packet if the address of the packet does not match the address value of the slave handler.
KR1020050013677A 2005-02-18 2005-02-18 Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler KR101094218B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050013677A KR101094218B1 (en) 2005-02-18 2005-02-18 Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050013677A KR101094218B1 (en) 2005-02-18 2005-02-18 Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler

Publications (2)

Publication Number Publication Date
KR20060092641A KR20060092641A (en) 2006-08-23
KR101094218B1 true KR101094218B1 (en) 2011-12-14

Family

ID=37593999

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050013677A KR101094218B1 (en) 2005-02-18 2005-02-18 Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler

Country Status (1)

Country Link
KR (1) KR101094218B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040104303A (en) * 2003-05-30 2004-12-10 엘지전자 주식회사 Service managing apparatus of home network management system
KR20040104301A (en) * 2003-05-30 2004-12-10 엘지전자 주식회사 Home network management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040104303A (en) * 2003-05-30 2004-12-10 엘지전자 주식회사 Service managing apparatus of home network management system
KR20040104301A (en) * 2003-05-30 2004-12-10 엘지전자 주식회사 Home network management system
KR20050014628A (en) * 2003-05-30 2005-02-07 엘지전자 주식회사 Home network system and its configuration system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
논문1:IEEE TRANSAC. ON CONSUMER ELECTRONICS *
논문2:한국정보과학회논문지 *

Also Published As

Publication number Publication date
KR20060092641A (en) 2006-08-23

Similar Documents

Publication Publication Date Title
US7650323B2 (en) CAN communication for building automation system
US7433740B2 (en) CAN communication for building automation systems
US9920948B2 (en) Asynchronous reporting system
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
KR101077992B1 (en) Home Network Control System and Data Flow Control Method of Above the Home Network Control System
US20070232288A1 (en) Service tool for wireless automation systems
KR20050014630A (en) Home network system
KR20040104301A (en) Home network management system
KR101834595B1 (en) Field panel with embedded webserver and method of accessing the same
US8484323B2 (en) Network system connected with multiple master devices and method for operating the same
JP5974931B2 (en) Communication device
CN114500305B (en) Device monitoring method, device, storage medium and program product
KR101094218B1 (en) Home Network include Message Hooking Handler and the Method discrimination between Master Packet and Slave Packet in the Above Message Hooking Handler
JP4513506B2 (en) Device management system and gateway device
JP6815978B2 (en) Initial setting method for remote monitoring system and monitored equipment
KR101225966B1 (en) Building Management System and the Operating Method for the Same
JP2020095362A (en) Remote monitoring system
KR101970523B1 (en) Facilities control system and operating method of the same
CN113848834B (en) Workshop equipment access system and method based on edge cloud cooperation
JP6518640B2 (en) Failure detection device
JP7129663B2 (en) Communication system and communication method
JP6845127B2 (en) External monitoring system and monitoring terminal
JP4121987B2 (en) Equipment control system
CN101645195B (en) Recognizing telegram boundaries
KR20240016719A (en) Multi input/output device management method and apparatus using smart repeater

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
LAPS Lapse due to unpaid annual fee