SlideShare une entreprise Scribd logo
1  sur  12
Télécharger pour lire hors ligne
Connecting Things to the Web using
Programmable Low-power WiFi Modules
Benedikt Ostermaier, Matthias Kovatsch, Silvia Santini
{ostermaier | kovatsch | santinis}@inf.ethz.ch




Sunday, 12 June 2011        Institute for Pervasive Computing / Distributed Systems Group
Internet of Things




                                                                                         Now
     Optimized LoWPANs                                                      WiFi infrastructure

Matthias Kovatsch   Connecting Things to the Web using Programmable Low-power WiFi Modules        2
Platform: Roving RN-131G

 Programmable low-power WiFi module
        44 MHz 32-bit RISC CPU
        128 kB RAM, 2 kB non-volatile RAM
        2 MB ROM, 8 MBit flash
 Built-in IEEE 802.11b/g transceiver with on-board antenna
        Rates of up to 54 Mbit/s
        WEP, WPA-PSK and WPA2-PSK                                                                      RN-131
 Interfaces
        UART, SPI, SDIO, RFID
        10 GPIOs, 8 analog sensor I/Fs
 Runs eCos with
  lwIP TCP/IP stack
                                                                                                 37 mm / 1.46 in
Matthias Kovatsch       Connecting Things to the Web using Programmable Low-power WiFi Modules                     3
Platform: Low-power

 Current consumption
        212 mA when active (max. TX)
        4 µA when sleeping
 Hardware support
        Power Management Unit
        Wake-up on sensor or timer events
 Sleep mode
        2 kB battery-backed RAM
        Short wake-up time
         (~35 ms until connected)




Matthias Kovatsch       Connecting Things to the Web using Programmable Low-power WiFi Modules   4
Connecting to Things
                                         Physical connection
                                     electronic        attached
                        Batteries
                 Power supply




                                    Light switch                               Chair sensor                      sleeping
                                                                                                                    vs.
                                                                                                                always on
                Grid




                                    Power outlet                                  Room sign
                                             prototype vs. ad-hoc
Matthias Kovatsch                      Connecting Things to the Web using Programmable Low-power WiFi Modules               5
Connecting Things to the Web

                     REST: maps nicely
                    to physical resources

                                                                                                 Single-threaded
                                                                                                   Web server
HTTP callbacks
 (Webhooks)

                                         RESTful API for sensors, ,
                                         actuators, configuration

Matthias Kovatsch       Connecting Things to the Web using Programmable Low-power WiFi Modules                 6
Putting Things Together
 http://lightswitch
 /
 /position
 /callback




                                                                                               http://poweroutlet
                                                                                               /
                                                                                               /power
                                                                                               /consumption




Matthias Kovatsch     Connecting Things to the Web using Programmable Low-power WiFi Modules                        7
HTTP Callbacks on Sensor Events

                        POST /power HTTP/1.1
                        Host: poweroutlet
                        Content-Length: 4
                        Content-Type: text/plain
                        Connection: close
                        Referer: http://lightswitch/position
                        User-Agent: WiFiNode 0.4
                        Date: Sat, 01 Feb 2011 12:45:26 GMT
                        Last-Modified: Sat, 01 Feb 2011 12:45:26 GMT
                        X-SensorEvent-Count: 12
                        X-Last-Uptime: 88

                        true


  http://lightswitch/                                                                   http://poweroutlet/power


Matthias Kovatsch          Connecting Things to the Web using Programmable Low-power WiFi Modules                  8
Z
Energy Efficiency                                                                                                          Z
                                                                                                                   Z
 Up to 212 mA when active
        Maximize sleep time
                                                                                                             Z
        Only report events
        Optimize wake-up and uptime
                                                                                                       Z
 Problem: Availability
           Sleeping for sensors only
           Heartbeats
           Poll configuration updates
           Setup with /sleep resource
            or “double-click”
                                                                                               Button “sensor“ prototype




Matthias Kovatsch           Connecting Things to the Web using Programmable Low-power WiFi Modules                             9
450
Evaluation
                                                                               400
Wake-up Cycle
                                                                               350
1. Enable CPU and RAM




                                                         Average uptime [ms]
                                                                               300
2. Boot application                                                                                       Other
                                                                               250                        Callback
3. Find AP and connect*
                                                                                                          DNS
4. Run DHCP*                                                                   200
                                                                                                          DHCP
5. Run DNS*                                                                    150                        WiFi
6. Open TCP socket                                                             100
7. Perform HTTP callback
                                                                                50
