• 沒有找到結果。

3 Implementation of localization system

N/A
N/A
Protected

Academic year: 2022

Share "3 Implementation of localization system"

Copied!
6
0
0

加載中.... (立即查看全文)

全文

(1)

INDOOR LOCALIZATION SYSTEM USING RSSI MEASUREMENT OF WIRELESS SENSOR NETWORK BASED ON ZIGBEE STANDARD

Masashi Sugano

School of Comprehensive rehabilitation Osaka Prefecture University 3-7-30, Habikino, Osaka 583-8555, Japan

e-mail:sugano@rehab.osakafu-u.ac.jp

Tomonori Kawazoe, Yoshikazu Ohta, and Masayuki Murata Graduate School of Information Science and Technology

Osaka University

51-5 Yamadaoka, Suita, Osaka 565-0871, Japan e-mail: murata@ist.osaka-u.ac.jp

Abstract

To verify the validity of our previously reported au- tonomous indoor localization system in an actual envi- ronment, we implemented it in a wireless sensor network based on the ZigBee standard. The system automatically estimates the distance between sensor nodes by measuring the RSSI (received signal strength indicator) at an appro- priate number of sensor nodes. Through experiments, we clarified the validity of our data collection and position esti- mation techniques. The results show that when the deploy- ment density of sensor nodes was set to 0.27 nodes/ ¾, the position estimation error was reduced to 1.5-2 m.

Keywords

performance evaluation, localization, RSSI, ZigBee

1 Introduction

Recent advances in wireless communications and electron- ics have enabled the development of microsensors that can manage wireless communication. If a large number of sen- sors are deployed, wireless sensor networks can monitor large areas and be applied in a variety of fields, such as for monitoring the environment, air, water, and soil. Sensor networks can also offer sensing data to context-aware ap- plications that adapt to the user’s circumstances in a ubiq- uitous computing environment. If they are appropriately designed, sensor nodes can work autonomously to measure temperature, humidity, luminosity, and so on. Sensor nodes send sensing data to a sink node deployed for data collec- tion. In the future, sensors will be cheaper and deployed ev- erywhere; thus, user-location-dependent services and sen- sor locations will become more important. Although GPS (global positioning system) is a popular location estima- tion system, it does not work indoors because it uses sig- nals from GPS satellites [1]. Using sensor networks instead of GPS makes indoor localization possible. In the future, we expect an increase in applications that satisfy location- information requirements, such as navigation systems and target tracking systems in office buildings or in supermar- kets. Sensor locations are important too, because sensing data are meaningless if the sensor location is unknown in environmental-sensing applications such as water-quality, seismic-intensity, and indoor-air-quality monitoring [2].

Methods using ultrasound or lasers achieve high ac- curacy, but each device adds to the size, cost, and energy requirements. For these reasons, such methods are not suit- able for sensor networks. An inexpensive RF-based ap- proach with low configuration requirements has been stud- ied [3-6]. These studies showed that the received signal strength indicator (RSSI) has a larger variation because it is subject to the deleterious effects of fading or shadow- ing. An RSSI-based approach therefore needs more data than other methods to achieve higher accuracy [1, 7, 8].

However, collecting a large amount of data causes an in- crease in traffic and in the energy consumption of sensors and decreases the lifetime of sensor networks. Further- more, increasing the data collection time has a negative in- fluence on realtime operation of the location information collection method. Considering this background, we are studying a localization system that estimates the position of targets by using RSSI in sensor networks. To reduce the amount of data collected by the sink and extend the lifetime of the sensor networks, we have devised a data-collection technique in which sensors recognize the number of sur- rounding sensors [9]. These sensors autonomously decide whether to send sensing data and they operate when de- ployed randomly. Our system does not need centralized control or complicated calculations and does not send any more packets than necessary. We previously evaluated the effectiveness of our technique through simulation experi- ments [9].

In wireless sensor networks, it is important to keep energy consumption low, so IEEE 802.11 [10] for wire- less LANs, which was designed for high-power devices such as PCs, is not suitable for wireless sensor networks.

Many protocols that cut off wireless devices in order to re- duce energy consumption have been proposed [11-13], but a standard has not been defined, so sensors are not subject to standardization, and a protocol has not been dissemi- nated. IEEE 802.15.4 [14] for low-rate wireless personal area networks has appeared recently. This standard de- fines medium access control (MAC) and the physical layer (PHY) protocol for low-power devices. ZigBee [15], which includes IEEE 802.15.4 for MAC and PHY, is expected to be suitable for wireless sensor networks and is being of- fered in some products on the market. However, most past studies on localization systems carried out the performance

