KR20060094430A - Method for controlling data receive and transmit in data link layer - Google Patents

Method for controlling data receive and transmit in data link layer Download PDF

Info

Publication number
KR20060094430A
KR20060094430A KR1020050015579A KR20050015579A KR20060094430A KR 20060094430 A KR20060094430 A KR 20060094430A KR 1020050015579 A KR1020050015579 A KR 1020050015579A KR 20050015579 A KR20050015579 A KR 20050015579A KR 20060094430 A KR20060094430 A KR 20060094430A
Authority
KR
South Korea
Prior art keywords
data
network
layer
transmission
link layer
Prior art date
Application number
KR1020050015579A
Other languages
Korean (ko)
Other versions
KR101062219B1 (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 KR1020050015579A priority Critical patent/KR101062219B1/en
Publication of KR20060094430A publication Critical patent/KR20060094430A/en
Application granted granted Critical
Publication of KR101062219B1 publication Critical patent/KR101062219B1/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/2816Controlling appliance services of a home automation network by calling their functionalities
    • 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/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • 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
    • H04L2012/2847Home automation networks characterised by the type of home appliance used
    • H04L2012/285Generic home appliances, e.g. refrigerators

Abstract

본 발명은, 데이터 링크 계층에서의 데이터 송수신 제어방법에 관한 것으로, 예를 들어 집안 또는 집밖에 위치하고 있는 사용자가, 가정 내에 설치된 RS-485 네트워크, 소출력 RF 네트워크, 그리고 전력선(Power Line) 네트워크 등과 같은 리빙 네트워크(Living Network)를 통해, 냉장고 또는 세탁기와 같은 다양한 가전기기들을 동작 제어하거나, 또는 동작 상태를 모니터링할 수 있도록 함으로써, 사용자에게 원격 제어 및 감시의 편리성을 제공할 수 있게 되며, 또한 리빙 네트워크의 데이터 링크 계층에서, 물리 계층과 네트워크 계층간의 데이터 송수신 동작을 수행하는 경우, 전송 매체의 사용 여부를 확인하여, 데이터 패킷을 한 바이트씩 송수신함으로써, 리빙 네트워크의 계층간 데이터 송수신 동작을 보다 효율적으로 수행할 수 있게 되는 매우 유용한 발명인 것이다. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for controlling data transmission and reception in a data link layer. For example, a user who is located inside or outside the home may have an RS-485 network, a small output RF network, a power line network, Through the Living Network, various home appliances such as a refrigerator or a washing machine can be controlled to operate or monitor the operating state, thereby providing a user with the convenience of remote control and monitoring. In the data link layer of a network, when performing a data transmission / reception operation between a physical layer and a network layer, by checking whether a transmission medium is used and transmitting / receiving data packets by byte, a data transmission / reception operation between layers of a living network is more efficient. Very useful inventor that can be performed with will be.

리빙 네트워크 컨트롤 시스템, LnCP 네트워크, LnCP 계층 구조, 프리미티브, 데이터 링크 계층, 데이터 패킷, 전송 매체 Living network control system, LnCP network, LnCP hierarchy, primitives, data link layer, data packet, transmission medium

Description

데이터 링크 계층에서의 데이터 송수신 제어방법 {Method for controlling data receive and transmit in data link layer} Method for controlling data transmission and reception in data link layer {Method for controlling data receive and transmit in data link layer}

도 1은 본 발명에 따른 리빙 네트워크 컨트롤 시스템에 대한 구성을 도시한 것이고, 1 illustrates a configuration of a living network control system according to the present invention,

도 2 및 도 3은 본 발명에 적용되는 마스터-슬레이브 기반 통신 구조를 도시한 것이고,2 and 3 illustrate a master-slave based communication structure applied to the present invention,

도 4는 본 발명에 적용되는 LnCP 네트워크의 계층 구조를 도시한 것이고,4 illustrates a hierarchical structure of an LnCP network applied to the present invention;

도 5 내지 도 7은 본 발명에 적용되는 통신 싸이클 서비스에 대한 실시예들을 도시한 것이고, 5 to 7 illustrate embodiments of a communication cycle service applied to the present invention.

도 8은 본 발명에 따른 LnCP 프로토콜의 계층 구조를 도시한 것이고,8 illustrates a hierarchical structure of the LnCP protocol according to the present invention,

도 9는 본 발명에 따른 네트워크 관리 부속 계층과 매개 변수 관리 계층간의 인터페이스를 위한 프리미티브에 대한 실시예를 도시한 것이고, 9 illustrates an embodiment of a primitive for an interface between a network management sublayer and a parameter management layer in accordance with the present invention;

도 10은 본 발명에 따른 계층간 인터페이스 구조에 대한 실시예를 도시한 것이고, 10 illustrates an embodiment of an inter-layer interface structure according to the present invention,

도 11은 본 발명에 따른 범용 비동기 송수신(URAT) 프레임 구조에 대한 실시예를 도시한 것이고,FIG. 11 illustrates an embodiment of a universal asynchronous transmit / receive (URAT) frame structure according to the present invention.

도 12는 본 발명에 따른 물리 계층과 데이터 링크 계층간의 인터페이스를 위한 프리미티브에 대한 실시예를 도시한 것이고, 12 illustrates an embodiment of a primitive for an interface between a physical layer and a data link layer according to the present invention;

도 13은 본 발명에 따른 데이터 링크 계층과 네트워크 계층간의 인터페이스를 위한 프리미티브에 대한 실시예를 도시한 것이고, FIG. 13 illustrates an embodiment of a primitive for an interface between a data link layer and a network layer according to the present invention;

도 14는 본 발명에 따른 데이터 링크 계층 프레임 구조에 대한 실시예를 도시한 것이고, 14 illustrates an embodiment of a data link layer frame structure according to the present invention;

도 15는 본 발명에 따른 데이터 링크 계층에서의 데이터 수신방법에 대한 실시예를 도시한 것이고,15 illustrates an embodiment of a data receiving method in a data link layer according to the present invention;

도 16은 본 발명에 따른 데이터 링크 계층에서의 데이터 송신 제어방법에 대한 실시예를 도시한 것이고, 16 illustrates an embodiment of a data transmission control method in a data link layer according to the present invention;

도 17은 본 발명에 따른 p-DCSMA 알고리즘에 대한 실시예를 도시한 것이고,17 shows an embodiment of a p-DCSMA algorithm according to the present invention,

도 18은 본 발명에 따른 전송 우선 순위에 대한 실시예를 도시한 것이다. 18 illustrates an embodiment of a transmission priority according to the present invention.

※ 도면의 주요부분에 대한 부호의 설명※ Explanation of code for main part of drawing

100 : LnCP 인터넷 서버 200 : 통신 단말기100: LnCP Internet server 200: communication terminal

300 : 인터넷 400 : 리빙 네트워크 컨트롤 시스템300: Internet 400: Living Network Control System

40 : 홈 게이트웨이 41 : 네트워크 매니저40: home gateway 41: network manager

42 : LnCP 라우터 43 : LnCP 어댑터42: LnCP Router 43: LnCP Adapter

44 : 가전기기44: home appliances

본 발명은, 데이터 링크 계층에서의 데이터 송수신 제어방법에 관한 것으로, 예를 들어 집안 또는 집밖에 위치하고 있는 사용자가, 리빙 네트워크(Living Network)에 연결 접속된 냉장고 또는 세탁기 등과 같은 가전기기들을 효율적으로 컨트롤할 수 있도록 하기 위한 리빙 네트워크 컨트롤 시스템에 포함되는 데이터 링크 계층에서의 데이터 송수신 제어방법에 관한 것이다. The present invention relates to a method for controlling data transmission and reception in a data link layer. For example, a user located inside or outside a home efficiently controls home appliances such as a refrigerator or a washing machine connected to a living network. The present invention relates to a data transmission / reception control method in a data link layer included in a living network control system.

일반적으로 홈 네트워크(Home Network)란, 사용자가 집안 또는 집밖에서 언제든지 편리하고 안전하게 경제적인 생활 서비스를 즐길 수 있도록 다양한 디지털 가전기기들이 서로 연결된 네트워크를 의미하는 것으로, 디지털 신호 처리 기술의 발전으로 인해 냉장고 또는 세탁기 등과 같은 다양한 유형의 가전기기들이 점차 디지털 화되고 있다. In general, a home network refers to a network in which various digital home appliances are connected to each other so that a user can conveniently and economically enjoy life services at home or outside the home. Or various types of home appliances such as washing machines are increasingly digital.

한편, 최근에는 가전기기 용 운영체제(Operation System) 기술과 고속 멀티 미디어(Multi-Media) 통신 기술 등이 디지털 가전기기에 접목됨과 아울러, 새로운 형태의 정보 가전기기들이 등장함에 따라 홈 네트워크가 더욱 발전하고 있다.On the other hand, home networks have been developed in recent years as operating system technology for home appliances and high-speed multi-media communication technologies have been applied to digital home appliances, and new types of information home appliances have emerged. have.

또한, 개인용 컴퓨터(PC)와 주변 기기들간에 파일 교환이나 인터넷 서비스를 제공하기 위하여 구축되는 네트워크와, 오디오(Audio)나 비디오(Video) 정보를 다루는 가전기기들간의 네트워크, 그리고 냉장고 또는 세탁기 등과 같은 다양한 가전 기기와 홈 오토메이션(Home Automation), 원격 검침 등과 같은 가전기기들의 제어를 위하여 구축되는 네트워크 등을 포괄적인 의미에서 리빙 네트워크(Living Network)라고 한다. In addition, a network constructed to provide file exchange or Internet service between a personal computer (PC) and peripheral devices, a network between home appliances that handle audio or video information, and a refrigerator or a washing machine. Living networks are generally referred to as networks that are built to control various home appliances and home appliances such as home automation and remote meter reading.

그리고, 상기 리빙 네트워크에 포함되는 가전기기, 예를 들어 냉장고 또는 세탁기 등과 같은 다양한 가전기기의 원격 제어(Remote Control) 또는 동작 상태의 모니터링(Monitoring) 등을 위한 소규모의 데이터 전송을 주요 통신 목적으로 하는 리빙 네트워크 서비스에서는, 최소한의 통신 자원을 이용함과 아울러, 리빙 네트워크 내에 포함되는 네트워크 매니저(Network Manager)를 중심으로 하여, 각각 연결 접속된 가전기기들을 직접 컨트롤해야만 하는 데, 이에 대한 효율적인 해결 방안이 아직 마련되어 있지 않아, 그 해결 방안 마련이 시급히 요구되고 있는 실정이다, In addition, the main communication purpose of the small-scale data transmission for the remote control or monitoring of the operation state of various home appliances, such as refrigerators or washing machines, etc. included in the living network In the living network service, the minimum communication resources are used, and the network managers included in the living network must be directly controlled to control the connected home appliances. As it is not prepared, the solution solution is urgently required,

따라서, 본 발명은 상기와 같은 실정을 감안하여 창작된 것으로서, 예를 들어 집안 또는 집밖에 위치하고 있는 사용자가, 리빙 네트워크(Living Network)에 연결 접속된 냉장고 또는 세탁기 등과 같은 다양한 가전기기들을, 최소한의 통신 자원만을 이용하여, 효율적으로 컨트롤할 수 있도록 함과 아울러, 리빙 네트워크의 데이터 링크 계층에서, 물리 계층과 네트워크 계층간의 데이터 송수신 동작을 보다 효율적으로 수행할 수 있도록 하기 위한 데이터 링크 계층에서의 데이터 송수신 제어방법을 제공하는 데, 그 목적이 있는 것이다. Accordingly, the present invention has been made in view of the above situation, and for example, a user who is located inside or outside the home may use various household appliances such as a refrigerator or a washing machine connected to a living network, or the like. Data transmission and reception at the data link layer to efficiently control data transmission and reception between the physical layer and the network layer at the data link layer of the living network as well as to efficiently control using only communication resources. To provide a control method, the object is to.

상기와 같은 목적을 달성하기 위한 본 발명에 따른 데이터 링크 계층에서의 데이터 수신 제어방법은, 리빙 네트워크의 물리 계층으로부터 전송되는 데이터를, 데이터 링크 계층에서 한 바이트 씩 수신하여 임시 저장하는 1단계; 상기 한 바이트가 수신된 시점부터 소정 시간 동안 추가적인 바이트가 수신되지 않으면, 데이터 수신 완료로 판단하여, 데이터 링크 계층을 데이터 수신 불가능 상태로 제어하는 2단계; 및 상기 임시 저장된 데이터를, 소정 데이터 포맷으로 구성하여, 네트워크 계층으로 전송한 후, 상기 데이터 링크 계층을 데이터 수신 가능 상태로 제어하는 3단계를 포함하여 이루어지는 것을 특징으로 하며,According to an aspect of the present invention, there is provided a method of controlling data reception in a data link layer, the method comprising: receiving data transmitted from a physical layer of a living network one by one at a data link layer and temporarily storing the data; If an additional byte is not received for a predetermined time from when the one byte is received, determining that data has been received and controlling the data link layer to be in a data-receivable state; And configuring the temporarily stored data in a predetermined data format, transmitting the temporary stored data to a network layer, and then controlling the data link layer to a data reception state.

또한, 본 발명에 따른 데이터 링크 계층에서의 데이터 송신 제어방법은, 리빙 네트워크의 디바이스에서, 데이터를 전송하고자 하는 경우, 전송 매체의 사용 여부를 확인하는 1단계; 상기 전송 매체가 소정 시간 동안 사용 중이지 않으면, 데이터 링크 계층을 데이터 수신 가능 상태로 변경하고 나서, 한 바이트를 송신한 후 송신 성공 여부를 확인하는 2단계; 및 상기 송신 성공이 확인되면, 그에 상응하는 값을 네트워크 계층으로 전달하는 3단계를 포함하여 이루어지는 것을 특징으로 한다. In addition, the data transmission control method in the data link layer according to the present invention, in the device of the living network, if the data is to be transmitted, step 1 of checking whether or not to use the transmission medium; If the transmission medium is not in use for a predetermined time, changing the data link layer to a data reception state, and then transmitting one byte and confirming whether transmission is successful; And if it is confirmed that the transmission is successful, three steps of transmitting a corresponding value to the network layer.

이하, 본 발명에 따른 리빙 네트워크 컨트롤 시스템에서의 계층간 인터페이스 방법에 대한 바람직한 실시예에 대해, 첨부된 도면을 참조하여 상세히 설명한다. Hereinafter, a preferred embodiment of the inter-layer interface method in the living network control system according to the present invention will be described in detail with reference to the accompanying drawings.

도 1은, 본 발명에 따른 리빙 네트워크 컨트롤 시스템에 대한 구성을 도시한 것으로, 예를 들어, 본 발명에서 새롭게 정의하는 리빙 네트워크 컨트롤 프로토콜(LnCP: Living network Control Protocol)이 적용되는 LnCP 인터넷 서버(100)와 리빙 네트워크 컨트롤 시스템(400)은, 도 1에 도시한 바와 같이, 인터넷(300)을 통해 연결 접속됨과 아울러, 상기 LnCP 인터넷 서버(100)에서는, 개인용 컴퓨터(PC), 피디에이(PDA), 피씨에스(PCS) 등과 같은 다양한 통신 단말기(200)와의 인터페이스 동작을 수행하게된다.1 illustrates a configuration of a living network control system according to the present invention. For example, a LnCP internet server 100 to which a living network control protocol (LnCP) newly defined in the present invention is applied. 1 and the living network control system 400 are connected and connected through the Internet 300 as shown in FIG. 1, and the LnCP Internet server 100 includes a personal computer (PC), a PDA, Interface operation with various communication terminals 200 such as PCS is performed.

한편, 상기 리빙 네트워크 컨트롤 시스템(400)에는, 홈 게이트웨이(Home Gateway)(40), 네트워크 매니저(Network Manger)(41), LnCP 라우터(Router)(42), LnCP 어댑터(Adaptor)(43), 그리고 가전기기(Appliance)(44)들이 포함 구성되며, 상기 구성 수단들은, 도 1에 도시한 바와 같이, RS-485 네트워크 또는 소출력 RF 네트워크와 같은 데이터 링크 계층(Data Link Layer)이 비 규격화된 전송매체(Non-Standard Transmission Medium)를 이용하거나, 전력선(Power Line) 통신 또는 IEEE 802.11, ZigBee(IEEE 802.15.4)와 같은 데이터 링크 계층이 규격화된 전송 매체를 이용하게 된다. Meanwhile, the living network control system 400 includes a home gateway 40, a network manager 41, an LnCP router 42, an LnCP adapter 43, And appliances 44, wherein the constituent means includes, as shown in FIG. 1, a non-standardized transmission of a data link layer such as an RS-485 network or a small output RF network. A medium (Non-Standard Transmission Medium) or power line communication or a data link layer such as IEEE 802.11 or ZigBee (IEEE 802.15.4) may be used as a transmission medium.

또한, 상기 리빙 네트워크 컨트롤 시스템(400)은, 예를 들어 'LnCP 네트워크'라고 일컬어질 수 있는 데, 상기 LnCP 네트워크는, 도 1에 도시한 바와 같이, 독립된 가정 내에서 리빙 네트워크 범주에 속하는 가전기기(Appliance)들을 유선 또는 무선 전송 매체로 연결하는 독립형 네트워크로 구성된다.In addition, the living network control system 400 may be referred to as an 'LnCP network', for example, where the LnCP network is a home appliance belonging to the living network category in an independent home, as shown in FIG. 1. It consists of a standalone network that connects (Appliances) to a wired or wireless transmission medium.

한편, 상기 LnCP 네트워크에는, 다른 가전기기의 동작을 제어하거나 또는 동 작 상태를 감시할 수 있는 마스터 디바이스(Master Device)와, 상기 마스터 디바이스의 요구에 응답하는 기능과 자신의 상태 변화에 대한 정보를 알리는 기능을 갖는 슬레이브 디바이스(Slave Device)가 연결된다. Meanwhile, the LnCP network includes a master device capable of controlling the operation of another household appliance or monitoring an operation state, a function of responding to a request of the master device, and information about a change in its own state. A slave device having a notification function is connected.

그리고, 상기 LnCP 네트워크에 연결된 가전기기들(44)의 환경 설정과 관리 기능은, 도 1에 도시한 바와 같이, 상기 네트워크 매니저(41)에서 담당하게 되는 데, 상기 가전기기들(44)은, 네트워크에 직접 연결되거나, 또는 상기 LnCP 어댑터(43)를 통해 간접적으로 연결될 수 있으며, 상기 LnCP 네트워크 내의 RS-485 네트워크, RF 네트워크, 그리고 전력선 네트워크 등은, 상기 LnCP 라우터(42)를 통해 연결 접속된다. And, the environment setting and management functions of the home appliances 44 connected to the LnCP network, as shown in Figure 1, will be in charge of the network manager 41, the home appliances 44, It may be directly connected to the network or indirectly through the LnCP adapter 43, and the RS-485 network, the RF network, and the power line network in the LnCP network are connected through the LnCP router 42. .

또한, 상기 LnCP 네트워크는, 외부 인터넷(300)과의 연결을 통해 외부에 있는 사용자가, 가정 내에 설치된 가전기기의 상태를 확인하거나 제어할 수 있는 기능을 제공하게 되는 데, 이를 위한 LnCP 네트워크와 외부 인터넷간의 연결 기능은, 상기 홈 게이트웨이(40)가 담당하게 되며, 상기 사용자는 외부에서 LnCP 인터넷 서버(100)에 접근하여 인증 과정을 거치게 되면, 자신이 LnCP 네트워크에 연결된 가전기기의 상태를 확인하거나 또는 제어하는 기능을 이용할 수 있게 된다.In addition, the LnCP network, by connecting to the external Internet 300 to provide a function that allows the user outside to check or control the status of the home appliances installed in the home, for this purpose LnCP network and external The home gateway 40 is responsible for the connection function between the Internet, and when the user accesses the LnCP Internet server 100 from the outside and performs an authentication process, the user checks the status of the home appliance connected to the LnCP network or Or the function to control can be used.

그리고, 상기 LnCP 네트워크에 연결된 가전기기에서 홈 게이트웨이(40)를 통해 LnCP 인터넷 서버(100)에 접속한 후, 그 LnCP 인터넷 서버에서 제공하는 콘텐츠를 다운로드 받을 수도 있는 데, 이를 위한 LnCP 네트워크의 주요 특징에 대해 상세히 설명하면 다음과 같다. In addition, after accessing the LnCP Internet server 100 through the home gateway 40 from the home appliance connected to the LnCP network, the content provided by the LnCP Internet server may be downloaded, which is the main feature of the LnCP network. When described in detail as follows.

우선, 디지털 정보 가전기기들은, 제각기 고유의 기능을 수행할 수 있도록 다양한 성능의 마이크로 컨트롤러(Micro Controller)를 가지고 있는 데, 본 발명에 따른 LnCP 네트워크에서는, 이와 같은 다양한 성능의 마이크로 컨트롤러에서 동작 이 가능하도록 기능을 보다 효율적으로 단순화함으로써, 가전기기에 탑재된 마이크로 컨트롤러의 자원을 최소한으로 사용할 수 있도록 하며, 특히 낮은 성능의 마이크로 컨트롤러는, 가전기기 고유의 기능들을 수행하면서도 LnCP 통신 기능을 처리할 수 있도록 하고, 높은 성능의 마이크로 컨트롤 컨트롤러는 멀티태스킹(Multi Tasking) 기능을 지원할 수 있도록 한다.First of all, digital information appliances have a microcontroller with various performances so as to perform unique functions. In the LnCP network according to the present invention, the digital information home appliances can operate with such a microcontroller with various performances. In order to simplify the function more efficiently, it is possible to use the resources of the microcontroller installed in the home appliance to a minimum, and the low performance microcontroller can handle the LnCP communication function while performing the functions of the home appliance. In addition, the high performance microcontroller controller supports multitasking functions.

그리고, 본 발명에 따른 LnCP 네트워크의 주요 특징은, 마스터-슬레이브 기반 통신 구조, 이벤트 기반 통신 지원, 복수의 네트워크 매니저 지원, 4 계층 구조, 통신 싸이클 서비스, 융통성있는 번지 관리, 가변 길이의 패킷 통신, 그리고 표준 메시지 셋 제공으로 분류될 수 있다.In addition, the main features of the LnCP network according to the present invention, the master-slave-based communication structure, event-based communication support, a plurality of network manager support, four-layer structure, communication cycle service, flexible address management, variable length packet communication, And can be classified as providing a standard message set.

한편, 상기 마스터-슬레이브 기반 통신 구조는, 상기 LnCP 네트워크에서 가전기기들간의 연결 통신 구조로 사용되는 것으로, 최소한 하나 이상의 마스터 디바이스가 있어야 하며, 상기 마스터 디바이스는, 제어하려는 슬레이브 디바이스들에 대한 정보 및 제어코드들 가지고 있어야 하는 데, 이때 상기 마스터 디바이스에서는, 이미 입력된 프로그램에 따르거나 사용자의 입력을 받아 다른 슬레이브 디바이스를 제어하게 된다.Meanwhile, the master-slave based communication structure is used as a connection communication structure between home appliances in the LnCP network, and there must be at least one master device, and the master device includes information on slave devices to be controlled and In this case, the master device controls another slave device according to a program already input or receiving input from a user.

예를 들어, 상기 마스터 디바이스와 슬레이브 디바이스간의 메시지 흐름은, 도 2에 도시한 바와 같이, 마스터에서 슬레이브로 요청(Request) 메시지를 보내면, 슬레이브에서 이에 대한 응답(Response) 메시지를 마스터로 보내는 방식으로 동작하게 되며, 상기 LnCP 네트워크에는, 도 3에 도시한 바와 같이, 다중 마스터와 다중 슬레이브(Multi-Master and Multi-Slave) 기반 통신 구조를 가질 수도 있다. For example, the message flow between the master device and the slave device, as shown in Figure 2, by sending a request (Request) message from the master to the slave, by sending a response message to the slave (Response) to the master In operation, the LnCP network may have a multi-master and multi-slave based communication structure, as shown in FIG. 3.

그리고, 상기 LnCP 네트워크에서는, 이벤트 기반(Event-driven) 통신 서비스를 지원하게 되는 데, 예를 들어 사용자가 가전기기에서 필요로 하는 이벤트를 설정할 수 있으며, 이후 해당 가전기기에서는, 임의의 동작을 수행하던 도중, 사용자가 설정한 이벤트가 발생하면, 그 이벤트 발생 사실 또는 내용을 다른 가전기기로 통보하거나 또는 그 이벤트에 상응하여, 다른 가전기기의 동작 상태를 제어하게 된다.In the LnCP network, an event-driven communication service is supported, for example, a user may set an event required by the home appliance, and then, in the home appliance, perform an arbitrary operation. In the meantime, when an event set by the user occurs, the fact or content of the event is notified to another home appliance or, in response to the event, the operation state of the other home appliance is controlled.

또한, 상기 LnCP 네트워크에는, 가전기기들의 환경 설정 및 관리 기능을 담당하는 최소한 한 개 이상의 네트워크 매니저가 포함 구성되는 것으로, 필요에 따라 여러 개의 네트워크 매니저를 지원할 수 있는 데, 이 경우 복수의 네트워크 매니저의 오류에 대비하기 위하여, 가전기기들의 관리정보가 동기화되어야 한다. In addition, the LnCP network includes at least one network manager that is responsible for environment setting and management functions of home appliances, and may support multiple network managers as needed. In order to prepare for errors, management information of home appliances should be synchronized.

그리고, 상기 LnCP 네트워크에서는, 도 4에 도시한 바와 같이, 물리 계층(Physical Layer), 데이터 링크 계층(Data Link Layer), 네트워크 계층(Network Layer), 그리고 응용 계층(Application Layer)의 4 계층 구조를 가지며, 상기 LnCP 네트워크에서는, 통신 싸이클 단위로 서비스를 제공하게 되는 데, 슬레이브 디바이스에서는, 주어진 시점에 하나만의 통신 싸이클이 존재할 수 있다.In the LnCP network, as shown in FIG. 4, a four-layer structure of a physical layer, a data link layer, a network layer, and an application layer is illustrated. In the LnCP network, a service is provided in units of communication cycles. In a slave device, only one communication cycle may exist at a given time.

즉, 하나의 슬레이브 디바이스에서 통신 싸이클이 수행되는 도중에는 어떠한 마스터 디바이스에 의해서도 제어를 받을 수 없으나, 상기 마스터 디바이스에서는 주어진 시점에 복수 개의 슬레이브 디바이스들을 위한 복수개의 통신 싸이클이 수행될 수 있는 데, 이러한 통신 싸이클은, {1-Request, 1-Response}, {1-Request, Multi-Response}, {1-Notification}, {Repeated-Notification}의 네 종류가 있다.That is, while a communication cycle is performed in one slave device, it cannot be controlled by any master device, but in the master device, a plurality of communication cycles for a plurality of slave devices may be performed at a given time. There are four types of cycles: {1-Request, 1-Response}, {1-Request, Multi-Response}, {1-Notification}, and {Repeated-Notification}.

예를 들어, 상기 {1-Request, 1-Response} 통신 싸이클은, 하나의 마스터가 하나의 슬레이브에 하나의 요청 패킷(Request Packet)을 송신하고, 슬레이브는, 그에 대한 응답으로 하나의 응답 패킷(Response Packet)을 전달하는 통신 싸이클로서, 만약 수신된 패킷에서 오류가 발생하게 되면, 도 5에 도시한 바와 같이, 마스터에서는 재 요구 패킷(Re-Request)을 송신하고, 슬레이브는, 그에 대한 응답 패킷(Response Packet)을 다시 전달하게 된다.For example, in the {1-Request, 1-Response} communication cycle, one master transmits one request packet to one slave, and the slave responds with one response packet ( As a communication cycle for transmitting a response packet, if an error occurs in the received packet, as shown in FIG. 5, the master transmits a re-request packet, and the slave responds to the response packet. (Response Packet) will be delivered again.

또한, 상기 {1-Request, Multi-Response} 통신 싸이클은, 도 6에 도시한 바와 같이, 하나의 마스터가 다수의 슬레이브들에게 그룹 번지를 가진 하나의 요청 패킷을 송신하고, 각 슬레이브들은 요청 패킷에 대한 응답 패킷을 송신하게 되는 데, 상기 마스터는, 허용된 최대 수신 시간이 지나면, 싸이클을 종료하게 되며, 이때 마스터는 슬레이브로부터 수신된 응답 패킷에 에러가 발생하더라도 이를 무시하게 된다.In addition, in the {1-Request, Multi-Response} communication cycle, as shown in FIG. 6, one master transmits one request packet having a group address to multiple slaves, and each slave transmits a request packet. The master will end the cycle when the maximum allowed time is received, and the master will ignore the error even if an error occurs in the response packet received from the slave.

그리고, 상기 {1-Notification} 통신 싸이클은, 도 7에 도시한 바와 같이, 마스터 디바이스가, 하나 또는 다수의 디바이스를 대상으로 하나의 통지(Notification) 패킷을 송신한 다음 즉시 통신을 종료하는 싸이클이고, 상기 {Repeated-Notification} 통신 싸이클은, {1-Notification} 통신 싸이클에서의 전송 신뢰성을 확보하기 위하여, 동일한 패킷을 반복 전송하고 나서 통신을 종료하는 싸이클이다. The {1-Notification} communication cycle is a cycle in which the master device transmits one notification packet to one or more devices and immediately terminates communication, as shown in FIG. 7. The {Repeated-Notification} communication cycle is a cycle for terminating communication after repeatedly transmitting the same packet in order to secure transmission reliability in the {1-Notification} communication cycle.

한편, 상기 PnCP 네트워크에서는, 융통성있는 번지 관리를 지원하는 데, 예를 들어 LnCP 기능이 구비된 가전기기들은, 공장 출하 시에 기기 종류별로 번지가 할당되어 있어서 사용자의 개입 없이 자동으로 네트워크를 구성하게 되는 것으로, 이때 동일한 종류의 가전기기들은, 동일한 번지로 초기화되어 있기 때문에, 네트워크 매니저는, 가전기기가 연결될 때 유일한 고유의 번지를 할당하는 알고리즘을 가지고 있다.Meanwhile, in the PnCP network, flexible address management is supported. For example, home appliances equipped with the LnCP function are assigned at the time of factory shipment to automatically configure the network without user intervention. In this case, since the same kind of home appliances are initialized to the same address, the network manager has an algorithm for assigning a unique unique address when the home appliances are connected.

또한, 상기 LnCP 네트워크에서는, 동일한 종류에 속하는 가전기기들에 고유의 그룹 번지를 지정함으로써, 하나의 메시지를 이용하여 그룹 통신을 가능하게 할 수 있으며, 사용자의 필요에 따라 여러 종류의 가전기기들을 클러스터(Cluster)로 분류하고, 각 클러스터에 그룹 번지를 지정할 수 있다. In addition, in the LnCP network, by assigning a unique group address to the home appliances belonging to the same type, it is possible to enable group communication using a single message, clustering various types of home appliances according to the user's needs You can classify as (Cluster) and assign a group address to each cluster.

그리고, 상기 PnCP 네트워크에서는, 가변 길이의 패킷 통신을 지원하는 데, 예를 들어, 가전기기의 조작에 관련된 응용 프로그램과 같은 콘텐츠를 다운로드하거나, 가전기기에 저장된 데이터를 업로드하는 경우에는, 상호 교환된 가전기기의 버퍼 크기 정보를 이용하여 패킷의 길이를 조정하게 된다.In the PnCP network, packet communication of variable length is supported, for example, in the case of downloading content such as an application program related to the operation of a home appliance or uploading data stored in the home appliance, The length of the packet is adjusted using the buffer size information of the home appliance.

또한, 상기 LnCP 네트워크에서는, 표준 메시지 셋을 제공하는 데, 예를 들어 마스터 디바이스에서 다른 가전기기를 제어할 수 있도록 응용 계층에서 각종 가전기기에 적합한 표준 메시지 셋을 정의함과 아울러, 상기 메시지 셋은 기본적인 LnCP 통신을 위한 공통 기능 영역 메시지 셋(Common Area Message Set), 가전기기의 고유 기능을 지원하기 위한 제품 응용 영역 메시지 셋(Application Area Message Set), 그리고 제조회사의 고유 기능을 제공하기 위한 개발자 영역 메시지 셋(Developer Area Message Set)으로 나누게 된다.In addition, the LnCP network provides a standard message set. For example, the message layer defines a standard message set suitable for various home appliances in the application layer so that the master device can control another home appliance. Common Area Message Set for basic LnCP communication, Product Application Area Message Set to support the unique functions of home appliances, and Developer Area to provide unique functions of manufacturers It is divided into a Developer Area Message Set.

한편, 상기와 같은 메시지 셋은 필요에 따라 확장될 수 있으며, 또한 기존에 정의된 메시지에 인자를 추가시킬 수도 있는 데, 이하에서는, 본 발명에 따른 LnCP 네트워크에서의 주요 특징 중, 하나인 계층 구조에 대해 보다 상세히 설명한다.On the other hand, the message set as described above may be extended as needed, and may also add an argument to a previously defined message, hereinafter, one of the main features of the LnCP network according to the present invention, a hierarchical structure It will be described in more detail.

도 8은, 본 발명에 따른 LnCP 프로토콜의 계층 구조를 도시한 것으로, 전술한 바와 같이, 본 발명이 적용되는 LnCP 네트워크에서는, 냉장고 또는 세탁기 등과 같은 가전기기들의 동작 제어 및 모니터링을 위하여, 물리 계층, 데이터 링크 계층, 네트워크 계층, 그리고 응용 계층의 4 계층 구조를 갖는 다. FIG. 8 illustrates a hierarchical structure of the LnCP protocol according to the present invention. As described above, in the LnCP network to which the present invention is applied, for the operation control and monitoring of home appliances such as a refrigerator or a washing machine, a physical layer, It has a four-layer structure of data link layer, network layer, and application layer.

한편, 상기 물리 계층(Physical Layer)은, 디바이스간의 물리적 인터페이스와, 전송할 비트와 같은 물리적인 신호를 송수신하는 기능을 제공하게 되는 데, 상기 물리 계층으로는, RS-485와 소출력 RF 등과 같은 데이터 링크 계층이 비 규격화된 전송 매체와, 전력선 통신이나 이더넷, IEEE 802.11, ZigBee와 같은 규격화된 유무선 전송매체가 사용될 수 있으며, 상기 LnCP 네트워크에서 디바이스의 물리 계층을 구현하기 위해, 별도의 물리 계층을 LnCP 어댑터가 사용될 수 있다. Meanwhile, the physical layer provides a physical interface between devices and a function of transmitting and receiving a physical signal such as a bit to be transmitted. The physical layer includes a data link such as RS-485 and a small output RF. Non-standardized transmission media and standardized wired and wireless transmission media such as powerline communications, Ethernet, IEEE 802.11, and ZigBee can be used. In order to implement the physical layer of the device in the LnCP network, a separate physical layer may be used as an LnCP adapter. Can be used.

그리고, 상기 데이터 링크 계층(Data Link Layer)은, 공유된 전송 매체를 사용하기 위한 매체 접근 제어(MAC: Medium Access Control) 기능을 제공하게 되는 데, 상기 LnCP 네트워크에서는, 데이터 링크 계층이 비 규격화된 전송 매체를 사용하는 경우, 상기 매체 접근 제어(MAC) 프로토콜로서 p-DCSMA(probabilistic Delayed Carrier Sense Multiple Access)를 사용해야 한다. The Data Link Layer provides a medium access control (MAC) function for using a shared transmission medium. In the LnCP network, the data link layer is de-standardized. When using a transmission medium, pba-DCSMA (probabilistic Delayed Carrier Sense Multiple Access) should be used as the medium access control (MAC) protocol.

한편, 상기 p-DCSMA는, 전송 매체가 사용 중인지를 확인하여, 사용 중이면 전송을 유보하고, 사용 중이지 않으면 전송 절차를 실행하도록 하여 전송 매체를 각 디바이스들이 공유할 수 있도록 하기 위한 LnCP 프로토콜의 매체 접속 제어 프로토콜이다, Meanwhile, the p-DCSMA checks whether a transmission medium is in use, suspends transmission if it is in use, and executes a transmission procedure if it is not in use, thereby allowing each device to share the transmission medium. Is a medium access control protocol,

그러나, 상기 LnCP 네트워크에서, 데이터 링크 계층이 규격화된 전송 매체를 사용하는 경우에는, 해당 프로토콜에서 규정된 매체 접근 제어 기능을 이용할 수 있다.However, in the LnCP network, when the data link layer uses a standardized transmission medium, the medium access control function defined in the protocol can be used.

한편, 도 8에 도시한 바와 같이, 홈 코드 제어 부속 계층(Home Code Control Sublayer)은, LnCP 네트워크가 전력선 통신이나 IEEE 802.11, ZigBee, 소출력 RF와 같은 비 독립형 전송 매체를 이용하여 구성될 때, 개별 네트워크를 논리적으로 구분하기 위한 홈 코드(Home Code)의 설정, 관리 및 처리 기능을 제공하게 되는 데, 상기 홈 코드 제어 부속 계층은 RS-485와 같은 독립형 전송 매체에 의하여 개별 네트워크가 물리적으로 분리되는 경우에는 구현하지 않는 것이 바람직하다.On the other hand, as shown in Figure 8, the Home Code Control Sublayer is a separate code, when the LnCP network is configured using power line communication or non-independent transmission media such as IEEE 802.11, ZigBee, and low power RF. It provides a function of setting, managing, and processing a home code for logically dividing a network. The home code control sublayer is configured to physically separate individual networks by a standalone transmission medium such as RS-485. In this case, it is preferable not to implement.

그리고, 상기 네트워크 계층(Network Layer)은, 디바이스간의 신뢰성있는 네트워크 연결을 위하여, 가전기기의 번지 관리, 송수신 제어 등의 기능을 제공하게 되며, 상기 응용 계층(Application Layer)은, 응용 소프트웨어의 서비스를 수행시키기 위하여, 송수신 제어 기능을 제공함과 아울러, 다운로드 및 업로드 서비스를 위한 흐름 제어 기능을 제공하게 된다. The network layer provides functions such as address management and transmission / reception control of home appliances for reliable network connection between devices, and the application layer provides services of application software. In order to perform, it provides a transmission and reception control function, and also provides a flow control function for a download and upload service.

또한, 상기 응용 계층은 네트워크 관리나 가전기기의 제어 및 모니터링을 위 하여 메시지 셋(Message Set)을 정의하며, 상기 응용 소프트웨어는, 가전기기의 고유 기능을 수행하며, 응용 계층에서 정의된 인터페이스를 통하여, 응용 계층과의 데이터 교환을 하게 된다. In addition, the application layer defines a message set for network management or control and monitoring of the home appliance, the application software performs a unique function of the home appliance, and through the interface defined in the application layer In this case, data exchange with the application layer is performed.

그리고, 도 8에 도시한 바와 같이, 네트워크 관리 부속 계층(Network Management Sublayer)은, 매개 변수(Node Parameters)를 설정하기 위한 파라미터 관리 기능과 네트워크 구성 및 관리를 위한 네트워크 관리 기능을 제공하게 되며, 매개 변수 관리 계층(Parameter Management Layer)은, 네트워크 관리 부속 계층의 요구에 따라 각 계층에서 사용되는 매개 변수들을 설정하거나 읽을 수 있다.As shown in FIG. 8, the network management sublayer provides a parameter management function for setting a parameter and a network management function for network configuration and management. The Parameter Management Layer may set or read parameters used in each layer according to the requirements of the network management sublayer.

또한, 상기 네트워크 관리 부속 계층과의 인터페이스를 위한 프리미티브(Primitive)에는, 도 9에 도시한 바와 같이, 네트워크 관리 부속 계층에서 매개 변수 관리 계층으로 매개 변수의 값을 전달하기 위한 프리미티브(structure SetPar)와, 매개 변수 관리 계층에서 네트워크 관리 부속 계층으로 매개 변수의 값을 전달하기 위한 프리미티브(structure GetPar)가 있다.In addition, primitives for interfacing with the network management sublayer may include primitives for passing parameter values from the network management sublayer to the parameter management layer, as shown in FIG. For example, there is a structure GetPar for passing parameter values from the parameter management layer to the network management sublayer.

한편, 상기 매개 변수 관리 계층으로 매개 변수의 값을 전달하기 위한 프리미티브(structure SetPar)에는, 매개 변수 값을 전달하려는 계층을 나타내는 'uchar DestLayer'와, 계층별 매개 변수로 DestLayer 값에 따라 값이 달라지는 'structure SetLayerPar'가 기록되는 데, 상기 DestLayer는, 매개 변수 값을 전달하려는 계층이, 응용 계층인 경우, '1', 네트워크 계층인 경우 '2', 데이터 링크 계층인 경우 '3', 물리 계층인 경우 '4'가 된다.On the other hand, the primitive (structure SetPar) for passing the value of the parameter to the parameter management layer, 'uchar DestLayer' indicating the layer to pass the parameter value, and the value of the layer-specific parameters according to the DestLayer value 'structure SetLayerPar' is recorded, and the DestLayer has a layer to which parameter values are to be transmitted, '1' for application layer, '2' for network layer, '3' for data link layer, and physical layer. If it is '4'.

그리고, 상기 SetLayerPar는, 응용 계층인 경우, 'SetALPar', 네트워크 계층 인 경우 'SetNLPar', 데이터 링크 계층인 경우 'SetDLLPar', 물리 계층인 경우 'SetPHYPar'가 된다.The SetLayerPar becomes 'SetALPar' for an application layer, 'SetNLPar' for a network layer, 'SetDLLPar' for a data link layer, and 'SetPHYPar' for a physical layer.

또한, 상기 네트워크 관리 부속 계층으로 매개 변수의 값을 전달하기 위한 프리미티브(structure GetPar)에는, 매개 변수 값을 전송한 계층을 나타내는 'uchar SreLayer'와, 각 계층으로부터 매개 변수 값을 성공적으로 취했는 지를 나타내는 'uchar PMLResult', 그리고 계층별 매개 변수로 SrcLayer 값에 따라 값이 달라지는 'structure GetLayerPar'가 기록되는 데, 상기 SrcLayer는, 매개 변수 값을 전송한 계층이, 응용 계층인 경우, '1', 네트워크 계층인 경우 '2', 데이터 링크 계층인 경우 '3', 물리 계층인 경우 '4'가 된다. In addition, a structure GetPar for passing a parameter value to the network management sublayer includes a 'uchar SreLayer' indicating a layer that transmitted the parameter value, and indicating whether the parameter value was successfully taken from each layer. 'uchar PMLResult' and 'structure GetLayerPar', whose value varies depending on the SrcLayer value, are recorded as layer-specific parameters. In the SrcLayer, if the layer transmitting the parameter value is an application layer, '1', the network '2' for the layer, '3' for the data link layer, and '4' for the physical layer.

그리고, 상기 PMLResult는, 각 계층으로부터 매개 변수 값을 성공적으로 취한 경우, PAR_OK(1), 성공적으로 취하지 못한 경우, PAR_FAILD(0)이 되고, 상기 GetLayerPar는, 응용 계층인 경우, 'RptALPar', 네트워크 계층인 경우 'RptNLPar', 데이터 링크 계층인 경우 'RptDLLPar', 물리 계층인 경우 'RptPHYPar'가 된다.The PMLResult becomes PAR_OK (1) when the parameter value is successfully taken from each layer, and PAR_FAILD (0) when the parameter value is not taken successfully, and the GetLayerPar is 'RptALPar' when the application layer is used. It is 'RptNLPar' for the layer, 'RptDLLPar' for the data link layer, and 'RptPHYPar' for the physical layer.

한편, 매개 변수 관리 계층에서 사용하는 매개 변수는 'const unit ParTimeOut'가 있는 데, 이는 각 계층으로 GetALPar(또는 GetNLPar, GetDLLPar, GetPHYPar) 전달 후 RptALPar(또는 RptNLPar, RptDLLPar, RptPHYPar) 수신을 위하여 대기하는 시간(ms)을 나타낸다. On the other hand, the parameter used in the parameter management layer is 'const unit ParTimeOut', which waits to receive RptALPar (or RptNLPar, RptDLLPar, RptPHYPar) after passing GetALPar (or GetNLPar, GetDLLPar, GetPHYPar) to each layer. Represents the time (ms).

그리고, 상기 매개 변수 관리 계층은 네트워크 관리 부속 계층으로부터 SetPar 프리미티브를 전달받으면, 프리미티브에 명시된 계층으로 SetALPar, SetNLPar, SetDLLPar 또는 SetPHYPar 프리미티브를 전달하며, 각 계층에서는 전달 받은 프리미티브에서 모든 비트 값이 '1'인 변수는 무시하게 된다(예: 0xFF, 0xFFFF).When the parameter management layer receives the SetPar primitive from the network management sublayer, the parameter management layer delivers the SetALPar, SetNLPar, SetDLLPar, or SetPHYPar primitive to the layer specified in the primitive, and in each layer, all bit values are '1'. Variable is ignored (eg 0xFF, 0xFFFF).

또한, 상기 네트워크 관리 부속 계층으로부터 GetPar 프리미티브를 전달받으면, 프리미티브에 명시된 계층으로 GetALPar, GetNLPar, GetDLLPar, GetPHYPar를 전달하게 되며, 각 계층으로부터 RptALPar, RptNLPar, RptDLLPar 또는 RptPHYPar를 수신하면, GetPar 프리미티브를 포함하고, PARResult 값을 PAR_OK로 하여 네트어크 관리 부속 계층으로 전달하는 데, 만일 ParTimeOut 시간 이내에 각 계층으로부터 프리미티브를 전달받지 못하면, PARResult 값을 PAR_FAILD로 하여 네트워크 관리 부속 계층으로 전달하게 된다. In addition, if a GetPar primitive is received from the network management sublayer, GetALPar, GetNLPar, GetDLLPar, and GetPHYPar are delivered to the layer specified in the primitive, and if a RptALPar, RptNLPar, RptDLLPar, or RptPHYPar is received from each layer, the GetPar primitive is included. In this case, the PARResult value is transmitted to the network management sublayer with PAR_OK. If the primitive is not received from each layer within the ParTimeOut time, the PARResult value is transferred to the network management sublayer with PAR_FAILD.

한편, 상기 네트워크 관리 부속 계층은, 개별 디바이스에서 매개 변수(Node Parameter)를 설정하기 위한 매개 변수 관리 기능과 네트워크의 구성, 환경 설정, 그리고 네트워크의 동작 관리를 위한 기능을 제공하게 되는 데, 만일 응용 소프트웨어 및 마스터로부터의 요청이 있을 때 매개 변수 관리 계층을 통하여 해당되는 계층에 다음과 같은 매개 변수의 값을 설정하거나 읽게 된다.On the other hand, the network management sublayer provides a parameter management function for setting parameters (Node Parameters) in individual devices and a function for network configuration, environment setting, and network operation management. When requested from the software and master, the parameter management layer sets or reads the following parameter values in the layer.

예를 들어, 응용 계층의 경우, AddressResult, NP_Alivelnt, SvcTimeOut, NP_BufferSize, 네트워크 계층의 경우, NP_LogicalAddress, NP_ClusterCode, NP_HomeCode, SendRetries, 데이터 링크 계층의 경우, MinPktInterval, 물리 계층의 경우, NP_bps의 매개 변수 값을 설정하거나 읽게 된다. For example, set the parameter values of AddressResult, NP_Alivelnt, SvcTimeOut, NP_BufferSize, NP_LogicalAddress, NP_ClusterCode, NP_HomeCode, SendRetries, MinPktInterval for the data link layer, and NP_bps for the physical layer, for the application layer. Or read.

특히, 슬레이브의 네트워크 관리 부속 계층은 응용 계층으로부터 '디바이스 노드 매개 변수 설정 서비스' 또는 '디바이스 노드 매개 변수 취득 서비스'에 속한 응용 서비스를 포함하는 UserReqRcv 프리미티브를 전달받으면, 매개 변수 관리 계층을 통하여 해당되는 계층에 매개 변수의 값을 설정하거나 읽고, 그 결과를 UserResSend 프리미티브를 통하여 응용 계층에 전달하게 되는 데, 계층별 매개 변수 관리를 위한 응용 서비스는 다음과 같다. In particular, if the slave's network management sublayer receives a UserReqRcv primitive containing an application service belonging to the 'device node parameter setting service' or 'device node parameter acquisition service' from the application layer, The parameter value is set or read in the layer, and the result is transmitted to the application layer through the UserResSend primitive. Application services for parameter management by layer are as follows.

예를 들어, 응용 계층의 경우, SetOption 서비스, SetAliveTiem 서비스, SetClock 서비스, GetBufferSize 서비스, 네트워크 계층의 경우, SetTempAddress 서비스, SetAddress 서비스, GetAddress 서비스, 데이터 링크 계층의 경우, 해당 서비스 없으며, 물리 계층의 경우, SetSpeed 서비스가 있다. For example, for the application layer, SetOption service, SetAliveTiem service, SetClock service, GetBufferSize service, Network layer, SetTempAddress service, SetAddress service, GetAddress service, Data link layer. There is a SetSpeed service.

한편, 상기 네트워크 관리 부속 계층은, LnCP 네트워크의 구성, 환경 설정 그리고 네트워크의 동작 관리와 같은 네트워크 관리 기능을 제공하는 데, 일반적인 네트워크 관리 기능은, 마스터의 응용 계층 위에서 동작하고, 복수의 네트워크 관리 기간에 네트워크 정보의 동기화 기능 중에 일부는 슬레이브의 응용 계층 위에 동작하게 된다.On the other hand, the network management sublayer provides network management functions, such as configuration of LnCP networks, environment settings, and operation management of the network. The general network management functions operate on a master application layer, and provide a plurality of network management periods. Some of the network information synchronization functions operate on the slave's application layer.

그리고, 상기 응용 계층과의 인터페이스는, 슬레이브의 응용 계층과의 인터페이스와 슬레이브의 응용 계층과의 인터페이스가 있는 데, 상기 슬레이브의 응용 계층과의 인터페이스에는, UserReqRcv와 UserResSend 프리미티브가 이용되고, 상기 마스터의 응용 계층과의 인터페이스는, UserReq, UserDLReq, UserULReq. UserRes, UserEventRcv, 그리고 ALCompleted 프리미티브를 이용하게 된다. The interface with the application layer includes an interface between the slave application layer and the slave application layer. In the interface with the slave application layer, UserReqRcv and UserResSend primitives are used. The interface with the application layer is UserReq, UserDLReq, UserULReq. You will use the UserRes, UserEventRcv, and ALCompleted primitives.

한편, 본 발명에 따른 리빙 네트워크 컨트롤 시스템에서의 계층간 인터페이 스 방법은, 도 10에 도시한 바와 같이, 상위 계층으로부터 전달받은 프로토콜 데이터 유니트(PDU: Protocol Data Unit)에 각 계층에서 요구되는 헤더(Header)와 트레일러(Trailer) 정보를 합쳐 하위 계층으로 전달하게 된다. On the other hand, the inter-layer interface method in the living network control system according to the present invention, as shown in Figure 10, the header required for each layer in the protocol data unit (PDU: Protocol Data Unit) received from the upper layer ( Header and trailer information are combined and delivered to the lower layer.

예를 들어, APDU(Application layer PDU)는, 응용 계층과 네트워크 계층간에 전달되는 패킷으로서, APDU 헤더와 메시지로 구성되고, NPDU(Network layer PDU)는, 네트워크 계층과 데이터 링크 계층 또는 홈 코드 부속 계층 간에 전달되는 패킷으로서, APDU와 자신의 번지, 목적지 가전기기의 번지, 그리고 전송할 메시지의 중요도에 따른 패킷의 종류 등과 같은 NPDU 헤더, NPDU 트레일러, APDU로 구성된다.For example, an application layer PDU (APDU) is a packet transmitted between an application layer and a network layer, and is composed of an APDU header and a message. The network layer PDU (NPDU) is a network layer and a data link layer or a home code sublayer. It is a packet transmitted between the APDU and its own address, the address of the destination home appliance, and an NPDU header such as a packet type according to the importance of a message to be transmitted, an NPDU trailer, and an APDU.

그리고, HCNPDU(Home Code Control Sublayer PDU)는, 네트워크 계층과 데이터 링크 계층간에 전달되는 패킷으로서, NPDU와 홈 코드로 구성되는 데, LnCP 네트워크의 물리 계층에서는, 디바이스와 LnCP 어댑터 또는 LnCP 라우터간의 인터페이스를 위하여, 도 11에 도시한 바와 같이, UART(Universal Asynchronous Receiver and Transmitter) 프레임 구조를 이용하게 된다.The Home Code Control Sublayer PDU (HCNPDU) is a packet transmitted between the network layer and the data link layer, and is composed of an NPDU and a home code. In the physical layer of an LnCP network, an interface between a device and an LnCP adapter or an LnCP router is defined. To this end, as shown in FIG. 11, a universal asynchronous receiver and transmitter (UART) frame structure is used.

예를 들어, 상위 계층에서 보내오는 패킷을, 10 비트 크기의 UART 프레임 단위로 변환하여 전송 매체를 통해 전달하고, LnCP 네트워크에서 UART 프레임은 1 비트의 시작 비트(Start Bit), 8 비트의 데이터, 그리고 1 비트의 정지 비트(Stop Bit)로 구성되며, 패리티 비트(Parity Bit)는 사용하지 않고, UART 프레임은, 시작 비트부터 정지 비트까지 차례대로 전달된다.For example, a packet sent from a higher layer is converted into a UART frame unit of 10 bits and transmitted through a transmission medium. In an LnCP network, a UART frame includes one start bit, eight bits of data, It consists of a stop bit of 1 bit, does not use a parity bit, and the UART frame is transmitted from the start bit to the stop bit in order.

한편, 상기 LnCP 네트워크에서 UART를 이용하는 경우에는, 추가적인 프레임 헤더와 프레임 트레일러를 사용하지 않으며, 통신 속도는 9600bps를 사용하거나, 또는 디바이스의 성능에 따라 4800bps 또는 19200bps를 사용할 수 있다.On the other hand, when the UART is used in the LnCP network, no additional frame header and frame trailer are used, and the communication speed may be 9600bps or 4800bps or 19200bps depending on the performance of the device.

그리고, 도 12에 도시한 바와 같이, 물리 계층과 데이터 링크 계층간에 인터페이스를 위한 프리미티브는, 데이터 링크 계층에서 물리 계층으로 1 바이트의 데이터를 전달하기 위한 프리미티브 'FrameSend'와, 물리 계층에서 데이터 링크 계층으로 1 바이트의 데이터를 전달하기 위한 프리미티브 'FrameRcv', 그리고 데이터 링크 계층으로 전달되는 선로 상태의 프리미티브 'RptLineStatus'가 있으며, 선로에 UART 프레임이 존재하면 LINE_BSY를 전달하고, 그렇지 않으면 LINE_IDLE을 전달한다.As shown in FIG. 12, the primitive for the interface between the physical layer and the data link layer includes a primitive 'FrameSend' for transferring one byte of data from the data link layer to the physical layer, and the data link layer in the physical layer. There is a primitive 'FrameRcv' for transmitting one byte of data, and 'RptLineStatus' of the line status delivered to the data link layer. If there is a UART frame on the line, LINE_BSY is transmitted. Otherwise, LINE_IDLE is transmitted.

한편, 도 13에 도시한 바와 같이, 데이터 링크 계층과 네트워크 계층간에 인터페이스를 위한 프리미티브는, 네트워크 계층에서 데이터 링크 계층으로 패킷을 전달하기 위한 프리미티브 'PktSend'와, 데이터 링크 계층에서 네트워크 계층으로 패킷을 전달하기 위한 프리미티브 'PktRcv', 그리고 데이터 링크 계층에서 네트워크 계층으로 패킷 전송 결과를 알리기 위한 프리미티브 'DLLCompleted'가 있다.On the other hand, as shown in FIG. 13, the primitive for the interface between the data link layer and the network layer includes a primitive 'PktSend' for transferring the packet from the network layer to the data link layer, and a packet from the data link layer to the network layer. There is a primitive 'PktRcv' for delivery and a primitive 'DLLCompleted' for reporting the result of packet transmission from the data link layer to the network layer.

그리고, 상기 PktSend에는, 네트워크 계층의 패킷(NPDU/HCNPDU)과, NPDU/ HCNPDU의 바이트 데이터 길이, 그리고 전송 우선 순위(SvcPriority)가 기록되고, 상기 PktRcv에는, 네트워크 계층의 패킷(PDU)과, PDU의 바이트 데이터 길이(PDULength)가 기록되며, 상기 DLLCompleted에는, 패킷 전송 결과(DLLResult)로서 패킷 전송 과정이 성공적으로 완료되면 SEND_OK(1), 그렇지 않으면 SEND_FAILED(0)기록되고, DLLResult가 SEND_FAILED(0)인 경우에 실패 원인을 분류한 값 (DLLFailCode)이 기록된다. In the PktSend, the packet of the network layer (NPDU / HCNPDU), the byte data length of the NPDU / HCNPDU, and the transmission priority (SvcPriority) are recorded. In the PktRcv, the packet of the network layer (PDU) and PDU The byte data length of PDULength is recorded.In the DLLCompleted, SEND_OK (1) is written if the packet transmission process is successfully completed as a packet transmission result (DLLResult), otherwise SEND_FAILED (0), and DLLResult is SEND_FAILED (0). In case of, the value (DLLFailCode) which classified the cause of failure is recorded.

한편, 도 14에 도시한 바와 같이, 데이터 링크 프레임 구조는, NPDU/HCNPDU에 프레임 헤더(Frame Header)와 프레임 테일러(Frame Trailer)가 추가 구성되는 데, 데이터 링크 계층이 비 규격화된 전송 매체를 사용하는 경우, 프레임 헤더 및 트레일러에는 널(Null) 필드가 기록되고, 규격화된 전송 매체를 사용하는 경우에는, 해당 프로토콜에서 규정된 사항을 따르며, NPDU 필드는, 상위 네트워크 계층에서 전달된 데이터 단위이다. On the other hand, as shown in Fig. 14, in the data link frame structure, a frame header and a frame trailer are additionally configured in the NPDU / HCNPDU, and a data link layer uses a non-standardized transmission medium. In this case, a null field is recorded in the frame header and the trailer, and when a standardized transmission medium is used, the specification specified in the corresponding protocol is followed. The NPDU field is a data unit delivered from an upper network layer.

그리고, HCNPDU는 물리 계층이 비 독립형 전송 매체인 경우에 사용되는 홈 코드가 NPDU 앞부분에 추가된 데이터 단위이고, 데이터 링크 계층은 NPDU와 HCNPDU를 구분하여 처리하지 않는다. The HCNPDU is a data unit in which a home code used when the physical layer is a non-standalone transmission medium is added to the front of the NPDU, and the data link layer does not distinguish between the NPDU and the HCNPDU.

한편, 상기 데이터 링크 계층이 비 규격화된 전송 매체를 사용하는 경우의 데이터 송수신 제어방법에 대해 상세히 설명하면 다음과 같다. Meanwhile, a data transmission and reception control method in the case where the data link layer uses a non-standardized transmission medium will be described in detail as follows.

먼저, 도 15는 데이터 링크 계층에서의 데이터 수신을 나타낸 것으로, 데이터 링크 계층이, 데이터를 수신할 수 있는 수신 가능 상태라면, 물리 계층으로부터 FrameRcv 프리미티브를 이용하여, 데이터를 한 바이트 씩 수신하게 되며, 한 바이트가 수신될 때마다, 데이터 링크 계층의 버퍼 내에 해당 데이터를 저장하게 된다. First, FIG. 15 illustrates reception of data at the data link layer. If the data link layer is in a receivable state capable of receiving data, the data link layer receives data one byte by using a FrameRcv primitive from the physical layer. Each time a byte is received, the corresponding data is stored in a buffer of the data link layer.

그리고, 상기 한 바이트가 수신된 시점부터 소정 시간 이내, 예를 들어 FrameTimeOut 동안 추가적인 바이트가 수신되지 않으면 패킷 수신이 완료되었다고 판단하는 데, 이때, 데이터 링크 계층에서는, 물리 계층으로부터 수신된 패킷의 데 이터 크기와 데이터의 오류 여부는 판단하지 않는다. If no additional bytes are received within a predetermined time, for example, FrameTimeOut, from the time when the one byte is received, it is determined that packet reception is completed. In this case, in the data link layer, data of the packet received from the physical layer is determined. The size and data errors are not judged.

한편, 데이터 패킷 수신이 완료되면, MinPktInterval 동안, 데이터 링크 계층을 데이터 수신 불가능 상태로 제어 및 유지한 후, NPDU를 구성하여 네트워크 계층으로 전달하게 되는 데, 수신 불가능 상태를 유지하는 이유는, 응용 계층에서 메시지를 처리하는 동안 물리 계층으로부터 새로운 바이트가 전송되는 것을 방지하기 위함이며, 이후 사전에 설정된 시간, 예를 들어 MinPktInterval이 지나면, 데이터 링크 계층은, 데이터 수신이 가능한 상태로 변경된다. On the other hand, when the data packet reception is completed, during the MinPktInterval, after controlling and maintaining the data link layer to the data unreceivable state, and configures the NPDU to pass to the network layer, the reason for maintaining the unreceivable state is, This is to prevent a new byte from being transmitted from the physical layer while processing a message, and then after a predetermined time, for example, MinPktInterval, the data link layer is changed to a state in which data can be received.

도 16은, 데이터 링크 계층에서의 데이터 송신을 나타낸 것으로, 데이터를 전송하려는 디바이스는, 데이터 링크 계층으로 전달되는 선로 상태의 프리미티브인 RptLineStatus 프리미티브를 이용하여 전송 매체의 상태를 확인하게 되는 데(S10), 예를 들어 전송 매체가 현재 사용 중이지 않으면(예: LineStatus=LINE_IDLE), 디바이스는, MinPktInterval 동안 지속적으로 전송 매체의 상태를 확인하게 되고, 만약 전송 매체가 사용 중인 것으로 감지되면(예: LineStatus=LINE_BUSY), 전송 매체의 상태 확인 절차를 반복한다. FIG. 16 illustrates data transmission in a data link layer, wherein a device to transmit data checks a state of a transmission medium by using an RptLineStatus primitive, which is a primitive of a line state transmitted to the data link layer (S10). For example, if a transmission medium is not currently in use (e.g. LineStatus = LINE_IDLE), the device will continue to check the status of the transmission medium during MinPktInterval and if it is detected that the transmission medium is in use (e.g. LineStatus = LINE_BUSY), repeat the status check procedure of the transmission medium.

그리고, 상기 MinPktInterval 동안 전송 매체가 사용 중이지 않으면(S11), NPDU/HCNPDU에 포함된 패킷의 우선 순위(SvcPriority)에 따라 경쟁 윈도우(Wc)의 크기를 결정하고, Wc의 범위 내에서 균일한 분포로 RandomDelayTime 값을 생성하며(S12), 그 RandomDelayTime 시간 동안 지속적으로 전송 매체의 상태를 확인한다(S13).If the transmission medium is not in use during the MinPktInterval (S11), the size of the contention window (Wc) is determined according to the priority (SvcPriority) of the packets included in the NPDU / HCNPDU, and uniform distribution within the range of Wc. Generates a RandomDelayTime value (S12), and continuously checks the state of the transmission medium for the RandomDelayTime time (S13).

한편, 상기 RandomDelayTime 시간 동안 전송 매체가 사용 중이지 않으면 (S14), 패킷의 충돌을 감지하기 위하여, 데이터 링크 계층을 데이터 수신 가능 상태로 변경하고 나서 패킷을 전송하고(S15), 한 바이트를 전송할 때마다 송신된 바이트와 수신된 바이트를 비교하여 송신 성공 여부를 확인하게 되는 데(S16), 예를 들어 패킷 전송에 성공하면, 네트워크 계층으로 SEND_OK를 포함하는 DLLCompleted 프리미티브를 전달하게 된다(S17).On the other hand, if the transmission medium is not in use during the RandomDelayTime time (S14), in order to detect a packet collision, the packet is transmitted after changing the data link layer to a data reception state (S15), and when transmitting one byte Each transmitted byte is compared with the received byte to check whether the transmission is successful (S16). For example, if the packet transmission is successful, the DLLCompleted primitive including SEND_OK is transmitted to the network layer (S17).

반면, 송신된 바이트와 수신된 바이트의 두 값이 동일하지 않으면, 충돌이 발생하였다고 판단하여 p-DCSMA 알고리즘을 재 시도하게 되는 데, p-DCSMA 알고리즘은, 누적 카운트되는 재 시도 카운트 회수가 BackOffRetries 보다 적으면서(S18), MACExecTime 동안에 한하여 재 시도된다.On the other hand, if the two values of the transmitted byte and the received byte are not the same, it is determined that a collision has occurred, and the p-DCSMA algorithm retries. The p-DCSMA algorithm has a cumulative count of retry counts than BackOffRetries. While small (S18), retry is only for MACExecTime.

그리고, p-DCSMA 알고리즘이 재 시도되는 경우, Wc의 상한은 SvcPriority에 따라 다르게 정의되어 있는 WindowShift(예: 0,1,2,6) 만큼 증가하는 데, 만일 재 시도 카운트 회수가 BackOffRetries 이상이 되거나(S18), 또는 MACExecTime 시간 이내에 패킷 전송이 성공하지 못하게 되면(S19), 네트워크 계층으로 SEND_FAILED를 포함하는 DLLCompleted 프리미티브를 전달하게 된다(S20). When the p-DCSMA algorithm is retried, the upper limit of Wc is increased by WindowShift (e.g. 0,1,2,6), which is defined differently according to SvcPriority. (S18) Or, if the packet transmission is not successful within the MACExecTime time (S19), the DLLCompleted primitive including SEND_FAILED is delivered to the network layer (S20).

한편, 도 17에 도시한 바와 같이, p-DCSMA 알고리즘은, 예를 들어 디바이스 A가 패킷을 전송하고 있는 도중에 전송 준비가 되어 있는 디바이스 B,C,D는 전송 매체가 사용 중이지 않을 때까지 기다리게 되고, 상기 디바이스 A의 패킷 전송이 완료되면, 디바이스 B,C,D는 MinPktInterval 동안을 기다리고 나서 SvcPriority에 따라 정의되어 있는 RandomDelayTime을 발생시키게 된다.On the other hand, as shown in Fig. 17, the p-DCSMA algorithm causes, for example, that devices B, C, and D that are ready to transmit while device A is transmitting a packet wait until the transmission medium is not in use. When the packet transmission of the device A is completed, the devices B, C, and D wait for MinPktInterval and then generate a RandomDelayTime defined according to SvcPriority.

예를 들어, 디바이스 C가 가장 작은 RandomDelayTime을 발생시켰다면, 디바 이스 C는 패킷을 전송하고 디바이스 B와 D는 전송매체가 사용 중이지 않을 때까지 기다리며, 디바이스 C의 패킷 전송이 완료되면, 디바이스 B와 D가 p-DCSMA를 수행하고 나서, 경쟁에서 이긴 디바이스 D가 패킷을 전송하게 된다. For example, if device C generates the smallest RandomDelayTime, device C sends the packet, devices B and D wait until the transmission medium is not in use, and when device C completes packet transmission, After D performs the p-DCSMA, the device D, which won the contention, sends the packet.

한편, 상기 p-DCSMA에서 패킷이 전송될 확률은, 경쟁 윈도우의 크기(Wc)에 따라 결정되며, Wc는 전송 우선 순위(SvcPriority)가 높을수록 전송 확률이 높아야 하고, 패킷 생성 시간이 빠를수록 전송 확률이 높아야 하는 데, 상기 Wc를 정하기 위한 전송 우선 순위는, 하나 이상의 디바이스가 동시에 또는 비슷한 시간에 전송하려는 메시지들의 중요도를 가전 제품 사용자의 관점에서 평가된 값이며, 또한 높은(낮은) 우선 순위 값은 패킷이 전송되기 위한 대기 시간이 절대적으로 짧은(긴)것이 아니라 확률적으로 짧다(길다)는 것을 의미한다.Meanwhile, the probability of transmitting a packet in the p-DCSMA is determined according to the size of the contention window (Wc), and the higher the transmission priority (SvcPriority), the higher the probability of transmission should be. The transmission priority for determining the Wc is a value estimated from the point of view of the home appliance user of the importance of messages that one or more devices are trying to transmit simultaneously or at a similar time, and also has a high (low) priority value. Means that the waiting time for a packet to be sent is not short (long) but rather short (long).

그리고, 상기 Wc는 NPDU/HCNPDU에 포함되어 있는 SvcPriority에 따라, 도 18에 도시한 바와 같이, 설정될 수 있는 데, 높음(High) 우선 순위를 갖는 패킷은 중상 이하의 우선 순위를 갖는 패킷에 비하여 항상 전송될 수 있도록 설정되며, 중상(Medium High) 또는 중하(Medium Low) 우선 순위를 갖는 패킷은 낮음(Low) 우선 순위를 갖는 패킷에 비하여 항상 전송될 수 있도록 설정된다.The Wc may be set according to the SvcPriority included in the NPDU / HCNPDU, as shown in FIG. 18. A packet having a high priority is higher than a packet having a priority below a serious injury. A packet having a medium high or medium low priority is set to be always transmitted compared to a packet having a low priority.

또한, 발생 시간이 빠른 패킷의 전송 확률을 높이기 위하여, p-DCSMA 알고리즘에서는, 재 시도될 때마다 각 우선 순위에 대한 Wc의 상한을 각각 사전에 설정된 WindowShift 만큼 증가시키게 된다. In addition, in order to increase the transmission probability of a packet having a high occurrence time, the p-DCSMA algorithm increases the upper limit of Wc for each priority by a predetermined WindowShift for each retry.

이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것 으로, 본 발명이 적용되는 리빙 네트워크에는, 보다 다양한 가전기기들이 연결 접속될 수 있으며, 당업자라면, 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 또다른 다양한 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다. As described above, preferred embodiments of the present invention have been disclosed for purposes of illustration, and more various home appliances can be connected and connected to a living network to which the present invention is applied. Within the technical spirit and scope of the present invention disclosed in the above, other various embodiments may be improved, changed, replaced or added.

상기와 같이 구성 및 이루어지는 본 발명에 따른 데이터 링크 계층에서의 데이터 송수신 제어방법은, 예를 들어 집안 또는 집밖에 위치하고 있는 사용자가, 가정 내에 설치된 RS-485 네트워크, 소출력 RF 네트워크, 그리고 전력선(Power Line) 네트워크 등과 같은 리빙 네트워크(Living Network)를 통해, 냉장고 또는 세탁기와 같은 다양한 가전기기들을 동작 제어하거나, 또는 동작 상태를 모니터링할 수 있도록 함으로써, 사용자에게 원격 제어 및 감시의 편리성을 제공할 수 있게 되며, 또한 리빙 네트워크의 데이터 링크 계층에서, 물리 계층과 네트워크 계층간의 데이터 송수신 동작을 수행하는 경우, 전송 매체의 사용 여부를 확인하여, 데이터 패킷을 한 바이트씩 송수신함으로써, 리빙 네트워크의 계층간 데이터 송수신 동작을 보다 효율적으로 수행할 수 있게 되는 매우 유용한 발명인 것이다. The data transmission and reception control method in the data link layer according to the present invention configured and configured as described above may include, for example, an RS-485 network, a small output RF network, and a power line installed in a home by a user located inside or outside the home. Through a living network such as a network, various home appliances, such as a refrigerator or a washing machine, can be controlled or monitored, thereby providing a user with convenience of remote control and monitoring. In addition, when performing a data transmission / reception operation between a physical layer and a network layer in the data link layer of the living network, by checking whether a transmission medium is used, transmitting and receiving data packets one by one, thereby transmitting and receiving data between layers of the living network. To make your actions more efficient. It will be very useful inventions.

Claims (13)

리빙 네트워크의 물리 계층으로부터 전송되는 데이터를, 데이터 링크 계층에서 한 바이트 씩 수신하여 임시 저장하는 1단계; A step of temporarily storing data transmitted from the physical layer of the living network, one byte at a data link layer and temporarily storing the data; 상기 한 바이트가 수신된 시점부터 소정 시간 동안 추가적인 바이트가 수신되지 않으면, 데이터 수신 완료로 판단하여, 데이터 링크 계층을 데이터 수신 불가능 상태로 제어하는 2단계; 및 If an additional byte is not received for a predetermined time from when the one byte is received, determining that data has been received and controlling the data link layer to be in a data-receivable state; And 상기 임시 저장된 데이터를, 소정 데이터 포맷으로 구성하여, 네트워크 계층으로 전송한 후, 상기 데이터 링크 계층을 데이터 수신 가능 상태로 제어하는 3단계를 포함하여 이루어지는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 수신 제어방법. And controlling the data link layer to a data reception state after configuring the temporarily stored data in a predetermined data format and transmitting the data to the network layer. Way. 제 1항에 있어서,The method of claim 1, 상기 1단계는, 상기 물리 계층으로부터 전송되는 데이터 패킷을, 프레임 수신(FrameRcv) 프리미티브를 이용하여, 한 바이트 씩 수신하여 임시 저장하는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 수신 제어방법. In the first step, the data packet transmitted from the physical layer is received and temporarily stored one by one by using a frame reception (FrameRcv) primitive, characterized in that the data link control method in the data link layer. 제 1항에 있어서,The method of claim 1, 상기 2단계는, 상기 한 바이트가 수신된 시점부터, 사전에 설정된 프레임 타임아웃(FrameTimeOut) 시간동안 추가적인 바이트가 수신되지 않으면, 데이터 패킷 이 수신 완료되었다고 판단하는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 수신방법. In the second step, if an additional byte is not received for a preset FrameTimeOut time from the time point at which the one byte is received, the data packet layer determines that the data packet has been received. Receive method. 제 1항에 있어서,The method of claim 1, 상기 3단계는, 상기 임시 저장된 데이터를, 네트워크 계층 프로토콜 데이터 유니트(NPDU)로 구성하여, 네트워크 계층으로 전송한 후, 최소 패킷 간격(MinPktInterval) 시간이 지나면, 데이터 링크 계층을 데이터 수신 가능 상태로 제어하는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 수신방법. In step 3, the temporary stored data is configured as a network layer protocol data unit (NPDU) and transmitted to the network layer. After the minimum packet interval (MinPktInterval) time has elapsed, the data link layer is controlled to a data reception state. And a data receiving method at the data link layer. 리빙 네트워크의 디바이스에서, 데이터를 전송하고자 하는 경우, 전송 매체의 사용 여부를 확인하는 1단계; In the device of the living network, when the data is to be transmitted, checking whether a transmission medium is used; 상기 전송 매체가 소정 시간 동안 사용 중이지 않으면, 데이터 링크 계층을 데이터 수신 가능 상태로 변경하고 나서, 한 바이트를 송신한 후 송신 성공 여부를 확인하는 2단계; 및 If the transmission medium is not in use for a predetermined time, changing the data link layer to a data reception state, and then transmitting one byte and confirming whether transmission is successful; And 상기 송신 성공이 확인되면, 그에 상응하는 값을 네트워크 계층으로 전달하는 3단계를 포함하여 이루어지는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. And transmitting the corresponding value to the network layer, if the transmission is confirmed to be successful. 제 5항에 있어서,The method of claim 5, 상기 1단계는, 리빙 네트워크의 디바이스에서, 데이터를 전송하고자 하는 경 우, 데이터 링크 계층으로 전달되는 선로 상태(RptLineStatus) 프리미티브를 이용하여, 전송 매체의 사용 여부를 확인하는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. In the first step, when a device of a living network intends to transmit data, the data link layer determines whether a transmission medium is used by using a line status (RptLineStatus) primitive transmitted to the data link layer. Data transmission control method in. 제 6항에 있어서,The method of claim 6, 상기 전송 매체가 현재 사용 중이지 않으면, 상기 디바이스는, 최소 패킷 간격(MinPktInterval) 동안 지속적으로 전송 매체의 상태를 확인하고, 전송 매체가 사용 중이면, 전송 매체의 상태 확인 동작을 반복하는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. If the transmission medium is not currently in use, the device continuously checks the status of the transmission medium for a minimum packet interval (MinPktInterval), and if the transmission medium is in use, repeats the operation of checking the status of the transmission medium. A data transmission control method at a data link layer. 제 7항에 있어서,The method of claim 7, wherein 상기 최소 패킷 간격(MinPktInterval) 동안 전송 매체가 사용 중이지 않으면, 데이터 패킷의 우선 순위(SvcPriority)에 따라, 경쟁 윈도우(Wc)의 크기를 결정하고, 균일한 랜덤 지연 시간(RandomDelatTime) 값을 생성하여, 전송 매체의 상태를 확인하는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. If the transmission medium is not in use during the minimum packet interval (MinPktInterval), the contention window (Wc) is determined according to the priority (SvcPriority) of the data packet, and a uniform random delay time (RandomDelatTime) value is generated. And a method for controlling data transmission at the data link layer, the status of the transmission medium being confirmed. 제 5항에 있어서,The method of claim 5, 상기 2단계는, 상기 데이터 링크 계층을 데이터 수신 가능 상태로 변경하고 나서, 한 바이트를 송신할 때마다, 송신된 바이트와 수신된 바이트를 비교하여 송신 성공 여부를 확인하는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. In the second step, after changing the data link layer to a data reception possible state, each time one byte is transmitted, the data link layer is checked whether the transmission is successful by comparing the transmitted byte with the received byte. Data transmission control method in. 제 5항에 있어서,The method of claim 5, 상기 3단계는, 상기 송신 성공이 확인되면, 전송 오케이(Send_OK)를 포함하는 프리미티브를 네트워크 계층으로 전달하는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. In step 3, if the transmission is confirmed to be successful, the data transmission control method of the data link layer, characterized in that to transmit a primitive including a transmission OK (Send_OK) to the network layer. 제 5항에 있어서,The method of claim 5, 상기 송신 성공 여부를 확인한 결과, 실패한 경우, 전송 매체가 사용 중인지를 확인하여, 사용 중이면 전송을 유보하고, 사용 중이지 않으면 전송 절차를 실행하도록 하는 알고리즘을 재 시도하는 단계를 더 포함하여 이루어지는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. Checking whether the transmission is successful, and if it fails, checking whether the transmission medium is in use, reserving the transmission if it is in use, and retrying an algorithm for executing the transmission procedure if not in use. A data transmission control method in a data link layer characterized by the above-mentioned. 제 11항에 있어서,The method of claim 11, 상기 알고리즘은, 데이터 링크 계층이 비 규격화된 전송 매체를 사용하는 경우, 매체 접근 제어(MAC) 프로토콜로서 p-DCSMA(probabilistic Delayed Carrier Sense Multiple Access) 알고리즘인 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. When the data link layer uses a non-standardized transmission medium, the algorithm is p-DCSMA (probabilistic Delayed Carrier Sense Multiple Access) algorithm as a medium access control (MAC) protocol. Control method. 제 11항에 있어서,The method of claim 11, 상기 알고리즘을 재 시도한 카운트 회수가, 기 설정된 소정 회수 이상이거나, 또는 매체 접근 제어 실행 시간 이내에 데이터 송신을 성공하지 못하면, 전송 실패(Send_Failed)를 포함하는 프리미티브를 네트워크 계층으로 전달하는 단계를 더 포함하여 이루어지는 것을 특징으로 하는 데이터 링크 계층에서의 데이터 송신 제어방법. Forwarding a primitive including a transmission failed (Send_Failed) to the network layer if the number of times of retrying the algorithm is equal to or more than a predetermined number of times or if data transmission is not successful within the media access control execution time. And a data transmission control method at the data link layer.
KR1020050015579A 2005-02-24 2005-02-24 Data transmission and reception control method in data link layer KR101062219B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050015579A KR101062219B1 (en) 2005-02-24 2005-02-24 Data transmission and reception control method in data link layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050015579A KR101062219B1 (en) 2005-02-24 2005-02-24 Data transmission and reception control method in data link layer

Publications (2)

Publication Number Publication Date
KR20060094430A true KR20060094430A (en) 2006-08-29
KR101062219B1 KR101062219B1 (en) 2011-09-05

Family

ID=37602263

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050015579A KR101062219B1 (en) 2005-02-24 2005-02-24 Data transmission and reception control method in data link layer

Country Status (1)

Country Link
KR (1) KR101062219B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100847013B1 (en) * 2005-12-08 2008-07-17 한국전자통신연구원 Control Apparatus and Method of Retransmission on MAC for Multiple Receiver to Reduce Data Transmission Delay

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100847013B1 (en) * 2005-12-08 2008-07-17 한국전자통신연구원 Control Apparatus and Method of Retransmission on MAC for Multiple Receiver to Reduce Data Transmission Delay

Also Published As

Publication number Publication date
KR101062219B1 (en) 2011-09-05

Similar Documents

Publication Publication Date Title
KR100615806B1 (en) Data receiving method for data link layer
WO2006091040A1 (en) Layer structure of network control protocol and interface method
KR20070120098A (en) Method for setting home code in network system and device for network
US20100005166A1 (en) Network device
KR20070114740A (en) Packet structure and packet transmission method of network control protocol
US20060248228A1 (en) Home network system
KR20070118602A (en) Network system management method
KR20070120099A (en) Packet structure and packet transmission method of network control protocol
KR100735968B1 (en) Method for providing download and upload service in living network control system
KR20070119013A (en) Device for network system and method of transmitting profile
US20070019615A1 (en) Home network system
US20080164980A1 (en) Home Network System
KR20070117585A (en) Method of configuring network profile of network system
WO2005115096A2 (en) Home network system
US20080130687A1 (en) Data Receiving Method and Transferring Method for Data Link Layer
KR101062219B1 (en) Data transmission and reception control method in data link layer
KR101067333B1 (en) Method for managing layer structure in living network control system
US20070019654A1 (en) Home network system
KR20060089854A (en) Living network control system
WO2005094195A2 (en) Home network system
CN101164292A (en) Layer structure of network control protocol and interface method
KR20070120100A (en) Network control protocol device and network connection method
KR20060094427A (en) Method for executing network management general operation in living network control system
KR20060089855A (en) Method for communicating based event in living network control system
KR20060090356A (en) Method for controling transmission and receive using a communication cycle service in living network control system

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