8. Close TCP socket
                                                                                 0
9. Go to sleep                                                                       Office Home1 Home2
         * can be optimized
Matthias Kovatsch             Connecting Things to the Web using Programmable Low-power WiFi Modules          10
Results
                                                                                                  Reed and PIR sensor


 Battery-powered sensors
        >99% data reception rate without retries
        ~300‘000 Callbacks with two AAA batteries

        ~8 years with 100 callbacks per day


 Grid-powered actuators
        ~24 ms round trip time (~19 ms for Apache)
        Real-time support


                                                                                                  WiFi Plogg prototype
Matthias Kovatsch        Connecting Things to the Web using Programmable Low-power WiFi Modules                          11
Conclusions and Outlook

      Sufficient battery life for event-based sensing
      WiFi infrastructure greatly reduces deployment costs
      However, may also introduce some hard-to-trace problems
      Hardware support for real energy savings

 Future Work
        RFID bootstrapping
        JavaScript programming




                                                                                                Subtle notification
                                                                                                device prototype
Matthias Kovatsch      Connecting Things to the Web using Programmable Low-power WiFi Modules                         12

Contenu connexe

Tendances

Implementation and Performance Analysis of a UDP Binding for SOAP
Implementation and Performance Analysis of a UDP Binding for SOAPImplementation and Performance Analysis of a UDP Binding for SOAP
Implementation and Performance Analysis of a UDP Binding for SOAP
Dr. Fahad Aijaz
 

Tendances (18)

A PROXY EFFECT ANALYIS AND FAIR ADATPATION ALGORITHM FOR MULTIPLE COMPETING D...
A PROXY EFFECT ANALYIS AND FAIR ADATPATION ALGORITHM FOR MULTIPLE COMPETING D...A PROXY EFFECT ANALYIS AND FAIR ADATPATION ALGORITHM FOR MULTIPLE COMPETING D...
A PROXY EFFECT ANALYIS AND FAIR ADATPATION ALGORITHM FOR MULTIPLE COMPETING D...
 
The constrained application protocol (CoAP)
The constrained application protocol (CoAP)The constrained application protocol (CoAP)
The constrained application protocol (CoAP)
 
CoAP for the Web of Things: From Tiny Resource-constrained Devices to the W...
CoAP for the Web of Things: From Tiny Resource-constrained Devices to the W...CoAP for the Web of Things: From Tiny Resource-constrained Devices to the W...
CoAP for the Web of Things: From Tiny Resource-constrained Devices to the W...
 
CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II
 
The constrained application protocol (coap) part 3
The constrained application protocol (coap)  part 3The constrained application protocol (coap)  part 3
The constrained application protocol (coap) part 3
 
Dynamic Adaptive Streaming over HTTP/2.0
Dynamic Adaptive Streaming over HTTP/2.0Dynamic Adaptive Streaming over HTTP/2.0
Dynamic Adaptive Streaming over HTTP/2.0
 
Master Class : TCP/IP Mechanics from Scratch to Expert
Master Class : TCP/IP Mechanics from Scratch to ExpertMaster Class : TCP/IP Mechanics from Scratch to Expert
Master Class : TCP/IP Mechanics from Scratch to Expert
 
MQTT and CoAP
MQTT and CoAPMQTT and CoAP
MQTT and CoAP
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guide
 
CoAP Talk
CoAP TalkCoAP Talk
CoAP Talk
 
Low-power IP: 6LoWPAN & Co.
Low-power IP: 6LoWPAN & Co.Low-power IP: 6LoWPAN & Co.
Low-power IP: 6LoWPAN & Co.
 
Cs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT VCs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT V
 
Introduction to AtomPub Web Services
Introduction to AtomPub Web ServicesIntroduction to AtomPub Web Services
Introduction to AtomPub Web Services
 
Implementation and Performance Analysis of a UDP Binding for SOAP
Implementation and Performance Analysis of a UDP Binding for SOAPImplementation and Performance Analysis of a UDP Binding for SOAP
Implementation and Performance Analysis of a UDP Binding for SOAP
 
Apache httpd-2.4 : Watch out cloud!
Apache httpd-2.4 : Watch out cloud!Apache httpd-2.4 : Watch out cloud!
Apache httpd-2.4 : Watch out cloud!
 
Standards' Perspective - MPEG DASH overview and related efforts
Standards' Perspective - MPEG DASH overview and related effortsStandards' Perspective - MPEG DASH overview and related efforts
Standards' Perspective - MPEG DASH overview and related efforts
 