(2)

Target node

Received RSSI Measurement

demand

Sink node Fixed sensor node

Figure 1. Localization system using RSSI measurement in sensor network.

evaluation on systems based on 802.11 for wireless LANs (e.g., [16, 17]), and there has been insufficient investiga- tion of using ZigBee or IEEE 802.15.4. Accordingly, in this study, we implemented a positional estimation tech- nique using RSSI in a sensor network in accordance with the ZigBee standard and evaluated its position-estimation ability. We implemented our technique in Ubiquitous De- vice, which is a sensor-network developed by Oki Elec- tric Industry Co. Ltd., Japan, and investigated the distance measurement accuracy of our technique through actual ex- perimental measurements.

The remainder of this paper is organized as follows.

Section 2 explains our localization system. Section 3 de- scribes its implementation on a ubiquitous device. Section 4 presents experimental results. Section 5 concludes with a brief summary and mentions future work.

2 Localization system model 2.1 Localization in sensor network

We consider a system in which sensors estimate the posi- tion of a target in an observation area. The target node is a wireless device that sends a packet to three or more sen- sor nodes, which measure the received power. If there are multiple targets, each packet includes the target’s ID. After receiving a packet, sensors measure RSSI and send the re- sults (sensing data) to the sink node, which calculates the target position from the sensing data. An outline of this lo- calization system is shown in Fig. 1. The following points regarding the localization system must also be taken into account:

Sensor node placement

We assume that all sensor nodes have already been de- ployed and that they do not move. Sensor nodes are as- sumed to know their own position. There are two ways in which a sensor node can learn its position: 1) A man- ager registers the sensor node’s position in the sink node’s database. When the sensor node needs to know its position, the sink node sends the appropriate sensor node’s position.

It resolves a sensor’s position when only a few sensor nodes

are placed on a grid or if only a few sensors are placed ran- domly. But it cannot handle the registration of the positions of a large number of randomly placed sensor nodes. 2) A manager places a few beacon nodes that know their own positions, and a sensor node estimates its position by us- ing information from some of the beacon nodes. A system based on such beacons can handle a lot of randomly placed sensors.

Data collection

Sensors receive packets from targets, measure the power of the packet, and transform the RSSI into distance for use in theoretical or empirical models. The packet includes a target ID and a packet number. By reading the packet, a sensor gets the target ID, packet number, and the distance between the sensor and the target. It then sends the follow- ing data to the sink: sensor ID, target ID, packet number, and sensor-to-target distance.

Position estimation calculation at the sink node

We use a maximum-likelihood (ML) estimation to estimate the position of a target by minimizing the differences be- tween the measured and estimated distances. ML estima- tion of a target’s position can be obtained using the mini- mum mean square error (MMSE) [18], which can resolve the position from data that includes errors. We explain the calculation for a two-dimensional case as follows. MMSE needs three or more sensor nodes to resolve a target’s po- sition. First, the sink node searches for the same data in terms of a target ID and a packet number by collecting data from sensor nodes. The difference between measured and estimated distances is defined by



¼



¼

   

¼



¾

 

¼



¾

 (1) where¼



¼

is the unknown position of the target node,

for  is the sensor node position, and

  is the total number of data that the sink has col- lected, and  is the distance between sensor node and the target. The target’s position¼



¼

can be obtained by MMSE. By setting  , Eq. (1) is transformed into



¾



¾



¾



¾

¼



¾

¼



¼

 

¼

 (2) After getting Eq. (2), we can eliminate the¾

¼



¾

¼

terms by subtracting th equation from the rest, as follows.



¾



¾



¾



¾





¾





¾







¼







¼





  (3) Then Eq. (3) is transformed into Eq. (4), which can be solved using the matrix solution given by Eq. (5). Position (¼,¼) can be obtained by calculating Eq.(5).

 (4)







½



 (5)

(3)

where















½

 





½



... ...







 ½

 





 ½







 (6)









¾

½

¾

½



¾

½

 

¾ ¾



¾



...



¾

½

¾

½



¾

½

 

¾ ¾



¾







 (7)







¼



¼

 (8)

2.2 Effective data collection

Since the propagation characteristics change greatly with the environment, it is necessary to determine the number of data necessary to obtain a certain degree of accuracy in the environment where the sensor node is operating. A user can decide the number of data to collect based on prior knowl- edge and send it to all sensor nodes by flooding from the sink node. Targets can also inform sensors of the number of data by sending packets. If the resultant accuracy is less than that required for the application, the user can easily increase the number of data to be collected.

