Implementing a Self-organizing Wireless Sensor Network: Experiences and Challenges Joo Ghee Lim, Kim Loon Chee, Hee Boon Leow, Yew Kwan Chong, PK Sivaprasad and SV Rao Institute for Infocomm Research, Singapore Science Park II, Singapore Fax: +65 67795441 {limjg, cheekl, leowhb, chongyk, pksiva, raosv}@i2r.a-star.edu.sg

Abstract:

Wireless sensor networks have specifically unique characteristics with regards to energy, memory, computational and complexity limitations. This paper shares the experiences gained in designing and implementing a wireless sensor network when we take these considerations into account. We also highlight some challenges faced in the implementation of the network. The hardware that is developed provides a realistic and flexible platform for future implementation and testing of relevant higher layer schemes.

Key Words: Sensor networks, design, implementation 1. INTRODUCTION In recent years, there has been great interest in the development of small, embedded devices that organize and communicate among themselves in a distributed manner, forming wireless sensor networks. Applications include military surveillance, inventory control and environmental monitoring. Much of the research has been focused on investigating the performance of the communication schemes, e.g. routing, data dissemination and positioning, at the analytical modeling and simulation level. On the physical implementation front, some testbeds have been set up to evaluate ad-hoc and sensor networks [1-4]. Apart from [4], most of these testbeds implement ad-hoc networking using notebooks and PDAs with IEEE 802.11b as the underlying layer. The rationale is to give the researchers freedom in testing out networking protocols over a stable Medium Access Control (MAC) and physical layer. However, these nodes may not accurately reflect the true sensor network environment (e.g. radio propagation, range and channel conditions). In addition, new MAC protocols could not be tested on these testbeds. This paper presents the work done in designing and implementing a wireless sensor network. The merits of this paper are the discussions of the challenges met and experiences gained during the process of developing the different aspects of the sensor network. We will discuss these challenges and experiences with regards to the different layers of our implementation. Sections 2, 3 and 4 describe the physical, MAC and routing layer respectively. Section 5 provides an overview of the operating system that binds these

layers together. We discuss the overall system implementation in Section 6 before concluding the paper.

2. PHYSICAL LAYER A sensor node, in its most basic form, consists of a microcontroller connected to a RF transceiver. The microcontroller serves as the “brain” of the node. It contains the decision logic that processes the information the node receives, both from the external environment as well as other nodes. The transceiver is the “ear and mouth” of the node with which it is able to communicate with other nodes. Often, a sensory module (the “eye”) is also present, which captures the information from the environment (e.g. image, temperature). Fig. 1 shows a block diagram of the hardware. Power consumption and flexibility were key considerations when deciding the hardware. The need for low power consumption within the nodes is a well-known fact in sensor network research. Flexibility of hardware configuration is needed because, as a testbed, it would be desirable for the nodes to be easily configured to suit different schemes, e.g. communication range, sleeping modes, etc. The Texas Instruments’ MSP430F149 microcontroller [5] was chosen because of the following features: low power consumption, multiple power-saving modes and a 16-bit architecture. We used the Chipcon CC1000 [6] chipset for the transceiver because it has adjustable transmission power and channel frequency, and has RSSI sensing capability. These hardware features, besides being low powered, provide the flexibility needed to test the variety of communication protocols. Baseband Hardware

To PC

Control I/F Microcontroller

Data I/F

RF Transceiver

Linedriver

RF Hardware

Fig. 1 Block diagram of the hardware

Besides the microcontroller and transceiver, a RS-232 linedriver was also included in each node to make it possible to connect the node to an external personal computer (PC) for testing and monitoring purposes. The MAX 3317 line-driver from Maxim [7] was selected due to its low power and operating voltage. One of the challenges faced when we implemented the hardware was the variation in the nodes’ performance due to deviations in the components’ tolerance values. The deviations caused disparities among different nodes in terms of transmission range and receiver sensitivity. Careful calibration process was put in place where we fine-tuned the transmission power of each node to give a consistent performance among the nodes. In addition, the printed circuit board (PCB) miniaturization also had an effect on the monopole antenna’s omnidirectional performance. Careful consideration during the PCB design phase helped to reduce this effect and we were able to achieve an antenna far-field response that approached omni-directional performance.

