Module 1 Notes To Upload
Module 1 Notes To Upload
• Detection: The process of discovering the existence of a physical phenomenon. A threshold- based detector
may flag a detection whenever the signature of a physical phenomenon is determined to be significant enough
compared with the threshold.
• Classification: The assignment of class labels to a set of physical phenomena being observed.
• Localization and tracking: The estimation of the state of a physical entity such as a physical phenomenon or
a sensor node from a set of measurements. Tracking produces a series of estimates over time.
• Value of information or information utility: A mapping of data to a scalar number, in the context of the
overall system task and knowledge. For example, information utility of a piece of sensor data may be
characterized by its relevance to an estimation task at hand and computed by a mutual information function.
• Resource: Resources include sensors, communication links, processors, on-board memory, and node energy
reserves. Resource allocation assigns resources to tasks, typically optimizing some performance objective.
• Sensor tasking: The assignment of sensors to a particular task and the control of sensor state (e.g., on/off,
pan/tilt) for accomplishing the task.
• Node services: Services such as time synchronization and node localization that enable applications to
discover properties of a node and the nodes to organize themselves into a useful network.
• Data storage: Sensor information is stored, indexed, and accessed by applications. Storage may be local to
the node where the data is generated, load-balanced across a network, or anchored at a few points
(warehouses).
• Embedded operating system (OS): The run-time system support for sensor network applications. An
embedded OS typically provides an abstraction of system resources and a set of utilities.
• System performance goal: The abstract characterization of system properties. Examples include scalability,
robustness, and network longevity, each of which may be measured by a set of evaluation metrics.
• Evaluation metric: A measurable quantity that describes how well the system is performing on some
absolute scale. Examples include packet loss (system), network dwell time (system), track loss (application),
false alarm rate (application), probability of correct association (application), location error (application), or
processing latency (application/system). An evaluation method is a process for comparing the value of
applying the metrics on an experimental system with that of some other benchmark system.
Psend. Then, the RF attenuation model near the ground is given by ∝ , where r is
the transmission distance and α is the RF attenuation exponent. Due to multipath and other interference
effects, α Therefore, the power advantage of an N-hop transmission versus a single-hop transmission over the
same distance Nr is =---------------------------------------------------------------------------------------------- (1)
Figure 1.1 illustrates the power attenuation for the multi-hop and single-hop networks. A larger N gives a
larger power saving due to the consideration of RF energy alone. However, this analysis ignores the power
usage by other components of an RF circuitry. Using more nodes increases not only the cost, but also the
power consumption of these other RF components. In practice, an optimal design seeks to balance the two
conflicting factors for an overall cost and energy efficiency. Latency and robustness considerations may also
Increasing the sensor density by a factor of k reduces the average distance to a target by a factor of Thus, the
SNR advantage of the denser sensor network is
Hence, an increase in sensor density by a factor of k improves the SNR at a sensor by 10 log k
db.
1.3.2 Challenges: The challenges we face in designing sensor network systems and applications include
Limited hardware, Limited support for networking, Limited support for software development.
• Limited hardware: Each node has limited processing, storage, and communication capabilities, and
limited energy supply and bandwidth.
• Limited support for networking: The network is peer-to-peer, with a mesh topology and dynamic,
mobile, and unreliable connectivity. There are no universal routing protocols or central registry services. Each
node acts both as a router and as an application host.
• Limited support for software development: The tasks are typically real-time and massively
distributed, involve dynamic teamwork among nodes, and must handle multiple competing events. Global
properties can be specified only via local instructions. Because of the coupling between applications and
system layers, the software architecture must be codesigned with the information processing architecture
D. Industrial applications
WSNs are now widely used in industries, for example in machinery condition-based maintenance. Previously
inaccessible locations, rotating machinery, hazardous or restricted areas, and mobile assets can now be
reached with wireless sensors. They can also be used to measure and monitor the water levels within all
ground wells and monitor leachate accumulation and removal.
E. Other applications
Sensor networks now find huge application in our day-to-day appliances like vacuum cleaners, micro-wave
ovens, VCRs and refrigerators. Other commercial applications includes constructing smart oce spaces,
monitoring product quality, managing inventory, factory instrumentation and many more.
SINGLE-NODE ARCHITECTURE:
1.6 HARDWARE COMPONENTS: Choosing the hardware components for a wireless sensor node,
obviously the applications has to consider size, costs, and energy consumption of the nodes. A basic sensor
node comprises five main components such as Controller, Memory, Sensors and Actuators, Communication
devices and Power supply Unit.
1.6.1 Controller: A controller to process all the relevant data, capable of executing arbitrary code. The
controller is the core of a wireless sensor node. It collects data from the sensors, processes this data, decides
when and where to send it, receives data from other sensor nodes, and decides on the actuator‘s behavior. It
has to execute various programs, ranging from time- critical signal processing and communication protocols
to application programs; it is the Central Processing Unit (CPU) of the node.
For General-purpose processors applications microcontrollers are used. These are highly
overpowered, and their energy consumption is excessive. These are used in embedded systems. Some of the
key characteristics of microcontrollers are particularly suited to embedded systems are their flexibility in
connecting with other devices like sensors and they are also convenient in that they often have memory built
in.
A specialized case of programmable processors are Digital Signal Processors (DSPs). They are
specifically geared, with respect to their architecture and their instruction set, for processing large amounts of
vectorial data, as is typically the case in signal processing applications. In a wireless sensor node, such a DSP
could be used to process data coming from a simple analog, wireless communication device to extract a
digital data stream. In broadband wireless communication, DSPs are an appropriate and successfully used
platform.
An FPGA can be reprogrammed (or rather reconfigured) ―in the field‖ to adapt to a changing set of
requirements; however, this can take time and energy – it is not practical to reprogram an FPGA at the same
frequency as a microcontroller could change between different programs.
An ASIC is a specialized processor, custom designed for a given application such as, for example,
high-speed routers and switches. The typical trade-off here is loss of flexibility in return for a considerably
better energy efficiency and performance. On the other hand, where a microcontroller requires software
development, ASICs provide the same functionality in hardware, resulting in potentially more costly hardware
development.
Examples: Intel Strong ARM, Texas Instruments MSP 430, Atmel ATmega.
1.6.2 Memory: Some memory to store programs and intermediate data; usually, different types of memory
are used for programs and data. In WSN there is a need for Random Access Memory (RAM) to store
intermediate sensor readings, packets from other nodes, and so on. While RAM is fast, its main disadvantage
is that it loses its content if power supply is interrupted. Program code can be stored in Read-Only Memory
(ROM) or, more typically, in Electrically Erasable Programmable Read-Only Memory (EEPROM) or flash
memory (the later being similar to EEPROM but allowing data to be erased or written in blocks instead of
only a byte at a time). Flash memory can also serve as intermediate storage of data in case RAM is insufficient
or when the power supply of RAM should be shut down for some time.
1.6.3 Communication Device: Turning nodes into a network requires a device for sending and receiving
information over a wireless channel.
Choice of transmission medium: The communication device is used to exchange data between individual
nodes. In some cases, wired communication can actually be the method of choice and is frequently applied in
many sensor networks. The case of wireless communication is considerably more interesting because it
include radio frequencies. Radio Frequency (RF)- based communication is by far the most relevant one as it
best fits the requirements of most WSN applications.
Transceivers: For Communication, both transmitter and receiver are required in a sensor node to convert a bit
stream coming from a microcontroller and convert them to and from radio waves. For two tasks a combined
device called transceiver is used.
Transceiver structure has two parts as Radio Frequency (RF) front end and the baseband part.
1. The radio frequency front end performs analog signal processing in the actual radio frequency Band.
2. The baseband processor performs all signal processing in the digital domain and communicates with a
1.6.4 Sensors and actuators: The actual interface to the physical world: devices that can observe or control
physical parameters of the environment.
Sensors can be roughly categorized into three categories as
Passive, omnidirectional sensors: These sensors can measure a physical quantity at the point of the
sensor node without actually manipulating the environment by active probing – in this sense, they are
passive. Moreover, some of these sensors actually are self-powered in the sense that they obtain the
energy they need from the environment – energy is only needed to amplify their analog signal.
Passive, narrow-beam sensors These sensors are passive as well, but have a well- defined notion of
direction of measurement.
Active sensors This last group of sensors actively probes the environment, for example, a sonar or
radar sensor or some types of seismic sensors, which generate shock waves by small explosions.
These are quite specific – triggering an explosion is certainly not a lightly undertaken action – and
require quite special attention.
Actuators: Actuators are just about as diverse as sensors, yet for the purposes of designing a WSN that
converts electrical signals into physical phenomenon.
1.6.5 Power supply: As usually no tethered power supply is available, some form of batteries are necessary
to provide energy. Sometimes, some form of recharging by obtaining energy from the environment is
available as well (e.g. solar cells). There are essentially two aspects: Storing energy and Energy scavenging.
Storing energy: Batteries
Traditional batteries: The power source of a sensor node is a battery, either non- rechargeable
(―primary batteries‖) or, if an energy scavenging device is present on the node, also rechargeable
(―secondary batteries‖).
TABLE 1.1: Energy densities for various primary and secondary battery types
Upon these batteries the requirements are
Capacity: They should have high capacity at a small weight, small volume, and low price.
Energy scavenging: Depending on application, high capacity batteries that last for long times, that is, have
only a negligible self-discharge rate, and that can efficiently provide small amounts of current. Ideally, a
sensor node also has a device for energy scavenging, recharging the battery with energy gathered from the
environment – solar cells or vibration-based power generation are conceivable options.
Photovoltaics: The well-known solar cells can be used to power sensor nodes. The available power
depends on whether nodes are used outdoors or indoors, and on time of day and whether for outdoor
usage. The resulting power is somewhere between 10 μW/cm2 indoors and 15 mW/cm2 outdoors.
Single cells achieve a fairly stable output voltage of about 0.6 V (and have therefore to be used in
series) as long as the drawn current does not exceed a critical threshold, which depends on the light
intensity. Hence, solar cells are usually used to recharge secondary batteries.
Temperature gradients: Differences in temperature can be directly converted to electrical energy.
Vibrations: One almost pervasive form of mechanical energy is vibrations: walls or windows in
buildings are resonating with cars or trucks passing in the streets, machinery often has low frequency
vibrations. both amplitude and frequency of the vibration and ranges from about 0.1 μW/cm3 up to
10, 000 μW/cm3 for some extreme cases. Converting vibrations to electrical energy can be undertaken
by various means, based on electromagnetic, electrostatic, or piezoelectric principles.
Pressure variations: Somewhat akin to vibrations, a variation of pressure can also be used as a power
source.
Flow of air/liquid: Another often-used power source is the flow of air or liquid in wind mills or
turbines. The challenge here is again the miniaturization, but some of the work on millimeter scale
MEMS gas turbines might be reusable.
Figure 1.5 A MEMS device for converting vibrations to electrical energy, based on a variable
capacitor
Examples:
Intel StrongARM
The Intel StrongARM provides three sleep modes:
In normal mode, all parts of the processor are fully powered. Power consumption is up to 400 mW.
In idle mode, clocks to the CPU are stopped; clocks that pertain to peripherals are active. Any
interrupt will cause return to normal mode. Power consumption is up to 100 mW.
In sleep mode, only the real-time clock remains active. Wakeup occurs after a timer interrupt and
takes up to 160 ms. Power consumption is up to 50 μW.
Texas Instruments MSP 430
The MSP430 family features a wider range of operation modes: One fully operational mode, which consumes
about 1.2 mW (all power values given at 1 MHz and 3 V). There are four sleep modes in total. The deepest
sleep mode, LPM4, only consumes 0.3 μW, but the controller is only woken up by external interrupts in this
mode. In the next higher mode, LPM3, a clock is also till running, which can be used for scheduled wake
ups, and still consumes only about 6 μW. Atmel ATmega
The Atmel ATmega 128L has six different modes of power consumption, which are in principle similar to
the MSP 430 but differ in some details. Its power consumption varies between 6 mW and 15 mW in idle and
active modes and is about 75 μW in power-down modes.
1.7.2 Memory energy consumption: The most relevant kinds of memory are on-chip memory and FLASH
memory. Off-chip RAM is rarely used. In fact, the power needed to drive on-chip memory is usually included
in the power consumption numbers given for the controllers. Hence, the most relevant part is FLASH
memory. In fact, the construction and usage of FLASH memory can heavily influence node lifetime. The
relevant metrics are the read and write times and energy consumption. Read times and read energy
consumption tend to be quite similar between different types of FLASH memory. Energy consumption
necessary for reading and writing to the Flash memory is used on the Mica nodes. Hence, writing to FLASH
memory can be a time- and energy-consuming task that is best avoided if somehow possible.
1.7.3 Radio transceivers energy consumption: A radio transceiver has essentially two tasks: transmitting
and receiving data between a pair of nodes. Similar to microcontrollers, radio transceivers can operate in
different modes, the simplest ones are being turned on or turned off. To accommodate the necessary low total
energy consumption, the transceivers should be turned off most of the time and only be activated when
necessary – they work at a low duty cycle.
The energy consumed by a transmitter is due to two sources one part is due to RF signal generation,
which mostly depends on chosen modulation and target distance. Second part is due to electronic components
necessary for frequency synthesis, frequency conversion, filters, and so on. The transmitted power is
generated by the amplifier of a transmitter. Its own power
consumption Pamp depends on its architecture Pamp = αamp + βampPtx. where αamp and βamp are constants
depending on process technology and amplifier architecture. The energy to transmit a packet n-bits long
(including all headers) then depends on how long it takes to send the packet, determined by the nominal bit
rate R and the coding rate Rcode, and on the total consumed power during transmission.
--------- (7)
Similar to the transmitter, the receiver can be either turned off or turned on. While being turned on, it
can either actively receive a packet or can be idle, observing the channel and ready to receive. Evidently, the
power consumption while it is turned off is negligible. Even the difference between idling and actually
receiving is very small and can, for most purposes, be assumed to be zero. To elucidate, the energy Ercvd
required to receive a packet has a startup component TstartPstart similar to the transmission case when the
receiver had been turned off (startup times are considered equal for transmission and receiving here); it also
has a component that is proportional to the packet time . During this time of actual reception,
receiver circuitry has to be powered up, requiring a (more or less constant) power of PrxElec.
------------ (8)
1.7.4 Power consumption of sensor and actuators:
Providing any guidelines about the power consumption of the actual sensors and actuators is impossible
because of the wide variety of these devices. For example, passive light or temperature sensors – the power
consumption can possibly be ignored in comparison to other devices on a wireless node. For others, active
devices like sonar( A measuring instrument that sends out an acoustic pulse in water and measures distances in
terms of time for the echo of the pulse to return), power consumption can be quite considerable in the
dimensioning of power sources on the sensor node, not to overstress batteries.
15
programming is the dominant paradigm used in Graphical User Interfaces (GUI-type of user interface
that allows users to interact with electronic devices through graphical icons) and other applications.
The system essentially waits for any event to happen, where an event typically can be the availability
of data from a sensor, the arrival of a packet, or the expiration of a timer. Such an event is then
handled by a short sequence of instructions that only stores the fact that this event has occurred and
stores the necessary information.
Interfaces to the operating system: A boundary across which two independent systems meet and act
on or communicate with each other. In computer technology, there are several types of interfaces.
User interface - the keyboard, mouse, menus of a computer system. The user interface allows the user
to communicate with the operating system. Stands for "Application Programming Interface." An API
is a set of commands, functions, protocols, and objects (wireless links, nodes) that programmers can
use to create software or interact with an external system (sensors, actuators, transceivers). It provides
developers with standard commands for performing common operations so they do not have to write
the code from scratch.
1.8.4 Structure of operating system and protocol stack: The traditional approach to communication
protocol structuring is to use layering: individual protocols are stacked on top of each other, each layer only
using functions of the layer directly. This layered approach has great benefits in keeping the entire protocol
stack manageable, in containing complexity, and in promoting modularity and reuse. For the purposes of a
WSN, however, it is not clear whether such a strictly layered approach will serve. A protocol stack refers to a
group of protocols that are running concurrently that are employed for the implementation of network protocol
suite. The protocols in a stack determine the interconnectivity rules for a layered network model such as in the
OSI or TCP/IP models.
1.8.5 Dynamic energy and power management: Switching individual components into various sleep states
or reducing their performance by scaling down frequency and supply voltage and selecting particular
modulation and coding are prominent examples for improving energy efficiency. To control these
possibilities, decisions have to be made by the operating system, by the protocol stack, or potentially by an
application when to switch into one of these states. Dynamic Power Management (DPM) on a system level is
the problem at hand. One of the complicating factors to DPM is the energy and time required for the transition
of a component between any two states. If these factors were negligible, clearly it would be optimal to always
& immediately go into the mode with the lowest power consumption possible.
NETWORK ARCHITECTURE: It introduces the basic principles of turning individual sensor nodes into a
wireless sensor network. In this optimization goals of how a network should function are discussed as