Using DASH and MPEG-2 TS
Using DASH and MPEG-2 TSUsing DASH and MPEG-2 TS
Using DASH and MPEG-2 TS
 
CoAP protocol -Internet of Things(iot)
CoAP protocol -Internet of Things(iot)CoAP protocol -Internet of Things(iot)
CoAP protocol -Internet of Things(iot)
 

En vedette

MM - TTRA - June 21, 2011 - en
MM - TTRA - June 21, 2011 - enMM - TTRA - June 21, 2011 - en
MM - TTRA - June 21, 2011 - en
ctc-cct
 
小学数学课件1
小学数学课件1小学数学课件1
小学数学课件1
658864041
 
421 672 Management Of Technological Enterprises(2008 Tutorial 1)
421 672 Management Of Technological Enterprises(2008   Tutorial 1)421 672 Management Of Technological Enterprises(2008   Tutorial 1)
421 672 Management Of Technological Enterprises(2008 Tutorial 1)
William Hall
 
Ram.presentation
Ram.presentationRam.presentation
Ram.presentation
gbotanics
 
The DWC Group 6.21.11 webinar_supplement
The DWC Group 6.21.11 webinar_supplementThe DWC Group 6.21.11 webinar_supplement
The DWC Group 6.21.11 webinar_supplement
rtemerson
 

En vedette (20)

Power point presentation edu 633
Power point presentation edu 633Power point presentation edu 633
Power point presentation edu 633
 
MM - TTRA - June 21, 2011 - en
MM - TTRA - June 21, 2011 - enMM - TTRA - June 21, 2011 - en
MM - TTRA - June 21, 2011 - en
 
南宋之后是现代 What Follows Song Dynasty?
南宋之后是现代 What Follows Song Dynasty?南宋之后是现代 What Follows Song Dynasty?
南宋之后是现代 What Follows Song Dynasty?
 
City Chase 'Chaser Training' #YYZ
City Chase 'Chaser Training' #YYZCity Chase 'Chaser Training' #YYZ
City Chase 'Chaser Training' #YYZ
 
Stadens mest kreativa kvarter
Stadens mest kreativa kvarterStadens mest kreativa kvarter
Stadens mest kreativa kvarter
 
Promotional Bag Ideas by Sinoway
Promotional Bag Ideas by SinowayPromotional Bag Ideas by Sinoway
Promotional Bag Ideas by Sinoway
 
istSOS: an extended Sensor Observation Service implementation for Environment...
istSOS: an extended Sensor Observation Service implementation for Environment...istSOS: an extended Sensor Observation Service implementation for Environment...
istSOS: an extended Sensor Observation Service implementation for Environment...
 
939 New Patient Machine VIP Webinar
939 New Patient Machine VIP Webinar939 New Patient Machine VIP Webinar
939 New Patient Machine VIP Webinar
 
Tv and film roles presentation
Tv and film roles presentation Tv and film roles presentation
Tv and film roles presentation
 
40th TOP500 List and Awarding Session
40th TOP500 List and Awarding Session40th TOP500 List and Awarding Session
40th TOP500 List and Awarding Session
 
小学数学课件1
小学数学课件1小学数学课件1
小学数学课件1
 
김민경
김민경김민경
김민경
 
Blog les barraquetes ceip villar palasí de sagunt
Blog les barraquetes ceip villar palasí de saguntBlog les barraquetes ceip villar palasí de sagunt
Blog les barraquetes ceip villar palasí de sagunt
 
En quin moment em vaig desviar del camí pedro miguel
En quin moment em vaig desviar del camí  pedro miguelEn quin moment em vaig desviar del camí  pedro miguel
En quin moment em vaig desviar del camí pedro miguel
 
Copyright
CopyrightCopyright
Copyright
 
Digi Clean Brochure
Digi Clean BrochureDigi Clean Brochure
Digi Clean Brochure
 
421 672 Management Of Technological Enterprises(2008 Tutorial 1)
421 672 Management Of Technological Enterprises(2008   Tutorial 1)421 672 Management Of Technological Enterprises(2008   Tutorial 1)
421 672 Management Of Technological Enterprises(2008 Tutorial 1)
 
Ram.presentation
Ram.presentationRam.presentation
Ram.presentation
 
Ryan dunn.nbc philly
Ryan dunn.nbc phillyRyan dunn.nbc philly
Ryan dunn.nbc philly
 