3. MAC LAYER The MAC layer manages the communication channels to avoid collisions and errors. In order to simplify node operations and reduce power consumption, our MAC layer uses a common message structure, shared between the routing and application layers. We use a TDMA-like mechanism to schedule transmission as this allows the node to switch off its radio transceiver during idle time slots, reducing the power consumption. However, we need to find a computationally inexpensive way of synchronizing the timings among the nodes. This is to eliminate errors caused by the drifting of times slots between nodes. We introduce a novel way of using relative time slot referencing within individual nodes that is able to provide synchronization (a requirement in most TDMA systems) but does away with the need to maintain a global timing. Following is a brief discussion on how relative time slot referencing works – each node transmits messages at regular time intervals (frames). Each frame is further sub-divided into smaller intervals (slots). Within each frame, the node will send its message at the same slot and all other slots will take reference from this transmission slot (known as slot 0). Synchronization between a node and its neighbor is done by monitoring the slot (relative to slot 0) where messages are received from this neighbor. Any drift in this receive slot will be updated in the node’s neighbor records. If this slot drifts too near to the transmission slot, or another occupied slot, a recovery action will be activated.

This relative time slot referencing mechanism provides a simple and distributed way of maintaining time synchronization among all the nodes within the network, thereby reducing the computational cost significantly. Maintaining a record of the neighbors’ characteristics (neighbor identity, relative transmission slot, etc) also provides us with a simple way of mobility detection at the software level. Self-mobility detection generally requires the presence of complex peripherals, e.g. video, motion sensors, or algorithms to deduce that the node has indeed moved. We implement a simple mobility detection mechanism by monitoring the change in the number of new and missing neighbor nodes over a time period. We deduce that a node has moved from its original position if the number of new and missing neighbors over a given time goes beyond a threshold value.

4. ROUTING LAYER Above the MAC layer sits the routing layer. The function of the routing protocol is to discover a route from one node to another. Besides power and memory constraints, a notable characteristic of wireless sensor networks is that the identities and locations of destination nodes are usually known1. In our implementation, we have only a single destination node that serves as a host system, where all other nodes will forward their information. Our routing scheme makes use of this fact to simplify the routing operations. In general, routing schemes in ad hoc-like networks can be classified into proactive and reactive routing. Briefly, proactive routing requires routes to be always available. Route maintenance is activated every time a link fails. In reactive routing, a node only request for a route to a destination when it has something to send. A key challenge in designing the routing scheme is balancing the tradeoff between responsiveness and computational cost of route maintenance. Proactive routing is often frowned upon because it is deemed too costly to exchange routing information whenever a node moves or a communication channel fails. However, this may not always be the case in sensor networks. Unlike ad-hoc networks, sensor nodes in certain applications hardly move. Hence, route changes due to node movements are greatly reduced. Moreover, there only exist a finite number of destinations where all information will be sent. It makes sense to establish and maintain a route to each of these destinations. Thus, proactive routing is used. We further

1

Most applications involve a large number of sensor nodes that forward information to a small, finite number of host systems that record and keep track of the information.

Fig. 2 Asymmetrical communication between nodes A and B reduce the effects of channel failures by maintaining multiple routing paths to the destinations. Another challenge we faced involves node behavior under RF boundary conditions. When a node lies near the limit of another node’s RF range, the communication may become asymmetrical. This is due either to the weak, inconsistent signal strength, or the non-uniformity of the signal coverage. Routing information messages travel in the opposite direction to actual data messages that eventually use the route. Near the boundary of the node’s signal range, the presence of a routing message path may not always mean that the data path (actual route) is available. Figure 2 gives an illustration of such an example. When node A broadcasts a routing information message, node B receives it and sets up a path to the destination through node A. However, any data message sent by node B via A would be lost since node A is not within the signal range of B. One of the ways to reduce this effect is to provide for redundancy in data delivery by maintaining multiple paths and sending the same message over different paths, which will lead to additional overheads. Thus, a balance has to be struck between energy efficiency and reliability of information delivery.

5. OPERATING SYSTEM Besides the hardware and communication layers, another important feature of embedded devices is the operating system (OS), which schedules tasks and manages the resources (e.g. memory, peripherals, registers) of the device. The aim is to design a simple OS that is able to manage all the specific requirements of the resource-limited sensor node. Besides the TinyOS [4], there are few OSs that meet our specific requirements. For flexibility and greater source-code control, we decided to develop a simple OS to support all the requirements of the nodes. The OS we developed is based on an Event-Driven Scheduler (EDS). It provides a basic framework to integrate the

