蓝牙家庭网关及其在智能家居系统中的应用研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
智能家居系统是智能建筑发展的一个重要方向,也是当前研究的热点。国内外对家居系统的研究基本上处于起步阶段,因而在这一领域的国际标准尚未成熟。随着网络技术的普及和嵌入INTERNET技术的发展,智能家居系统已由开始时以PC为控制中心逐渐转向以嵌入式家庭网关为核心的嵌入式系统领域。因此如何设计一个高性能的家庭网关是解决智能家居系统的关键所在。
    本文以作者在蓝牙无线技术研究参与的网关项目为基础,在此基础上对原有设计项目做了技术细节上的改进,提出了一种新的家庭网关实现方式。在硬件上,该家庭网关内嵌了以太网控制器芯片,实现对以太网的直接接入,其传输速度较之以往的内置MODEM的PPP拨号方式有了很大的提高。同时,家庭网关中内置了蓝牙模块芯片,解决了家庭内部无线技术组网。以蓝牙无线技术构建的家庭局域网,不仅免去了传统的线缆铺设,而且在数据传输上不存在方向性,有效速率能达到712Kbps。在软件上,为了满足网络通信的需要,编写了精简的TCP/IP协议栈。在应用层选用HTTP、FTP协议,将网关设计成一个具有WEB功能的服务器。网关中开辟了一个EEPROM的存储器,用来存储少量的网页信息。另外,在网关上实现了网关程序CGI解决了远程的客户端通过浏览器直接和网关服务器的交互。基于该网关实现的智能家居系统提供本地和远程两种控制方式。本地集中控制采用家庭PC机和网关相结合,PC上的应用程序提供统一的操作界面完成网关端数据信息的接收并将信息存到数据库中。此外,家庭PC被配置成一台JSP WEB服务器,该服务器通过JDBC-ODBC桥访问数据库获取设备的信息完成远程控制终端浏览器的访问请求的响应。
    论文中作者不仅给出了蓝牙家庭网关的硬件设计和软件实现的主要思想(I2C总线的访问技术、TCP/IP协议栈实现、网卡控制器芯片的驱动程序、WEB服务器实现和蓝牙模块的驱动等),同时对基于该智能蓝牙网关的家居系统做了一些探讨和分析。最后,作者应用VB和JSP软件编写了家居控制主操作界面程序和服务器端脚本程序完成对智能家居系统的本地集中控制和远程控制的过程仿真。
The study on smart home system is an important aspect and hot spot of intelligent building, which is in the beginning stage at home and abroad, so the international standard is still in immaturity for this filed. With the popularization of network technique and the development of embed Internet, the smart home has been turned from the system of PC-centered control to embed system of intelligent home gateway. So it is the key to realize the smart home system that how to design a high performance home gateway.
    A new improved project of home gateway is presented in this paper with the author's practice of gateway item in the Institute of Chongqing Bluetooth wireless technique as base. With the regard to hardware, the home gateway embeds the Ethernet controller to connect to Ethernet directly so that transmission rate can be promoted than that of PPP dial-up; with embedded blue-tooth module the wireless network in home can be assembled in an easy way. With this means the cable in home can be replaced and orientation for transmitting is spared and the valid transmission rate reaches 712Kbps. In the aspect of software, a set of simplified TCP/IP protocol stack is designed for the purpose of network communication. At the top application layer HTTP and FTP is applied in the gateway to realize a web server. An EEPROM is added in the circuit to save the message of device-associated web pages in home. Users can get access to gateway server to browse or change web pages at any place through browser of remote terminal in conjunction of CGI. Another control mode is the local control mode, i.e. the PC in home receives the message from gateway and saves that into database, then the JSP web server on PC acquires the household appliance's message by accessing the database through JDBC-ODBC bridge to response the request of browser on remote terminal.
    The gateway hardware and the key software (access through I2C bus、the realization of TCP/IP protocol stack and web server, the drivers of Ethernet controller and blue tooth module) is presented in this paper. A study and analysis on the smart home system based on this gateway is presented also. At last, the main center-controlling program and server script program are written in VB and JSP for the center-controlling and remote-controlling emulation of smart home system.
