CN1481126A - Ensuring method for controlling unified transmission between devices in sub network of household network - Google Patents

Ensuring method for controlling unified transmission between devices in sub network of household network Download PDF

Info

Publication number
CN1481126A
CN1481126A CNA021310254A CN02131025A CN1481126A CN 1481126 A CN1481126 A CN 1481126A CN A021310254 A CNA021310254 A CN A021310254A CN 02131025 A CN02131025 A CN 02131025A CN 1481126 A CN1481126 A CN 1481126A
Authority
CN
China
Prior art keywords
control
network
data
layer
transmission
Prior art date
Application number
CNA021310254A
Other languages
Chinese (zh)
Other versions
CN1178437C (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 CNB021310254A priority Critical patent/CN1178437C/en
Publication of CN1481126A publication Critical patent/CN1481126A/en
Application granted granted Critical
Publication of CN1178437C publication Critical patent/CN1178437C/en

Links

Abstract

In the method, before each original data controlling generation of sub network devices is sent, the said data are handled in a frame by protocol stack of the device. The key point is that each layer of protocol stack adds layer identifier byte for each layer in front of header byte of data series in sequence. The invented method assures that communication between devices in controlled sub networks in household network can be realized. Further, resources sharing between controlled sub networks cab realized.

Description

一种保证家庭网络中控制子网设备间统一传输的方法 A method for controlling a home network device sub-unified transfer between assurance

技术领域 FIELD

本发明涉及家庭网络中设备间的通信方法,特别是指一种保证家庭网络中控制子网设备间统一传输的方法。 The present invention relates to a method for communication between home network devices, and particularly to a method for controlling a home network device sub unified transfer between guaranteed.

发明背景随着人们物质生活水平的提高,家庭范围内的信息设备、通讯设备、娱乐设备、家用电器、自动化设备、保安监控装置等设备逐渐增多,同时由于个人计算机和因特网在家庭中的迅速普及、电讯技术的蓬勃发展以及智能设备的长足进步,家庭网络日益受到广泛关注,人们对简单、灵活、可靠的家庭网络的需求也愈显强烈。 Background of the Invention With the improvement of people's living standards, device information equipment, communications equipment, entertainment equipment, household appliances, automation equipment, security monitoring devices within the family gradually increased, and because of the rapid spread of personal computers and the Internet in the family booming telecommunications technology and the rapid progress of smart devices, home networks are increasingly attracted widespread attention, the demand for simple, flexible, reliable home network is also markedly effective strong. 产生了很多与之相关的提法,例如:智能家居(Smart Home)、电子家庭(Electronic Home,e-Home)、数字家园(Digital Family)、网络家居(Network Home)、智能化家庭(IntelligentHome)等等,其涵盖的内容是基本相同的,都源于家庭网络的概念。 It generated a lot of related formulation, such as: Smart Home (Smart Home), electronic home (Electronic Home, e-Home), digital home (Digital Family), home network (Network Home), intelligent home (IntelligentHome) etc., which covers are basically the same, are derived from the concept of the home network. 具体地讲家庭网络(Home network)包括四层含义:①家庭中的信息设备、通讯设备、娱乐设备、家用电器、自动化设备、保安监控装置等互联互通、资源共享,组成家庭智能化、数字化网络系统;②通过网关与社区、互联网连接,实现与家庭外部环境的信息交换;③家庭的设备及其连接的网络应该满足人们安全、方便、舒适、健康与绿色环保的基本需求,为人们提供身心愉悦的体验;④体现以人为本的理念,易于使用、安全可靠、方便维护、价格适宜,满足居家生活的特点。 Specifically, a home network (Home network) including four meanings: ① interoperability information devices in the home, communications equipment, entertainment equipment, household appliances, automation equipment, security monitoring devices, resource sharing, a family of intelligent, digital network system; ② through the gateway to the community, an Internet connection, enabling the exchange of information and outside the home environment; ③ family of devices and network connections should meet people's safety, convenience, comfort, health and environmental protection of basic needs, provide people with physical and mental pleasant experience; ④ reflect the people-oriented concept, easy to use, safe, reliable, easy to maintain, affordable to meet the characteristics of home life.

有鉴于此,申请人在另一专利申请中提出了一种数字家庭网络系统,如图1所示,该系统主要由网关11、一个以上主干网设备12和多个控制子网设备13构成,该网关11可以进一步包括两部分:门户网关110和控制网关111,门户网关110与控制网关111之间通过宽带接口相连。 In view of this, the applicant has proposed a further patent application a digital home network system shown in FIG. 1, the system consists of a gateway 11, over a backbone network devices 12 and a plurality of sub-control device 13, the gateway 11 may further comprise two parts: a portal gateway 110 and a control gateway 111, gateway 110 and the gateway is connected between the control interface via the broadband gateway 111. 基于此系统结构可以看出,该数字家庭网络由主干网和控制子网两个子网组成,其中,由门户网关110及与其连接的家用设备所形成的网络部分称为主干网,主干网主要用于实现信息设备、通讯设备、娱乐设备等的互连;而由控制网关111及与其连接的家用设备所形成的网络部分称为控制子网,控制子网主要用于实现家用电器、自动化设备、保安监控装置等设备的互连。 Systems based on this configuration can be seen that a digital home network backbone and two control sub subnets, wherein the network part by the gateway 110 and home gateway device connected thereto is referred to as forming the backbone of the backbone network is mainly used information for implementing the interconnection equipment, communications equipment, entertainment devices; and in part by the network gateway 111 and home control devices connected thereto are called point control subnet, subnet mainly used for controlling household appliances, automation equipment, interconnect apparatus security monitoring devices. 该数字家庭网络的核心思想就是:使家庭网络上的家用设备互连互通、资源共享。 The core idea of ​​the digital home network is this: the household equipment interconnection on a home network and share resources. 在此家庭网络系统中,门户网关、控制网关和服务器可统称为资源管理设备,用于管理网络资源。 The home network system, the portal gateway, server and gateway control can be collectively referred to as resource management device for managing network resources. 一般来说,主干网中的设备均具有较强的存储、计算能力,而控制子网中的设备存储、计算能力非常有限。 In general, the backbone has a strong storage device, computing power, memory and control device subnet, computing power is limited.

在上述数字家庭网络中,主干网与控制子网分别采用不同的网络协议实现各自网络设备间的互连互通与资源共享,主干网与控制子网之间通过门户网关与控制网关之间的互连实现通信,控制网关负责进行控制子网到主干网的设备描述映射,使主干网可以访问控制子网中的设备。 In the digital home network, the backbone network and control sub using different network protocols to achieve interconnection and resource sharing among each network device, the interaction between the backbone and the control between the subnetwork and the portal gateway Gateway Control even for communication, the gateway is responsible for the control device to control sub backbone describes the mapping, control access to the backbone network subnet devices.

在实际组网中,控制子网可以根据传输媒介的不同、实现功能的不同等等再划分为多个子网,比如按传输媒介的不同:有以电力线为传输媒质的子网、以双绞线为传输媒质的子网、以无线射频为传输媒质的子网、以红外线为传输媒质的子网等等。 On a network, the control sub-network according to different transmission media, and the like to achieve different functions of a plurality of sub-divided into subnets, according to different transmission media such as: There is a power line transmission media subnets, twisted-pair subnet transmission medium, the transmission medium is a wireless radio subnet to subnet infrared transmission medium, and the like.

为了保证所有设备之间能简单、方便地通信,对于每个控制子网设备均采用统一标准的描述方式,即面向对象设备(OOD,Object OrientedDevice)描述方式,该描述主要包括设备描述和服务描述,并且通过统一的对象控制语言(OCL,Object Control Language)来实现控制子网设备,相互间的控制与访问等操作。 In order to ensure easy and convenient communication between all the devices, described for each subnet controlled apparatus are unified standards, i.e., the object-oriented device (OOD, Object OrientedDevice) described embodiment, the description mainly includes the device description and service description and the control language (OCL, Object control language) to achieve control sub-device, and access control and other mutual operations through a unified object. 但由于各个控制子网的传输媒介不同,因此在不同子网中使用的传输协议也不同,各自采用适合自身的传输协议,比如:网络通信的传输控制协议/网际协议(TCP/IP)、工业控制总线通信协议、CEBus家庭总线控制协议等等。 However, due to different transmission media each control subnet, the transmission protocol used in different subnets or different, each for their own transmission protocol employed, for example: Transmission Control Protocol communication network / Internet Protocol (TCP / IP), industrial control bus communication protocol, CEBus family bus control protocol, and so on. 这些协议虽然很成熟,但其存在不同程度的问题,比如:TCP/IP协议过于复杂,要求的存储空间较大,相对会增加产品成本,不适合用于低成本的简单设备上;工业控制总线协议主要针对工业现场环境,加入了很多抗干扰机制,增加了通讯帧长以及额外运算量,同样不适合用于低成本的简单设备上;CEBus主要是基于电力线做为传输介质考虑的,设计过于复杂,且有一定的局限性。 Although these agreements very mature, but there are varying degrees of problems, such as: TCP / IP protocol too complicated, requiring larger storage space, will increase the relative cost of the product is not suitable for a simple low-cost equipment; industrial control bus the main agreement for industrial field environments, adding a lot of interference mechanisms to increase the communication frame length, and additional computation, and are not suitable for use on low-cost simple device; CEBus mainly as a transmission medium based on considerations of power lines, the design is too complex, and there are some limitations. 故此,很难直接以现有协议作为各控制子网间统一的协议,但如果没有统一的协议,即使设备有统一的描述,统一标准的操作命令,仍不能实现传输的统一,也就是说,无法实现互通。 Therefore, it is difficult to directly control each existing agreement as subnets uniform agreement, but if there is no uniform agreement, even if the device has a unified description, unified operation command, still can not achieve unity transmission, that is, unable to communicate.

发明内容 SUMMARY

因此,本发明的主要目的在于提供一种保证家庭网络中控制子网设备间统一传输的方法,使其保证家庭网络中控制子网设备间能相互通信,进而实现控制子网设备之间的资源共享。 Therefore, a primary object of the present invention is to provide a method for controlling a home network device sub-uniform transmission between guarantees, so to ensure the home network can communicate with each other in the sub-control apparatus, and thus the control of resources between subnets apparatus shared.

为达到上述目的,本发明的技术方案是这样实现的:一种保证家庭网络中控制子网设备间统一传输的方法,是将每个控制子网设备生成的原始数据在发送之前,由该设备的协议栈做成帧处理,关键在于:各层协议栈在数据序列头字节之前依次添加每层的层标识字节。 To achieve the above object, the technical solution of the present invention is implemented as follows: A method of controlling a home network device sub unified transfer between assurance, each control device is the original data generated subnet before sending, by the device protocol stack frame processing is made, the key lies in: the layers of the protocol stack layers each added sequentially before the identified data byte of the sequence header bytes.

设定每个控制子网设备的协议栈至少包括服务中间件和通讯中间件。 Each sub-network protocol stack setting control device includes at least service middleware and communications middleware. 那么,该方法进一步包括:a.原始数据在经过服务中间件中,添加应用程序数据单元(APDU);b.步骤a中生成的数据在经过通讯中间件时,依次添加传输程序数据单元(TPDU)、网络程序数据单元(NPDU)以及逻辑链路控制子层程序数据单元(LPDU)和媒介访问控制子层程序数据单元(MPDU)。 Then, the method further comprises: a raw data through the middleware service, an application to add data unit (APDU); b data is generated in a step when passing through the communication middleware, data transfer program sequentially adding unit (TPDU.. ), the network program data unit (the NPDU) and Logical link control sublayer program data unit (the LPDU) and media access control sub-layer program data unit (MPDU).

其中,步骤b进一步包括:添加网络程序数据单元之后,在当前数据序列之前加入信息长度字节和目的设备的家庭控制网络地址(HACN)字节。 Wherein step b further comprises: after the addition of a network program data unit, a length byte information added to the home control network and the destination device address (HACN) before the current sequence of data bytes.

可见,本发明所提供的保证家庭网络中控制子网设备间统一传输的方法,在原始数据进入控制子网中传输之前,在每个设备节点的各层协议栈处理中增加了统一的帧头,使得设备信息或操作命令在子网中传输时,能够利用已有网络标准协议直接透传到目的设备节点,且解析简单,从而使子网设备之间能简单方便的互连互通、共享每个设备节点所能提供的服务。 Seen, inter subnet method ensures uniform transmission apparatus according to the present invention provides the home network in the control data into the original control sub previous transmission, increases a unified protocol layers in the header node of each stack processing device so that the device or the operation command information transmission in a subnet, a network can utilize existing standard protocols transparently transmitted to the destination node, and parse simple, thereby enabling easy interconnection between the sub-devices, each share service device nodes can provide. 另外,本发明方法在每层协议栈增加的帧头结构简单,且包括所有相关的传输信息,能够容易地解析,兼容性、互操作性、可读性好。 Further, in the method of the present invention, each layer of the protocol stack increases simple header structure, and includes all relevant information transmission can be easily resolved, compatibility, interoperability and readable.

附图说明 BRIEF DESCRIPTION

图1为本发明采用的家庭网络系统结构示意图;图2为本发明家庭网络中控制子网的分层结构示意图;图3为本发明家庭网络中控制子网的详细分层结构示意图;图4为本发明所采用的家庭网络结构的一个具体应用实例图;图5为本发明方法实现的流程示意图。 FIG 1 is a schematic structure of a home network system using the present invention; schematic hierarchical structure of the home network control sub FIG. 2 of the present invention; detailed schematic view of a layered structure of the home network control sub FIG. 3 of the present invention; FIG. 4 a specific application example of a configuration of a home network FIG employed in the present invention; FIG. 5 is a schematic flow chart of the method of the invention implemented.

具体实施方式 Detailed ways

如图2所示,家庭网络中的控制子网从协议传输的角度来说,分为四层结构,从上至下依次是:服务中间件、通讯中间件、媒介通讯接口层和传输介质,对应国际标准化组织(ISO)的开放式系统互连(OSI)七层模型,本发明的控制子网采用了其中的五层:应用层、传输层、网络层、数据链路层和物理层,该四层结构的功能组成以及与OSI分层体系的对应关系,参见图2、图3进一步说明:其中,服务中间件(Service Middleware):主要由应用层(ApplicationLayer)构成,负责处理特定的应用程序细节,实现设备的具体功能,包括设备对象描述子层(OOD)和消息传输控制子层(MTC)。 2, the sub-control from the perspective of the home network transmission protocol is divided into four-layer structure, from top to bottom is: the service middleware, communication middleware, media, and transmission media communication interface layer, corresponding to the international organization for standardization (ISO) open systems interconnection (OSI) seven-layer model, the present invention uses the control subnet of which five: the application layer, transport layer, network layer, data link layer and the physical layer, the four layer structure of functional components and the correspondence between the OSI hierarchy, see FIG. 2, FIG. 3 is further described: wherein the middleware service (service middleware): mainly composed of an application layer (ApplicationLayer), responsible for the particular application program details, features specific implementation of the device, the device comprising object description sublayer (OOD), and message transmission control sublayer (MTC). 该服务中间件具有与外部连接的接口,即应用接入单元,该接入单元进一步包括应用程序单元(App Unit)、外部扩展接口(EEI)和人机交互/外部设备。 The service middleware and interface with an external connection, i.e., application of the access unit, the access unit further includes an application unit (App Unit), an external expansion interface (EEI) and interactive / external device. 因此,服务中间件可以通过人机界面、执行器驱动单元、输入单元、传感器单元等等与外部互通。 Thus, the service middleware, the actuator driving unit, an input unit, a sensor unit, etc. communicate with the outside via the HMI.

通讯中间件(Communication Middleware):由于控制子网中设备的通讯接口多种多样,为了简化服务中间件对通讯接口的处理,家庭控制子网采用通讯中间件来实现通讯接口的统一。 Communications middleware (Communication Middleware): Due to a variety of communication interface control device subnet, in order to simplify the process of service middleware communication interface, the use of home control sub-network communications middleware to implement unified communication interface. 通讯中间件对应OSI中的传输层、网络层和数据链路层,在数据链路层中又包括逻辑链路子层(LLC)和媒介访问子层(MAC)。 Communication middleware corresponding to the OSI transport layer, network layer and the data link layer, the data link layer further includes a logical link sublayer (LLC) sublayer and the media access (MAC). 该通讯中间件隐藏了底层通讯媒介的复杂性,为应用层提供端到端的通信。 The communication middleware hides the complexity of the underlying communication media to provide end to end communication application layer. 它所做的工作就是:将应用程序交给它的数据传给下面的媒介通讯接口层,提供可靠的端到端通信,其中包括了接口统一的处理。 All it does is this: the application of data passed to it by the following media communication interface layer that provides reliable end to end communication, including unified interface processing.

媒介通讯接口(Media Communication Interface)层:由于不同的媒介所采用的码元编码方式、数据通讯速率、CSMA/CD实现方式、硬件连接方式等等各有不同,该层就是根据不同的传输媒介来确定不同的媒介通讯接口。 Media communication interface (Media Communication Interface) layer: Since the encoding symbols of different media used, speed data communication, CSMA / CD implementations, hardware, connections, etc. vary according to the layer that is different transmission media determine the different media communication interface. 该层对应OSI中的物理层,进一步包括媒介无关子层(MI)、媒介相关子层(MD)以及媒介适配单元(MAU)。 The physical layer corresponding to the OSI layer, and further comprising a media independent sub-layer (MI), the relevant sub-layer media (MD) and a media adapter unit (MAU).

传输介质(Transmission Media):是实际应用中用于传输的物理传输媒介,控制子网中至少包括四种不同的物理传输媒介:220V住宅电力线(PL)、双绞线(TP)、无线射频(RF)以及红外线(Infrared);同时,还预留了其它可能媒介的通用接口,使得家庭网络的控制子网设备可以方便地使用新的物理介质。 Transmission medium (Transmission Media): is the actual application of the physical transmission medium for transmission, the control subnet comprises at least four different physical transmission media: 220V house power line (PL), twisted-pair (TP), radio frequency ( RF) and infrared (the infrared); it is also possible to set aside the other media common interface, so that the control device of the home network subnets can easily use the new physical media.

图4所示为本发明所采用的家庭网络结构的一个具体应用实例,图中,椭圆节点代表主干网设备节点,圆形节点代表控制子网设备节点,方形节点代表网关(Gateway),六边形节点代表路由器(router)。 A specific application example of a configuration of the home network shown in FIG. 4 of the present invention employed, the drawings, elliptical node represents the backbone network node device, the device control sub circular node represents a node, a gateway node represents a square (Gateway), hexagonal Representative shaped node router (router). 如图4所示,家庭网络主要包括主干网和控制子网两部分,其中主干网的核心是门户网关,由门户网关负责主干网设备间的互连及资源共享,并且,通过门户网关与外部网络相连;控制子网由至少一个子网构成,每个子网的划分可根据传输媒介的不同,或设备功能的不同,或按用户实际需求,每个控制子网之间通过路由器互连,该路由器将使不同的子网通过兼容的通讯协议进行通信。 As shown, a home network consists of two parts 4 and control sub backbone, wherein the backbone is the core gateway to gateway, the gateway is responsible for the portal interconnect backbone and resource sharing among devices, and, through the portal and the external gateway connected to the network; control sub constituted by at least one subnet, each subnet may be divided according to different transmission media of different, or device functions, or by the actual needs of users, each router controlled by the interconnection between subnets, the routers will enable different subnets compatible communication protocol. 本实施例中包括五个子网,是按传输媒介划分的。 The present embodiment includes five sub-embodiment, is divided by the transmission medium. 控制子网的核心是控制网关,由控制网关负责完成控制子网设备之间的互连和资源共享,同时,控制子网与主干网也通过控制网关相连接。 The core control is to control the subnet gateway, the gateway is responsible for the control and resource sharing to complete the interconnection between the sub-control device, while the control subnet is also connected via a backbone network gateway control.

在家庭网络的控制子网中,所有设备节点都对应一个节点标识,每个节点标识(Node ID)在本子网中必须是唯一的,不允许两个节点的标识(Node ID)相同。 In the control subnet home network, all devices node corresponds to a node identifier, each node identification (Node ID) must be unique in this subnet, it allowed the identification of two nodes (Node ID) the same. 同时,每个子网拥有自己的子网标识(Subnet ID)。 At the same time, each subnet has its own sub-network identifier (Subnet ID). 因此,每个控制子网设备都拥有独一无二的家庭控制网络地址(HACNAddress),该家庭控制网络地址由子网标识加节点标识来构成,即:Net ID+Node ID,该地址格式如表1所示: Thus, each control device has a unique subnet home control network address (HACNAddress), the control of the home network address of the subnet constituted by mark-node identifier, namely: Net ID + Node ID, the address format shown in Table 1 :

表1控制子网上的路由器根据每个设备节点独一无二的家庭控制网络地址来无缝连接不同的传输介质,这使得在路由器中不需要上层的协议栈来识别传输介质的差异性。 Table 1 subnet router control apparatus according to each node address unique to the home control network seamless connection of different transmission media, which eliminates the need for the upper layer protocol stack in the router to identify differences in the transmission medium.

在家庭网络的控制子网中,数据按以下的协议进行传输,其传输流程如图5所示:1)在原始数据包上添加服务中间件的标识。 In the control subnet home network, the following data transmission protocol, the transmission process shown in Figure 5: 1) add the identifier of the service middleware in the original packet. 由于应用层(ApplicationLayer)位于整个控制子网体系的顶部,负责处理特定的应用程序细节,实现设备的具体功能。 Since the application layer (ApplicationLayer) located across the top of the control sub-system is responsible for handling the details of a particular application, to achieve specific functions of the device. 当数据经过应用层时,产生应用程序数据单元(APDU,Application Program Data Unit)的包头,该APDU头即为服务中间件标识。 When the data is subjected to the application layer, the application generates header data unit (APDU, Application Program Data Unit), which is the service middleware APDU header identification. 该APDU头可以用1~16个字节,通常为1个字节,其格式及每一位的含义如表2所示: The APDU header can be 1 to 16 bytes, usually a byte, and each bit of the format described in Table 2:

