SeekayAlaisKaruppaia
330 views
86 slides
Jun 11, 2024
Slide 1 of 86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
About This Presentation
Adhoc Wireless Sensor Networks
Size: 1.8 MB
Language: en
Added: Jun 11, 2024
Slides: 86 pages
Slide Content
UNIT V
SENSOR NETWORK
PLATFORMS AND
TOOLS
Syllabus
Sensor Node Hardware
Sensor node hardware can be grouped into three
categories.
They are
(i) Augmented general-purpose computers
(ii)Dedicated embedded sensor nodes
(iii) System-on-chip (SoC) nodes
Sensor Node Hardware
Dedicated embedded sensor nodes
Some examples are
(i) Berkeley mote family
(ii) UCLA Medusa family
(iii) Ember nodes
(iv)MIT μ AMP
Theseplatformsuse
(i)CommercialOTS(COTS)chipsetswithemphasison
smallformfactor
(ii)Lowpowerprocessingandcommunication,andsimple
sensorinterfaces.
(Note:
Sensor Node Hardware
System-on-chip (SoC) nodes:
Some Examples of SoChardware are
(i)Smart dust
(ii)BWRC picoradio node
(iii)PASTA node
•The goal is to find new ways of integrating CMOS, MEMS, and RF
technologies
(i)To build extremely low power and small footprint
sensor nodes
(ii)To provide certain sensing, computation and
communication capabilities.
Operating systems are capable of running many
tasks at the same time –called multitasking
operating system.
Task-basic unit of programming
-made up of actions or steps
Process-a sequence of tasks.
Threads-can have one task running at a time.
Stack -temporary storage memory where variables
are declared , stored and initialized
Sensor Node Hardware
Pre empty scheduling:
the executing process is interrupted in the
middle of execution where high priority one
comes in the queue.
Kernel-provides interface between application
and hardware.
-for memory management, disk
management, process management and task
management
Sensor Node Hardware
Berkeley mote
•Hardware Platform
–Consists of
omicro-controller with internal
flash program memory
odata SRAM
odata EEPROM
oa set of actuator and sensor
devices, including LEDs
oa low-power transceiver
oan analog photo-sensor
oa digital temperature sensor
oa serial port
oa small coprocessor unit
Berkeley Mote
Berkeley Motes
•The Berkeley motes are a family of embedded
sensor nodes sharing roughly the same
architecture.
•Let us take the MICA mote as an example.
•However, high-level support and software services are
not free.
•only necessary software components are used to
support a particular application to achieve a small
footprint.
•A separate 512 KB flash memory unit is used to hold
data.
•Low-speed serial peripheral interface (SPI) protocol is
used to connect the external memory and MCU
•So the external memory is more suited for storing data
for later batch processing than for storing programs.
MICA Mote Architecture
•The RF communication on MICA motes uses the TR1000 chip set
(from RF Monolithics, Inc.) operating at 916 MHz band.
•With hardware accelerators, it can achieve a maximum of 50 kbps raw
data rate.
•MICA motes implement a 40 kbps transmission rate.
•The transmission power can be digitally adjusted by software through
a potentiometer (Maxim DS1804).
•The maximum transmission range is about 300 feet in open space.
•MICA motes support a 51 pin I/O extension connector
MICA Mote Architecture
Power consumption of MICA motes
MICA Mote Architecture
Sensor Network Programming Challenges
Sensor Network Programming Challenges
•Operating systems in traditional programming languages used
to provide
(i)Abstraction for processing
(ii)I/O, networking
(iii)user interaction hardware
•For sensor networks, the application programmers also need
to deal
(i)Message passing
(ii)Event synchronization
(iii)Interrupt handing
(iv)Sensor reading.
An application is typically implemented as a finite state machine
(FSM) that covers all extreme cases:
(i)Unreliable communication channels
(ii)Long delays
(iii)Irregular arrival of messages
(iv)Simultaneous events
Example: Target Tracking Application
Linux operating system with directed diffusion routing, roughly
40% of the code implements the FSM and the glue logic of
interfacing computation and communication
Sensor Network Programming Challenges
Traditional embedded system programming
interface
•For resource-constrained embedded systems with real-time
requirements
•Several mechanisms are used in embedded operating systems
to reduce code size, improve response time, and reduce
energy consumption.
Mechanisms:
1. The necessary parts of the operating system are
deployed with the application.
2.Real-time scheduling allocates resources to more urgent
tasks
Sensor Network Programming Challenges
Depending on the specific tasks of a sensor network ,the
methodologies may differ.For example,
1.If the network is used for monitoring a small set of phenomena
and the sensor nodes are organized in a simple star topology,
then a client –server software model would be sufficient.
2. If the network is used for monitoring a large area from a
single access point (i.e., the base station), and if there is sensor
readings from a subset of sensor nodes, then a tree structure that
is rooted at the base station is a better choice.
3 . If the network is used for monitoring a moving targets, then
neither the simple client –server model nor the tree organization
is optimal. More sophisticated design methodologies and
platforms are required.
Sensor Network Programming Challenges
Operating System: TinyOS
•Theschedulerinvokesanewtaskfromthetaskqueueonly
whenthecurrenttaskhascompleted.
•Whennotasksareavailableinthetaskqueue,thescheduler
putstheCPUintothesleepmodetosaveenergy.
Events:
•The execution of an interrupt handler is called an event context
•The processing of events also runs to completion, but it can be
preempted by other events.
•Because events always preempt tasks, programmers are
required to chop their code into small execution pieces, so that
it will not block other tasks for too long.
Contiki OS
Contiki especially for IoT (Internet of Things)
IoTRelated Technologies
1.Embedded systems
2.Embedded System OS (Contiki, Tiny OS,
RIOT)
3.Communication Technologies
4.Sensor Technologies
5.Real Time systems
6.Smart things and technologies
7.Machine-to-Machine comunications
8.Big Data Analytics
Contiki OS
Contiki OS
Contiki is an
•Open source
•Highly portable
•Multi-tasking operating system
Contiki for
•Memory efficient
•Networked embedded systems
•And Wireless sensor networks
Where Contiki Used?
Contiki has been used in variety of projects from
–Road tunnel fire monitoring
–Intrusion detection
–Water monitoring to surveillance networks
Contiki OS
Contiki OS
Contiki Features
•TCP/IP communication with Stack
•Loadable modules
•Event-driven kernel
•Proto threads
•Protocol-independent radio network with the Rime
stack
•Cross-layer network simulation with COOJA
•Networked shell
•Memory efficient flash based file system
•Software-based power profiling
•Simulators are consisted by the following models
–Sensor Node Model
–Communication Model
–Physical Environment Model
–Statistics and Visualization
Node Level Simulator
State-CentricProgramming
Def:
X: state of asystem
U:inputs
Y:outputs
K: updateindex
F: state updatefunction
G: output observationfunction
84
State-CentricProgramming
X
k+1 = F( X
k, U
k )
Y
k = G( X
k , U
k)
In state-centric programming, X and K come
from many nodes. So many issue are discussed.
85