different node resources without incurring high processing and memory overhead. In general, each module (MAC, routing, sensory, etc.) is realized as a task. Each task has its own associated event list that is managed as a linked-list by an Event Manager. This keeps the OS modular, giving us the flexibility to add in new modules (e.g. other sensory functions) in future. A Memory Manager manages a pool of memory buffers. If data or messages are needed to be passed along with any event, the Event Manager will request for the buffer from the pool. When the memory is no longer needed, it will be returned to the pool. This central management of memory prevents any unauthorized access of memory or accidental memory corruption. A Controller Resource Manager provides a means of the microcontroller’s functionality – the RF module interface, UART and a timer mechanism. Finally, a Scheduler allocates the CPU time to the different tasks to service their events in a round-robin manner. When no event is present, the Scheduler will invoke the microcontroller to enter low-power mode to conserve energy. In the design of the EDS, we concluded that a suitable OS is important in the whole operation of a sensor node. Key features of such an OS include energy-efficiency, simple tasks management, flexibility, as well as fair and robust management of resources.

6. OVERALL SYSTEM IMPLEMENTATION Finally, a sensor network is made up of a collection of nodes working together within a system that processes the information exchanged. The overall system will manage, process the information gathered by the nodes and display it in a clear manner to any user. Our implementation of the embedded device is flexible enough to cater to many different system applications and test scenarios. With our design, we created 40 nodes each calibrated for a range of 5m and running on 2 AAA-sized alkaline batteries. Each node has an average power consumption of approximately 20mA. Fig. 3 shows a snapshot of one of these nodes. Using these nodes, we set up a sensor network testbed with the specific task of implementing a distributed location identification system. In this system, nodes within the network region exchange information with one another to discover some location-related information. This information is forwarded (making use of the routing scheme) from each node to a single destination, which consists of a host system that processes, stores and displays this information in a relevant form. This allows any user to identify the location of the nodes within the network region at any give time. Following are the various physical components of the system:

Fig. 3 Snapshot of a sensor node • Reference nodes – These are implementations of the nodes with fixed and known locations. • Mobile nodes – These are implementations of the nodes that are free to move and will predict its location within the network, based upon its distance (in terms of hop counts) from the reference nodes. • Reader node – The reader is identical in physical implementation to all other nodes, except that it is connected to a host system via a RS-232 cable. The location information from all the mobile nodes is eventually forwarded to the reader for processing. • Host System – The host system consists of a notebook that runs an application program that collects all the location information for processing. It also includes a graphical user interface to display the location of the nodes within the network region. Fig. 4 shows a snapshot of our system implementation. Our platform provides a useful testbed for future testing of network protocols as well as system implementations.

6. CONCLUSION This paper presents the experiences gained and challenges faced when designing and implementing a wireless sensor network. The key characteristics of the sensor network are simplicity and energy-efficiency. We believe that these considerations must be present in all levels of the design and implementation, from the node hardware to the network protocols and finally, the overall system. Physical conditions influence greatly the design of a sensor network. One of the key challenges faced involves minimizing the effects of the physical environment on the RF pattern. Multpath effects, especially in an indoor

Fig. 4 Snapshot of a testbed implementation environment will affect the performance of the sensor node. We found that the hardware design, e.g. the placement of the antenna with respect to the other components plays a part in changing the omni-directionality of the RF signal pattern. The purpose of this paper is to give a broad overview of the work we have done in this area of sensor network. More details of the various aspect of the implementation will be the subject of future papers. In spite of the challenges, some of which are still being looked into, the implementation provides for us a realistic and flexible platform to test and implement future sensor network-specific communication schemes. It also gives us a first hand look at the conditions affecting this new area of network research.

REFERENCES [1] D. Maltz, J. Broch, and D. Johnson, “Lessons from a full-scale multihop wireless ad hoc network testbed,” IEEE Personal Communications, 8(1): pages 8-15, February 2001. [2] H. Lundgren, D. Nielsen, J. Nordstrom, and E. Tschudin, “A large-scale testbed for reproducible ad hoc protocol evaluations,” IEEE WCNC, 2002. [3] S. Sanghani, T. Brown, S. Bhandare and S. Doshi, “EWANT: the emulated wireless ad hoc network testbed,” IEEE WCNC, 2003. [4] J. Hill and D. Culler, “A wireless embedded sensor architecture for system-level optimization,” U.C. Berkeley Technical Report, 2001. [5] Texas Instuments, MSP430x1xx Family User’s Guide (Rev. C), SLAU049C, 2003. [6] Chipcon AS, SmartRF CC 1000 Preliminary Datasheet (rev. 2.1), 2002. [7] Maxim Integrated Products, MAX3316-MAX3319 RS232-Compatible Transceivers Datasheet, 2000.

Implementing a Self-organizing Wireless Sensor Network

routing message path may not always mean that the data path. (actual route) is available. Figure 2 ... Besides the TinyOS [4], there are few OSs that meet our.