In our scheme, whether sensor nodes send data de- pends on the deployment density of sensor nodes around the sensor node itself and the distance between the sensor node and the target. Each sensor node sends data if it is closer to the target than a certain distance. Sensor nodes can measure the deployment density by receiving packets sent by other sensor nodes to announce their presence in each period of time. The deployment density around sen- soris approximately determined by Eq. (9), where is the communication range and is the number of sensor nodes within from a sensor node.





¾

(9) We define the number of data required by the system as

. Sensor node sends data if the measured distance is less than to enable the sink node to collectdata. The number of sensor nodes within is proportional to the density, and is defined in Eq. (10).



¾







¾

(10) By arranging Eq. (10), we get

 



 (11)

Here, depends on the density around sensor node. The sink can collect the same number of data independently of the sensor-deployment density because if the density around sensor nodeis high,  is small and if the den- sity around sensor nodeis low, is high.

Figure 2. Ubiquitous Device equipped with the optional serial port.

Table 1. Specifications of Ubiquitous Device.

Radio frequency band 2.4 GHz Transmission speed 250 kbps

Modulation O-QPSK

Spread spectrum DS-SS

Antenna 1/4monopole

Transmission power 1 mW

3 Implementation of localization system

To verify the validity of the system described in the pre- vious section, we implemented it in Ubiquitous Device, which is a sensor network system that performs commu- nication based on the ZigBee standard. Ubiquitous De- vice is equipped with four push switches, six LEDs, and a general-purpose analog I/O port. Various sensors, such as a temperature sensor, can be connected to this analog I/O port. Moreover, the collected data can be sent to a PC by serial communication if the optional RS-232C port is installed (Fig. 2). The CPU of this device is ML 67Q4003 (which is compatible with ARM7), which has 32 KB of RAM and 512 KB of programmable flash memory. To en- able this device to be programmed, a POSIX compatible API is provided, which enables applications to be created in the C language. Moreover, this device is equipped with a CC2420 [19] radio controller from Chipcon Inc., which is used to perform communication based on the ZigBee standard. Other possible functions include control of the transmission power, acquisition of RSSI, and sleep control.

Table 1 lists the other specifications of this device.

The system that we built consists of three kinds of nodes-targets, sensors, and a sink-. These all run on the ubiquitous device. Since the multi-hop communication function has not been developed yet, all communications are currently performed by a single hop. A packet trans- mitted from a certain node can be received by all the nodes

(4)

within the communication range. Therefore, to ensure that the packet is received only by a specific destination node, each receiving node must compare the MAC address in the packet with its own. This ubiquitous device can transmit a maximum of 127 bytes of variable-length data as one packet. In this experiment, since our aim was target posi- tion estimation, we did not collect any sensor information other than RSSI from the target.

This system aims to perform position estimation using only information from a certain constant number of sensor nodes. We then set the threshold value of RSSI in each sen- sor node. And a sensor node decides to transmit a packet to a sink node only when the received signal from a target exceeds this value. We can change the number of data to collect by changing this threshold value.

We defined two kinds of messages exchanged in this system:

 Measurement demand message

This message is used to request sensor nodes to mea- sure the signal received from a target. Since this mes- sage is not intended for a specific sensor node, it is broadcast. In addition, to distinguish measurement demands, a sequence number is included in this mes- sage. Whenever a target transmits this message, it in- crements the sequence number.

 Received signal report message

This message is used by a sensor node to report the measured RSSI value to the sink node. It contains the ID of the target and the sequence number.

These messages can be distinguished by the first byte of the packet. The packet formats are shown in Fig. 3. Position estimation is performed using these messages through the following procedure.

1. Sensor nodes are arranged in the sensing area, and their positions are stored in a database on a PC. The RSSI threshold is set in these sensor nodes.

2. A measurement demand message is broadcast to sen- sor nodes from a target.

3. Each sensor node measures RSSI at the time it receives the packet, if the received message is a measurement-demand message. If RSSI exceeds the preset threshold value, a sensor node transmits the tar- get ID and sequence number to the sink node.

4. The sink node collects the ID and sequence number of the target, and the ID and RSSI of each sensor node, and transmits these data to the PC by serial commu- nication. If three or more RSSI values with the same target ID and sequence number are collected, the tar- get’s position can be estimated by the PC.

4 Experimental results

We conducted an experiment to investigate the relationship between the measured RSSI value and the distance between nodes. All of these measurements were performed in the passages and conference rooms at Osaka University. For various different distances between the target and sensor

Message class: 1

RSSI Target ID