表2表2中,第0~2位用于给出调用序号000~111,每次不同的调用,就使调用序号加1。 Table 2 In Table 2, 0 to 2 is given for the calling number 000 to 111, each time a different call causes the calling number plus one. 第3~5位表示APDU的类型,取值为001表示拒绝处理应用层服务数据单元(ASDU),取值为010表示处理ASDU的结果,取值为011表示收到ASDU正在处理,取值为100表示隐式调用,取值为101表示显示调用,其它取值均无意义。 3 to 5 indicates the type of APDU, the value 001 is rejected processing application layer service data unit (ASDU), 010 represents the value of the result of ASDU, 011 represents a value of received ASDU being processed, a value of 100 represents an implicit call, a value of 101 represents a display called, meaning no other value. 第6位表示APDU头部的模式,该位取1时,说明APDU头部只有一个字节,该位取0时,说明APDU头部有多个字节,如果有多个字节,那么跟随的下一个字节的低4位(bit0-3)应该指出APDU的总长度。 Bit 6 a schematic of an APDU header, when the bit takes a 1, indicating only one byte APDU header, this bit set to 0, indicating that there are more than one byte APDU header, if there are a plurality of bytes, followed lower 4 bits of the next byte (Bit0-3) It should be noted that the total length of the APDU. 第7位是保留位,用于将来的扩展,当前设定为1。 Bit 7 is a reserved bit for future expansion, currently set to 1.