The DWC Group 6.21.11 webinar_supplement
The DWC Group 6.21.11 webinar_supplementThe DWC Group 6.21.11 webinar_supplement
The DWC Group 6.21.11 webinar_supplement
 

Similaire à Connecting Things to the Web using Programmable Low-power WiFi Modules

PoE.Standards, technologies and solutions
PoE.Standards, technologies and solutionsPoE.Standards, technologies and solutions
PoE.Standards, technologies and solutions
Evaldas Paliliūnas
 
Arch Rock Overview
Arch Rock OverviewArch Rock Overview
Arch Rock Overview
pauldeng
 
Cool spots mobisys06-external
Cool spots mobisys06-externalCool spots mobisys06-external
Cool spots mobisys06-external
kareemhashem
 
How–To setup Wi-Fi Client Router Mode as [CPE] connect to [WISP AP] & Using E...
How–To setup Wi-Fi Client Router Mode as [CPE] connect to [WISP AP] & Using E...How–To setup Wi-Fi Client Router Mode as [CPE] connect to [WISP AP] & Using E...
How–To setup Wi-Fi Client Router Mode as [CPE] connect to [WISP AP] & Using E...
Tũi Wichets
 
Ct nyc-philly open stack meetups april 2014 final
Ct nyc-philly open stack meetups april 2014 finalCt nyc-philly open stack meetups april 2014 final
Ct nyc-philly open stack meetups april 2014 final
ozkan01
 
Hiperlink optical 05 Ghz-lanrtx
Hiperlink optical 05 Ghz-lanrtxHiperlink optical 05 Ghz-lanrtx
Hiperlink optical 05 Ghz-lanrtx
Res-Ingenium
 
Nt1310 Unit 8 Network Components
Nt1310 Unit 8 Network ComponentsNt1310 Unit 8 Network Components
Nt1310 Unit 8 Network Components
Lisa Williams
 

Similaire à Connecting Things to the Web using Programmable Low-power WiFi Modules (20)

Igal Rotem Invent Or Die
Igal Rotem  Invent Or DieIgal Rotem  Invent Or Die
Igal Rotem Invent Or Die
 
PoE.Standards, technologies and solutions
PoE.Standards, technologies and solutionsPoE.Standards, technologies and solutions
PoE.Standards, technologies and solutions
 
Arch Rock Overview
Arch Rock OverviewArch Rock Overview
Arch Rock Overview
 
Cool spots mobisys06-external
Cool spots mobisys06-externalCool spots mobisys06-external
Cool spots mobisys06-external
 
2nd review
2nd review2nd review
2nd review
 
An Ultra-Low Cost Solution based on Power-Line Communication
An Ultra-Low Cost Solution based on Power-Line CommunicationAn Ultra-Low Cost Solution based on Power-Line Communication
An Ultra-Low Cost Solution based on Power-Line Communication
 
Bpl access network 101 v1
Bpl access network 101 v1Bpl access network 101 v1
Bpl access network 101 v1
 
How–To setup Wi-Fi Client Router Mode as [CPE] connect to [WISP AP] & Using E...
How–To setup Wi-Fi Client Router Mode as [CPE] connect to [WISP AP] & Using E...How–To setup Wi-Fi Client Router Mode as [CPE] connect to [WISP AP] & Using E...
How–To setup Wi-Fi Client Router Mode as [CPE] connect to [WISP AP] & Using E...
 
An Intro to Power over Ethernet Systems
An Intro to Power over Ethernet SystemsAn Intro to Power over Ethernet Systems
An Intro to Power over Ethernet Systems
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Ct nyc-philly open stack meetups april 2014 final
Ct nyc-philly open stack meetups april 2014 finalCt nyc-philly open stack meetups april 2014 final
Ct nyc-philly open stack meetups april 2014 final
 
Webcast: Reduce Costs, Improve Agility with Convergenomics
Webcast: Reduce Costs, Improve Agility with ConvergenomicsWebcast: Reduce Costs, Improve Agility with Convergenomics
Webcast: Reduce Costs, Improve Agility with Convergenomics
 
Hiperlink optical 05 Ghz-lanrtx
Hiperlink optical 05 Ghz-lanrtxHiperlink optical 05 Ghz-lanrtx
Hiperlink optical 05 Ghz-lanrtx
 
Benext Z-Wave Gateway Manual English
Benext Z-Wave Gateway Manual EnglishBenext Z-Wave Gateway Manual English
Benext Z-Wave Gateway Manual English
 
Nt1310 Unit 8 Network Components
Nt1310 Unit 8 Network ComponentsNt1310 Unit 8 Network Components
Nt1310 Unit 8 Network Components
 
