摘要
家庭网络的发展使家庭设备自动化进入一个新的时代,促进了家庭设备联网、互动、资源共享、远程控制。当前出现的家庭网络协议都很好地实现了这些目标,但是这些协议的实现都要求较高处理能力的硬件设备,并且对基于服务发现的控制界面自动生成技术研究较少。本文提出基于服务发现的面向界面自动生成的家庭网络协议,该协议基于TCP/IP的编码形式,降低实现的处理能力要求,并且定义了生成界面的关键信息。
本文主要的工作如下:
1、对常用家电控制器、PC机上的虚拟设备控制界面进行分析。提炼出生成控制界面的关键信息:服务区域划分、按键图形与定位,并将该信息整合到面向界面自动生成的家庭网络协议中,运用于服务呈现的界面自动生成方法中。
2、设计出支持即插即用和动态服务更新的面向界面自动生成的分布式家庭网络协议。协议定义了基于TCP/IP之上消息交互和编码,包含四部分:服务发现、服务描述、服务控制、事件通告,能完成服务自动发现、自动更新、分布式控制。
3、设计出B/S结构的家庭网关系统。该系统是基于本文协议,采用HTTP Server和CGI技术。家庭网关从服务描述消息和事件通告消息中获取服务状态和界面生成关键信息,根据HTML模板,自动生成能够呈现出服务状态和可操作的服务控制界面的HTML文件。用户通过远程终端上的浏览器访问家庭网关,就能够获取服务控制界面,并进行操作。
本文的创新之处主要在于:
1、提出“界面生成关键信息(KIIG)”的概念。提出对控制界面按服务相关进行区域划分和拼接,以及对控制按键的抽象编码和定位,综合为“界面生成关键信息”。该信息能够成功地通过编码的消息传输。
2、提出基于TCP/IP之上编码的家庭网络协议。该协议面向界面自动生成,支持即插即用、动态服务更新。
The automation of household facilities has been raised into a new age by home networks technology. Household facilities have become networking, interactive, resource sharing and remote controlled. These goals have been reached by those home-networking-protocols nowadays. But those home networking protocol require a high processing capacity. Up to now, there are few solutions for automatioc generation of interface generation. The Home Network Protocol for Automatic Generation of Interface in the paper bases on TCP/IP and byte-coding, which reduces request of processing capacity. Key-Infromation of Interface Generation is also defined in this protocol.
The main work is as follows:
1. The controller of household facilities and the control interface of soft-devices on PC are analyzed. The following points are abstracted: partition according service relation; figure and orientation of buttons. These have been integrated to the protocol and used in the automatic generation of interface.
2. The Home Network Protocol for Automatic Generation of Interface has been researched and designed. The protocol supports plug and play, and automatic update of service. In the protocol, the interaction and encode of message has been defined. It contains four parts: discover of service, description of service, control of service and event notify. It is successful in automatic discover and update, and distributed control of service. The protocol can be implemented on any operating system with any programming language. Moreover, it can be implemented on a low hardware without operating system.
3. A home gateway system based on B/S structure has been designed. The home gateway system is based on the protocol, and uses http server and CGI technology. It obtains service status and auxiliary message for presentation from the service description and event notify messages. With these messages, an html is generated according the template, which can present the service status and control interface. User visits the home gateway site in his or her web browser. Now he or she can control home facilities remotely.
The innovation is as follows:
1. The“Key-Information of Interface Generation”is new. The partition and splicing of service region, and the encoding and locating of buttons are new. These make byte-encoding messages take along with the interface information.
2. The home network protocol base on byte-encoding over TCP/IP is new. The protocol is automatically generated for the interface, plug and play and service dynamic update.
引文
[1]蔡觉婷.数字家庭网络技术与多媒体应用[J].北京电子, 2004, 12(12) : 24-25
[2]嵌入式在线.数字家庭市场蠢蠢欲动智能化家庭网关大势所趋[EB/OL]. http://www.mcuol.com/News/212/29943.htm, 2008.10.06
[3]广州市新闻出版媒介研究所.数字家庭行动计划[EB/OL]. http://www.gddhome.com/gd/news/index.html, 2010.05.10
[4]Rose B. . Home Network: A Standards Perspective [J]. IEEE Communications Magazine, 2001 , 39(12): 78-85
[5]Gerard 0. The Essential Guide to Home Networking Technologies. USA: PrenticeHall, 2001
[6]Holtz R.. Guide to Home Networks [EB/OL]. http://www.ce.org/networkguide/default.asp
[7]Rose B.. Home Network: A Standards Perspective [J]. IEEE Communications Magazine, 2001, 39(12): 78-85
[8]Bansal D., Bao J.Q., Lee W.C.. QoS-enabled residential gateway architecture [J]. Communications Magazine, IEEE, 2003, 41(4): 83-89
[9]HTTPU and HTTPMU. UPnP Forum. http://www.upnp.org/download/draft-goland-http-udp-04.txt, 2003
[10]SSDP protocol. IETF. http://www.upnp.org/download/draft_cai_ssdp_v1_03txt, 2002
[11]GENA protocol. IETF. http://www.upnp.org/download/draft-cohen-gena-client-01.txt, 2000
[12]SOAP protocol. IETF. http://www.rfc-archive.org/getrfc.php?rfc=3288, 2002
[13]UPnP Forum Universal Plug and Play Device Architecture v1.1 [EB/OL]. http://www.upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf. 2008.10.05
[14]Lu Y.Q., Fang F., Liu W.. Home Networking and Control based on UPnP: An Implementation [J]. Computer Science and Engineering, 2009, 2, 358-389
[15]Brent A.M., Nixon T., Charlie T., et al. Home networking with universal plug and play. Communications Magazine, IEEE, 2001, 39(12): 104-109
[16]HAVi Organization. HAVi, the A/V digital network revolution [EB/OL]. http://www.havi.org/pdf/white.pdf. 1999
[17]Sun Microsystems. Jini Technology Starter Kit v2.1 [EB/OL], http://www.jini.org. 2005
[18]Sun Microsystems. Jini(TM) Network Technology Specifications v2.1 [EB/OL]. http://www.jini.org, 2005
[19]Sun Microsystems. Jini Architecture Specification [EB/OL].http://www.jini.org/wiki/Jini_Architecture_Specification. 2005
[20]Lu Y.Q., Yuan Y., Sun Y., et al. An approach to service integration in the OSGi architecture of home networks [A], Proc. The 11th IEEE International Conference on Communication Systems [C], Guangzhou, China, 2008: 756-760
[21]闪联信息产业协会.闪联标准概述[EB/OL]. http://www.igrs.org/templates/T_newslist/index.aspx?nodeid=12, 2010.05.10
[22]e家佳联盟. http://www.itophome.org.cn/
[23]Koh K., Pyo M., Hyun H., Han S.. Design and Implementation of Fault-Tolerance on Lightweight Home Networking Middleware [A]. Advanced Communication Technology [C]. 2004(2): 1060-1065
[24]Hyun H., Koh K., Han S., Kim M.H., Chan C.H.. Design and Implementation of Fault-Tolerance on Lightweight Home Networking Middleware [J]. Autonomous Decentralized Systems, 2005: 435-442
[25]刘云新,张尧学,郭国强.数字化家庭网络管理模型HNMP[J].电子学报, 2001, 29(8): 1050-1052
[26]王勇,张尧学,方存好.一种改进的家庭网络管理协议——ExHNMP[J].小型微型计算机系统, 2004, 25(7): 1242-1245
[27]田太徐,黄志强,邹建华.基于以太网的家庭网络中间件模型[J].计算机工程与应用, 2005, 41(9): 147-149
[28]Son B., Park Y., Kim H.. Implementation of an Auto Configuration Method for the Management Home Server [A]. Future Generation Communication and Networking Symposia[C]. Sanya, 2008: 53-56
[29]Cho S.Y., Seo D.Y., Kim T.Y.. Gateway Framework for Home Appliance's Interoperability Based on Heterogeneous Middleware in Residential Networks [A]. Consumer Electronics [C]. 2002: 98-99
[30]Kim H.S., Han S.S., Lee C.G.. The Jini-based Broadband Power Line Communication (BPLC) Home Control System [A]. Information Technology Convergence [C]. Joenju, 2007: 86-90
[31]Huang C.M., Lin M.S., Wong H.L.. Ubiquitous Audio Access in the UPnP Home Network [A]. Information Networking [C]. Busan, 2008: 1-5
[32]Yoshida R., Inoue A., Hiraishi J., Shigeno H., et al. EXWeb: Remotely Operating Devices in the Home Network [A]. Networked Appliances [C]. Gaithersburg, MD, 2002: 267-274
[33]田红成,陈萍,张蓓,等. IPv6信息家电控制界面的自动生成技术[J].计算机工程, 2007, 33(3): 262-264
[34]Nikolova M. , Meijs F. , Voorwinden P. . Remote Mobile Control of Home Appliances [J]. Consumer Electronics, 2003, 44(1): 123-127
[35]谢希仁.计算机网络[M].第四版.北京:电子工业出版社, 2003: 27-29
[36]The Unicode Consortium [EB/OL]. http://www.unicode.org/
[37]Numeric representation of Dates and Time [EB/OL]. http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/date_and_time_format.htm, 2010.05.10