其中,隐式调用(implicit invoke)类型表示:只要底层将数据送出,不关心是否能正确到达对方节点并正确处理,可以指定一个简单重复次数的参数;显式调用(explicit invoke)类型表示:期望目标节点在收到信息时,给予反馈。 Wherein the implicit call (implicit invoke) type represented: as long as the underlying data sent, do not care whether reach the other side the right node and proper treatment can specify parameters a simple repetitions; explicit call (explicit invoke) type represented: Expected target node upon receipt of information, give feedback.

2)在步骤1)所产生的数据包上添加通讯中间件标识,包括传输层包头--传输程序数据单元(TPDU)、网络层包头--网络程序数据单元(NPDU)以及数据链路层包头,该数据链路层包头又包括逻辑链路控制子层包头--逻辑链路控制子层程序数据单元(LPDU)和媒介访问控制子层包头--媒介访问控制子层程序数据单元(MPDU)。 2) adding the communication identification in the packet intermediate step 1) generated, includes a transport layer header - transfer program data unit (the TPDU), the network layer header - the network program data unit (the NPDU) and a data link layer header the data link layer header further includes a logical link control sub-layer header - Logical link control sublayer program data unit (the LPDU) and media access control sub-layer header - medium access control sublayer program data unit (the MPDU) .

