KR20060003679A - Control system and method for home network - Google Patents
Control system and method for home network Download PDFInfo
- Publication number
- KR20060003679A KR20060003679A KR1020040052663A KR20040052663A KR20060003679A KR 20060003679 A KR20060003679 A KR 20060003679A KR 1020040052663 A KR1020040052663 A KR 1020040052663A KR 20040052663 A KR20040052663 A KR 20040052663A KR 20060003679 A KR20060003679 A KR 20060003679A
- Authority
- KR
- South Korea
- Prior art keywords
- packet
- address
- home network
- lncp
- devices
- 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/2816—Controlling appliance services of a home automation network by calling their functionalities
- H04L12/2818—Controlling appliance services of a home automation network by calling their functionalities from a device located outside both the home and the home 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/283—Processing of data at an internetworking point of a home automation network
- H04L12/2834—Switching of information between an external network and a home network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
본 발명은 홈 네트워크 제어 시스템 및 방법에 관한 것으로 특히, LnCP를 위한 패킷 구조를 단순화함으로써 패킷 연산 과정을 단순화하여 통신 효율을 향상시킬 수 있도록 함에 목적이 있다. 이러한 목적의 본 발명은 홈 네트워크 내부에 연결되어 홈 네트워크 외부의 제어명령도 수행하는 LnCP 기반의 디바이스(141~143)와, 상기 디바이스(141~143)로 부여된 IP 주소를 모니터링하며 상기 디바이스(141~143)를 제어를 위한 인증을 위해 로그 리퀘스트 패킷이 수신되면 식별명(ID), 암호(PW)를 추출하여 기설정된 식별명(ID), 암호(PW)와 일치하는지 인증한 후 제어 가능 여부를 로그 리스펀스 패킷으로 응답하고 상기 디바이스(141~143) 중 임의의 디바이스 제어명령을 포함하는 리퀘스트 패킷이 수신되면 이를 해당 디바이스로 전송한 후 그에 따른 상태정보를 리스펀스 패킷으로 응답하는 LnCP 서버(130)와, 상기 LnCP 서버(130)와 홈 네트워크의 외부 네트워크를 연결하는 게이트웨이(Gateway)(120)와, 상기 디바이스(141~143)의 제어를 위한 로그 리퀘스트 패킷 및 리퀘스트 패킷을 상기 LnCP 서버(130)로 전송하고 그에 따른 상태정보를 수신하여 화면에 표시하는 클라이언트(110)를 포함하여 구성함을 특징으로 한다. The present invention relates to a home network control system and method, and more particularly, to simplify communication of a packet by improving a packet structure by simplifying a packet structure for LnCP. The present invention for this purpose is connected to the inside of the home network LnCP-based devices (141 ~ 143) that performs control commands outside the home network, and monitors the IP address assigned to the devices (141 ~ 143) and the device ( 141 ~ 143) When the log request packet is received for authentication for control, it extracts the identification name (ID) and password (PW) and authenticates whether it matches the preset identification name (ID) and password (PW). The LnCP server 130 responds with a log response packet and transmits a request packet including a device control command of any of the devices 141 to 143 to the corresponding device, and then responds with the status information according to the response packet. ), A gateway 120 connecting the LnCP server 130 and an external network of a home network, and log request packets and requests for controlling the devices 141 to 143. Sending a packet to the LnCP server 130, and receives status information accordingly to be characterized in that it comprises a client 110 for display on the screen.
Description
도1은 본 발명의 실시 예에 따른 홈 네트워크 제어 시스템의 블록 구성도. 1 is a block diagram of a home network control system according to an exemplary embodiment of the present invention.
도2는 본 발명의 실시 예에서 로그인/아웃을 위한 패킷 구조의 예시도. 2 is an exemplary diagram of a packet structure for login / out in an embodiment of the present invention.
도3은 본 발명의 실시 예에서 디바이스 제어를 위한 패킷 구조의 예시도. 3 is an exemplary diagram of a packet structure for device control in an embodiment of the present invention.
도4는 본 발명의 실시 예에서 노티피케이션 패킷 구조의 예시도. 4 is an exemplary diagram of a notification packet structure in an embodiment of the present invention.
* 도면의 주요부분에 대한 부호 설명 * Explanation of symbols on the main parts of the drawings
110 : 클라이언트 120 : 게이트웨이(Gateway) 110: client 120: gateway
130 : LnCP 서버 141~143 : LnCP 디바이스 130:
본 발명은 가전기기 제어에 관한 것으로 특히, 홈 네트워크 제어 시스템 및 방법에 관한 것이다. The present invention relates to home appliance control, and more particularly, to a home network control system and method.
최근 가정 내에 설치된 복수개의 가전기기를 네트워크로 연결하여 인터넷 등을 통해 원격 제어할 수 있도록 한 홈 자동화 시스템의 구축이 확산되고 있다. 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 기반의 홈 네트워크는 가정 내의 다양한 가전기기를 통합 조정할 수 있는 홈 네트워크 서버를 구비하며, 냉장고, 에어컨, 세탁기, 전자레인지 등의 각종 디지털 가전기기를 별도의 장치나 복잡한 공사 없이 전기코드만 연결되면 다양한 가전기기를 하나의 네트워크로 연결할 수 있도록 전력선통신(PLC ; Power Line Communication) 방식을 이용한다. LnCP-based home network is equipped with a home network server that can coordinate various home appliances in the home, and connects various electric appliances such as refrigerators, air conditioners, washing machines, and microwave ovens without any equipment or complicated construction. Power Line Communication (PLC) is used to connect various home appliances in one network.
종래의 LnCP는 하나의 플로우(flow)를 통해서 모든 메시지를 생성, 처리, 관리하였다. 즉, 종래의 LnCP는 기능별로 계층(layer)이나 핸들러(handler)를 구분하 여 구현하지 않았기 때문에 하나의 루틴에서 패킷의 헤더(header)로부터 테일(tail)까지 연속(sequential)으로 처리하게 된다. Conventional LnCP generates, processes, and manages all messages through a single flow. In other words, the conventional LnCP does not implement a layer or a handler for each function, and thus processes a sequence from the header of the packet to the tail in one routine.
그러나, 종래에는 LnCP를 위한 패킷 구조가 복잡하여 사용자가 UI(User Interface)를 통해 불규칙적으로 입력을 생성시키거나 슬레이브 디바이스(slave device)의 응답을 보장할 수 없을 때 효율적으로 대응할 수 없다는 단점이 있다. However, the conventional packet structure for the LnCP has a disadvantage in that the user cannot efficiently respond when the user randomly generates an input through the UI or cannot guarantee the response of the slave device. .
따라서, 본 발명은 종래의 문제점을 개선하기 위하여 LnCP를 위한 패킷 구조를 단순화함으로써 패킷 연산 과정을 단순화하여 통신 효율을 향상시킬 수 있도록 창안한 홈 네트워크 제어 시스템 및 방법을 제공함에 그 목적이 있다. Accordingly, an object of the present invention is to provide a home network control system and method invented to improve communication efficiency by simplifying a packet operation process by simplifying a packet structure for LnCP in order to improve a conventional problem.
본 발명은 상기의 목적을 달성하기 위하여 홈 네트워크 내부에 연결되어 홈 네트워크 외부의 제어명령도 수행하는 LnCP 기반의 가전기기인 복수의 디바이스와, 상기 복수의 디바이스 제어를 위한 인증을 위해 로그 리퀘스트 패킷을 전송함과 아울러 인증에 성공한 경우 상기 복수의 디바이스 제어를 위한 리퀘스트 패킷을 전송하고 상기 전송된 패킷에 따른 상태정보를 수신하여 화면에 표시하는 클라이언트(client)와, 상기 복수의 디바이스로 부여된 IP 주소를 모니터링하며 상기 클라이언트로부터의 상기 복수의 디바이스 제어를 위한 로그 리퀘스트 패킷을 분석하여 정당한 클라이언트인지 확인한 후 그 확인 결과를 로그 리스펀스 패킷으로 응답하고 상기 정당한 클라이언트로 확인된 클라이언트로부터 상기 복수의 디바이스 중 임의의 디바이스 제어를 위한 리퀘스트 패킷이 수신되면 이를 해석하여 해당 디바 이스로 전송하고 그에 따른 상태정보를 포함하는 리스펀스 패킷을 상기 클라이언트에게 응답하는 LnCP 서버와, 상기 LnCP 서버와 홈 네트워크의 외부 네트워크를 연결하는 게이트웨이(Gateway)를 포함하여 구성함을 특징으로 한다. In order to achieve the above object, the present invention provides a plurality of devices, which are LnCP-based home appliances that are connected inside a home network and also perform control commands outside the home network, and log request packets for authentication for controlling the plurality of devices. The client transmits the request packet for controlling the plurality of devices, receives the status information according to the transmitted packet and displays it on the screen when the authentication is successful, and the IP addresses assigned to the plurality of devices. Monitor the log request packet for the control of the plurality of devices from the client and verify that the client is a legitimate client, and respond with the log response packet to the result of the verification, and select any one of the plurality of devices from the client identified as the legitimate client. Device control When a request packet is received, the LnCP server which interprets the request packet and transmits the response packet to the corresponding device and responds to the client with a response packet including state information according to the request, and a gateway connecting the LnCP server and an external network of a home network Characterized in that comprises a configuration.
또한, 본 발명은 상기의 목적을 달성하기 위하여 LnCP 기반의 가전기기 제어 방법에 있어서, 가정 내부 또는 외부의 사용자 단말기에서 로그 리퀘스트(Log Request) 패킷이 수신되는지 확인하는 단계와, 상기 로그 리퀘스트 패킷이 수신되면 식별명(ID), 암호(PW)를 추출하여 기설정된 식별명(ID), 암호(PW)와 일치하는지 비교하는 단계와, 상기 비교 결과에 따라 가전기기 제어 가능 여부를 나타내는 로그 리스펀스(Response) 패킷을 사용자 단말기로 전송하는 단계와, 로그인이 성공한 가정 내부 또는 외부의 사용자 단말기에서 임의의 디바이스 제어를 위한 리퀘스트(Request) 패킷이 수신되는지 확인하는 단계와, 상기 리퀘스트 패킷이 수신되면 목적지 디바이스의 주소를 확인하여 해당 디바이스에 전송하는 단계와, 상기 리퀘스트 패킷의 명령을 실행한 디바이스가 그 실행결과를 응답하면 리스펀스 패킷에 포함하여 상기 사용자 단말기로 전송하는 단계와, 디바이스의 상태 변화에 따른 이벤트가 발생하는지 확인하는 단계와, 이벤트가 발행되면 그 상태 정보를 포함하는 노티피케이션 패킷을 사용자 단말기로 전송하는 단계를 수행하여 사용자 단말기에서 홈 네트워크에 존재하는 다수의 가전기기를 제어하도록 구성함을 특징으로 한다. In addition, the present invention provides a method for controlling a home appliance based on LnCP in order to achieve the above object, the step of checking whether a log request (Log Request) packet is received at a user terminal inside or outside the home, and the log request packet is When received, extracting the identification name (ID) and the password (PW) and comparing with a predetermined identification name (ID), password (PW), and log response indicating whether the home appliance can be controlled according to the comparison result ( Response) transmitting the packet to the user terminal, checking whether a request packet for controlling any device is received from the user terminal inside or outside the home where the login is successful, and if the request packet is received, a destination device. Checking and transmitting the address of the request to the corresponding device, and the device executing the command of the request packet If the response is returned, the response packet is included in the response packet and transmitted to the user terminal, and the event is generated according to the state change of the device. When the event is issued, a notification packet including the state information is provided. And performing a step of transmitting to the user terminal to control the plurality of home appliances existing in the home network.
상기 로그 리퀘스트 패킷은 1바이트의 패킷 길이(Size), 패킷을 보내고자 하는 목적지 디바이스의 어드레스를 2바이트로 표시하는 리시버 어드레스(Receiver address : RA), 패킷을 보내는 디바이스의 어드레스를 2바이트로 표시하는 샌더어 드레스(Sender address : SA), 1바이트의 패킷 타입(packet Type : PT), 1바이트의 커맨드 코드(Command Code : CC), 1바이트의 식별명 크기(ID size), 가변크기의 식별명(ID : IDentification), 1바이트의 암호 크기(PW size), 가변크기의 암호(PW : PassWord)를 포함하여 구성함을 특징으로 한다. The log request packet includes a packet length of 1 byte, a receiver address (RA) indicating an address of a destination device to which the packet is to be sent in 2 bytes, and an address of a device sending a packet in 2 bytes. Sander dress (Sender address: SA), 1 byte packet type (PT), 1 byte command code (CC), 1 byte ID size, variable size ID (ID: IDentification), password size (PW size) of 1 byte, password (PW: PassWord) of variable size.
상기 로그 리스펀스 패킷은 패킷 길이(size), 목적지 디바이스의 주소(RA), 패킷 전송 디바이스의 주소(SA), 패킷 타입(PT), 커맨드 코드(CC), 1바이트의 ACK/NACK, CC의 실행을 위한 인자를 입력하는 가변크기의 ARG(Argument)를 포함하여 구성함을 특징으로 한다. The log response packet includes packet length (size), destination device address (RA), packet transmission device address (SA), packet type (PT), command code (CC), 1 byte of ACK / NACK, and execution of CC. Characterized in that it comprises a variable size ARG (Argument) to input the argument for.
상기 리퀘스트 패킷은 패킷크기(Size), 목적지 디바이스의 주소(RA), 패킷 전송 디바이스의 주소(SA), 패킷타입(PT), 커맨드 코드(CC), 커맨드코드 실행을 위한 인자를 나타내는 ARG를 포함하여 구성함을 특징으로 한다. The request packet includes an ARG indicating a packet size, an address of a destination device (RA), an address of a packet transmission device (SA), a packet type (PT), a command code (CC), and a command code execution factor. It is characterized by the configuration.
상기 리스펀스 패킷은 패킷크기(Size), 목적지 디바이스의 주소(RA), 패킷 전송 디바이스의 주소(SA), 패킷 타입(PT), 커맨드 코드(CC), 1바이트의 ACK/NACK, 커맨드 코드(CC) 실행을 위한 인자를 나타내는 가변크기의 ARG(Argument)를 포함하여 구성함을 특징으로 한다. The response packet includes packet size (Size), address of destination device (RA), address of packet transmission device (SA), packet type (PT), command code (CC), 1 byte of ACK / NACK, and command code (CC). It is characterized by including a variable size ARG (Argument) indicating the argument for execution.
상기 노티피케이션 패킷은 패킷 크기(Size), 목적지 디바이스의 주소(RA), 패킷을 전송하는 디바이스의 주소(SA), 패킷 타입(PT), 명령코드(CC), 명령실행 인자(ARG)를 포함하여 구성함을 특징으로 한다. The notification packet includes a packet size, an address of a destination device (RA), an address (SA) of a device transmitting a packet, a packet type (PT), a command code (CC), and an command execution factor (ARG). It is characterized by including the configuration.
상기 ARG는 2바이트의 event code, 4바이트의 status value1, 가변크기의 status value2를 포함하여 구성함을 특징으로 한다. The ARG is characterized by comprising a two-byte event code, four bytes of status value1, variable size status value2.
이하, 본 발명을 도면에 의거 상세히 설명하면 다음과 같다. Hereinafter, the present invention will be described in detail with reference to the drawings.
도1은 본 발명의 실시 예에 따른 홈 네트워크 시스템의 블록 구성도로서 이에 도시한 바와 같이, 홈 네트워크 내부에 연결되어 홈 네트워크 외부의 제어명령도 수행하는 LnCP 기반의 디바이스(141~143)와, 상기 디바이스(141~143)로 부여된 IP 주소를 모니터링하며 1 is a block diagram of a home network system according to an embodiment of the present invention, as shown in FIG. 1, an LnCP-based
상기 디바이스(141~143)를 제어를 위한 인증을 위해 로그 리퀘스트 패킷이 수신되면 이를 분석하여 인증한 후 제어 가능 여부를 로그 리스펀스 패킷으로 응답하고 When a log request packet is received for authentication for control of the
상기 디바이스(141~143) 중 임의의 디바이스 제어명령을 포함하는 리퀘스트 패킷이 수신되면 이를 해당 디바이스로 전송한 후 그에 따른 상태정보를 리스펀스 패킷으로 응답하는 LnCP 서버(130)와, 상기 LnCP 서버(130)와 홈 네트워크의 외부 네트워크를 연결하는 게이트웨이(Gateway)(120)와, 상기 디바이스(141~143)의 제어를 위한 로그 리퀘스트 패킷 및 리퀘스트 패킷을 상기 LnCP 서버(130)로 전송하고 그에 따른 상태정보를 수신하여 화면에 표시하는 클라이언트(110)를 포함하여 구성한다. When the request packet including any device control command among the
상기 LnCP 서버(130)는 LnCP 기반의 디바이스를 제어하기 위한 명령을 해석하고 이를 해당 디바이스로 전달하기 위한 LnCP 라이브러리(Library)와, 각 디바이스와의 통신을 위한 물리인터페이스(예로, PLC, RS-485, RF, ZigBee 등)를 포함하여 구성한다. The
또한, 상기 LnCP 서버(130)는 홈 네트워크에 연결된 LnCP 기반의 디바이스 (141~143))에 IP 주소를 부여하고 이를 실시간으로 점검하여 포털 서버(도면 미도시)에 제공한다. 만일, 복수의 디바이스(141~143)의 유동 IP주소가 변경된 경우 LnCP 서버(130)는 이를 감지하여 포털 서버(도면 미도시)로 전송한다. In addition, the LnCP
상기 클라이언트와 게이트웨이(130)간의 통신은 무선랜, 블루투스, ZigBee, CDMA 등을 이용한다. Communication between the client and the
이와 같이 구성한 본 발명의 실시 예에 대한 동작 및 작용 효과를 설명하면 다음과 같다. Referring to the operation and effect of the embodiment of the present invention configured as described above are as follows.
본 발명의 실시 예에서 LnCP 기반의 디바이스(141~143)를 제어하기 위해서 가정 내에 LnCP 서버(130)를 설치하고 가정 내부 또는 외부에서 PDA 또는 폰(phone) 등의 휴대 디바이스(portable device)를 이용하여 제어한다. In an embodiment of the present invention, in order to control the LnCP-based
그리고, LnCP 서버(130)와 홈 네트워크 외부의 클라이언트(110)간의 통신을 위해 게이트웨이(120)를 설치한다. In addition, the
상기 게이트웨이(120)의 서버 기능을 위한 프로그램과 PDA 또는 폰(phone)에 탑재된 어플리케이션 간의 통신은 도2 내지 도4와 같은 포맷의 LnCP 패킷을 이용한다. Communication between a program for the server function of the
즉, 본 발명의 실시 예에서의 LnCP 패킷은 인증을 위한 login/out 리퀘스트(request) 패킷과 login/out 리스펀스(response) 패킷, LnCP 디바이스의 제어를 위한 리퀘스트(request) 패킷과 이에 대한 리스펀스(response) 패킷 그리고, LnCP 디바이스로부터 주기적 또는 비주기적으로 발생하는 이벤트에 대한 노티피케이션 (notification) 패킷으로 분류된다. That is, the LnCP packet according to the embodiment of the present invention is a login / out request packet for authentication, a login / out response packet, a request packet for controlling the LnCP device, and a response thereto. Packet) and a notification packet for events that occur periodically or aperiodically from the LnCP device.
상기 LnCP 디바이스 제어를 위한 request 패킷과 이에 대한 response 패킷은 LnCP 라이브러리(Library)의 로컬 제어를 위한 API를 따른다. The request packet and the response packet for controlling the LnCP device follow an API for local control of the LnCP library.
상기 login/out 리퀘스트(request) 패킷은 도2(a)에 도시한 바와 같이, 1바이트로 표시되는 패킷크기(Size), 패킷을 보내고자 하는 목적지 디바이스의 주소를 나타내는 2바이트의 RA(Receiver address), 패킷을 보내는 디바이스의 주소를 나타내는 2바이트의 SA(Sender address), 1바이트의 패킷 타입(packet Type : PT), 1바이트의 커멘드 코드(Command Code : CC), 1바이트의 식별명 크기(ID size), 가변크기의 식별명(ID : IDentification), 1바이트의 암호 크기(PW size), 가변(Variable)크기의 암호(PW : PassWord)를 포함하여 구성한다. The login / out request packet has a packet size represented by one byte as shown in FIG. 2 (a), and a two-byte receiver address indicating an address of a destination device to which the packet is to be sent. ), A two-byte sender address (SA) indicating the address of the device sending the packet, a one-byte packet type (PT), a one-byte command code (CC), and a one-byte identification name size ( ID size), variable size identification name (ID: IDentification), password size (PW size) of 1 byte, variable size password (PW: PassWord).
상기 login/out 리스펀스(response) 패킷과 디바이스 제어에 따른 리스펀스(Response) 패킷은 도2(b)와 도3(b)에 각기 도시한 바와 같이, 패킷크기(Size), 목적지 디바이스의 주소(RA), 패킷 전송 디바이스의 주소(SA), 패킷 타입(PT), 커맨드 코드(CC), 1바이트의 ACK/NACK, 커맨드 코드(CC) 실행을 위한 인자를 나타내는 가변크기의 ARG(Argument)를 포함하여 구성한다. The login / out response packet and the response packet according to device control are respectively shown in FIGS. 2 (b) and 3 (b), and the packet size and address of the destination device (RA). ), The address (SA) of the packet transmission device, the packet type (PT), the command code (CC), ACK / NACK of 1 byte, and a variable size ARG (Argument) indicating a factor for executing the command code (CC). To configure.
상기 디바이스 제어를 위한 리퀘스트(Request) 패킷과 이벤트에 따른 노티피케이션(Notification) 패킷은 도3(a)와 도4(a)에 각기 도시한 바와 같이, 패킷크기(Size), 목적지 디바이스의 주소(RA), 패킷 전송 디바이스의 주소(SA), 패킷타입(PT), 커맨드 코드(CC), 커맨드코드 실행을 위한 인자를 나타내는 ARG를 포함하여 구성한다. The request packet for the device control and the notification packet according to the event are respectively shown in FIGS. 3 (a) and 4 (a), the packet size and the address of the destination device. (RA), an address SA of the packet transmission device, a packet type PT, a command code CC, and an ARG indicating a factor for executing the command code.
상기 노티피케이션(Notification) 패킷의 ARG는 도4(b)에 도시한 바와 같이, 2바이트의 event code, 4바이트의 status value1, 가변크기의 status value2를 포함하여 구성한다. As shown in Fig. 4 (b), the ARG of the notification packet includes a 2-byte event code, a 4-byte status value1, and a variable size status value2.
상기 리시버 어드레스(RA)는 수신자가 패킷을 수신할 것인지 아니면 무시할 것인지를 조기에 판단하기 위한 것이다. The receiver address RA is for early determination of whether the receiver will receive or ignore the packet.
상기 패킷 타입(PT)은 패킷을 송신할 때 지정하는 필드 값으로, 리퀘스트 패킷, 리스펀스 패킷, 노티피케이션(Notification) 패킷 중 해당 패킷타입을 구분하기 위한 것이다. The packet type (PT) is a field value specified when transmitting a packet, and is used to distinguish a corresponding packet type among a request packet, a response packet, and a notification packet.
상기 리스펀스 패킷은 다시 Successful 리스펀스와 Failed 리스펀스로 구분된다. 리스펀스 패킷을 두 가지로 분류되는 이유는 메시지 내용을 모르더라도 패킷 헤더에 있는 패킷 타입(PT) 필드만 보고 Failed 리스펀스일 때 패킷을 재전송하기 위한 것이다. The response packet is further divided into a successful response and a failed response. The reason why the response packet is classified into two types is to retransmit the packet when the failed response is made by only looking at the packet type (PT) field in the packet header even if the message content is not known.
이에 따라, 본 발명의 실시 예에서 클라이언트(110)와 가정 내의 LnCP 서버(130)간의 패킷 송수신 과정을 설명하면 다음과 같다. 여기서, 클라이언트(110)는 PDA(Personal Digital Assistant : 개인휴대정보단말기)라 가정하여 설명하기로 한다. Accordingly, in the embodiment of the present invention, a packet transmission and reception process between the
클라이언트 측의 사용자는 LnCP 서버(130)에 접근하기 위해서 로그인 과정을 거치게 된다. The user on the client side goes through a login process to access the
우선, 사용자는 PDA를 이용하여 도1(a)의 로그인(login) 리퀘스트 패킷을 게이트웨이(120)를 통해 LnCP 서버(130)에 전송한다. First, the user transmits the login request packet of FIG. 1 (a) to the
이때, LnCP 서버(130)는 로그인 리퀘스트 패킷에서 ID와 PW를 추출하고 관리자 또는 사용자에 의해 기설정된 ID와 PW와 일치하는지 비교하게 된다. At this time, the
이에 따라, 비교 결과가 일치하면 LnCP 서버(130)는 인증이 성공했음을 알리기 위해 "ACK"를 도2(b)의 로그인(login) 리스펀스 패킷에 포함하여 PDA로 전송한다. Accordingly, if the comparison result is matched, the
만일, 비교 결과가 일치하지 않아 인증에 실패한 경우 LnCP 서버(130)는 "NACK"를 포함하는 도2(b)의 로그인 리스펀스 패킷을 PDA로 전송한다. If the authentication fails because the comparison result does not match, the
상기 과정에서 로그인이 성공되면 클라이언트(100) 측의 PDA와 LnCP 서버(130)간에 통신라인이 연결된다. If the login is successful in the above process, the communication line is connected between the PDA of the client 100 and the
이후, 로그인에 성공한 사용자는 PDA를 이용하여 홈 네트워크에 존재하는 LnCP 기반의 디바이스(141~143)의 상태 정보 요구 또는 특정 기능을 제어하기 위한 명령을 도3(a)의 리퀘스트 패킷에 실어 LnCP 서버(130)에 전송하고 그에 대한 리스펀스 패킷의 수신을 대기하게 된다. Subsequently, the user who has successfully logged in uses the PDA to place a request for status information or a specific function of the LnCP-based
이때, LnCP 서버(130)는 리퀘스트 패캣을 해석하여 LnCP 기반의 디바이스(141~143)의 상태 정보 요구이면 그 상태 정보를 도3(b)의 리스펀스 패킷에 실어 PDA로 전송한다. At this time, the
이에 따라, PDA는 리스펀스 패킷을 해석하여 디바이스(141~143)의 상태를 화면에 표시하고 이를 확인한 사용자는 상기 디바이스(141~143) 중 특정 기능의 제어가 필요한 디바이스를 확인하게 된다. Accordingly, the PDA interprets the response packet and displays the states of the
그리고, LnCP 서버(130)가 리퀘스트 패킷을 해석하여 디바이스(141~143) 중 임의의 디바이스의 특정 기능을 제어하려는 명령을 확인하면 그 제어명령을 해당 디바이스로 전송하고 그 제어명령에 대한 실행 결과를 수신하게 된다. When the
이때, LnCP 서버(130)는 제어명령에 대한 해당 디바이스의 상태 정보를 도3(b)의 리스펀스 패킷에 실어 PDA로 전송한다. At this time, the
따라서, PDA가 해당 디바이스의 상태 정보를 화면에 표시하여 사용자가 디바이스의 제어 결과를 확인할 수 있도록 한다. Therefore, the PDA displays the status information of the device on the screen so that the user can check the control result of the device.
이후, 로그아웃을 원하는 경우 사용자는 PDA를 이용하여 도1(a) 구조의 로그아웃(logout) 리퀘스트 패킷을 LnCP 서버(130)에 전송한다. Thereafter, when the user wants to log out, the user transmits a logout request packet of the structure of FIG. 1 (a) to the
이에 따라, LnCP 서버(130)는 로그아웃 리퀘스트 패킷에서 ID, PW를 추출하여 기설정된 ID, PW와 일치하는지 비교하고 그 비교 결과에 따라 "ACK" 또는 "NACK"를 포함하는 도2(b) 구조의 로그아웃 리스펀스 패킷을 PDA로 전송한다. Accordingly, the
한편, 홈 네트워크에 존재하는 디바이스(141~143)는 상태 변화가 발생한 경우 이벤트(event)를 발생시키게 된다. Meanwhile, the
만일, 상태 변화로 인해 이벤트가 발생되면 그 상태 변화를 노티피케이션(notification) 패킷을 이용하여 모든 디바이스에게 알린다. 이벤트가 중요한 의미를 갖는 이유는 사용자가 디바이스의 상태를 모니터링(monitoring)하는 경우 디바이스의 상태를 알고 싶을 때마다 매번 상태 값을 요청하는 것보다는 디바이스의 상태 값이 변했을 때 디바이스가 스스로 그 상태 변화를 알리는 것이 더 효율적이기 때문이다. 특히, 디바이스의 고장이나 에러 발생의 경우 발생하는 즉시 알려 주어야 하기 때문에 이벤트 발생 시 상태 변화를 즉시 통보하는 과정이 필요하다. If an event occurs due to a state change, the state change is informed to all devices using a notification packet. An event is important because when a user monitors a device's status, the device will not change its status when the device's status changes, rather than requesting a status value each time it wants to know the status of the device. It is more efficient to advertise. In particular, in the event of a device failure or error, it must be notified as soon as it occurs, so it is necessary to notify the status change immediately when an event occurs.
이 과정을 설명하면 다음과 같다. This process is explained as follows.
홈 네트워크에 존재하는 LnCP 디바이스(141~143) 중 상태변화가 발생된 디바이스는 도4(a)(b)와 같은 구조의 노티피케이션 패킷을 LnCP 서버(130)로 전송한다. Among the
이때, LnCP 서버(130)는 노티피케이션 패킷을 해석하여 이벤트 발생 내용을 확인하고 그 내용이 사용자에게 알려야 하는 것으로 판단되면 해당 내용을 포함한 노티피케이션 패킷을 PDA(100)에 전송한다. At this time, the
이에 따라, PDA(100)는 수신된 노티피케이션 패킷을 해석하여 이벤트 내용을 확인하고 그 확인된 이벤트 내용을 화면에 표시하여 사용자에게 알리게 된다. Accordingly, the PDA 100 interprets the received notification packet, confirms the event contents, and displays the confirmed event contents on the screen to notify the user.
또한, 본 발명은 홈 네트워크에 설치된 임의의 디바이스를 마스터(master)로 설정하고 게이트웨이(gateway) 기능과 서버(server) 기능을 탑재함으로써 게이트웨이(120)와 LnCP 서버(130)의 역할을 수행하도록 구성할 수 있다. In addition, the present invention is configured to perform the role of the
이때, 마스터로 동작하는 디바이스는 슬래이브로 동작하는 다른 디바이스의 제어를 위한 LCCP 패킷을 PLC, RS-485, RF, ZigBee 등의 통신 매체를 이용하여 전송하도록 구성한다. At this time, the device acting as the master is configured to transmit an LCCP packet for control of another device acting as a slave using a communication medium such as PLC, RS-485, RF, ZigBee.
상기에서 상세히 설명한 바와 같이 본 발명은 홈 네트워크에 존재하는 LnCP 디바이스를 제어하기 위한 패킷을 단순화함으로써 패킷 연산 과정을 단순화하여 통신 효율을 향상시키는 효과를 발휘하게 된다. As described in detail above, the present invention simplifies the packet operation process by simplifying the packet for controlling the LnCP device existing in the home network, thereby improving communication efficiency.
Claims (7)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040052663A KR20060003679A (en) | 2004-07-07 | 2004-07-07 | Control system and method for home network |
PCT/KR2005/002092 WO2006004356A1 (en) | 2004-07-02 | 2005-07-01 | Method and apparatus for enabling remote control to devices of a local network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040052663A KR20060003679A (en) | 2004-07-07 | 2004-07-07 | Control system and method for home network |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20060003679A true KR20060003679A (en) | 2006-01-11 |
Family
ID=37106084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020040052663A KR20060003679A (en) | 2004-07-02 | 2004-07-07 | Control system and method for home network |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20060003679A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100694221B1 (en) | 2005-10-05 | 2007-03-14 | 삼성전자주식회사 | Control system and method for device in digital living network alliance network |
KR20070078115A (en) * | 2006-01-26 | 2007-07-31 | 엘지전자 주식회사 | Remote controlling method |
KR101532094B1 (en) * | 2009-02-26 | 2015-06-26 | 에스케이커뮤니케이션즈 주식회사 | System and Method for Managing Gateway Shell and Recording Medium |
-
2004
- 2004-07-07 KR KR1020040052663A patent/KR20060003679A/en not_active Application Discontinuation
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100694221B1 (en) | 2005-10-05 | 2007-03-14 | 삼성전자주식회사 | Control system and method for device in digital living network alliance network |
KR20070078115A (en) * | 2006-01-26 | 2007-07-31 | 엘지전자 주식회사 | Remote controlling method |
KR101532094B1 (en) * | 2009-02-26 | 2015-06-26 | 에스케이커뮤니케이션즈 주식회사 | System and Method for Managing Gateway Shell and Recording Medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100605177B1 (en) | Connection handling apparatus of home network management system | |
KR100559025B1 (en) | Home network management system | |
KR100424297B1 (en) | Home Appliance Controlling System and Operating Method for the Same | |
US7412727B2 (en) | Media streaming home network system and method for operating the same | |
CN101461194B (en) | A method and system for remotely accessing devices in a network | |
US20070223500A1 (en) | Home Network System | |
US20040240451A1 (en) | Connection handling, service management, and channel handling devices of home network management system | |
US20100005166A1 (en) | Network device | |
US8484323B2 (en) | Network system connected with multiple master devices and method for operating the same | |
KR101996896B1 (en) | Method for sharing resource using a virtual device driver and electronic device thereof | |
KR100357045B1 (en) | Development of Home Automation and Monitoring System based on HomePNA on the Internet | |
US9806899B2 (en) | Apparatus and method for controlling remote user interface servers using a multicast message in a home network | |
WO2005094193A2 (en) | Home network system | |
CN105812413A (en) | Communication method and device | |
KR20060003679A (en) | Control system and method for home network | |
US10511671B2 (en) | Communication device, communication method, controlled device, and non-transitory computer readable medium | |
CN106154852A (en) | Intelligent appliance equipment and control method thereof and intelligent appliance control system | |
CN111800335B (en) | IoT gateway communication method | |
JP5175474B2 (en) | Device control system | |
KR100412364B1 (en) | Home Appliance Network System | |
KR100556758B1 (en) | Message interface method for master handler based living network control procotol | |
KR100739138B1 (en) | Network system | |
KR100585676B1 (en) | Increasing method for physical interface in home network system | |
KR100652568B1 (en) | Control system and method for device according to type in network system | |
CN115280818A (en) | Apparatus and method for controlling access to an electrical device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E601 | Decision to refuse application |