Sequence No.

Message class: 2 Sequence No.

1 2 3

1 2 3 4 5 6

byte

byte Measurement demand message

Received signal report message

Figure 3. Packet formats of localization system.

nodes, we transmitted a packet from the target and col- lected the RSSI values acquired from the sensor by the sink node. We performed ten measurements for each position and took the average as the measured RSSI value. We then computed an approximate expression from these measured values using the least-squares method. The results of mea- surements in a passage and conference room are shown in Fig. 4. Expressing the distance as[m] and the measured signal strength as[dBm], we obtained the following rela- tionships:

 In a passage

   (12)

 In a conference room

  (13) We experimented on our position-estimation system in a conference room in the university. We installed 20 sen- sor nodes in the conference room (area: 7.08 m10.60 m), and we measured six targets in this room. The positions of these sensor nodes and targets is shown in Fig. 5.

The experimental procedure was as follows. First, we set the same value for the RSSI threshold in all the sensor nodes. Next, we set up the target node in the place whose position was to be estimated and transmitted the measure- ment demand message from the target. If the sink node re- ceived three or more RSSI report messages from the sensor nodes, it performed target position estimation. The mea- surement demand message was transmitted five times per second and the estimated distance was averaged. We can obtain the relationships between the RSSI threshold and the number of data that can be collected by using Equa- tions (11) and (13). We had to set the RSSI threshold to an integer because of the limitations of the ubiquitous device.

Table 2 shows the number of data that were predicted to be collectable for various RSSI thresholds.

The relationship between the predicted and actually obtained data collection numbers are shown in Figure 6.

The difference between them increased as the RSSI thresh- old was reduced. The cause of the difference might be the limitation on the number of retransmissions in IEEE 802.15.4, which is five. Next, the relationships between the predicted data collection number and the position estima- tion error for six targets are shown in Figure 7. The number of data in which the estimation error could be reduced was seven or less, though the result depended on the position of the target. Even if more data were collected, the estima- tion error could not be reduced. These experimental results

(5)

-80 -70 -60 -50 -40 -30

0.01 0.1 1 10 100

RSSI (dBm)

Transmitting distance (m) Approximate distance

Measurement value

(a) Passage

-80 -70 -60 -50 -40 -30

0.01 0.1 1 10 100

RSSI (dBm)

Transmitting distance (m) Approximate distance

Measurement value

(b) Conference room

Figure 4. Relationship between communication distance and RSSI value.

show that when the installation density of sensor nodes was set to 0.27 nodes/ ¾, the position estimation error could be reduced to 1.5-2 m.

5 Conclusion and future work

We have implemented a localization system that uses RSSI in a sensor network based on the ZigBee standard. The collected numbers of data could be controlled by chang- ing the RSSI threshold. We evaluated the system’s posi- tion estimation accuracy. In the experimental environment, the number of sensors and target nodes was limited, so the number of collected RSSI data was not very large. It is therefore necessary to verify the practicality of our tech- nique for sensing the positions of more targets with a large number of sensors. Furthermore, to achieve an autonomous system, it would be preferable if a sensor node could de- cide an appropriate threshold automatically by judging its wireless environment through the mutual exchange of RSSI information.

1 2

3

4

5

6

0 200 400 600 800 1000

0 200 400 600

sensor node target

(cm) (cm)

Figure 5. Positions of sensor nodes and targets in the con- ference room.

Table 2. Predicted numbers of collectable data for various RSSI thresholds.

RSSI threshold (dBm) Number of collectable data

-58 4.4

-59 5.1

-60 5.9

-61 6.8

-62 7.9

-63 9.2

-64 10.7

-65 12.5

Acknowledgments

This research was partly supported by “New Informa- tion Technologies for Building a Networked Symbiosis Environment” (The 21st Century Center of Excellence Program) and a Grant-in-Aid for Scientific Research (C) 17500043 of the Ministry of Education, Culture, Sports, Science and Technology, Japan.

References

[1] Y. Gwon, R. Jain, and T. Kawahara, Robust indoor location estimation of stationary and mobile users, Proc. IEEE INFOCOM 2004, 2004.

[2] N. Patwari, A. O. Hero III, M. Perkins, N. S. Correal, and R. J. O’Dea, Relative location estimation in wire- less sensor networks, IEEE Trans. Signal Processing, 51(8), 2003, 2137–2148.

(6)

0 2 4 6 8 10 12 14

3 5 7 9 11 13

Predicted value of number of sensors

Actually obtained number of sensors

target 1

target 2 target 3

target 4 target 5