传输层提供类似于数据链路层(DLL)所提供的服务,传输层的职责也是保证数据在端端之间完整传输,与DLL不同的是,传输层是在本地HACN网段之上提供这种功能,它可以检测到路由器丢弃的包,然后自动产生一个重新传输请求。 The transport layer provides similar data link layer (DLL) services provided by the transport layer functions is to ensure the complete transmission of data between end to end, and the DLL is different from the transport layer to provide it on the local network segment HACN functions, it can detect the router discards the packet, and then automatically generates a re-transmission request. 传输层的另一重要功能就是:将乱序收到的数据包重新排序,由于传输层能够识别出最初的包顺序,并且在将这些包的内容传递给传输层用户之前将它们恢复成发送时的顺序。 Another important function of the transport layer is to: receive the scrambled packet reordering, due to the transport layer packet can recognize the original order, and the contents of these packets is transmitted prior to the transport layer to send the user to restore them order of. 由于传输层(LLC)为通过层,所以目前TPDU的头部为空,即在此层数据透传。 Since the transport layer (LLC) layer through, so the current head TPDU is empty, i.e., data transfer through this layer.

网络层负责在源节点和目标节点之间建立它们所使用的路由,该层本身没有任何错误检测和修正机制,因此,网络层必须依赖于端端之间的由DLL提供的可靠传输服务。 The network layer is responsible for establishing the route they use between the source node and the destination node, the layer itself has no error detection and correction mechanism, therefore, it must rely on the reliable network layer transport services provided by end to end between the DLL.

网络层可以定义自己的路由地址结构,使本地控制子网上的节点建立通讯。 You can define your own network layer routing address structure, so that the local node control subnet to establish communication. 当数据经过网络层时,产生网络程序数据单元(NPDU)的包头。 When the data through the network layer, the network program data header generating unit (the NPDU) is. 网络层发送并接收至少一个字节的NPDU头,该NPDU头的格式及其含义如表3所示: Transmitting a network layer and at least one byte of the received NPDU header, the NPDU header formats and their meanings are shown in Table 3:

