Documente Academic
Documente Profesional
Documente Cultură
Indoor Local Positioning System
For ZigBee, Based On RSSI
Shashank Tadakamadla
Indoor Local Positioning System
For ZigBee, Based On RSSI Abstract
Shashank Tadakamadla 10.10.2006
Abstract
This thesis report describes a model for monitoring the presence and
movements of vehicles and humans in an indoor environment. In IEEE
802.15.4 the Received Signal Strength Indicator is used to determine the quality
of the communication from one node to another. By tagging vehicles/humans
with a ZigBee node and deploy a number of nodes at fixed position in the
room, the received signal strength indicator can be used to determine the
position of tagged object. This system operates by recording and processing
signal strength information at multiple base stations positioned to provide
information in the area of interest. It combines Euclidean distance technique
with signal strength matrix obtained during offline measurement to
determine the location of user. The experimental results presented in this
report demonstrate the ability of this system to estimate user’s location with a
high degree of accuracy.
Keywords: ZigBee based user location and tracking, RSSI, Euclidean distance
technique, SENTIO.
ii
Indoor Local Positioning System
For ZigBee, Based On RSSI Acknowledgements
Shashank Tadakamadla 10.10.2006
Acknowledgements
This work would not have been possible without the support of my friends
and mentors. Specifically, I would like to thank my advisor, Bengt Oelmann,
who has given me all the support and guidance I needed as a Master student.
I am very grateful to have had trust in my ability, and I have often benefited
from his insight and advice. I would also like to thank Fredrik Linnarsson,
Niklas Lepisto, and Cheng Peng from whom I have had benefit of learning
from. I also owe a great deal of thanks for their time and advice, which is
reflected in this thesis.
Finally, I would like to acknowledge my friends and parents, who have
supported me through these efforts.
iii
Indoor Local Positioning System
For ZigBee, Based On RSSI Table of Contents
Shashank Tadakamadla 10.10.2006
Table of Contents
Abstract ....................................................................................................................... ii
Acknowledgements .................................................................................................iii
Table of Contents..................................................................................................... iv
List of Tables............................................................................................................. vi
List of Figures .......................................................................................................... vii
Terminology / Notation ........................................................................................viii
1 INTRODUCTION...................................................................................................1
1.1 Introduction to the study ...........................................................................1
1.2 Background ..................................................................................................2
1.3 Objectives .....................................................................................................3
1.4 Research Questions.....................................................................................4
1.5 Scope .............................................................................................................4
1.6 Methodology................................................................................................5
1.7 Outline ..........................................................................................................6
2 LITERATURE REVIEW .......................................................................................8
2.1 Common components of indoor positioning system ............................8
2.2 Classification of Indoor positioning systems ..........................................9
2.3 Indoor local positioning using ZigBee based on RSSI .........................11
2.4 Protocols and Industry standards for WSN ..........................................14
3 RECEIVED SIGNAL STRENGTH (RSS).........................................................26
3.1 Parameters that affect RSS .......................................................................26
3.2 Related work analysis...............................................................................28
3.3 Properties of RSSI......................................................................................29
4 OBJECT TRACKING ...........................................................................................30
4.1 Introduction ...............................................................................................30
4.2 Overview of hardware product ..............................................................30
4.3 Experimental Testbed...............................................................................32
4.4 Obtaining data from the sensor network ..............................................33
4.5 Object tracking application: Testing and Evaluation...........................33
5 RESULTS ................................................................................................................38
5.1 Measurement setup ..................................................................................38
5.2 Number of samples test ...........................................................................39
5.3 0ne dimensional test .................................................................................40
5.4 Two dimensional test ...............................................................................41
5.5 Causes of error in location determination.............................................41
6 DISCUSSIONS......................................................................................................44
6.1 Summary and Conclusion .......................................................................44
6.2 Future work ...............................................................................................44
iv
Indoor Local Positioning System
For ZigBee, Based On RSSI Table of Contents
Shashank Tadakamadla 10.10.2006
APPENDIX 1 .............................................................................................................45
APPENDIX 2 .............................................................................................................46
APPENDIX 3 .............................................................................................................47
REFERENCES ...........................................................................................................49
v
Indoor Local Positioning System
For ZigBee, Based On RSSI List of Tables
Shashank Tadakamadla 10.10.2006
List of Tables
Table 1 Comparison of Indoor Positioning Systems [7] 3
Table 2 Performance comparison of Indoor Positioning Systems [7] 3
Table 3 Frequency bands and data rates for IEEE 802.15.4 based on the IEEE
802.15.4 standard [18] 16
Table 4 Format based on the IEEE 802.15.4 standard [18] 17
Table 5 General MAC frame format: IEEE 802.15.4 standard [18] 17
Table 6 Beacon frame format [18] 18
Table 7 Data frame format [18] 18
Table 8 Acknowledgement frame format [18] 18
Table 9 Command frame format [18] 18
Table 10 Classification of factors the affect RSS [7] 27
Table 11 Accuracy of positioning system 37
Table 12 One dimensional position estimation results 41
vi
Indoor Local Positioning System
For ZigBee, Based On RSSI List of Figures
Shashank Tadakamadla 10.10.2006
List of Figures
Figure 1 Schema of thesis work 5
Figure 2 Block diagram representing hardware module 8
Figure 3 Taxonomy of positioning system [7] 10
Figure 4 Star and peer‐to‐peer topologies in LR‐WPAN [18] 15
Figure 5 WPAN architecture [18] 16
Figure 6 Example of super frame structure [18] 19
Figure 7 Communication from a device to a PAN coordinator in (a) a beacon‐
enabled network, and (b) a non‐beacon enabled network [18] 20
Figure 8 Communication from a PAN coordinator to a device in (a) a beacon‐
enabled network, and (b) a non‐beacon enabled network [18] 21
Figure 9 Overview of the coverage for different wireless communication
standards [17] 21
Figure 10 IEEE 802.15.4/ZigBee stack [20] 22
Figure 11 IEEE 802.15.4/ZigBee stack [17] 23
Figure 12 ZigBee secure frame in MAC layer [17] 24
Figure 13 ZigBee secure frame in network layer [17] 24
Figure 14 ZigBee secure frame in application layer [17] 25
Figure 15 SENTIO Platform [8] 31
Figure 16 Layout of Masterʹs Room 32
Figure 17 Flow chart representing the algorithm of fixed sensors 35
Figure 18 Flow chart representing the algorithm of main sensor 37
Figure 19 Test bed for one dimensional test in Masters Room 38
Figure 20 Histogram plot of RSSI values at 1m and 4m 39
Figure 21 Histogram plot of RSSI values at 6m and 8m 39
Figure 22 Distance vs. RSSI 40
Figure 23 Error Rate vs. Number of samples 42
Figure 24 RSS distribution at 2:14 pm 42
Figure 25 RSS distribution at 1:00pm and 11:00 am 43
vii
Indoor Local Positioning System
For ZigBee, Based On RSSI Terminology / Notation
Shashank Tadakamadla 10.10.2006
Terminology / Notation
GPS ‐ Global Positioning System
RSSI ‐ Received Signal Strength Indication
MS ‐ Mobile Station
RF ‐ Radio Frequency
WSN ‐ Wireless Sensor Network
AP ‐ Access Point
RSS ‐ Received Signal Strength
PC ‐ Personal Computer
WLAN ‐ Wireless local Area Network
SNR ‐ Signal to Noise Ratio
RFD ‐ Reduced‐Function Device
WPAN ‐ Wireless Personal Area Network
FFD ‐ Full Functional Device
MAC ‐ Medium Access Control
LR‐WPAN ‐ Low Rate WPAN
PAN ‐ Personal Area Network
OSI ‐ Open Systems Interconnection
LLC ‐ Logical Link Control
SSCS ‐ Service Specific Convergence Sub layer
PHY ‐ Physical Layer
PPDU ‐ PHY Protocol Data Unit
viii
Indoor Local Positioning System
For ZigBee, Based On RSSI Terminology / Notation
Shashank Tadakamadla 10.10.2006
ED ‐ Energy Detection
CCA ‐ Clear Channel Assessment
LQI ‐ Link Quality Indication
ISM ‐ Industrial, Scientific, and Medical
DSSS ‐ Direct‐Sequence Spread Spectrum technique
LSB ‐ Least Significant Bit
SHR ‐ Synchronization Header
SFD ‐ Start of Frame Delimiter
PHR ‐ PHY Header
MPDU ‐ MAC Protocol Data Units
GTS ‐ Guaranteed Time Slot
MHR ‐ MAC Header
MFC ‐ MAC Footer
FCS ‐ Frame Check Sequence
CAP ‐ Contention Access Period
CFP ‐ Contention Free Period
ACL ‐ Access Control List
AES ‐ Advance Encryption Standard
MIC ‐ Message Integrity Code
CBC ‐ Cipher Block Chaining
ZDO ‐ ZigBee Device Objects
OS ‐ Operating System
LOS ‐ Line of Sight
NLOS ‐ Non Line of Sight
ix
Indoor Local Positioning System
For ZigBee, Based On RSSI Terminology / Notation
Shashank Tadakamadla 10.10.2006
FPGA ‐ Field Programmable Gate Array
BS ‐ Base Station
AOA ‐ Angle of Arrival
TDOA ‐ Time difference of arrival
TOA ‐ Time of Arrival
TOF ‐ Time of flight
x
Indoor Local Positioning System
For ZigBee, Based On RSSI 1 INTRODUCTION
Shashank Tadakamadla 10.10.2006
1 INTRODUCTION
1.1 Introduction to the study
Advancement in wireless sensing technologies has encouraged in developing
a model for indoor object‐tracking application using low power IEEE 802.15.4
compliant radios. Stimulus used in this model is RSS. This application is not
only limited to object tracking in an indoor environment. Concierge services
enable users to become aware of nearest supporting facilities. For example,
smart home applications such as multimedia appliances that forward
multimedia stream to the nearest video screen can be achieved with a home
positioning system [3]. In the field of robotics, a robot can navigate by itself
using the assistance of indoor positioning system [2]. Granularity of location
information is most important in location determination applications. For
example, to locate a book in a library requires coarse grained granularity
whereas locating a user requires coarse grained granularity.
Position estimation refers to a process used to obtain location information of
a MS with respect to a set of reference positions within a pre‐defined space. A
system deployed to determine or estimate the location of an entity is called a
position location system or positioning system. A wireless indoor positioning
system refers to a wireless network infrastructure that provides indoor
location information to any requesting end user.
One of the key technical elements allowing the realisation of this vision will
be the knowledge of the accurate position of the person/objects. Already,
today accurate location, mechanisms, such as GPS are commercially available.
Many more will become part of our daily life with the introduction of third
generation mobile phones. But none of these techniques will allow the meter
or sub‐meter level of accuracy within buildings, which is necessary for smart
houses. Hence, this report introduces an object tracking application in an
indoor environment using IEEE 802.15.4 compliant radios, which gives meter
level accuracy.
First, this chapter presents the background of indoor positioning systems,
identifies the challenges of such systems, and briefly describes the scope of
indoor positioning systems based on location fingerprints. Next, the objective
of study, the overview of approaches and the contributions are presented.
Finally, the scope and organization of thesis work is outlined.
1
Indoor Local Positioning System
For ZigBee, Based On RSSI 1 INTRODUCTION
Shashank Tadakamadla 10.10.2006
1.2 Background
The success of outdoor positioning and applications based on the GPS
provides an incentive to the research and development of indoor positioning
systems. It has been developed over several decades and it relies on
constellation of satellites. Ranges to several satellites are used in multi‐
lateration procedure to infer the position of the receiver. This localization
scheme requires hardware that is both expensive and consumes significant
power. As a result, indoor positioning systems require alternative means to
detect the MS location without relying on the direct signal from GPS satellites.
Infrared, RF, and ultra sound signals are major technologies used for indoor
positioning systems. Unlike outdoor areas, the indoor environment imposes
different challenges on location discovery due to the dense multi‐path effect
and building material dependent propagation effect. Thus, an in‐depth
understanding of indoor radio propagation for positioning is crucial for
efficient design and deployment.
The existence of radio connectivity and the attenuation of radio signal with
distance are attractive properties that could potentially be exploited to
estimate the positions of small wireless devices featuring low‐power radios.
RSSI, a standard feature in most radios, has attracted a lot of attention in the
recent literature for obvious reasons. RSSI eliminates the need for additional
hardware in small wireless devices, and exhibits favourable properties with
respect to power consumption, size and cost. As mentioned previously, RF‐
based location tracking has been widely studied [5, 6]. Given a model of radio
signal propagation in a building or other environment, RSSI can be used to
estimate the distance from a transmitter to a receiver, and thereby estimate
the position of a mobile node. However, this approach requires detailed
models of RF propagation and does not account for variations in receiver
sensitivity and orientation.
Table 1 below briefly summarizes performance of existing indoor positioning
system based on location fingerprints and WLAN’s. All the systems
mentioned below in table 1 follow IEEE 802.11 protocol standards. The major
performance metrics studied by all systems are positioning accuracy which is
a form of error measurement. The accuracy of the location information is
usually reported as an error distance between the estimated location and the
actual mobile location. However, the report of accuracy should include the
confidence interval or percentage of successful location detection which is
called the precision. The system parameters of existing systems are
summarized in table 1 and the best reported performance of these systems are
listed in table 2.
2
Indoor Local Positioning System
For ZigBee, Based On RSSI 1 INTRODUCTION
Shashank Tadakamadla 10.10.2006
Based on the study of results obtained in various positioning systems as in
table 2, we have developed a model for an indoor positioning system using
SENTIO [8] platform based on RSSI.
1.3 Objectives
In the last two or three years a number of theoretical, practical and/or
simulation studies were done on the topic of object‐tracking. While these
studies are useful, they are too general and provide little guidance for the
actual deployment of sensor networks for real life location‐tracking of an
object.
This thesis focuses on developing an object‐tracking application and
prescribes sensor network configurations that work well with our algorithms.
I implemented my software using SENTIO [8] platform for sensor
networking. The major issue addressed in this project are the accuracy and
precision in tracking an object in a real‐world application and efficient ways
to algorithmically analyze the collected raw data from the specific wireless
sensor product.
3
Indoor Local Positioning System
For ZigBee, Based On RSSI 1 INTRODUCTION
Shashank Tadakamadla 10.10.2006
Although the focus is to develop a real‐world application using WSN, it also
provides great opportunity to explore the new area of wireless
communication overall.
1.5 Scope
The study area of the thesis is an overview of the WSN technology, study of
SENTIO platform and implementation of an object tracking application. Thus
the study is divided into two parts. Part one is an overview of WSN; it
includes study of SENTIO platform and IEEE 802.15.4 protocol standards. The
second part describes the implementation of the object tracking algorithm.
The object tracking application receives and uses the raw values returned by
the sensor network system to produce clear and meaningful outputs. Schema
of thesis work is as shown in figure 1.
4
Indoor Local Positioning System
For ZigBee, Based On RSSI 1 INTRODUCTION
Shashank Tadakamadla 10.10.2006
Figure 1 Schema of thesis work
1.6 Methodology
The “Indoor Local Positioning System for ZigBee based on RSSI “is based on
“location fingerprinting” technique. Location fingerprinting refers to a
technique that exploits the relation between any measurable physical stimulus
and a specific location. This approach uses empirical measurements of RSSI to
estimate location. By recording a database of radio “signatures” along with
their known locations, a mobile node can estimate its position by acquiring a
signature and comparing it to the known signatures in the database. All of
these systems require the database of signatures which should be collected
manually prior to the system installation, and rely on central server (or the
user’s mobile node) to perform location calculation. For example, in RADAR
[6] technology, the RSSI is the stimulus. This type of positioning system does
not require specialized hardware other than the common wireless network
interfaces with received signal strength measurement capability; thus, it is
simple to deploy compared to other techniques. Unlike outdoor counterpart
systems which can use AOA and TDOA techniques effectively, indoor
positioning systems encounter the problem of NLOS and the dense multi path
effect that render these two techniques ineffective or complex for practical
implementation. It is also difficult for a MS to always see three or more access
points or base stations in indoor environment, which is essential for
triangulation by AOA and TDOA. Location fingerprinting can also be
implemented as software based positioning system which can reduce
5
Indoor Local Positioning System
For ZigBee, Based On RSSI 1 INTRODUCTION
Shashank Tadakamadla 10.10.2006
1.7 Outline
Chapter 2 provides literature review of “Indoor Local Positioning System for
ZigBee based on RSSI”; it introduces the basic components required for a
positioning system, general classification of indoor positioning system.
Finally, it explains “Location Fingerprint” technology used in this thesis work
to determine the position of an object in a real‐world application. It briefly
explains the protocols and industry standards for wireless sensor networks.
Chapter 3 describes some properties of RSS which is a stimulus to determine
6
Indoor Local Positioning System
For ZigBee, Based On RSSI 1 INTRODUCTION
Shashank Tadakamadla 10.10.2006
the position of an object. RSS relation with energy and on what parameters is
the RSS value dependent.
Chapter 4 describes the model of an indoor local positioning system and its
probability of returning the correct location. It also explains its performance
evaluation and its error distance distribution.
Chapter 5 describes results obtained from the model of positioning system.
Chapter 6 includes conclusions from the experimental analysis and future
work.
7
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
2 LITERATURE REVIEW
This chapter reviews the literature on wireless indoor positioning system, as a
means of providing an intellectual background for the thesis work. First in
section 2.1, the common components of indoor positioning system are
described. Then in section 2.2, discusses different means to classify indoor
positioning systems. In section 2.3, reviews of all relevant literature on
location fingerprint technique. Finally in section 2.4, protocols and industry
standards for wireless sensor networks are explained.
Figure 2 Block diagram representing hardware module
First, the location sensing devices detect the signals transmitted by or received
at known reference points using radio sensing technologies. The sensing
technique is based on signal strength level that converts the sensed signal into
RSS. Given a set of reference points, the relative position of the MS can be
derived from the signal characteristics of RSS. The signal characteristics of
RSS are unique for a location. Then, the microcontroller processes the position
algorithm and estimates the position of object and displays it on PC.
8
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
9
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
but reflects off most of the indoor obstructions. It has a short range around 3
m to 10 m but has a 1 cm resolution of distance measurement. The operating
temperature influences the performance of ultrasound.
Figure 3 Taxonomy of positioning system [7]
In AOA systems, the position is calculated via goniometry. With the use of
directional antennas or antenna arrays, the angle or bearing relative to points
located at known positions is measured. The intersection of several measured
directions pointers the yields the position value. The accuracy of this
approach is limited by the possible directivity of the measuring aperture, by
shadowing and by multi‐path reflections arriving from misleading directions.
In TOA and TDOA techniques rely on the precision of timing between the
signal transmitter and the receiver in order to use the propagation delay or
TOF to calculate the distance between transmitter and receiver. Therefore, a
precise synchronization is also very important in such systems. By combining
at least three distances from three reference positions, triangulation can be
used to estimate the mobile stationʹs location. This type of technique will
10
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
require a high accuracy clock in the communication system. TDOA is more
practical [1]. Examples of location‐sensing systems that use time of flight are
GPS, the Active Bats [15], and the Cricket [16]. Besides these time delay‐based
techniques, the distance between transmitter and receiver can also be
determined from signal strength attenuation and direct distance measurement
(such as dead reckoning).
Fingerprinting or Location Pattern Matching, this technique generally
requires only measurement of RSS or other non‐geometric features at several
locations to form a database of location fingerprints. To estimate the mobile
location, the system needs to first measure the received signal strength at
particular locations and then search for the pattern or fingerprint with the
closest match in the database. This technique does not require the mobile
station to see at least three base stations or access points in order to determine
the location. The disadvantage of this technique is that it is very time‐
consuming to perform an exhaustive data collection for a wide area network
such as in outdoor positioning systems.
11
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
database and used during the on‐line phase to estimate the location. The label
and fingerprint are usually denoted as a tuple of (L, F). Battiti et al [11] point
out that the location information L for indoor location can be recorded in two
forms as either a tuple of coordinates or an indicator variable. The tuple of
real coordinates can vary from one dimension to five dimensions which
include the three dimension space and two orientation variables expressed in
spherical coordinates. For instance, a location information of a two‐dimension
system with an orientation could be expressed as a triplet L = {(x, y, d) | x, y є
R 2, d є {North, East, South, West}}.
The RSS was found to be more location‐dependent than the SNR because the
noise component is rather random in nature. However, the RSS itself
fluctuates over time for each access point and location. Each RSS element can
be considered as a random variable; therefore, it can be captured by recording
its descriptive statistics parameters, approximating its distribution, or
maintaining the whole measurement dataset. These approaches of RSS
representation result in different procedures for location estimation
algorithm. Regardless of the approach, the location fingerprint is usually
denoted as an array or vector of signal strength (random variables) received at
any position in the location‐based service area. The size of the vector is
determined by the number of access points that can be heard.
To create a basis fingerprint such as in a number of samples of vectors of
signal strength are collected over a window of time for each position. This
basis is called a prototype. Then, the average RSS of each access point is
calculated and recorded as an element in the location fingerprint. For an area
that can receive signals from N access points, the location fingerprint can be
expressed as a vector of average RSS elements βi:
F = (β1, β2… βN)T
Besides the basis location fingerprint, the samples of location fingerprint
measured during the on‐line phase are also important for the system that
tracks the mobile object. The number of samples should be selected
appropriately to represent the location fingerprint for the mobile application.
A step in statistical analysis method called pre‐processing is another important
issue needed to be considered because it can impact the estimation of
dependency between location fingerprint and the location information easier.
The pre‐processing refers to a step that cleans the raw data (in this case the
training set) before any further operations or analysis. The cleaning may
consist of encoding, dimensionality reduction (reduce unnecessary elements),
feature extraction/selection, clustering, and outlier elimination. Roos et al [10]
point out that the pre‐processing enables faster location estimation and
12
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
reduce the noise from the training data. The process that creates the basis of
location fingerprint discussed above could be considered as a part of pre‐
processing.
13
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
parameter that can demote or promote an important RSS component in the
fingerprint.
14
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
supports ad‐hoc mesh multi‐hop networking. Any device in the peer‐to‐peer
topology can communicate with any other device within its communication
range; however, this topology also has a PAN coordinator. All the devices in a
LR‐WPAN have a unique 64‐bit address. This or a short address, allocated by
the PAN coordinator, can be used inside a PAN. Additionally, each PAN has
a unique identifier. The combination of the PAN identifier and the sort
addresses allows communication across different PANs (IEEE 802.15.4
Standard, 2003).
Figure 4 Star and peer‐to‐peer topologies in LR‐WPAN [18]
The LR‐WPAN based on the OSI seven‐layer model has the layered
architecture presented in figure 5. The application and the network layer are
the upper layers in the LR‐WPAN architecture, but are outside the scope of
the IEEE 802.15.4 standard. Only the physical layer, “which contains the RF
transceiver along with its low‐level control mechanism,” and the MAC layer
“that provides access to the physical channel” are included in the standard
and will be introduced in the following sections. Finally, the Type I 802.2 LLC
and the SSCS are intermediate sub layers supporting communication with the
above layers (IEEE 802.15.4 Standard 2003).
Physical Layer
The 802.15.4 standard specifies two different services that the PHY provides.
The PHY data service controls the radio, and thus, the transmission and
reception of the PPDUs. In addition, the management service performs ED in
the channel. The management service also performs CCA before sending the
messages and provides LQI for the received packets.
15
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
Figure 5 WPAN architecture [18]
Three different bands are defined by the standard. The 868‐868.6 MHz for
Europe, the 902‐928 MHz for North America, and the 2400‐2483.5 MHz
worldwide. All of them belong in the ISM radio bands and they are using
DSSS. Each of the bands supports different a data rate and it uses a different
modulation technique, chip rate, and number of channels. Moreover, if the
system does not use the 2450 MHz frequency, it operates in both the 802 MHz
and 902 MHz frequencies. Table 3 summarizes the supported bands and data
rates (IEEE 802.15.4 standard, 2003).
The physical layer uses PPDU packets to communicate. Table 4 demonstrates
its structure. The LSB is always transmitted and received first. The SHR,
contains the preamble and the SFD fields, which helps receiver
16
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
synchronization. The 8‐bytes preamble contains only zero and is used for
synchronization. The SFD contains a specific sequence of one and zeros and
specifies the beginning of the frame. The PHR contains the payload length.
Packets with a length of 9 or more bytes are MPDU, as the next section further
explains. Packets with length 5 are used for MPDU acknowledgements. The
payload part of the PPDU encloses the MAC layer packet. Finally, the PPDU
size can be up to 127 bytes [18].
MAC Layer
The MAC layer is the interface between the SSCS and the PHY layer. Similar
to the PHY layer, the MAC layer supports two services. The MAC data service
is responsible for the transmission and reception of the MPDUs through the
PHY data service. The MAC management service, if the device is a
coordinator, manages the network beacons. It is also responsible for PAN
association and disassociation, frame validation, and acknowledgment
providing “a reliable link between two peer MAC entities.” In addition, it
uses the CSMA‐CA for channel access and handles and maintains the GTS
mechanism. Finally, it supports device security [18].
The IEEE 802.15.4 standard defines four different frame types: the beacon,
data, acknowledgment, and MAC command frame. All frame types are based
on the general MAC frame format (table 5). The frame control field describes
and specifies the above different frame types. Every MAC frame comprises a
MHR, which consists of a frame control, sequence number, and the
information field. It also contains the MAC payload; different frame types
have different MAC payload fields. The acknowledgment type does not have
a payload. Finally, each frame includes a MFR, which contains a FCS. The
data in the MPDU follows the same order as the PPDU: the least significant
bits are left in the frame and are transited first.
Octets:2 1 0/2 0/2/8 0/2 0/2/8 Variable 2
Source
Destination Destination PAN Source
Frame Sequence PAN Identifier Address Identifier Address Frame
Control Number Addressing Field Payload FCS
MAC
MHR Payload MFR
Table 5 General MAC frame format: IEEE 802.15.4 standard [18]
17
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
Table 6, 7, 8 and 9 present the four different MAC frame types. The beacon
frame is transmitted periodically by the PAN coordinator. It provides
information about the network management through the super frame and
GTS fields, which are analyzed later in the section. It also synchronizes the
network devices and indicates the proper communication period for them.
The data frame payload encapsulates data from the higher layers. When a
device receives a packet, it is not obliged to response with an
acknowledgement packet. Finally, the command frame identifier and
command payload fields of the command frame are used for communication
between the network devices. The command identifier specifies actions like
association, disassociation, and data, GTS or beacon request.
Octets :2 1 Variable 2
Frame Sequence Addressing Data
Control Number Field Payload FCS
MAC
MHR Payload MFR
Table 7 Data frame format [18]
Octets :2 1 2
Frame Sequence
Control Number FCS
MHR MFR
Table 8 Acknowledgement frame format [18]
Octets:2 1 1 Variable 2
Frame Sequence Addressing Command Frame Command
Control Number Fields Identifier Payload FCS
MHR MAC Payload MFR
Table 9 Command frame format [18]
In the LR‐WPAN, every PAN has its own coordinator. The PAN coordinator
manages the communication in the local area; it has two options, to use or not
use the super frame structure. The super frame (figure 6) uses network
beacons. If the coordinator does not want to use a super frame structure, it
suspends the beacon transmission. However, the beacon is important for
device association and disassociation. If the coordinator wishes to maintain
close communication control in the PAN, and to support low‐latency devices,
it usually uses the super frame. A super frame determines a specific time
18
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
period; beacons bound it. The beacon is transmitted in the first of the sixteen
equal time slots that the super frame has. It is used to “synchronize the
attached devices, to identify the PAN, and to describe the structure of the
super frame.” The super frame can have active and inactive periods. All the
communications have to be finished inside the super frame period. In the
inactive periods the devices can switch to the sleep mode, but they have to be
ready for the next beacon. The active period is further divided into a CAP and
a CFP. During the CAP, any device can communicate, competing with the
other devices in the PAN using slotted CSMA‐CA. The CFP contains GTSs
and follows the CAP. A CFP may maintain up to seven GTSs and each GTS
can reserve more than one time slot. However, the CAP should always be
sufficient to allow new devices t join the PAN. The GTSs are allocated to
specific devices. All the transactions must be completed inside the assigned
time period (CAP, GTS, and CFP) (IEEE 802.15.4 standard, 2003).
Figure 6 Example of super frame structure [18]
In accordance with the 802.15.4 standard (2003), three different types of data‐
transfer exist. In addition, the types differ if the coordinator uses or does not
beacons. Data transfer from a device to the PAN coordinator is the first type
(figure 7). For a “non‐beacon‐enable network,” it first senses the medium by
using “un‐slotted CSMA‐CA” and then a simple transmit to the data frame. In
a “beacon‐enabled network,” the sender waits for the beacon; when it finds it,
“the device synchronizes to the super fame structure.” In the specified time
frame, the sender again senses the medium by using “slotted CSMA‐CA” and
transmits the data to the coordinator. In either case, the coordinator has the
option to acknowledge or not acknowledge the data reception; after that, the
transaction is completed.
Data transfer from the coordinator is the next type described in the standard
(figure 8). In a beacon‐enabled network the coordinator indicates a pending
message through the beacon. The message’s target device receives the beacon
and if the message is pending, it responses with a MAC command request
19
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
message, using slotted CSMA‐CA. the coordinator may or may not
acknowledge the command message and through slotted CSMA‐CA sends
the pending message. The device acknowledges the received message. After
that, the coordinator removes the message from the beacon’s pending list and
completes the transaction. In a non‐beacon enable network the device
periodically sends a MAC command‐request frame to the coordinator. The
coordinator acknowledges the data request. Then, by using un‐slotted CSMA‐
CA, if it has a pending message it transmits it. If it has not it respond with a
data frame with a “zero‐length payload.” To complete the transaction the
device acknowledges the data reception.
Figure 7 Communication from a device to a PAN coordinator in (a) a
beacon‐enabled network, and (b) a non‐beacon enabled network [18]
Peer‐to‐peer is the last type of data transfer. In this situation the devices are
free to communicate with any other device within their communication range.
In a peer‐to‐peer PAN the devices can “either receive constantly or
synchronize with each other.” If they are receiving constantly, to transmit
data they use un‐slotted CSAM‐CA. In the second case, synchronization must
be achieved first (IEEE 802.15.4 standard [IEEE, 2003]).
The IEEE 802.15.4 (2003) standard establishes MAC and PHY standards for
low‐cost, low‐power, and high‐density node deployments. In addition to the
above PHY and MAC characteristics, IEEE 802.15.4 provides a security
baseline, including “the ability to maintain an ACL and use symmetric
cryptography” for data encryption. The algorithm that is used for encryption
is the AES. However, the higher level layers decide when security is need. The
upper layers are in general responsible for device authentication and key
management. The next section introduces the ZigBee standard, which
20
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
Figure 8 Communication from a PAN coordinator to a device in (a) a
beacon‐enabled network, and (b) a non‐beacon enabled network [18]
2.4.2 ZigBee
Heily (2004) defines ZigBee as “a rapidly growing, worldwide, non‐profit
industry consortium” whose mission is “to define a reliable, cost‐effective,
low‐power, wirelessly networked, monitoring and control product based on
an open global standard.” Figure 9 illustrates the areas of interest for different
wireless communication standards.
Figure 9 Overview of the coverage for different wireless communication
standards [17]
21
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
ZigBee, a new standard which became publicly available in June 2005, is
based on the IEEE 802.15.4 standard. It expands the IEEE 802.15.4 by adding
the framework for “the network, security and application” (Craig, 2005).
Figure 10 presents the IEEE 802.15.4/ZigBee stack and the areas of
responsibilities.
Figure 10 IEEE 802.15.4/ZigBee stack [20]
Craig (2005) mentions three networking topologies that the standard covers:
the star, mesh, and cluster tree (figure 11). The ZigBee standard works on top
of the IEEE 802.15.4 addressing schema by using the standard 64‐bit and the
short 16‐bit addressing. Kinney (2005) summarizes the ZigBee network layer
responsibilities: the successful establishment of a new the network, and
successful new device configuration, addressing assignment, network
synchronization, frames security, and message routing.
ZigBee further distinguishes the concept of the physical devices (RFD, FFD)
by using the notion of “logical devices.” “ZigBee Coordinator” is the first type
of logical devices. It is responsible for initializing, maintaining, and managing
the network. Under the coordinator in the network hierarchy is the “ZigBee
router,” which is responsible for controlling the message routing between the
nodes. Finally, the “ZigBee End Device” acts as the end point of the network
22
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
structure. The tasks that an end device can perform are specified in the
“Application Profiles” (Craig, 2005).
Figure 11 IEEE 802.15.4/ZigBee stack [17]
The ZigBee specifications (2005) summarize the security services provided by
ZigBee: “key establishment, key transport, frame protection, and device
management.” ZigBee builds its security mechanism using symmetric key
cryptography. The security services also depend on the associated layer, thus
as the figure 10 shows, the security mechanism covers the network and the
application layer. In addition, if a MAC frame needs security protection, the
MAC layer is able to secure it. Moreover, the notion of end‐to‐end security is
supported; the source and destination devices have access and use the same
share key.
In the MAC layer the 802.15.4 AES mechanism provides the proper security.
The mechanism protects “the confidentiality, integrity, and authenticity of the
MAC frames” (Kinney, 2005). An auxiliary header field in front of the MAC
payload indicates if the frame is encrypted or not. The MAC frames’ integrity
is supported by calculating and using a MIC at the end of the MAC payload.
In addition to the AES, nonce is used to provide MAC confidentiality and
authenticity. Figure 12 illustrates a MAC frame with security. For different
security aspects the MAC layer uses different mode of the AES: for the
encryption it uses the AES in Counter (CTR) mode, and for the integrity, the
23
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
CBC‐MAC. Finally, the combination (CCM) of the above two modes is
available, providing both encryption and integrity (Kinney, 2005).
Figure 12 ZigBee secure frame in MAC layer [17]
In the network layer the CCM* (a modified MAC layer CCM mode) is used
for encryption. Because the network layer uses only the CCM* mode, a single
key is used for all different security options. The network layer security
message format is similar to the MAC frame; it is presented in the figure 13.
Finally, although the network layer is responsible for securing its layer
messages, the above layers specify the keys and the CCM* option for each
frame (Kinney, 2005).
Figure 13 ZigBee secure frame in network layer [17]
Security in the application layer works similar to the network and MAC
layers. It uses the “link key” or the “network key” to secure the message and
then encapsulate it inside a set of fields similar to the network format (figure
14). Other security responsibilities that the application layer has are to
provide the ZDO and the applications with device management services, key
establishment, and key transport (ZigBee specifications, 2005).
24
Indoor Local Positioning System
For ZigBee, Based On RSSI 2 LITERATURE REVIEW
Shashank Tadakamadla 10.10.2006
Figure 14 ZigBee secure frame in application layer [17]
The ZigBee specifications are a great step toward the wireless sensors
networks standardization. They cover all the OSI layers, from the physical to
the application providing guidance to the developers. The specifications are
the product of the ZigBee alliances, a consortium of companies and academic
institutes. Thus they not only produce the specifications, but also are the first
use them. The next section goes beyond the layer architecture and
standardization and introduces the OS field, another crucial element of
WSNs.
25
Indoor Local Positioning System 3 RECEIVED SIGNAL STRENGTH
For ZigBee, Based On RSSI (RSS)
Shashank Tadakamadla 10.10.2006
This chapter investigates some of the properties of RSS observed during
testing and analysis of research work collected during the period of thesis.
The analysis of RSS values is needed to understand the underlying features of
location dependent RSS patterns and location fingerprints. An understanding
of the properties of the RSS values for location fingerprinting can assist in
improving the design of positioning algorithms and in deployment of indoor
positioning systems.
26
Indoor Local Positioning System 3 RECEIVED SIGNAL STRENGTH
For ZigBee, Based On RSSI (RSS)
Shashank Tadakamadla 10.10.2006
Effect on Factors Options
1. Proximity of user User’s presence or
absence
Data Collection 2. Orientation of user North, East, South, West
and terminal
3. Make of Radio
4. Time of measurement Time of day & days of
week
5. Period of Second, minute, hour
Statistics measurement
7. Interference Co‐channel/ adjacent co‐
channel
8. Building environment Small offices or large
hall.
Table 10 Classification of factors the affect RSS [7]
Transmitter variability: Different transmitters behave differently even
when they are configured exactly in the same way. In practice, this means that
when a transmitter is configured to send packets at a power level of d dBm
then the transmitter will send these packets at a power level that is very close
to d dBm but not necessarily exactly equal to d dBm. This can alter the
received signal strength indication and thus it can lead to inaccurate distance
estimation.
Receiver variability: The sensitivity of the receivers across different
radio chips is different. In practice, this means that the RSSI value recorded at
different receivers can be different even when all the other parameters that
affect the received signal strength are kept constant.
Antenna orientation: Each antenna has its own radiation pattern that
is not uniform. In practice, this means that the RSSI value recorded at the
receiver for a given pair of communicating nodes and for a given distance
between them varies as the pair wise antenna orientations of the transmitter
and the receiver are changed.
Multi‐path fading and shadowing in the RF channel: In indoor
environments the transmitted signals get reflected after hitting on the walls
and/or on other objects in the room such as furniture. Both the original signal
and the reflected signal reach the receiver almost at the same time since they
both travel at the speed of light. As a result of this, the receiver is not able to
27
Indoor Local Positioning System 3 RECEIVED SIGNAL STRENGTH
For ZigBee, Based On RSSI (RSS)
Shashank Tadakamadla 10.10.2006
distinguish the two signals and it measures the received signal strength for
both of them.
In general, the RSSI based localization algorithms can be divided into two
broad categories: the map based and the distance (or area) prediction based
algorithms. In the case of the map based algorithms, the deployment area is
divided into a large set of sample points that cover the whole area. Most
techniques collect one or more signal strength measurements from all visible
beacon nodes and for each sample point. Each sample point is then mapped to
either a signal strength vector or a signal strength probability distribution.
This process generates an RSSI fingerprint map which is unique with respect
to the beacon locations and the deployment area. This fingerprint map is
stored to a central base station. A node that is not aware of its location collects
one or more signal strength measurements from all the visible beacon nodes
and creates its own RSSI fingerprint that is sent to the central base station. The
base station computes node’s location as the sample point’s location whose
RSSI fingerprint distance from the unknown node’s RSSI fingerprint is the
minimum among all the sample points. Despite the fact that the map based
RSSI localization methods produce relatively small location errors, they are
not attractive mainly because they require an excessive amount of profiling
data and because they are not fully distributed. The detailed profiling of a
building is a major holdback because it is complex, time consuming and
depends on beacon locations. Therefore, for different buildings or even for the
28
Indoor Local Positioning System 3 RECEIVED SIGNAL STRENGTH
For ZigBee, Based On RSSI (RSS)
Shashank Tadakamadla 10.10.2006
same building and different beacon locations different RSSI maps have to be
obtained.
The second category of RSSI based algorithms are the distance (or area)
prediction algorithms which focus on minimizing the amount of profiling
data. In distance prediction based methods, raw RSSI data are directly
mapped to distances through a signal propagation model. In some cases,
distances are not explicitly measured but they are taken into consideration
through assumptions on the underlying distributions. In the case of outdoor
deployments, where there are no obstacles, a single signal propagation model
is all the profiling data required. In the case of indoor deployments the same
applies but now the signal propagation model might be different across
different buildings with different furniture and wall arrangements. Given an
underlying signal propagation model, raw RSSI data can be mapped to
specific distances. These distances can be either used directly in order to
perform localization or assigned a probability and used in a learning
based/probabilistic localization algorithm. Obviously, the accuracy of the
distance prediction based methods depends heavily on the accuracy of the
signal propagation model used for translating RSSI values to distances.
29
Indoor Local Positioning System
For ZigBee, Based On RSSI 4 OBJECT TRACKING
Shashank Tadakamadla 10.10.2006
4 OBJECT TRACKING
4.1 Introduction
This chapter presents the object‐tracking application, the main objective of
this thesis work. The application is an algorithmic‐software implementation
written in Embedded C, which is capable of receiving data messages and
generating object position estimation data. The implementation of the object‐
tracking application makes use of the SENTIO platform and uses the
background knowledge introduced in the preceding chapters. The motivation
for the object‐tracking application is to determine the position of an object in
indoor environments (E.g. Home). The application acts as an interface which
collects the raw data that the sensors generate (numerical values). It makes the
proper comparisons and algorithmic processes to identify and track the object
while it is static inside the area covered by the wireless sensor network.
Finally, with the detection and tracking data, it alerts the user or another
system. The following sections provide an overview of the object‐tracking
application.
30
Indoor Local Positioning System
For ZigBee, Based On RSSI 4 OBJECT TRACKING
Shashank Tadakamadla 10.10.2006
Processing Module
Antenna
Sensing Module
Figure 15 SENTIO Platform [8]
The communication subsystem of the SENTIO sensor node was designed so
that the correct operation of the radio chip is ensured. The radio chip is
powered by the on‐board voltage regulator and thus fluctuations in the
battery voltage level do not affect the operation of the communication
subsystem.
This platform uses Chipcon CC2420 IEEE 802.15.4 radio transceiver operates
in the 2.4GHz ISM band and includes a digital direct sequence spread
spectrum (DSSS) modem providing a spreading gain of 9dB and an effective
data rate of 250Kbps. It was specifically designed for low power wireless
applications and supports 8 discrete power levels: 0dBm, −1dBm, −3dBm,
−5dBm, −7dBm, −10dBm, −15dBm and −25dBm at which its power consumption
varies from 29mW to 52mW [21]. A built‐in received signal strength indicator
gives an 8‐bit digital value: RSSIVAL. The RSSIVAL is always averaged over 8
symbol periods (128μs) and a status bit indicates when the RSSIVAL is valid
(meaning that the receiver was enabled for at least 8 symbol periods). The
31
Indoor Local Positioning System
For ZigBee, Based On RSSI 4 OBJECT TRACKING
Shashank Tadakamadla 10.10.2006
power P at the RF pins can be obtained directly from RSSIVAL using the
following
equation:
P = RSSIVAL + RSSIOFFSET [dBm]
where the RSSIOFFSET is found empirically from the front‐end gain and it
is approximately equal to −45dBm. In the next sections when we refer to the
RSSI value we refer to the RSSIVAL and not the power P unless otherwise
stated.
BC - 10/30
BC - 10/30
BC - 10/30
BC - 10/30
BC - 10/30
BC - 10/30 BC - 10/30
BC - 10/30
BC - 10/30
AP 2
BC - 10/30 BC - 10/30
BC - 10/30
BC - 10/30
D KAR P AC
TT HE W L E
AP 4
Figure 16 Layout of Masterʹs Room
A three dimensional, scalable testbed is used for indoor sensor network
deployments. The testbed illustrated in figure 16 is a 3‐D structure measuring
16m (L) x 12m (W) x 3m (H) and it is designed to host a large number of static
nodes as shown in figure 16. Arrow marks in the above figure represent the
location where fingerprints were taken. The centrepiece of our infrastructure
32
Indoor Local Positioning System
For ZigBee, Based On RSSI 4 OBJECT TRACKING
Shashank Tadakamadla 10.10.2006
is the SENTIO sensor node [8], an open‐source general purpose sensing
platform designed with AT Mega 128 microprocessor and the IEEE 802.15.4
compliant CC2420 radio from Chipcon [19].
33
Indoor Local Positioning System
For ZigBee, Based On RSSI 4 OBJECT TRACKING
Shashank Tadakamadla 10.10.2006
it is a research prototype, object tracking application is a simple, stable, stand‐
alone system capable of demonstrating an important application of WSN. It
takes raw data from the WSN, aggregates it, evaluates it, and based on the
evaluation, tracks the object. The accuracy of estimating the position is less
than 5m. Table 11 below shows a log of readings taken during test
Start
Intialize micro‐controller and
transeciever in receieve mode
No
If
B received_packet=
Beacon?
Yes
Average RSSI values
Increase the counter
No
If counter
B
>10,000/50
Yes
A
34
Indoor Local Positioning System
For ZigBee, Based On RSSI 4 OBJECT TRACKING
Shashank Tadakamadla 10.10.2006
Reset counter
Set transceiever in transmit mode
Transmit averaged RSSI to Main sensor and
set it back to receive mode
10,000 samples ‐ Offline
50 samples ‐ Online
Figure 17 Flow chart representing the algorithm of fixed sensors
35
Indoor Local Positioning System
For ZigBee, Based On RSSI 4 OBJECT TRACKING
Shashank Tadakamadla 10.10.2006
Start
Intialize micro‐controller and
transeciever in receieve mode
No
Received
RSSI values
from all fixed
Sensors?
Yes
Open radio map
Calculate Euclidean distance between obtained
RSSI values from fixed sensors and fingerprints
in radio map
Bubble sort for least error in signal strength values
36
Indoor Local Positioning System
For ZigBee, Based On RSSI 4 OBJECT TRACKING
Shashank Tadakamadla 10.10.2006
Get the location of the object from the radio
using the least error value
Display location of object on PC
End
Figure 18 Flow chart representing the algorithm of main sensor
Table 11 Accuracy of positioning system
37
Indoor Local Positioning System
For ZigBee, Based On RSSI 5 RESULTS
Shashank Tadakamadla 10.10.2006
5 RESULTS
This chapter presents how the system parameters such as number of samples,
mean or median etc…are finalized? All the tests are performed in master’s
room at Mid Sweden University. This chapter is divided into three
subsections. First in Section 5.1 it reviews results obtained from samples test.
Section 5.2 discusses one dimensional test results and finally section 5.3
discusses results of two dimensional tests.
BC - 10/30
BC - 10/30
BC - 10/30
BC - 10/30
BC - 10/30
BC - 10/30 BC - 10/30
AP 2
AP 1
BC - 10/30
BC - 10/30
BC - 10/30 BC - 10/30
BC - 10/30
BC - 10/30
D KAR PAC
TT LE HEW
Figure 19 Test bed for one dimensional test in Masters Room
Two SENTIO nodes (AP1 and AP2, as shown above) were separated by a
distance of 10 meters and these sensors are known as fixed sensors which are
fixed to the ceiling such that there antenna is faced towards the ground. They
are linear is position. A BS was connected to Dell laptop and it was placed in
such a way that its antenna was faced towards the ceiling. Another SENTIO
38
Indoor Local Positioning System
For ZigBee, Based On RSSI 5 RESULTS
Shashank Tadakamadla 10.10.2006
node was used as an object and its orientation was same as BS. Figure 19
represents the complete setup for object tracking application. Mobile node
was moved between these fixed ones at regular intervals of one meter and
RSSI values were logged at each interval.
Figure 20 Histogram plot of RSSI values at 1m and 4m
Figure 21 Histogram plot of RSSI values at 6m and 8m
39
Indoor Local Positioning System
For ZigBee, Based On RSSI 5 RESULTS
Shashank Tadakamadla 10.10.2006
Figure 22 Distance vs. RSSI
From the above graphs, following conclusions were made.
1. From the histogram plots we can observe that the distribution of RSSI
values follow Gaussians distribution law.
2. As we can see from figure 22, that median curve has drastic changes
when compared to mean curve. Hence mean is considered, while
estimating the position.
3. From the observations we conclude that the number of samples does
not matter since mean curve tends to be same for various numbers of
samples.
4. Hence, 10,000 samples are considered in order to get a proper location
fingerprint during off‐line phase and during online phase 50 samples
are enough to estimate the position of object.
40
Indoor Local Positioning System
For ZigBee, Based On RSSI 5 RESULTS
Shashank Tadakamadla 10.10.2006
can realize that the error was less than 2 meters. Table 12 shows the result of
location estimation in one dimensional case.
Table 12 One dimensional position estimation results
41
Indoor Local Positioning System
For ZigBee, Based On RSSI 5 RESULTS
Shashank Tadakamadla 10.10.2006
Figure 23 Error Rate vs. Number of samples
Figure 24 RSS distribution at 2:14 pm
42
Indoor Local Positioning System
For ZigBee, Based On RSSI 5 RESULTS
Shashank Tadakamadla 10.10.2006
Figure 25 RSS distribution at 1:00pm and 11:00 am
43
Indoor Local Positioning System
For ZigBee, Based On RSSI 6 DISCUSSIONS
Shashank Tadakamadla 10.10.2006
6 DISCUSSIONS
6.1 Summary and Conclusion
While empirical results and performance studies of positioning systems based
on location fingerprint have been presented in this report, analytical model
that can be used as a framework for efficiently designing the positioning
systems are not available. This thesis design work uses general principles of
position estimation such as position estimation of sensors, grid spacing etc...
This design work focuses on accuracy and precision.
The concept of location fingerprint technique based on RSS us explained in
detail in chapter 2. It is found that RSS is random. It is possible to
approximate the RSS as being normally distributed. While the RSS random
process is non‐stationary, the mean is more or less constant and could be used
as the fingerprint of the location.
Model designed for position estimation is as shown in chapter 4. Accuracy
and precision are the two major performance matrices in this study. Uniform
grid spacing has been used. From the experimental analysis, I have obtained
an accuracy of 3 meters and 35% precision.
The sensitivity analysis among the system parameters and the performance
matrices were done using the model as shown in chapter 4. For instance, our
study found that the minimum distance between two adjacent positions also
affects the positioning performance. This is due to the randomness of RSS
patterns induced by the ever changing indoor environment.
6.2 Future work
The research in this thesis provides a ground work for the future study of
efficient design of indoor positioning system. The RSSI based position
estimation still has limitations. First, the RSSI value is time dependent. Thus,
the future study should address this issue. Second, the movement of object is
not considered. Third, orientations of sensors affect the performance which
should be taken care off. Fourth, to improve the performance of the system
we need to find a solution to deal with those incomplete or missing data
during the off‐line and the on‐line phase. Fifth, position estimation on multi‐
floor and three‐dimensional coordinates is not available.
44
Indoor Local Positioning System
For ZigBee, Based On RSSI APPENDIX 1
Shashank Tadakamadla 10.10.2006
APPENDIX 1
45
Indoor Local Positioning System
For ZigBee, Based On RSSI APPENDIX 2
Shashank Tadakamadla 10.10.2006
APPENDIX 2
A
Begin
Yes
Check whether
Estimate the position of static
the
Packet is data or No
Beacon packet,
If data packet ? Display the position on PC
Yes End
Flow chart representing the main algorithm for position estimation
46
Indoor Local Positioning System
For ZigBee, Based On RSSI APPENDIX 3
Shashank Tadakamadla 10.10.2006
APPENDIX 3
47
Indoor Local Positioning System
For ZigBee, Based On RSSI APPENDIX 3
Shashank Tadakamadla 10.10.2006
Distribution of RSSI
48
Indoor Local Positioning System
For ZigBee, Based On RSSI REFERENCES
Shashank Tadakamadla 10.10.2006
REFERENCES
[1] T. S. Rappaport, J. H. Reed, and B. D. Woerner, “Position location using
wireless communications on highways of the future,ʺ IEEE Commun. Mag.,
vol. 34, no. 10, pp.33‐41, Oct. 1996.
[2] A. M. Ladd, K. E. Bekris, G. Marceau, A. Rudys, L. E. Kavraki, and D. S.
Wallach, ”Robotics‐based location sensing using wireless ethernet,ʺ in Proc.
ACM International Conference on Mobile Computing and Networking
(MOBICOMʹ02), 2002, pp. 227‐238.
[3] I. Ramani, R. Bharadwaja, and P. V. Rangan, “Location tracking for media
appliances in wireless home networks,ʺ in Proc. International Conference on
Multimedia and Expo (ICMEʹ03), July 2003, pp. 769‐772.
[4] K. Pahlavan, X. Li, and J. P. Makela, “Indoor geolocation science and
technology,ʺ IEEE Commun. Mag., vol. 40, no. 2, pp. 112‐118, Feb. 2002.
[5] Konard Lorincz and Matt Welsh, “Mote Track: A Robust, Decentralized
Approach to RF‐Based Location Tracking”.
[6] Paramvir Bahl and Venkata N. Padmanabham, “RADAR: An In‐Building
RF‐based User Location and Tracking System”.
[7] Kamol Kaemarungsi, “Design of Indoor positioning system based on
location fingerprint techinique”. University of Pittsburgh, 2005.
[8] Fredrik Linnarsson, Cheng Peng and Bengt Oelmann, “SENTIO: A
Hardware Platform for Rapid Prototyping of Wireless Sensor Networks”.
[9] S. Saha, K. Chaudhuri, D. Sanghi, and P. Bhagwat, “Location
determination of a mobile device using IEEE 802.11b access point signals,ʺ in
Proc. IEEE Wireless Communications and Networking Conference (WCNCʹ03),
New Orleans, LA, Mar. 2003, pp. 1987‐1992.
[10] T. Roos, P. Myllymaki, H. Tirri, P. Misikangas, and J. Sievanen, “A
probabilistic approach to WLAN user location estimation,ʺ International
Journal of Wireless Information Networks, vol. 9, no. 3, pp. 155‐164, July 2002.
[11] R. Battiti, M. Brunato, and A. Villani, “Statistical learning theory for
location fingerprinting in wireless LAN’s,ʺ Technical Report, Oct. 2002.
[Online]. Available: http://rtm.science.unitn.it/»battiti/archive/86.pdf
[12] P. Prasithsangaree, P. Krishnamurthy, and P. K. Chrysanthis, “An indoor
position location with wireless LANs,ʺ in Proc. IEEE International Symposium
on Personal, Indoor, and Mobile Radio Communications (PIMRCʹ02), Lisbon,
Portugal, Sept. 2002.
[13] M. A. Youssef, A. Agrawala, and A. U. Shankar, “WLAN location
determination via clustering and probability distributions,ʺ in Proc. IEEE
49
Indoor Local Positioning System
For ZigBee, Based On RSSI REFERENCES
Shashank Tadakamadla 10.10.2006
50