基于Arduino的无线传感器网络室内定位方法的研究

发布时间 : 星期六 文章基于Arduino的无线传感器网络室内定位方法的研究更新完毕开始阅读

本科毕业设计论文

摘 要

无线传感器网络(WSN,Wireless Sensor Network)是近年来迅速发展并受到普遍重视的新型网络技术,它的出现和发展给人类的生活和生产的各个领域带来了深远的影响。无线传感器网络节点定位技术是无线传感器网络应用研究的基础。目前,已有多种定位技术被应用于室内定位中,尤其是基于接收信号强度(RSSI,Received Signal Strength Indication)的定位技术以其低功耗、低成本、易于实现等优点,得到了无线传感器网络研究学者们的青睐。

本文重点研究了基于RSSI的室内定位的关键技术,主要包括定位模型分析和定位算法设计。首先,为了获得较为精确的定位,根据RSSI测距原理和无线信号传播衰减模型在设定的室内环境进行多次实验,通过计算及均值处理等方法反复调整以获得标准的定位模型参数,得到高精度的等效距离。接着,根据三边定位算法原理简化定位算法,建立更为简单的定位模型,采用双边定位得到两个可能的定位点,再利用RSSI测距原理对两个定位点进行择优选择确定定位点。最后,在Arduino开发平台上对参考节点与未知节点这两类iDuino节点的室内定位模型进行了软件开发设计和程序开发。在设定的室内环境部署iDuino节点,搭建实验定位模型,并实现了定位。

关键词:无线传感器网络,节点,室内定位,RSSI,Arduino

I

本科毕业设计论文

ABSTRACT

Wireless sensor network (WSN) is developed rapidly and universally emphasized as a new network technology in recent years, the advent and development of WSN have had a profound and lasting impact on the life and all areas of production of human beings. Wireless nodes localization technology is the basis in the application and studies of wireless sensor network. There are a variety of positioning technology have been used in indoor location at present, especially the based on RSSI (received signal strength) positioning technology gets a great preference from many scholars of studies of wireless sensor network with the advantages of low power consumption, low cost and easy to realize.

This paper mainly studies the key technology of indoor positioning based on RSSI, which mainly includes the positioning model analysis and positioning algorithm design. First, in order to obtain more accurate positioning, we perform several experiments according to the RSSI ranging principle and wireless signal propagation attenuation model in the setting of indoor environment, and get accurate positioning model parameters and equivalent distance by the methods of calculation and mean processing. Then, we simplify Trilateral Localization Algorithm to Bilateral Location Algorithm and establish a simpler positioning model, with which we can get two nodes of possible location, and determine the better node according to the RSSI ranging principle. At last, we make software designing and programming of these nodes that are anchor nodes and nodes of unknown on the Arduino development platform. Combined with the indoor environment we selected, we deploy the iDuino nodes and then build location model, with which we implement the location.

KEY WORDS:Wireless Sensor Network,Nodes,Indoor Location,RSSI,Arduino

II

本科毕业设计论文

目 录

第一章 绪论 ........................................................ 1 1.1 选题目的与意义 ................................................................................................ 1 1.2 研究背景 ............................................................................................................ 2 1.2.1 国内外研究状况......................................................................................... 2 1.2.2 室内定位技术............................................................................................. 4 1.2.3 无线传感器网络操作系统 .......................................................................... 6 1.3 论文章节安排 ..................................................................................................... 8 第二章 无线传感器网络定位技术 ..................................... 8 2.1 无线传感器网络结构 ........................................................................................ 8 2.1.1 无线传感器网络体系结构......................................................................... 8 2.1.2 无线传感器节点结构................................................................................. 9 2.1.3 无线传感器网络的协议栈....................................................................... 10 2.2 无线传感器网络的定位机制 .......................................................................... 11 2.2.1 基于测距的定位技术............................................................................... 11 2.2.2 与距离无关的定位技术........................................................................... 13 2.3 常用的室内节点定位算法 .............................................................................. 13 2.3.1 三边测量法............................................................................................... 13 2.3.2 三角测量法............................................................................................... 15 2.3.3 极大似然估计算法................................................................................... 15 2.3.4 DV-Hop定位算法 .................................................................................... 16 2.3.5 APIT定位算法 ......................................................................................... 16 2.3.6 加权质心算法........................................................................................... 17 2.4 定位系统和算法的性能评价标准 .................................................................. 18 第三章 基于RSSI的室内定位模型分析及算法设计 ...................... 18 3.1 RSSI测距原理 ................................................................................................ 18 3.1.1 无线信号传播损耗模型........................................................................... 19 3.1.2 RSSI测距模型[18] ..................................................................................... 20 3.2 RSSI测距实验 ................................................................................................ 21 3.3 基于RSSI的三边定位简化算法 ................................................................... 25 第四章 基于IDUINO节点的室内定位系统的实现 ...................... 29

III

本科毕业设计论文

4.1 IDUINO节点简介[19] ........................................................................................... 29 4.2 节点部署模型设计 .......................................................................................... 32 4.3 程序设计 .......................................................................................................... 33 4.3.1 节点逻辑设计[2,19] .................................................................................... 33 4.3.2 Arduino程序体系结构及程序语言基础[2,20] .......................................... 34 4.3.3 节点程序设计........................................................................................... 37 4.4 定位实验 .......................................................................................................... 43 第五章 总结与展望 ................................................ 46 参考文献 .......................................................... 48 致 谢 ............................................................. 50 毕业设计小结 ...................................................... 51 附 录 ............................................................. 52

IV

联系合同范文客服:xxxxx#qq.com(#替换为@)