597KB Sizes 1 Downloads 236 Views

Recommend Documents

Wireless sensor network: A survey
International Journal of Research in Information Technology (IJRIT) www.ijrit.com. ISSN 2001-5569. Wireless sensor network: A survey. Chirag C. Gami1, Ketan ...

Wireless sensor network: A survey
[email protected] 1, [email protected] 2. Abstract. This paper Describe the concept of Wireless Sensor Networks which has.

Wireless sensor network: A survey
Wireless sensor network has been a new and well growing technology. In ..... OPNET Modeler is a discrete event, object oriented, general purpose network ...

“Wireless Sensor Network: Modelling & Simulation”
Aug 9, 2014 - ABOUT THE INSTITUTE. Sinhgad Technical Education Society was established in the year 1993 by Prof. M. N.. Navale with the aim of ...

wireless sensor network architecture pdf
wireless sensor network architecture pdf. wireless sensor network architecture pdf. Open. Extract. Open with. Sign In. Main menu. Displaying wireless sensor ...

“Wireless Sensor Network: Modelling & Simulation”
Aug 9, 2014 - The college offers bachelor degree programs in ... Programs offered by Institute have been ... Registration can be done online by sending DD.

Design of a Wireless Sensor Network with Nanosecond ...
Apr 8, 2010 - A central server receives timestamped, digitized ... A number of programs are underway to increase exposure of cosmic ray .... far, we have only implemented a few simple server functions to monitor node status using virtual terminal ses

Wireless sensor Network Simulation Tools: A Survey - IJRIT
simulation tool for a particular application is a challenging task. It requires good ... The NS-3 project, started in 2006, is an open-source project developing NS-3. NS-3 is free ..... Mobile Applications, Services and Technologies, 2009. NGMAST ...

A Brief Overview of Wireless Sensor Network: Concise ...
multi-hop traversal). As a consequence, ordinary nodes can save energy because path length, contention and forwarding overheads are reduced as well. In addition, the mobile device can visit the network in order to spread more uniformly the energy con

TWIN Node, A Flexible Wireless Sensor Network Testbed - EWSN
node via a Raspberry Pi. • WiFi based back channel that replaces active USB ca- bles. • Performance evaluation of battery and USB powered wireless sensor nodes. • Remote programming and monitoring of wireless sen- sor nodes. 237. International

a service oriented wireless sensor network for power metering
basic functionalities for delivering data collected by the sensors. The sensor ... oriented implementation of a WSN platform for monitoring power meters. The next ...

Wireless sensor Network Simulation Tools: A Survey - IJRIT
This simulator is open source and provides online document [4]. NS2 has ... TOSSIM is a bit-level discrete event network emulator .... [6] P. Levis, N. Lee, “TOSSIM: A Simulator for TinyOS Networks”, Computer Science Division, University of.

Packet Loss Behavior in a Wireless Broadcast Sensor Network
... building block for various sensor network services such as network-wide reprogram- ... [5] observes that the packet loss probability of a link in a sensor network ... Consider a simple wireless network shown in Fig.1 that uses retransmission to.

Traffic Based Clustering in Wireless Sensor Network
Traffic Based Clustering in Wireless Sensor. Network ... Indian Institute of Information Technology ... Abstract- To increase the lifetime and scalability of a wireless.

Wireless Sensor Network for Machine Condition ... - Semantic Scholar
We develop a wireless sensor network for ... important with accelerating advances in technology. ... acquisition systems to a new era of distributed wireless.

Energy-Efficient Wireless Sensor Network Design and ...
A new application architecture is designed for continuous, real-time, distributed wireless sensor .... This labor-intensive method not only increases the cost of .... four MICA2 Processor/Radio Boards, four MICA2DOT Quarter-Sized Proces-.

Wireless Sensor Network for Machine Condition Based ...
is typically 9-volt battery. With recent ... the data to a PC [9]. This labour-intensive method ..... Base station was connected to laptop using a 9-pin RS-. 232 serial ...

Wireless Sensor Network for Machine Condition Based ...
equipment and the home environment. Sensing has ... acquisition systems to a new era of distributed wireless sensor networks (WSN) ... WSN is also the best solution for .... network with an event-driven emergency alarm tipster. A many-to-one ...

Area Throughput of an IEEE 802.15.4 Based Wireless Sensor Network
Abstract. In this paper we present a mathematical model to evaluate the performance of an IEEE 802.15.4 based multi-sink Wireless Sen- sor Network (WSN). ... Performance is evaluated by varying the traffic offered to the network (i.e. .... determine