表3表3中,第0~1位、第3位和第7位为保留位;第2位代表介质的使用情况,取0时表示只在当前介质中传输,取1时表示后面跟随着所允许传输的介质的描述字节;第4位说明是否存在扩展字节,取0时表示没有扩展字节,取1时表示有扩展字节;第5~6位表示路由方式,取值为00时表示请求一个ID帧(Request_ID),取值为01时表示当前发送帧为ID帧(ID_Packet),取值为10时表示目录方式路由(Directory Route),即基于路由器上的路由表格发送,取值为11时表示洪泛方式路由(Flood_Route),即向所有允许的媒介上发送。 Table 3, 0 to 1, bit 3 and bit 7 of Table 3 are reserved; the use of two representatives of the medium, while 0 means transmits only the current medium, when a take represents followed with described allows transmission medium byte; bit 4 whether there is an extended byte, byte indicates no extension, take an extended expressed byte set to 0; 5 to 6 represent routing, the value is 00 represents an ID request frame (REQUEST_ID), represents the current value of the transmission frame is a frame ID (ID_Packet) 01, a value of 10 representing the directory routing mode (directory route), i.e., the transmission router based on routing tables, the value represents the flooding routing mode (Flood_Route) is 11, namely to allow transmission on all media.

一个配置好的设备在启动时,会发送一个ID_Packet出去作为登录消息;或者,路由器请求时,也会发送。 A device configured at startup, sends a registration message as ID_Packet out; or a router request, will send. 路由器使用ID_Packet来保持每个传输媒介上的节点列表。 ID_Packet router to maintain a list of nodes on each of the transmission medium.

3)数据链路层(DLL,Data Link Layer)与所有其他层一样,负责发送和接收,还要提供数据有效传输的端到端连接。 3) Data Link Layer (DLL, Data Link Layer) As with all the other layers, is responsible for sending and receiving, but also to provide effective transmission of data to-end connection. 数据链路层分为逻辑链路控制子层(LLC,Logical Link Control Sublayer)和媒介访问控制子层(MAC,Medium Access Control Sublayer)。 The data link layer is divided into sub-layer logical link control (LLC, Logical Link Control Sublayer) and media access control sublayer (MAC, Medium Access Control Sublayer). 当数据经过此两子层时,分别产生逻辑程序数据单元(LPDU,Logical Program Data Unit)和媒介程序数据单元(MPDU,Medium Program Data Unit)的包头。 When this data is subjected to two sub-layers, generate header data logic unit (LPDU, Logical Program Data Unit) and the media program data unit (MPDU, Medium Program Data Unit) of.

在发送方,DLL需负责将指令、数据等包装到帧中,帧是DLL层生成的结构,它包含足够的信息,确保数据可以安全地通过本地HACN网络到达目的地。 In the sender, the DLL is responsible packaging instructions, data, and the like into the frame, the frame structure is generated DLL layer, which contains enough information to ensure that data can safely reach the destination through a local network HACN.

成功发送意味着数据帧要完整无缺地到达目的地,因此,在帧中包含一种机制用于保证在传送过程中内容的完整性。 Success means that the data frame to send the complete destination to perfection, therefore, contain a mechanism for ensuring the integrity of the content during transmission in the frame. 为确保数据传送完整安全到达,必须满足两点:a.在每个帧完整无缺地被目标节点收到时,源节点必须收到一个响应。 To ensure complete transfer of data arrived safely, must satisfy points:. A when each frame is received intact target node, the source node must receive a response.

b.在目标节点发出收到帧的响应之前,必须验证帧内容的完整性。 B. issuing integrity before the response frame, the frame must verify the contents of the destination node.

有很多情况会导致帧的发送不能到达目标;或者在传输过程中被破坏;或不能使用,DLL有责任检测并修正所有这些错误。 There are many cases cause the transmission can not reach the target frame; or is corrupted during transmission; or can not be used, DLL responsibility to detect and correct all of these errors.

DLL的另一职责就是重新组织从物理层收到的数据比特流(bitstream)。 Another function of the DLL is to reorganize the data bit stream received from the physical layer (bitstream). 不过,如果帧的结构和内容都被发出,DLL并不重建一个帧;并且,DLL缓存到达的比特流直到这些比特流构成一个完整的帧。 However, if the frame structure and content are issued, the DLL is not reconstruct a frame; and, the DLL cache until they reach a bit stream bitstream constituting a complete frame.

由于逻辑链路控制子层(LLC)为通过层,所以LPDU的头为空,数据透传。 Since the LLC sublayer (LLC) layer through, so LPDU head is empty, the data relay. 而增加了MPDU包头的这个帧是数据传输的最终形式,其包括很多传输相关信息,比如:节点地址、信息长度、信息内容、校验等等。 Increasing the MPDU header frame is the final form of the data transmission, which includes a lot of information transmission, such as: node address, length information, content information, and the like check. 此处,MPDU包头是一个帧的独立码元序列,其格式如表4所示: Here, the MPDU header is independent of the sequence of symbols of a frame, the format as shown in Table 4:

表4表4中,帧头(Preamble)是固定的帧起始标志,根据传输媒介而定,传输媒介不同,MAC使用的帧起始标志也不同;控制域(Control field)表示控制信息字节,通常为1个字节;目标节点地址(Destination Address)指接收方的地址(HACN Address);源节点地址(Source Address)为发送方的地址(HACN Address);信息域长度(Information Field Length)指出后面的信息域的长度;信息域(Information field)中为需要传输的信息;帧校验序列(Frame Check Sequence)是在MAC子层进行错误检测的校验码,一般采用CRC-16循环冗余校验方式(Cyclic Redundancy Check)。 Table 4, the header (a Preamble) are fixed frame start flag, in accordance with a given transmission medium, different transmission media, using the MAC frame start flag are different; the control domain (Control field) control information indicating byte usually 1 byte; destination node address (Destination address) refers to the address of the recipient (HACN address); a source node address (source address) is the address of the sender (HACN address); length of the information field (information field length) information field indicates the length of the latter; information field (information field) for the information to be transmitted; a frame check sequence (frame check sequence) check code error detection is performed in the MAC sublayer, generally using CRC-16 cyclic redundancy I check mode (Cyclic Redundancy check).

每个MAC帧都包括一个控制域,来决定MAC子层处理相关的媒介访问控制子层服务数据单元(MSDU)的参数。 Each frame includes a MAC control field, determines the MAC sublayer processing parameters associated media access control sublayer service data units (the MSDU) a. 控制域内容由MAC子层根据所提供的数据请求的服务原语来产生,控制域长度是可变的,基本的控制域为1个字节(8bit)。 Field is generated by the control content according to the MAC sublayer service primitives provided by the requested data, the control field length is variable, the basic control domain 1 byte (8bit). 该控制域字节的格式及含义如表5所示: The byte format of the control field and are given in Table 5:

表5控制域决定了帧类型、帧优先级、服务类型和序列号。 TABLE 5 control field determines the frame type, the frame priority, type of service and serial number. 其中,序列号是控制域的第7位,占用一个比特位,每次网络层发出新的传输请求时该值都取反;在数据链路层进行重传尝试时,序列号应该保持不变,如此,序列号和源地址作为一对,使得接收节点可以区分并丢弃重复帧。 Wherein the sequence number is a 7 bit control field, occupying one bit, each time the network layer issuing the transmission request new value are inverted; retransmission attempts when the data link layer, a sequence number should remain unchanged , thus, sequence number and source address as a pair, so that the receiving node can differentiate between frames and discards duplicates.