target 6 Theoretical

Figure 6. Relationship between predicted and actual num- bers of collectable data.

0 0.5 1 1.5 2 2.5 3

3 5 7 9 11 13

Predicted number of sensors

Estimation error (m)

target 1 target 2 target 3 target 4 target 5 target 6

Figure 7. Relationship between predicted number of col- lectable data and position estimation error.

[3] P. Krishnan, A. S. Krishnakumar, W. H. Ju, C. Mal- lows, and S. Ganu, A system for LEASE: location estimation assisted by stationary emitters for indoor RF wireless networks, Proc. IEEE INFOCOM 2004, 2004.

[4] T. Roos, P. Myllymaki, and H. Tirri, A statistical mod- eling approach to location estimation, IEEE Trans.

Mobile Computing, 1(1), 2002, 59–69.

[5] N. Patwari and A. O. Hero III, Using proximity and quantized RSS for sensor, Proc. 2nd ACM Interna- tional Conference on Wireless Sensor Networks and Applications, 2003.

[6] E. Elnahrawy, X. Li, and R. P. Martin, The limits of localization using signal strength: A comparative study, Proc. IEEE SECON 2004, 2004.

[7] K. Langendoen and N. Reijers, Distributed localiza- tion in wireless sensor networks: a quantitative com- parison, Computer Networks, 43, 2003, 499–518.

[8] C. Chang and A. Sahai, Estimation bounds for local- ization, Proc. IEEE SECON 2004, 2004.

[9] Y. Ohta, M. Sugano, and M. Murata, Autonomous lo- calization method in wireless sensor networks, Proc.

1st International Workshop on Sensor Networks and Systems for Pervasive Computing (PerSeNS 2005), Mar. 2005.

[10] P. Brenner, A Technical Tutorial on the IEEE 802.11 Protocol. (Breezecom Wireless Communications, 1997).

[11] W. Ye, J. Heidemann, and D. Estrin, Medium access control with coordinated, adaptive sleeping for wire- less sensor networks, ACM/IEEE Trans. Networking, 12, 2004, 493–506.

[12] T. van Dam and K. Langendoen, An energy-efficient MAC protocol for wireles sensor networks, Proc. 1st International Conference on Embedded Networked Sensor Systems, 2003, 171–180.

[13] Y.-C. Tseng, C.-S. Hsu, and T.-Y. Hsieh, Power- saving protocols for IEEE 802.11-based multi-hop ad hoc networks, Proc. IEEE INFOCOM 2002, 2002, 200–209.

[14] IEEE Standards 802 Part 15.4: Wireless Medium Ac- cess Control (MAC) and Physical Layer (PHY) Spec- ifications for Low-Rate Wireless Personal Area Net- works (LR-WPANS), (IEEE Inc., 2003).

[15] ZigBee Specification v.1.0. ZigBee Alliance, 2005.

[16] J. Yin, Q. Yang, and L. Ni, Adaptive temporal radio maps for indoor location estimation, Proc. IEEE In- ternational Conference on Pervasive Computing and Communications, 2005.

[17] S. Sivavakeesar and G. Pavlou, Scalable location ser- vices for hierarchically organized mobile ad hoc net- works, Proc. ACM MobiHoc ’05, 2005, 217–228.

[18] A. Savvides, C.-C. Han, and M. B. Strivastava, Dy- namic fine-grained localization in ad-hoc networks of sensors, Proc. 7th International Conference on Mo- bile Computing and Networking, 2001, 166–179.

[19] CC2420 Preliminary Datasheet (rev 1.2). Chipcon AS, 2004.

參考文獻

相關文件

(12%) Among all planes that are tangent to the surface x 2 yz = 1, are there the ones that are nearest or farthest from the origin?. Find such tangent planes if

[r]

With minimal model program in mind, our purpose is to give a modern treatment of surface theory, and leave the classical classification theory as an application of general

39) The osmotic pressure of a solution containing 22.7 mg of an unknown protein in 50.0 mL of solution is 2.88 mmHg at 25 °C. Determine the molar mass of the protein.. Use 100°C as

(Why do we usually condemn the person who produces a sexually explicit material to make money but not a person who does the same thing in the name of art?). • Do pornographic

refined generic skills, values education, information literacy, Language across the Curriculum (

This kind of algorithm has also been a powerful tool for solving many other optimization problems, including symmetric cone complementarity problems [15, 16, 20–22], symmetric

Property of an ellipse: If an ellipse with major and minor axes of lengths 2a and 2b, respecAvely, where 0<b<a.. The diagram below shows several concentric circles centered