引文
[1] E.Turcan, peering the smart homes, peer-to-peer computing, 2001:103-104.
    [2] R.Shephend, Bluetooth wireless technology in the home, Electronics and Communication Engineering Journal, IEE 2001(13): 111-119.
    [3] S.Chemishkian, Building services for smart home, Networked Appliances, 2002:215-224.
    [4] D.Valtchev and I.Frankov, Service gateway architecture for a smart home, IEEE communications magzine, volume: 40 issue: 4, 2002(4): 126-132.
    [5] Peterson DM, TCP/IP Networking: A Guide to the IBM Environment, New York, McGraw-Hill, 1995:135-211.
    [6] Andrew S.Tanenbaum, Computer networks, Version 3.Prentice Hall International, Inc., 1995. (《计算机网络》第三版,清华大学出版社影印版,1996):115-174.
    [7] SIG,Specification of Bluetooth system Version 1.0,1999.
    [8] Specification of the Bluetooth System Core Version 1.1,2001(2)
    [9] Specification of the Bluetooth System Profiles Version 1.1,2001(2)
    [10] Philips-semiconductors, The I2C-bus specification version 2.1,2000.
    [11] Realtek-semiconductor, Datasheet of RTL8019AS, 2001.
    [12] Ericsson, ROK 101 008 Bluetooth PtP Module, 2000.
    [13] Maxim, RS232 Drivers/Receivers, 1999.
    [14] Texas Instruments, Datasheet of TPS7301Q, 1999.
    [15] Winbond, Datasheet of W77E58, 2001.
    [16] http://smarthomecn.com/.
    [17] http://www.mcuweb.com/.
    [18] http://www.laogu.com/.
    [19] 金纯,许光辰,孙睿, 蓝牙技术,北京,电子工业出版社,2001:222-311,322-327.
    [20] [美\]Tanenbaum S Andrew,计算机网络(第三版)熊桂喜,王小虎等译,北京,清华大学出版社,1999:221-246.
    [21] 汤琳,蓝牙主机控制器接口(HCI)分析与实现,http://www.china-pub.com/,2002(4).
    [22] 肖沪卫,国外蓝牙技术发展现状及其前景,电子自动化,2000(6):6-10.
    [23] 何荣森,王宏宝,张跃,蓝牙技术及其硬件设计,电子技术,2001(4):13-16.
    [24] 叶朝辉,杨士元,智能家庭网络研究综述,计算机应用研究,2001(9):1-6.
    [25] Douglas E.comer and David L.stevens,张娟, 王海 译,用TCP/IP进行网际互连,北京,电子工业出版社,1998:103-154.
    
    
    [26] 杨士元,揭开智能家居的面纱,http://www.smarthomecn.com/,2002(9).
    [27] 利用家庭信息平台打造中国特色的智能家居系统--智能家居的发展动向与问题探讨, http://www.hip800.com/.
    [28] 吕京建,嵌入式因特网技术的兴起与前景,http://www.etnet.com.cn/,2001(7).
    [29] 分布智能控制是未来家电控制的主导模式 ,http://www.smarthomecn.com/,2001(7)
    [30] 杨春芝,未来家居就在"家庭网关",http://www.china-5a.com/.
    [31] 一个完整的智能家居演示系统,http://www.powerba.com/.
    [32] 许华杰,明 健,基于SX单片机实现WebServer和网络协议栈,单片机与嵌入式系统应用,2001(11).
    [33] 陈学良,关宇东,嵌入式TCP/IP协议单片机技术在网络通信中的应用,电子技术应用,2002(8):48-49.
    [34] 齐美彬,杨艳芳,蒋建国,TMS320C54x DSP的以太网接口设计,电子技术应用,2002(8):70-71.
    [35] 崔伟,赵伟,蓝牙技术及其应用,电测与仪表,2002(2):8-10.
    [36] 卢伟国,童明俶,基于蓝牙的无线数据采集系统, 电测与仪表,2002(9):26-29.
    [37] 程军,单片机远程控制方案及基于互联网的实现方法,微计算机信息,2001(1):47-50.
    [38] 王超,基于混合TCP-UDP的HTTP协议实现方法,单片机与嵌入式系统应用,2003(2):25-28.
    [39] 钟顺时,微带天线理论与应用,西安,西安电子科技大学出版社,1991:119-124.
    [40] 黄理,网站开发新动力用JSP轻松开发WEB网站,北京,北京希望电子出版社,2001:97-120,211-227.
    [41] 董传银,Visual Basic 6 数据库编程技术,北京,北京希望电子出版社,2002:123-126.
    [42] 郑文波,控制网络技术,北京,清华大学出版社,2001:130-147
    [43] 林康红,陈慧,蓝牙技术在无线家庭网络中的应用,微计算机信息,2002(10):58-59.
    [44] 马兴,梁剑,陈前斌,基于 HCI协议层的蓝牙技术应用开发,重庆邮电学院学报,2002(12):78-82.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700