Sensor Networks & TinyDB
Author: Roman Kolcun Supervisor: Julie A. McCann
Sensor Networks & TinyDB Author: Roman Kolcun Supervisor: - - PowerPoint PPT Presentation
Sensor Networks & TinyDB Author: Roman Kolcun Supervisor: Julie A. McCann Index Sensor Motes Sensor Networks Real world deployments TinyDB 2 What a Sensor Can Sense? 3 What a Sensor Can Sense? Temperature Heart
Author: Roman Kolcun Supervisor: Julie A. McCann
2
Sensor Motes Sensor Networks Real world deployments TinyDB
3
4
Temperature Humidity Acceleration Noise Light Magnetic Field Gravity Pressure Heart Rate Motion Toxins Nutrients Glucose Level Oxygen Level Hormones Proteins
5
CPU ?
6
CPU
4 MHz 8 bit ATmega 128L, RISC
Memory ?
7
CPU
4 MHz 8 bit ATmega 128L, RISC
Memory
128KB Program Flash Memory 4KB RAM 512KB Flash – serial access, max. 10-100k rewritten
Wireless ?
8
CPU
4 MHz 8 bit ATmega 128L, RISC
Memory
128KB Program Flash Mem. 4KB RAM 512KB Flash – serial access, max. 10-100k rewritten
Wireless
IEEE 802.15.4 - 2.4GHz 250kbps 70 – 100m outdoor, 20 – 30m indoor
9
8k bytes Flash program memory 1k byte SRAM 512 bytes EEPROM 4MHz FM radio at 434.65MHz 10kbps maximum data rate (run at 5kbps as
Maximum range 500m
10
Designed at Michigan University Measures pressure in an eye every 15 minutes Average Power Consumption 15 nW To charge batteries:
10 hours of
1.5 hours of
11
Typically supplied by small batteries
1000 – 3000 mAh 1 mAh – 1 milliamp current for 1 hour Power = Watts (W) = Amps (A) * Volts (V) Energy = Joules (J) = W * time
Power consumption
Processor: 8mA active, <15μA sleep Radio: 19.7mA receive, 11 – 17.4mA xmit,
Sensor: 1μA – 100's mA, 1μs – 1s to sample
12
Battery: 1000mAh How long a node can last and how much data
13
Battery: 1000mAh How long a node can last and how much data
14
Battery: 1000mAh Sense 1 value every 30 seconds, receive 1
15
Battery: 1000mAh Sense 1 value every 30 seconds, receive 1
16
Lossy, Ad-hoc radio communication Really lossy radio communication Node / link failures Severe power constraints Asymmetric links – if I can hear you, it does not
Interference Hidden node problem
17
18
19
Duty cycling Time synchronization Node / link failure
20
time wake-up period epoch time
21
Great Duck Island
temperature relative humidity infra-red termophile
22
Golden Gate Bridge
vibrations temperature
23
Humidity vs. Time
35 45 55 65 75 85 95
Rel Humidity (%)
101 104 109 110 111
Temperature vs. Time
8 13 18 23 28 33
7/7/03 9:40 7/7/03 13:11 7/7/03 16:43 7/7/03 20:15 7/7/03 23:46 7/8/03 3:18 7/8/03 6:50 7/8/03 10:21 7/8/03 13:53 7/8/03 17:25 7/8/03 20:56 7/9/03 0:28 7/9/03 4:00 7/9/03 7:31 7/9/03 11:03
Date
36m 33m: 111 32m: 110 30m: 109,108,107 20m: 106,105,104 10m: 103, 102, 101
24
Mobile Node (Mule) Experiment
25
Monitoring Space
environmental and habitat monitoring (Duck Island,
precision agricultures climate control surveillance intelligent alarms
26
Things
structural monitoring ecophysiology condition based maintenance (plane, bridges,
medical diagnostics terrain mapping
27
Interactions with things and encompassing
monitoring wildlife habitats disaster management emergency response ubicomp process flow
28
Create an application which measures
29
Create an application which measures
How would you change the application to make
30
Create an application which measures
How would you change the application to make
Recode the application and manually update every
Think about it while programming the application
Use TinyDB
31
Supports a subset of Stream SQL Whole network could be seen as ”sensor” table Query syntax:
32
Example:
33
Example:
34
Do we need to notify all sensors in the network?
35
36
37
Adjust power transmission in order to minimise
Duty-cycling Time synchronization Mules In-network data processing (joining data & data
38
39
Julie A. McCann: jamm@doc.ic.ac.uk Roman Kolcun: rk1208@doc.ic.ac.uk Lab: Huxley Building, 563