控制域的第6位为服务类型,取0时表示基本服务帧,取1时表示扩展服务帧。 The control field of 6 bits for the service type, while 0 means the basic service frames representing an extended service frames 1 taken.

控制域的第5位为地址缩略标志,如果地址缩略标志为1,表示后面的目标节点地址、源节点地址都经过缩略,只有节点编号(Node ID)部分,没有子网编号(Subnet ID)部分,即目标节点地址和源节点地址各由2个字节组成,如表6所示,该功能用于同一子网内的数据传输,即当MAC子层判断出接收方和发送方的子网地址一致时,可以采用地址缩略方式。 5-bit control field is abbreviated address flag, if the address flag is abbreviated 1, showing the back of the target node address, source node address have been abbreviated, only the node number (Node ID) portion, there is no subnet numbers (Subnet ID) part, i.e. the destination node address and source node address of two bytes each, as shown in table 6, the function for data transmission within the same subnet, i.e., when the MAC sub-layer is determined that the sender and receiver when the same subnet address, the address can be used abbreviated way. 比如:目标节点地址为00 3302 2D,源节点地址为00 3304 23,目标节点与源节点的子网地址均为00 33,那么,在控制域设置了地址缩略方式后,传输地址格式为:02 2D04 23。 For example: a target node address 00 3302 2D, the source node address is 00330423, the subnet address of the destination node and the source node are 0033, then, after setting the control field thumbnail address, the transmission address format is: 02 2D04 23. 如果地址缩略标志为0,表示后面的目标节点地址和源节点地址均由4个字节构成,不作任何缩略。 If the abbreviated address flag is 0, the latter represents the destination node address and source node address constituted by 4 bytes, without any contraction. 在帧必须跨越子网时,只允许采用地址不缩略的形式。 When the frame to be across subnets, not only allows the use of abbreviated address format.

表6控制域的第3、4位用于指明帧的优先级,分别为:00--高优先级;01--标准优先级;10--低优先级;11--未定义。 Table 6 Control field bits indicate the frame 3,4 priority are: 00-- high priority; 01-- standard priority; 10-- low priority; 11-- undefined.

控制域的最低3位指出了帧类型,包括7种帧类型:000表示即时确认型反馈(IACK);001表示确认型数据(ACK_DATA);010表示无确认型数据(UNACK_DATA);011目前未定义;100表示失败型反馈(FAILURE_ACK);101表示需记录确认型数据(ADR_ACK_DATA);110表示需记录即时确认型反馈(ADR_IACK);111表示需记录无确认型数据(ADR_UNACK_DATA)。 Minimum three control field indicates the frame type, including seven kinds of frame types: type 000 means instant confirmation feedback (IACK); 001 to confirm the data type (ACK_DATA); 010 means no acknowledgment type data (UNACK_DATA); 011 are currently undefined ; feedback type 100 indicates failure (FAILURE_ACK); 101 denotes acknowledgment type data to be recorded (ADR_ACK_DATA); 110 denotes a recording for an immediate acknowledgment feedback type (ADR_IACK); 111 denotes no acknowledgment type data to be recorded (ADR_UNACK_DATA). 其中,四类帧代表正常的数据传输:①确认型数据(ACK_DATA)和需记录确认型数据(ADR_ACK_DATA)代表带确认服务的数据帧;②无确认型数据(UNACK_DATA)和需记录无确认型数据(ADR_UNACK_DATA)的帧类型代表无确认服务的数据帧。 Wherein the four frame represents the normal data transmission: ① acknowledgment type data (ACK_DATA) and confirmed to be recorded on behalf of the service with the data frame type acknowledgment data (ADR_ACK_DATA); ② no acknowledgment type data (UNACK_DATA) and unacknowledged Data to be recorded (ADR_UNACK_DATA) frame type represents no acknowledgment of service data frame. 另外,有三类帧代表目标节点的即时确认(IACK):①即时确认型反馈(IACK)表明该帧是一个基本的无需记录的,在收到后立刻反馈的接收确认;②失败型反馈(FAILURE_ACK)表明帧是一个基本的无需记录的失败反馈帧;③需记录即时确认型反馈(ADR_IACK)表明帧是一个需做记录的即时确认的反馈,ADR_IACK帧在信息域中可以包含肯定的或否定的确认响应。 In addition, there are three types of frames Instant Confirmation (IACK) on behalf of the target node: ① instant confirmation type feedback (IACK) indicates that the frame is a basic need not be recorded, to receive confirmation immediately after receiving feedback; ② failure type feedback (FAILURE_ACK ) indicates that frame is a basic failure of the feedback frame without having to record; ③ need to record instant confirmation type feedback (ADR_IACK) indicates that a frame is to be done to confirm the record of the instant feedback, ADR_IACK frame information field may contain positive or negative acknowledgment.

表5所示控制域的详细结构与取值范围及其含义如表7所示: Table 5 shows the detailed structure of the control range field and their meanings are shown in Table 7:

表7对于表4中所述的目标节点地址与源节点地址,每个目标节点或源节点的设备地址(HACN Address)均标准的由子网编号和节点编号构成,子网编号和节点编号分别占用2个字节,其具体格式如表1所示。 Table 7 Table for the destination node address and source node address in claim 4, the device address of each destination node or source node (HACN Address) from the subnet numbers are standard in the node number and configuration, subnet numbers and node numbers are occupied 2 bytes, the specific format shown in table 1. 举个例子来说,某HACN设备的地址为00 33 04 23,则表示该设备的子网编号是0033,节点编号是04 23,每个字节均用16进制表示。 For example, the address of a device HACN is 00330423, then the device is subnet numbers 0033, 0423 is the node number, each byte hexadecimal notation.

在传输时,通常先传输2个字节的节点编号,然后跟随2个字节的子网编号,源节点与目标节点完全相同。 In the transmission, the transmission is generally the first 2-byte node number and follow the subnet number 2 bytes, the same as the source node and the destination node. 因此,传输时的格式如表8所示: Thus, the transmission format as shown in Table 8:

表8例如,目标节点地址为00 3302 2D,源节点地址为00 3304 23,那么传输时的字节顺序应为:02 2D00 3304 2300 33。 Table 8 example, the destination node address 00 3302 2D, the source node address is 00330423, then the byte transmission should be the order of: 02 2D00 3304 2300 33.

表4中的信息域长度代表了帧中承载的信息域的字节数,该信息域长度由1~2个字节组成。 Information field length in Table 4 represent the number of bytes carried in the information field of a frame, the length of the information field of 1 to 2 bytes. 在第一个字节的最高位(Bit 7)定义了超长标志,以决定是否存在第二个长度字节。 A most significant bit of the first byte (Bit 7) defines a long flag, to determine whether there is a length of the second byte. 如果信息域长度少于128个字节(0~127),那么不存在第二个长度字节,一般绝大多数帧不存在第二长度字节。 If the information field is shorter than 128 bytes (0 to 127), then the length of the second byte is not present, the vast majority of the general frame of the second length byte does not exist. 该第一字节的位含义如表9所示: The meaning of the bits of the first byte as shown in Table 9:

