节点文献

基于Nios II的家庭网关设计与研究

Design & Research of Home Gateway Based on Nios II

【作者】 金慧芬

【导师】 唐明浩;

【作者基本信息】 东华大学 , 通信与信息系统, 2008, 硕士

【摘要】 随着数字家庭网络技术的发展,人们对于住宅的舒适、方便和效率的要求越来越高。家庭网关是家庭内网和外网这两个网络的连接点,作为数字家庭网络的核心部件,将直接影响到家庭网络的性能。本文从家庭网关的实际需求出发,结合家庭网关的技术现状,运用SOPC技术、互联网技术和蓝牙技术等,对家庭网关的实现方案和相关技术开展研究。首先,本文阐述了家庭网关相关技术和研究现状,分析和研究了数字家庭网络的基本需求和功能,在此基础上,应用基于NiosⅡ的SOPC技术,提出了一种基于家庭网关的远程监控模型,并给出了家庭网关的总体设计方案。该方案以基于NiosⅡ的SOPC技术为核心,构建家庭网关的软硬件系统,充分发挥了FPGA的可编程特性和IP核的易移植等特点,有效弥补了传统嵌入式网关的兼容性差、不易移植的缺陷,对家庭网关的设计与开发作了有益的探讨。然后,在对Altera,公司提供的NiosⅡ软核以及开发工具的学习和研究的基础上,开展了家庭网关相关IP核的设计与整合,实现了NiosⅡ处理器系统的设计和各类接口电路的设计,建立了家庭网关的微处理器平台;以ROK101007蓝牙模块和RTL8019AS以太网模块作为网关的内网和外网接口,应用QuartusⅡ和SOPC Builder设计工具完成了家庭网关硬件平台的构建,同时给出了各模块在Modelsim中的仿真测试结果,并在实验开发平台上得到了验证。接着,基于硬件抽象层系统库(HAL)规范,探讨了基于NiosⅡ的软件平台的构建技术和方法,并详细阐述了网关软件平台中的启动程序设计、设备驱动程序设计、μC/OS-Ⅱ内核的移植和配置以及LwIP协议栈的配置等,实现了家庭网关的软件平台构建。最后,基于上述软硬件平台,应用HTTP协议、CGI技术,编程实现了HTTP服务器与客户端的动态交互,从而实现家庭网关的远程控制功能;针对蓝牙模块,本文提出了静态映射表+动态更新的机制,在蓝牙模块通信任务内部设计了蓝牙家电映射表,实现家庭网关与各家电设备的通信;应用μC/OS-Ⅱ操作系统的软件开发技术,完成了应用软件的设计。设计的网关在康草科技有限公司的FPGA/SOPC开发平台上得到了验证,实验结果表明,本文设计的网关基本达到了预期目标,对家庭远程控制系统的开发有一定的参考价值。综上所述,本文主要研究了FPGA嵌入NiosⅡ软核的家庭网关实现技术,对于SOPC技术用于数字家庭网络的建设具有一定的指导意义和参考价值。

【Abstract】 With the development of intelligent home techniques, the comfort, convenience and efficiency of the house plays a more and more important role in people’s daily life. The home gateway is the joint of the home internal and external network and as the core of intelligent home, the home gateway influences directly the capability of digital home network.Considering the practical requirements and the actual technique situation of home gateway, this paper worked on the implementation of home gateway and its related techniques by the application of SOPC, network and Bluetooth techniques.Firstly, this paper expatiated the related techniques and its researching situation of home gateway, analyzed and researched on the requirements and functions of home gateway, and then brought forward a remote control model based on home gateway by the application of SOPC technique based on Nios II, and futhermore gave the whole design scheme of home gateway. The key technique of this design scheme was to use SOPC technique based on Nios II to construct the hardware and software system of home gateway. Considering the programmable feature of FPGA and the portable feature of IP core, the design scheme solved effectively the incompatibility and importable disadvantage of conventional embedded home gateway.Secondly, by studying and researching on Nios II and its related development tools, this paper worked on the designing and assembling home gateway related IP cores and implemented the design of Nios II processing system and its interface circuits design, finally, built up the embedded processing platform of home gateway. This paper used ROK101007 Bluetooth Module and RTL8019AS as the home internal and external network interface, and implemented the hardware platform construction by using Quartus II and SOPC Builder tools. Then it proved the feasibility of the hardware design by verifying both in Modelsim simulation tool and in SOPC development board.Thirdly, based on the HAL (Hardware Abstraction Layer) of Altera Corporation, this paper expatiated the construction technique and method of the software platform based on Nios II processor and detailed the design of the Bootloader, the device driver of each module, the migration ofμC/OS-II operating system and LwIP stack, and implemented the software platform construction.Finally, based on the above work, this paper implemented the remote control application of home gateway with the function of dynamin interaction between the client and the server by the application of HTTP protocol and CGI(Common Gateway Interface) technique. As for the Bluetooth module, this paper brought forward a static mapped table plus dynamic updating mechanisim and implemented the internal communication of home network. This paper also implemented the application development based on the software development technique ofμC/OS-II operating system. The whole design scheme of home gateway was verified on the CT2C5 FPGA/SOPC development platform. The experiment results showed that most of the designs have accomplished its scheduled aim and could afford some reference to the development of home remote control system.As a summary, this paper mainly researched the implementation technique of home gateway based on the technique of FPGA embedded Nios II and could afford some instruction and reference to the construction of digital home network based on SOPC technique.

【关键词】 家庭网关蓝牙SOPCNios IIμC/OS-II远程控制
【Key words】 Home NetworkBluetoothSOPCNios IIμC/OS-IIRemote Control
  • 【网络出版投稿人】 东华大学
  • 【网络出版年期】2008年 07期
  • 【分类号】TP393.05
  • 【被引频次】7
  • 【下载频次】337
节点文献中: 

本文链接的文献网络图示:

本文的引文网络