Qf deck
Qf deckQf deck
Qf deck
 
Low Power Wireless Technologies and Standards for the Internet of Things
Low Power Wireless Technologies and Standards for the Internet of ThingsLow Power Wireless Technologies and Standards for the Internet of Things
Low Power Wireless Technologies and Standards for the Internet of Things
 
OpenStack Networking and Automation
OpenStack Networking and AutomationOpenStack Networking and Automation
OpenStack Networking and Automation
 
CV_Projects
CV_ProjectsCV_Projects
CV_Projects
 
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
02/2017 Santa Clara, California: Networks of autonomous devices and their imp...
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Connecting Things to the Web using Programmable Low-power WiFi Modules

  • 1. Connecting Things to the Web using Programmable Low-power WiFi Modules Benedikt Ostermaier, Matthias Kovatsch, Silvia Santini {ostermaier | kovatsch | santinis}@inf.ethz.ch Sunday, 12 June 2011 Institute for Pervasive Computing / Distributed Systems Group
  • 2. Internet of Things Now Optimized LoWPANs WiFi infrastructure Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 2
  • 3. Platform: Roving RN-131G  Programmable low-power WiFi module  44 MHz 32-bit RISC CPU  128 kB RAM, 2 kB non-volatile RAM  2 MB ROM, 8 MBit flash  Built-in IEEE 802.11b/g transceiver with on-board antenna  Rates of up to 54 Mbit/s  WEP, WPA-PSK and WPA2-PSK RN-131  Interfaces  UART, SPI, SDIO, RFID  10 GPIOs, 8 analog sensor I/Fs  Runs eCos with lwIP TCP/IP stack 37 mm / 1.46 in Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 3
  • 4. Platform: Low-power  Current consumption  212 mA when active (max. TX)  4 µA when sleeping  Hardware support  Power Management Unit  Wake-up on sensor or timer events  Sleep mode  2 kB battery-backed RAM  Short wake-up time (~35 ms until connected) Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 4
  • 5. Connecting to Things Physical connection electronic attached Batteries Power supply Light switch Chair sensor sleeping vs. always on Grid Power outlet Room sign prototype vs. ad-hoc Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 5
  • 6. Connecting Things to the Web REST: maps nicely to physical resources Single-threaded Web server HTTP callbacks (Webhooks) RESTful API for sensors, , actuators, configuration Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 6
  • 7. Putting Things Together http://lightswitch / /position /callback http://poweroutlet / /power /consumption Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 7
  • 8. HTTP Callbacks on Sensor Events POST /power HTTP/1.1 Host: poweroutlet Content-Length: 4 Content-Type: text/plain Connection: close Referer: http://lightswitch/position User-Agent: WiFiNode 0.4 Date: Sat, 01 Feb 2011 12:45:26 GMT Last-Modified: Sat, 01 Feb 2011 12:45:26 GMT X-SensorEvent-Count: 12 X-Last-Uptime: 88 true http://lightswitch/ http://poweroutlet/power Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 8
  • 9. Z Energy Efficiency Z Z  Up to 212 mA when active  Maximize sleep time Z  Only report events  Optimize wake-up and uptime Z  Problem: Availability  Sleeping for sensors only  Heartbeats  Poll configuration updates  Setup with /sleep resource or “double-click” Button “sensor“ prototype Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 9
  • 10. 450 Evaluation 400 Wake-up Cycle 350 1. Enable CPU and RAM Average uptime [ms] 300 2. Boot application Other 250 Callback 3. Find AP and connect* DNS 4. Run DHCP* 200 DHCP 5. Run DNS* 150 WiFi 6. Open TCP socket 100 7. Perform HTTP callback 50 8. Close TCP socket 0 9. Go to sleep Office Home1 Home2 * can be optimized Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 10
  • 11. Results Reed and PIR sensor  Battery-powered sensors  >99% data reception rate without retries  ~300‘000 Callbacks with two AAA batteries  ~8 years with 100 callbacks per day  Grid-powered actuators  ~24 ms round trip time (~19 ms for Apache)  Real-time support WiFi Plogg prototype Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 11
  • 12. Conclusions and Outlook  Sufficient battery life for event-based sensing  WiFi infrastructure greatly reduces deployment costs  However, may also introduce some hard-to-trace problems  Hardware support for real energy savings  Future Work  RFID bootstrapping  JavaScript programming Subtle notification device prototype Matthias Kovatsch Connecting Things to the Web using Programmable Low-power WiFi Modules 12