表9第二字节的位含义如表10所示: Table 9 bits of the second byte as given in Table 10 below:

表10举例来说,0x2E,二进制为00101110,表示信息域的长度为十进制的46个字节,并且后面没有第二个信息域长度字节。 TABLE 10 For example, 0x2E, is binary 00101110, showing the length of the information field of 46 bytes in decimal, and there is no second back length byte information field. 而0x8F 0x34则表示有第二个信息域长度字节,信息域的长度为0x0F34字节长,也就是长度为十进制的3892字节。 0x8F 0x34 and indicates a second information field with a length byte, the length information field is 0x0F34 bytes long, i.e. a length of 3892 bytes in decimal.

因此,理论上信息域可以容纳的最多字节数为:27+8-1=215-1=32767字节。 Thus, theoretically maximum number of bytes of information fields can be accommodated: 27 + 8-1 = 215-1 = 32767 bytes. 此时,信息域长度的两个字节为0xFF 0xFF,代表长度0x7FFF。 At this time, two-byte length information field is 0xFF 0xFF, representative length 0x7FFF. 但实际上,为了提供网络传输的效率,一般规定HACN上所有的帧信息域长度不得超过2048个字节。 But in fact, in order to provide the network transmission efficiency, usually the predetermined information fields HACN all frames must be less than 2048 bytes.

表4中的信息域(Information field)代表需要传输的信息,其所允许的长度为0~2048字节。 Information fields in Table 4 (Information field) needs information representative of the transmission, it allows a length of 0 to 2048 bytes. 对于正常的数据传输帧,信息域是必须存在的,包含一个MSDU单元。 For normal data transmission frame information field must exist, comprising a MSDU unit. 传输时,信息域的内容用“Data”参数,通过MA_DATA.req或者MA_ACK_DATA.req服务原语从LLC子层传给MAC子层。 When transmission of the content information field with "Data" parameters passed from the MAC sublayer through the LLC sublayer service primitives MA_DATA.req or MA_ACK_DATA.req. 接收时,信息域的内容用“Data”参数,通过MA_DATA.ind或者MA_ACK_DATA.ind服务原语从MAC子层传给LLC子层。 Upon receiving the content information field with "Data" parameters passed from the LLC sublayer through the MAC sublayer service primitives MA_DATA.ind or MA_ACK_DATA.ind.

MAC子层并不访问信息域的内容,信息域的格式是由节点传输层、网络层和应用层的规范进行定义和描述的。 The MAC sublayer does not access the contents of the information field, information field format is carried out by the standardized application layer and a network layer node transport layer defined and described.

对于接收方发出的确认帧,也包含信息域。 For the receiver sends the acknowledgment frame, it includes information fields. 允许长度为0~2个字节。 Allowed length of 0 to 2 bytes. 确认帧的信息域提供了附加的信息给数据链路层。 Acknowledgment frame information field provides additional information to the data link layer. 例如:需记录即时确认型反馈(ADR_IACK)带有两种类型:接收成功(Success)和远端拒绝错误(Fail_Remote_Reject)。 For example: for an instant confirmation record type feedback (ADR_IACK) with two types: reception success (Success) and a distal end denied error (Fail_Remote_Reject). 这个域不包含任何需要提供给LLC子层之上的信息,因此目前不对确认帧的信息域取值进行设置。 This field does not contain any information on the need to provide the LLC sub-layer, and therefore does not currently profile frame field value is set.

表4中帧校验序列(FCS,Frame Check Sequence)在MAC子层进行错误检测,一般采用CRC-16循环冗余校验方式(Cyclic Redundancy Check),即FCS域包含一个16位的CRC校验,用来检查报文的有效性。 Table 4, a frame check sequence (FCS, Frame Check Sequence) for error detection in the MAC sublayer, generally using CRC-16 cyclic redundancy check (Cyclic Redundancy Check), i.e., FCS field contains a 16-bit CRC checksum used to check the validity of the message. CRC的计算需从控制域字节开始,直到信息域的最后一个字节结束,不包含帧头字节。 CRC calculation starts from the need to control field bytes until the last byte of the information field of the end, it does not contain a header byte. CRC-16的计算基于生成多项式:x16+x15+x2+1。 CRC-16 is calculated based on the generator polynomial: x16 + x15 + x2 + 1.

数据送入的顺序为最低位(LSB,Least Significant Bit)到最高位(MSB,Most Significant Bit)。 Order of the data fed into the least significant bit (LSB, Least Significant Bit) to the most significant bit (MSB, Most Significant Bit). 并且,对于给定的多项式,所使用的掩码(mask)符合以下规定:1>由一个17bit数值来代表多项式;2>假定最高位和最低位为1;3>把右边的16位放入一个整数中;4>在串行传输时,如果最低位先发送,那么位需要取反。 And, for a given polynomial, used a mask (mask) meet the following requirements: 1 & gt; of a 17bit value to represent polynomial; 2 & gt; is assumed that the most significant bit and least significant bit of 1; 3 & gt; the right of the 16-bit into an integer; 4 & gt; when the serial transmission, if the transmitted least significant bit first, then the bit is inverted.

下面结合具体实施例对本发明方法及上述分析作进一步详细的说明。 The following specific embodiments of the present invention and the above-described bonding method of analysis described in further detail.

以控制一台家庭网络控制子网中的电视机亮度为例,目标是将该电视机的显示亮度调节为50%。 To control a luminance of the television home network control subnet, where the aim is to adjust the brightness of a television display is 50%.

由于该电视机在加入网络时已将自身的设备和服务信息注册在控制网关上,因此从控制网关上可以获取该电视机的所有描述信息,比如:该电视机的HACN地址为00 0103 F2,视频显示服务的服务类别号为13,亮度控制对象的对象类别号为03;控制操作采用的动作为SetValue(45),具体操作对象中的成员变量为Current_Value(43),操作参数对应的值为F535 30。 Since the TV when they join the network has its own equipment and service information registered on the gateway control, so you can get all the information describing the television set from the control gateway, such as: the TV HACN address 00 0103 F2, video display service category number of the service 13, object brightness control object class number is 03; the operation of a control operation employed is SetValue (45), the object member variable is the specific operation Current_Value (43), the corresponding operating parameter value F535 30.

上述操作涉及到的每项参数及其相应的取值如表11所示: Each of the above-described operation relates to the parameters and their corresponding values ​​as shown in Table 11:

表11由上述参数属性,即可形成一条完整的对象控制语言(0CL)指令。 Table 11 by the property parameter, to form a complete control language objects (0CL) instruction. 该指令数据经过服务中间件时,添加APDU头E0,表示只有一个字节的隐式调用,调用序号为000。 The instruction data passes through the middleware services, add APDU header E0, represents only one byte implicit call, the call number is 000. 经过通讯中间件时,先添加上NPDU头CB,表示为目录方式的路由,没有扩展字节,在当前介质中传输;再添加上MPDU头21,表示为确认型数据,高优先级,地址已缩略,序列号为零。 Communication middleware passes, first add the NPDU header CB, denoted as route directory mode, no extension byte, the current transmission medium; Adds plus MPDU head 21, represented as a confirmed data type, high priority, address abbreviated, sequence number zero. 那么,该原始数据13 03 45 43 F5 35 30,经过各层处理后,最后在网络中传输的数据为:2100 01 03 F209 CB E013 03 45 43 F5 35 30。 Then, the original data 13 03 45 43 F5 35 30, after the layers, and finally the data in the transmission network is: 2100 01 03 F209 CB E013 03 45 43 F5 35 30. 其中,21为MPDU头;其后00 01 03 F2为HACN地址;09表示信息域长度为9个字节,该长度包括APDU的1个字节、NPDU的1个字节和原始数据的7个字节;CB、E0分别为NPDU头和APDU头,最后的7字节16进制序列即为原始数据。 Wherein the first MPDU 21; 00 01 03 F2 followed by the address of HACN; 09 represents information field length is 9 bytes, the byte length comprises an APDU, the NPDU 7 and 1 byte of raw data byte; CB, E0 respectively NPDU header APDU header and a last byte of hexadecimal 7 is the sequence of the original data. 该经过各层处理的数据会被送到媒介通讯接口层通过当前传输媒介在控制网络中传输。 After processing the data of each layer will be sent to the media communication interface layer in the current transmission medium for transmitting the control network through.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above are only preferred embodiments of the present invention but are not intended to limit the scope of the present invention.

Claims (4)

1.一种保证家庭网络中控制子网设备间统一传输的方法,是将每个控制子网设备生成的原始数据在发送之前,由该设备的协议栈做成帧处理,其特征在于:各层协议栈在数据序列头字节之前依次添加每层的层标识字节。 CLAIMS 1. A method to ensure that a home network device sub-uniform transmission between the control, is the subnet each control device generates the raw data prior to transmission by the protocol stack of the apparatus is made a frame processing, wherein: each of layer protocol stack of each layer is added sequentially before the identified data byte of the sequence header bytes.
2.根据权利要求1所述的方法,其特征在于:设定每个控制子网设备的协议栈至少包括服务中间件和通讯中间件。 2. The method according to claim 1, characterized in that: the setting of each protocol stack of the control device comprises at least a subnetwork service middleware and communication middleware.
3.根据权利要求2所述的方法,其特征在于该方法进一步包括:a.原始数据在经过服务中间件中,添加应用程序数据单元(APDU);b.步骤a中生成的数据在经过通讯中间件时,依次添加传输程序数据单元(TPDU)、网络程序数据单元(NPDU)以及逻辑链路控制子层程序数据单元(LPDU)和媒介访问控制子层程序数据单元(MPDU)。 3. The method according to claim 2, characterized in that the method further comprises: a raw data through the middleware service, an application to add data unit (APDU); b generated in Step a data communication through. middleware sequentially adding unit transmitting the program data (the TPDU), the network program data unit (the NPDU) and Logical link control sublayer program data unit (the LPDU) and media access control sub-layer program data unit (MPDU).
4.根据权利要求3所述的方法,其特征在于步骤b进一步包括:添加网络程序数据单元之后,在当前数据序列之前加入信息长度字节和目的设备的家庭控制网络地址(HACN)字节。 4. The method according to claim 3, wherein the step b further comprises: after the addition of a network program data unit, a length byte information added to the home control network and the destination device address (HACN) before the current sequence of data bytes.
CNB021310254A 2002-09-24 2002-09-24 Ensuring method for controlling unified transmission between devices in sub network of household network CN1178437C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021310254A CN1178437C (en) 2002-09-24 2002-09-24 Ensuring method for controlling unified transmission between devices in sub network of household network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021310254A CN1178437C (en) 2002-09-24 2002-09-24 Ensuring method for controlling unified transmission between devices in sub network of household network

Publications (2)

Publication Number Publication Date
CN1481126A true CN1481126A (en) 2004-03-10
CN1178437C CN1178437C (en) 2004-12-01

Family

ID=34144743

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021310254A CN1178437C (en) 2002-09-24 2002-09-24 Ensuring method for controlling unified transmission between devices in sub network of household network

Country Status (1)

Country Link
CN (1) CN1178437C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747478B (en) * 2004-09-06 2010-05-05 乐金电子(天津)电器有限公司 Data process in network layer
CN1747477B (en) 2004-09-06 2010-05-05 乐金电子(天津)电器有限公司 Data process in network layer
CN102347955A (en) * 2011-11-01 2012-02-08 杭州依赛通信有限公司 Reliable data transmission protocol based on virtual channels

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747478B (en) * 2004-09-06 2010-05-05 乐金电子(天津)电器有限公司 Data process in network layer
CN1747477B (en) 2004-09-06 2010-05-05 乐金电子(天津)电器有限公司 Data process in network layer
CN102347955A (en) * 2011-11-01 2012-02-08 杭州依赛通信有限公司 Reliable data transmission protocol based on virtual channels

Also Published As

Publication number Publication date
CN1178437C (en) 2004-12-01

Similar Documents

Publication Publication Date Title
US5918019A (en) Virtual dial-up protocol for network communication
CA2168351C (en) Method and apparatus for connecting a node to a wireless network using a standard protocol
DE60118609T2 (en) Cable modem system and method for supporting extended protocols
EP2832057B1 (en) Content centric m2m system
AU769723B2 (en) Internet control system and method
EP0503207B1 (en) Adaptation device and method for efficient interconnection of data processing devices and networks
US5835725A (en) Dynamic address assignment and resolution technique
JP4236398B2 (en) Communication method, communication system, and communication connection program
Iren et al. The transport layer: tutorial and survey
CN100534086C (en) Method and apparatus for realizing multi-business branch on elastic package loop
US20070091901A1 (en) Packet tag for support of remote network function/ packet classification
KR100588720B1 (en) Packet transferring method for data link layer
US7272153B2 (en) System and method for distributed processing of packet data containing audio information
Stevens TCP/IP illustrated vol. I: the protocols
US6094525A (en) Network addressing arrangement for backward compatible routing of an expanded address space
Mamakos et al. A method for transmitting PPP over Ethernet (PPPoE)
KR100605218B1 (en) Network adaptor
US7411973B2 (en) System and method for interfacing with a management system
US20060248208A1 (en) Method and apparatus for universal data exchange gateway
US6697372B1 (en) Local area network accessory for integrating USB connectivity in existing networks
JP2006503513A (en) Common protocol hierarchy and method and common protocol packet for mutual data transmission between heterogeneous protocols.
CN105308912B (en) For the method and system synchronous with the neighbours in distributed elastic network interconnection (DRNI) link aggregation group
US7991351B2 (en) Extension of wired controller area networks to wireless personal area networks
KR100638017B1 (en) Network device
JP3821424B2 (en) Dynamic communication channel switching for computer networks

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model