KR100812929B1 - Method for construction of data packet and method for transmission and receipt of data - Google Patents
Method for construction of data packet and method for transmission and receipt of data Download PDFInfo
- Publication number
- KR100812929B1 KR100812929B1 KR1020060100839A KR20060100839A KR100812929B1 KR 100812929 B1 KR100812929 B1 KR 100812929B1 KR 1020060100839 A KR1020060100839 A KR 1020060100839A KR 20060100839 A KR20060100839 A KR 20060100839A KR 100812929 B1 KR100812929 B1 KR 100812929B1
- Authority
- KR
- South Korea
- Prior art keywords
- field
- argument
- data packet
- flag
- valid
- Prior art date
Links
Images
Classifications
-
- 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/08—Protocols for interworking; Protocol conversion
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Automation & Control Theory (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
도 1은 전송물리매체(transmission physical media)를 달리하는 홈네트워크 시스템을 도시한 예시도이다. 1 is an exemplary diagram illustrating a home network system that uses different transmission physical media.
도 2는 본 발명의 실시예에 따른 데이터 패킷의 구조를 도시한 블록도이다. 2 is a block diagram showing the structure of a data packet according to an embodiment of the present invention.
도 3은 도 2의 데이터 패킷의 구조를 구성하는 절차를 도시한 예시도이다. 3 is an exemplary diagram illustrating a procedure of configuring a structure of a data packet of FIG. 2.
도 4는 본 발명의 실시예에 따른 데이터 패킷을 이용한 데이터 송수신 방법을 도시한 예시도이다. 4 is an exemplary view showing a data transmission and reception method using a data packet according to an embodiment of the present invention.
도 5는 본 발명의 실시예에 따른 데이터 패킷을 이용한 데이터 송수신 방법을 도시한 흐름도이다. 5 is a flowchart illustrating a data transmission / reception method using a data packet according to an embodiment of the present invention.
< 도면의 주요 부분에 대한 부호의 설명 ><Description of Symbols for Main Parts of Drawings>
FLAG : 플래그FLAG: Flags
ARG : 인수(argument)ARG: argument
SC : 서비스 코드(service code)SC: service code
CC : 커맨드 코드(command code)CC: command code
본 발명은 데이터 패킷을 구성하는 방법 및 데이터 송수신 방법에 관한 것으로, 보다 상세하게는 제어명령의 가변값을 나타내는 인수(argument, ARG) 필드의 유효여부를 결정하는 플래그(FLAG) 필드를 이용하여 유효인 인수 필드만으로 인수 필드 영역을 구성하는 데이터 패킷을 구성하는 방법 및 데이터 패킷의 송수신 방법에 관한 것이다. The present invention relates to a method for constructing a data packet and a method for transmitting and receiving data, and more particularly, using a flag (FLAG) field for determining whether an argument (ARG) field indicating a variable value of a control command is valid. The present invention relates to a method for constructing a data packet constituting an argument field region with only the argument field and a method for transmitting and receiving data packets.
홈네트워크 시스템은 유무선 통신을 이용하여 가정 내에 설치되는 TV, 오디오, 비디오, 컴퓨터, 냉장고, 세탁기 등의 가전제품을 제어하고 기기간 컨텐츠를 공유할 수 있는 기술이다. 홈네트워크가 갖춰지면 사용자는 원거리에서도 통신망을 통하여 홈네트워크 시스템에 접속하여 가정 내 전자제품을 조절할 수 있게 된다. 또한 가전제품을 통해 가정 내ㅇ외부에서 인터넷 접속, 동영상 전송, e-메일 송ㅇ수신이 가능해져 진정한 사이버 홈 구축이 가능하게 되는 것이다. Home network system is a technology that can control the home appliances, such as TV, audio, video, computer, refrigerator, washing machine, etc. installed in the home and share the content between devices using wired and wireless communication. When the home network is equipped, the user can access the home network system through a communication network and control electronic appliances in the home even from a long distance. In addition, home appliances enable Internet access, video transmission, and e-mail transmission from inside and outside the home, enabling a true cyber home.
이러한 홈네트워크 시스템은 유무선 전송물리매체(transmission physical media)로 연결된다. 유선 전송물리매체로는 전화선을 이용하는 HomePNA(Home Phoneline Networking Alliance), RS-485, 전력선 배선을 이용하는 PLC(Power Line Communication), 이더넷(Ethernet) 등이 있으며, 무선 전송물리매체로는 무선랜(wireless LAN), 지그비(ZigBee), 블루투스(Bluetooth), HomeRF(Home Radio Frequency) 등이 있다. These home network systems are connected by wired and wireless transmission physical media. Wired transmission physical media include Home Phoneline Networking Alliance (HomePNA) using telephone lines, RS-485, PLC (Power Line Communication) using power line wiring, Ethernet (Ethernet), and wireless transmission physical media. LAN, ZigBee, Bluetooth, HomeRF (Home Radio Frequency).
이와 같이, 홈네트워크 시스템에서 댁내기기의 제어와 모니터링을 위한 제어 명령을 전송하는 전송물리매체는 다양하게 공존할 수 있다. 전송물리매체를 달리하게 되면 이에 해당하는 통신 프로토콜도 달라지게 되고, 해당 정보의 데이터 패킷(data packet)도 다른 프로토콜이 적용되어 전송된다. As such, in the home network system, a transmission physical medium for transmitting a control command for controlling and monitoring a home machine may coexist in various ways. If the transmission physical medium is different, the corresponding communication protocol is also different, and the data packet of the corresponding information is also transmitted by applying another protocol.
도 1은 전송물리매체(transmission physical media)를 달리하는 홈네트워크 시스템을 도시한 예시도이다. 1 is an exemplary diagram illustrating a home network system that uses different transmission physical media.
도 1을 참조하면, 홈네트워크 시스템의 댁내기기(30, 40)는 홈서버(20)를 통하여 연계되고, 홈서버(20)는 외부의 각종 서비스 서버(미도시)들과 통신망(10)으로 연결된다. Referring to FIG. 1, the
댁내기기#1(30)과 댁내기기#2(40)는 서로 다른 전송물리매체를 이용할 수 있고, 이에 따른 통신 프로토콜도 제 1통신 프로토콜(35)과 제 2통신 프로토콜(45)로 서로 다른 프로토콜이 적용된다. The
또한, 외부의 서비스 서버와 정보교환은 통신망(10)을 통하여 이루어지는데, 일반적으로 통신망(10)은 인터넷 표준 프로토콜(TCP/IP, Transmission Control Protocol/Internet Protocol; 15)을 적용한 데이터 패킷으로 홈서버(20)와 정보를 교환한다. In addition, the information exchange with the external service server is performed through the
따라서, 댁내기기#2(40)를 제어하기 위하여, 댁내기기#1(30)에서 제 1통신 프로토콜(35)로 전송한 데이터 패킷과 외부의 통신망(10)에서 인터넷 표준 프로토콜(15)로 전송한 데이터 패킷은 홈서버(20)에서 제 2통신 프로토콜(45)로의 프로토콜 변환 과정을 거쳐서 댁내기기#2(40)로 전송되어야 한다. 그리고 댁내기기#2(40)는 제어명령에 대한 응답 데이터 패킷을 제 2통신 프로토콜(45)로 전송하게 되고, 홈서버(20)는 다시 프로토콜 변환 처리를 해서 댁내기기#1(30)과 외부의 통신망(10)으로 전송하여야한다. Therefore, in order to control the
뿐만 아니라, 동일한 전송물리매체를 사용하는 기기 간에도 각각의 기기의 기능에 따라 제어명령의 데이터 패킷의 구조가 달라지기 때문에 홈서버(20)는 데이터 패킷을 적절한 형태로 변환해 주어야 한다.In addition, since the structure of the data packet of the control command varies between devices using the same transmission physical medium, the
이와 같이, 전송물리매체가 다양해지고 댁내기기(30, 40)의 수가 많아질수록 홈서버(20)는 데이터 패킷의 변환에 따른 부담이 늘어나게 된다. As described above, as the transmission physical mediums are diversified and the number of the
또한, 해당 댁내기기(30, 40)의 기능에 따른 일정 형식의 데이터 패킷의 구조는 댁내기기(30, 40)의 기능이 증가함에 따라 유연하게 대응하지 못하는 문제가 있다. In addition, the structure of the data packet of a certain format according to the function of the home machine (30, 40) has a problem that can not flexibly respond to the increase in the function of the home machine (30, 40).
본 발명이 이루고자 하는 목적은 데이터 패킷에 제어명령의 가변값을 나타내는 인수(argument, ARG) 필드의 유효여부를 결정하는 플래그(FLAG) 필드를 포함시켜, 데이터 패킷의 변환에 따른 홈서버의 부담을 줄이고 기기의 추가되는 기능에 유연하게 대응할 수 있는 데이터 패킷을 구성하는 방법 및 데이터 송수신 방법을 제공함에 있다. An object of the present invention is to include a flag (FLAG) field for determining whether an argument (ARG) field indicating a variable value of a control command is valid in a data packet, thereby reducing the burden on the home server in converting the data packet. The present invention provides a method for configuring a data packet and a method for transmitting and receiving data that can flexibly respond to additional functions of a device.
이러한 목적을 달성하기 위한 본 발명에 따른 홈네트워크 시스템에서 제어명 령을 전송하는 데이터 패킷의 구조는 상기 제어명령의 가변값을 나타내는 적어도 하나의 인수(argument, ARG) 필드 및 상기 인수 필드의 유효여부를 결정하는 플래그(FLAG) 필드를 포함한다. In the home network system according to the present invention for achieving the above object, the structure of a data packet for transmitting a control command includes at least one argument (ARG) field and a validity of the argument field indicating a variable value of the control command. It includes a flag (FLAG) field to determine the.
상기 인수 필드의 개수는 상기 플래그 필드의 비트(bit) 수에 대응한다. The number of argument fields corresponds to the number of bits in the flag field.
그리고, 상기 인수 필드의 배열순서는 상기 플래그 필드의 상기 비트의 배열순서에서 대응하며, 상기 비트의 값이 일(one)이면 대응하는 상기 인수 필드는 유효하고, 상기 비트의 값이 영(zero)이면 대응하는 상기 인수 필드는 무효이다. The order of the argument fields corresponds to the order of the bits of the flag field. If the value of the bit is one, the corresponding argument field is valid and the value of the bit is zero. Then the corresponding argument field is invalid.
상기 유효인 인수 필드만으로 인수필드 영역을 구성할 수 있다. The argument field area may be configured only with the valid argument field.
이러한 목적을 달성하기 위한 본 발명에 따른 홈네트워크 시스템의 제 1기기에서 제 2기기로의 데이터 송수신 방법은 상기 제 1기기에서 플래그(FLAG) 필드를 설정하여 유효한 인수(argument, ARG) 필드만을 상기 데이터 패킷에 포함시켜 송신하는 단계 및 상기 제 2기기에서 상기 데이터 패킷을 수신하여 상기 플래그 필드의 설정을 확인하여 유효한 인수 필드를 인식하는 단계를 포함한다. In order to achieve the above object, a method of transmitting / receiving data from a first device to a second device of a home network system according to the present invention sets a flag (FLAG) field in the first device so that only the valid argument (ARRG) field is recalled. Including the data packet and transmitting the data packet; and receiving the data packet at the second device and confirming the setting of the flag field to recognize a valid argument field.
상기 인수 필드는 상기 제 1기기, 상기 제 2기기 중 어느 하나의 세부 작동상태를 나타낼 수 있다. The argument field may indicate a detailed operation state of any one of the first device and the second device.
이하, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명을 용이하게 실시할 수 있을 정도로 상세히 설명하기 위하여, 이 발명의 바람직한 실시예를 첨부된 도면을 참조로 설명하기로 한다.DETAILED DESCRIPTION Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings so that those skilled in the art can easily carry out the present invention.
도 2는 본 발명의 실시예에 따른 데이터 패킷의 구조를 도시한 블록도이다. 2 is a block diagram showing the structure of a data packet according to an embodiment of the present invention.
도 2를 참조하면, 데이터 패킷은 본문 시작 문자(start of text character, STX) 필드, 수신 어드레스(destination address, DA) 필드, 송신 어드레스(source address, SA) 필드, 길이(length, LEN) 필드, 플래그(FLAG) 필드, 서비스 코드(service code, SC) 필드, 커맨드 코드(command code, CC) 필드, 인수(argument, ARG) 필드, 주기적 덧붙임 검사(cyclic redundancy check, CRC) 필드 및 문서 끝 문자(end of text character, ETX) 필드를 포함한다. Referring to FIG. 2, a data packet includes a start of text character (STX) field, a destination address (DA) field, a source address (SA) field, a length (LEN) field, FLAG field, service code (SC) field, command code (CC) field, argument (ARG) field, cyclic redundancy check (CRC) field and end-of-document character ( end of text character (ETX) field.
STX 필드는 패킷의 표제 부분과 실제 메시지 사이에서 실제 메시지가 시작됨을 알리고, ETX는 실제 메시지가 종료됨을 알린다. DA 필드는 패킷의 수신처를 나타내고, SA 필드는 패킷의 송신처를 나타낸다. LEN 필드는 패킷의 길이 정보를 나타내고, CRC 필드는 데이터 전송 과정에서 발생하는 오류를 검출하기 위한 필드이다. SC 필드는 프로그램을 지원하는 루틴 또는 계층을 나타내고, CC 필드는 제어신호를 나타내는 것으로, SC 필드와 CC 필드가 함께 실제 제어명령을 나타내는 공통 코드가 된다. ARG 필드는 필요에 따라 가변값이 부여되어 제어명령의 가변적인 요소를 나타내는 필드로 FLAG 필드에 의해 유효여부가 결정된다. The STX field indicates that the actual message begins between the header part of the packet and the actual message, and the ETX indicates that the actual message ends. The DA field indicates the destination of the packet, and the SA field indicates the destination of the packet. The LEN field represents length information of a packet, and the CRC field is a field for detecting an error occurring in a data transmission process. The SC field represents a routine or hierarchy supporting a program, the CC field represents a control signal, and the SC field and the CC field together become a common code representing an actual control command. The ARG field is a field indicating a variable element of a control command with a variable value assigned as necessary, and the validity is determined by the FLAG field.
여기서, 인수(ARG) 필드는 복수로 구성될 수 있고, 인수 필드의 개수는 플래그(FLAG) 필드의 비트(bit) 수에 대응하여 결정된다. 즉, 플래그 필드가 n비트일 경우 데이터 패킷은 n개의 인수 필드를 가질 수 있다. 예를 들어, 플래그 필드가 8비트일 경우 8개의 인수 필드가 데이터 패킷에 포함될 수 있다. Here, the argument (ARG) field may be configured in plural, and the number of argument fields is determined corresponding to the number of bits of the flag FLAG field. That is, when the flag field is n bits, the data packet may have n argument fields. For example, when the flag field is 8 bits, eight argument fields may be included in the data packet.
그리고, 인수 필드의 배열순서는 플래그 필드의 비트의 배열순서에 대응한다. 즉, 플래그 필드의 비트의 값이 영(zero) 또는 일(one)로 배열되는 순서와 인수 필드가 데이터 패킷에서 배열되는 순서는 동일하다. 예를 들어, 플래그 필드의 비트가 3비트로 비트의 값이 '010'이라고 하면, 첫 번째 '0'은 첫 번째 인수 필드ARG(1)에 대응되고, 두 번째 '1'은 두 번째 인수 필드 ARG(2)에 대응되며, 세 번째 '0'은 세 번째 인수 필드 ARG(3)에 대응된다. The order of arranging the argument fields corresponds to the order of bits in the flag fields. That is, the order in which the bits of the flag field are arranged in zero or one and the order in which the argument fields are arranged in the data packet are the same. For example, if a bit in the flag field is 3 bits and the value of the bit is '010', the first '0' corresponds to the first argument field ARG (1), and the second '1' corresponds to the second argument field ARG. Corresponds to (2), and the third '0' corresponds to the third argument field ARG (3).
여기서, 대응되는 비트의 값이 일(one)이면 대응하는 인수 필드는 유효하고, 대응되는 비트의 값이 영(zero)이면 대응하는 인수 필드는 무효가 된다. 즉, 비트의 값이 일(one)에 대응되는 인수 필드는 제어명령의 가변적 요소로 포함되고, 비트의 값이 영(zero)에 대응되는 인수 필드는 제어명령의 가변적 요소로 포함되지 않게 된다. 유효인 인수 필드만을 데이터 패킷 구조에서 포함시킬 수 있는데, 도 3에서 상세히 설명한다. Here, if the value of the corresponding bit is one, the corresponding argument field is valid. If the value of the corresponding bit is zero, the corresponding argument field is invalid. That is, the argument field in which the value of the bit corresponds to one is included as a variable element of the control command, and the argument field in which the value of the bit corresponds to zero is not included as the variable element of the control command. Only valid argument fields may be included in the data packet structure, which will be described in detail with reference to FIG. 3.
이와 같이, 제어명령의 가변적 요소를 나타내는 인수 필드의 개수, 배열순서 및 유무효 여부는 플래그 필드에 대응되기 때문에, 플래그 필드의 설정 상태를 확인하면 인수 필드의 특정을 파악할 수 있다. As described above, since the number, arrangement order, and invalidity of the argument fields representing the variable elements of the control instruction correspond to the flag fields, the identification of the argument fields can be grasped by checking the setting state of the flag fields.
한편, 기기의 제어 및 모니터를 위한 제어명령의 인수 필드는 통상 1바이트(byte)의 크기를 넘지 않으나, 2바이트 또는 문자열(string)로 구성될 수 있다. 따라서, 1바이트의 인수 필드만을 포함하는 데이터 패킷을 구성할 수 있고, 2바이트의 인수 필드만을 포함하는 데이터 패킷을 구성할 수도 있다. 인수 필드의 크기를 달리할 때는 커맨드 코드(command code, CC)를 달리 하여 데이터 패킷을 구성함으로써 특정할 수 있다. On the other hand, the argument field of the control command for controlling and monitoring the device does not exceed the size of 1 byte, but may be composed of 2 bytes or a string. Therefore, a data packet including only one byte argument field may be configured, and a data packet including only two byte argument fields may be configured. When the size of the argument field is different, it can be specified by constructing a data packet with different command codes (CC).
이하, 플래그 필드의 설정에 따라 인수 필드에 변화를 주어 데이터 패킷의 구조를 구성하는 절차에 대하여 서술한다. Hereinafter, a procedure for configuring the structure of the data packet by changing the argument field according to the setting of the flag field will be described.
도 3은 도 2의 데이터 패킷의 구조를 구성하는 절차를 도시한 예시도이다. 3 is an exemplary diagram illustrating a procedure of configuring a structure of a data packet of FIG. 2.
도 3을 참조하면, 데이터 패킷의 플래그 필드의 설정 상태로 인수 필드의 개수, 배열순서, 유무효 여부를 파악할 수 있다. Referring to FIG. 3, it is possible to determine the number of argument fields, the arrangement order, and whether the flag field of the data packet is set.
데이터 패킷의 플래그 필드가 1바이트, 즉 8비트이면, 인수 필드는 ARG(1)에서 ARG(8)까지, 8개의 인수 필드가 데이터 패킷에 포함될 수 있다(A). If the flag field of the data packet is one byte, that is, 8 bits, eight argument fields may be included in the data packet, from ARG (1) to ARG (8).
플래그 필드의 비트가 8비트로 비트 값이 '01001100'일 때, 비트 값의 배열순서와 인수 필드의 배열순서는 동일하게 대응되어, 인수 필드 ARG(2), ARG(5) 및 ARG(6)만이 유효가 되고, 나머지 인수 필드는 무효가 된다(B). When the bit of the flag field is 8 bits and the bit value is '01001100', the arrangement order of the bit values and the arrangement order of the argument fields correspond identically, so that only the argument fields ARG (2), ARG (5) and ARG (6) It becomes valid and the remaining argument fields become invalid (B).
이때, 데이터 패킷에서 무효인 인수 필드를 제외하고 패킷을 구성할 수 있다. 즉, 플래그 필드의 설정에 따라 데이터 패킷에는 최대 8개의 인수 필드가 포함될 수 있으나, 무효인 인수 필드를 제외하고 유효인 인수 필드 ARG(2), ARG(5), ARG(6)만을 인수 필드 영역에 포함시킴으로써, 데이터 패킷의 구성을 필요한 요소만을 포함하도록 간략화할 수 있다(C). In this case, the packet may be configured to exclude an invalid argument field from the data packet. That is, depending on the setting of the flag field, the data packet may include up to eight argument fields, but only valid argument fields ARG (2), ARG (5), and ARG (6) are valid except the invalid argument fields. By including in the above, the configuration of the data packet can be simplified to include only necessary elements (C).
이와 같이, 플래그 필드의 설정에 따라 유효인 인수 필드만을 데이터 패킷에 포함시키면, 플래그 필드는 인수 필드의 전체 길이를 나타내는 길이(length) 필드로서 사용되게 된다. 그리고, 인수 필드의 설정을 조정함으로써, 데이터 패킷의 제어명령의 구성을 다양화할 수 있고, 추가되는 기기의 기능에 대한 제어명령의 확장에도 인수 필드를 추가하여 대처할 수 있다. In this way, if only the valid argument field is included in the data packet according to the setting of the flag field, the flag field is used as a length field indicating the total length of the argument field. By adjusting the setting of the argument field, the configuration of the control command of the data packet can be diversified, and the argument field can be added to cope with the expansion of the control command for the function of the device to be added.
한편, 데이터 패킷을 생성하여 전송하는 기기에서는 필요한 인수 필드만을 포함시키고 플래그 필드를 설정하여 전송할 수 있다. 데이터 패킷을 수신하여 응답 데이터 패킷을 생성하여 전송하는 기기에서도 수신한 데이터 패킷의 플래그 필드의 설정을 확인하여 필요한 인수 필드만을 포함시켜 데이터 패킷을 생성할 수 있다. 따라서, 모든 제어명령의 인수 필드를 포함한 데이터 패킷의 전송에 비하여 전송물리매체의 부담을 줄일 수 있다. Meanwhile, the device for generating and transmitting the data packet may include only necessary argument fields and set and transmit a flag field. A device that receives the data packet and generates and transmits the response data packet may also check the setting of the flag field of the received data packet to generate the data packet by including only necessary argument fields. Therefore, the burden on the transmission physical medium can be reduced as compared with the transmission of the data packet including the argument field of all control commands.
그리고, 모든 제어명령의 인수 필드를 포함한 데이터 패킷의 경우에는 해당 기기의 기능에 따라 데이터 패킷의 구성을 변환하여야 하지만, 필요한 인수 필드만을 포함한 데이터 패킷의 경우에는 단일 프로토콜이 적용되는 기기 사이에서 데이터 패킷을 변환할 필요 없이 전송할 수 있게 된다. 따라서, 홈서버는 단일 프로토콜의 기기 사이에서 데이터 패킷을 변환하지 않고 그대로 전달해 줄 수 있어서, 홈서버의 데이터 변환에 대한 부담을 줄이게 된다. In the case of the data packet including the argument field of all control commands, the configuration of the data packet should be converted according to the function of the corresponding device. However, in the case of the data packet including only the required argument field, the data packet between devices to which a single protocol is applied You can send it without having to convert it. Therefore, the home server can transfer the data packet as it is between the devices of a single protocol without conversion, thereby reducing the burden on the data conversion of the home server.
이하, 홈네트워크 시스템에서 데이터 패킷을 송수신하여 댁내기기를 제어하고 모니터링하는 방법에 대하여 서술한다. Hereinafter, a method of controlling and monitoring a home machine by transmitting and receiving data packets in a home network system will be described.
도 4는 본 발명의 실시예에 따른 데이터 패킷을 이용한 데이터 송수신 방법을 도시한 예시도이다. 도 5는 본 발명의 실시예에 따른 데이터 패킷을 이용한 데이터 송수신 방법을 도시한 흐름도이다. 4 is an exemplary view showing a data transmission and reception method using a data packet according to an embodiment of the present invention. 5 is a flowchart illustrating a data transmission / reception method using a data packet according to an embodiment of the present invention.
도 4 및 도 5를 참조하면, 기기 a(110)는 홈서버(100)를 통하여 기기 b(120)로 데이터 패킷 X를 전송하고, 기기 b(120)는 응답 데이터 패킷 Y를 홈서버(100)를 통하여 기기 a(110)로 전송한다. 4 and 5, the device a 110 transmits the data packet X to the
여기서, 기기 a(110)는 댁내의 인터페이스 장치, 컴퓨터 등으로 기기 b(120)를 제어할 수 있는 장치일 수 있고, 또한 외부의 통신망을 통하여 기기 b(120)를 제어할 수 있는 휴대 단말기, 서비스 서버 등이 될 수 있다. 따라서, 기기 a(110)와 기기 b(120)와의 전송물리매체는 동일한 프로토콜이 적용될 수도 있고 다른 프로토콜이 적용될 수도 있다. Here, the device a (110) may be a device capable of controlling the device b (120) using an interface device, a computer, etc. in the home, and also a portable terminal capable of controlling the device (b 120) through an external communication network; Service server or the like. Thus, the same protocol may be applied to the transmission physical medium between the device a 110 and the
기기 a(110)는 기기 b(120)를 제어하고 모니터링하기 위하여 데이터 패킷 X를 생성한다. 데이터 패킷 X는 기기 b(120)의 기능 중 제어 또는 모니터링할 기능에 대해서만 플래그 필드에서 해당 인수 필드가 유효하도록 설정하고, 유효한 인수 필드만을 데이터 패킷에 포함시킨다. 이때, 인수 필드는 기기 b(120)의 세부 작동상태를 나타내는 것으로, 기기 b(120)가 가지고 있는 각 기능의 작동에 대하여 부여되는 가변값이나 제어 매뉴얼에 따라 미리 설정한 지정값이 될 수 있다. Device a 110 generates a data packet X to control and monitor
예를 들어, 기기 b(120)가 에어컨으로서 온도, 풍량, 메인 풍향, 우측 풍향, 좌측 풍향, 타이머, 건습모드 등의 기능을 가지고 있을 때, 에어콘의 온도와 우측 풍향만을 제어하는 데이터 패킷의 플래그 필드는 '10010000'로 설정된다. 플래그 필드에 따라 온도와 우측 풍향에 해당하는 인수 필드 ARG(1)과 ARG(4)만이 데이터 패킷에 포함된다. For example, when the
생성된 데이터 패킷 X는 홈서버(100)를 통하여 기기 b(120)로 전송되는데, 기기 a(110)와 홈서버(100), 기기 b(120)와 홈서버(100)가 동일한 프로토콜을 사용할 경우, 홈서버(100)는 데이터 패킷 X를 변환하지 않고 바로 기기 a(110)에서 기기 b(120)로 송신할 수 있다(S10). The generated data packet X is transmitted to the
기기 b(120)는 홈서버(100)로부터 데이터 패킷 X를 수신한다. 기기 b(120)는 수신한 데이터 패킷 X의 플래그 필드의 설정을 확인하여 데이터 패킷 X의 플래그 필드의 설정에 따라 유효한 인수 필드를 인식할 수 있다(S20).The
기기 b(120)는 유효한 인수 필드를 인식하여 해당하는 제어명령에 따라 기기 b(120)의 각 기능을 제어한다. The
기기 b(120)가 기기 a(110)로 응답 데이터 패킷 Y를 전송하는 경우에는, 수신한 데이터 패킷 X의 플래그 필드의 설정에 따라 응답 데이터 패킷 Y의 플래그 필드를 설정한다. 응답 데이터 패킷 Y의 플래그 필드의 설정에 따라 유효한 인수 필드만을 포함시켜 응답 데이터 패킷 Y를 구성하다.When the
예를 들어, 에어컨이 수신한 데이터 패킷 X의 플래그 필드의 설정과 같이 응답 데이터 패킷 Y의 플래그 필드는 '10010000'으로 설정된다. 에어컨은 제어명령에 따라 온도와 우측 풍향을 조절하고, 그 결과인 온도와 우측 풍향에 해당하는 인수 필드 ARG(1)과 ARG(4)만을 포함시켜 응답 데이터 패킷 Y를 구성한다. For example, as in the flag field of the data packet X received by the air conditioner, the flag field of the response data packet Y is set to '10010000'. The air conditioner adjusts the temperature and the right wind direction according to the control command, and configures the response data packet Y by including only the argument fields ARG (1) and ARG (4) corresponding to the resultant temperature and the right wind direction.
기기 b(120)는 구성한 응답 데이터 패킷 Y를 홈서버(100)를 통하여 기기 a(110)로 전송한다. 기기 a(110)는 응답 데이터 패킷 Y를 수신하여 기기 b(120)의 작동 상태를 확인할 수 있게 된다. The
이상, 본 발명의 바람직한 실시예에 대해 상세히 기술하였지만, 본 발명이 속하는 기술분야에 있어서 통상의 지식을 가진 사람이라면, 첨부된 청구 범위에 정의된 본 발명의 정신 및 범위를 벗어나지 않으면서 본 발명을 여러 가지로 변형 또는, 변경하여 실시할 수 있음을 알 수 있을 것이다. 따라서, 본 발명의 앞으로의 실시예들의 변경은 본 발명의 기술을 벗어날 수 없을 것이다.As mentioned above, preferred embodiments of the present invention have been described in detail, but those skilled in the art to which the present invention pertains should understand the present invention without departing from the spirit and scope of the present invention as defined in the appended claims. It will be appreciated that various modifications or changes can be made. Accordingly, modifications to future embodiments of the present invention will not depart from the technology of the present invention.
데이터 패킷에 제어명령의 가변값을 나타내는 인수(argument, ARG) 필드의 유효여부를 결정하는 플래그(FLAG) 필드에 따라 유효한 인수 필드만을 데이터 패킷에 포함시킴으로서, 데이터 패킷의 변환에 따른 홈서버의 부담을 줄일 수 있다. 또한, 플래그 필드의 설정을 변경함으로써, 기기에 추가되는 기능에 대한 제어명령에 유연하게 대응할 수 있다. 더 나아가, 기기의 제어명령에 대한 데이터 패킷의 프로토콜을 단일한 형태로 구성할 수 있는 기반 기술이 될 수 있다. In the data packet, only the valid argument fields are included in the data packet according to the flag (FLAG) field that determines whether the argument (ARG) field indicating the variable value of the control command is valid. Can be reduced. In addition, by changing the setting of the flag field, it is possible to flexibly respond to control commands for functions added to the device. Furthermore, it can be a base technology that can configure the protocol of the data packet for the control command of the device in a single form.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020060100839A KR100812929B1 (en) | 2006-10-17 | 2006-10-17 | Method for construction of data packet and method for transmission and receipt of data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020060100839A KR100812929B1 (en) | 2006-10-17 | 2006-10-17 | Method for construction of data packet and method for transmission and receipt of data |
Publications (1)
Publication Number | Publication Date |
---|---|
KR100812929B1 true KR100812929B1 (en) | 2008-03-11 |
Family
ID=39398628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020060100839A KR100812929B1 (en) | 2006-10-17 | 2006-10-17 | Method for construction of data packet and method for transmission and receipt of data |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100812929B1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040104340A (en) * | 2003-05-30 | 2004-12-10 | 엘지전자 주식회사 | Home network system |
KR20050081988A (en) * | 2004-02-17 | 2005-08-22 | 에스케이 텔레콤주식회사 | Method for transmission of additional information in wireless data service |
-
2006
- 2006-10-17 KR KR1020060100839A patent/KR100812929B1/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040104340A (en) * | 2003-05-30 | 2004-12-10 | 엘지전자 주식회사 | Home network system |
KR20050081988A (en) * | 2004-02-17 | 2005-08-22 | 에스케이 텔레콤주식회사 | Method for transmission of additional information in wireless data service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10805200B2 (en) | Efficient communication for devices of a home network | |
KR100605209B1 (en) | Converting apparatus for network | |
US9553843B1 (en) | Service directory profile for a fabric network | |
US7142128B2 (en) | Portable information device, access device for portable information device, home network system, and home network access method | |
KR20040104328A (en) | Home network system | |
KR101846965B1 (en) | Air conditioner and communication method of the same | |
JP4513506B2 (en) | Device management system and gateway device | |
KR100812929B1 (en) | Method for construction of data packet and method for transmission and receipt of data | |
KR101620519B1 (en) | Wireless connectivity for sensors | |
KR100681654B1 (en) | A WIRELESS HOME NETWORK SYSTEM USING A ZigBee MODULE AND METHOD FOR OPERATING THE SAME | |
JP4671056B2 (en) | Programmable controller and communication unit | |
KR100712922B1 (en) | Home Network Unification System | |
JP4383889B2 (en) | Equipment information communication system | |
KR20060003679A (en) | Control system and method for home network | |
KR100638027B1 (en) | Home code establishing method for electric device | |
CN101164294A (en) | Network control protocol device and net connecting method thereof | |
KR20060118148A (en) | Home network system using the rs-485 and method for operating the same | |
KR20070066227A (en) | Method for event communication in home network | |
WO2005004398A1 (en) | Mobile agent module for mobile home network system | |
KR20060099788A (en) | Home server using access point | |
KR20070104756A (en) | Home network system and zigbee packet structure |
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: 20110302 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |