wireless sensor networks motes nesc and tinyos
play

Wireless Sensor Networks: Motes, NesC, and TinyOS J urgen Sch onw - PowerPoint PPT Presentation

Wireless Sensor Networks: Motes, NesC, and TinyOS J urgen Sch onw alder, Mat u s Harvan Jacobs University Bremen Bremen, Germany EECS Seminar, 24 April 2007 J urgen Sch onw alder, Mat u s Harvan Motes, NesC, and


  1. Wireless Sensor Networks: Motes, NesC, and TinyOS J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Jacobs University Bremen Bremen, Germany EECS Seminar, 24 April 2007 J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 1

  2. 25 Years of Development. . . J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 2

  3. 25 Years of Development. . . J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 2

  4. Outline Wireless Sensor Networks 1 Definition and Applications Hardware (Processors, Boards, Radios, . . . ) Constraints and Challenges NesC and TinyOS 2 NesC Language Overview TinyOS: Operating System for WSNs Demonstration Internet and Wireless Sensor Networks 3 Translating Gateway/Proxy uIP, 6lowpan Demonstration J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 3

  5. Outline Wireless Sensor Networks 1 Definition and Applications Hardware (Processors, Boards, Radios, . . . ) Constraints and Challenges NesC and TinyOS 2 NesC Language Overview TinyOS: Operating System for WSNs Demonstration Internet and Wireless Sensor Networks 3 Translating Gateway/Proxy uIP, 6lowpan Demonstration J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 4

  6. Wireless Sensor Networks Definition A wireless sensor network (WSN) is a wireless network consisting of spatially distributed autonomous devices using sensors to cooperatively monitor physical or environmental conditions, such as temperature, sound, vibration, pressure, motion or pollutants. Small computers with a wireless interface Smart alternatives to dumb RFID tags J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 5

  7. Wireless Sensor Networks Definition A wireless sensor network (WSN) is a wireless network consisting of spatially distributed autonomous devices using sensors to cooperatively monitor physical or environmental conditions, such as temperature, sound, vibration, pressure, motion or pollutants. Small computers with a wireless interface Smart alternatives to dumb RFID tags J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 5

  8. Applications Environmental monitoring Seismic detection Disaster situation monitoring and recovery Health and medical monitoring Inventory tracking and logistics Smart spaces (home/office scenarios) Military surveillance J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 6

  9. Processors — Atmel / TI / Intel Atmel AVR ATmega 128 8 bit RISC at XX MHz, 32 registers 4kB RAM, 128kB Flash, 4kB EEPROM TI MSP430 16 bit RISC at 8 MHz, 16 registers 10kB RAM, 48kB Flash, 16kB EEPROM Intel PXA271 XScale 32 bit RISC at 13-416MHz, 16 registers 256kB SRAM, 32MB SDRAM, 32MB Flash J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 7

  10. Processors — Atmel / TI / Intel Atmel AVR ATmega 128 8 bit RISC at XX MHz, 32 registers 4kB RAM, 128kB Flash, 4kB EEPROM TI MSP430 16 bit RISC at 8 MHz, 16 registers 10kB RAM, 48kB Flash, 16kB EEPROM Intel PXA271 XScale 32 bit RISC at 13-416MHz, 16 registers 256kB SRAM, 32MB SDRAM, 32MB Flash J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 7

  11. Processors — Atmel / TI / Intel Atmel AVR ATmega 128 8 bit RISC at XX MHz, 32 registers 4kB RAM, 128kB Flash, 4kB EEPROM TI MSP430 16 bit RISC at 8 MHz, 16 registers 10kB RAM, 48kB Flash, 16kB EEPROM Intel PXA271 XScale 32 bit RISC at 13-416MHz, 16 registers 256kB SRAM, 32MB SDRAM, 32MB Flash J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 7

  12. Boards — Telos-B TPR2400CA Block Diagram J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 8

  13. Boards — Mica-Z - MPR2400CA Block Diagram J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 9

  14. Sensors — Mica Sensor Board MTS310 J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 10

  15. Boards — Imote2 Block Diagram Antenna GPIOs 802.15.4 32MB 2x SPI radio FLASH SMA 3x UART I 2 S SDIO I/O USB host XScale 32MB CPU core SDRAM USB client AC’97 Camera 256kB SRAM I 2 S XScale Power DSP Mgt. RTC JTAG Supply Battery Changer J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 11

  16. Power Consumption mote processor voltage active sleep Telos-B IT MSP430 1.8V min 1.8 mA 5.1 uA Mica-Z Atmel AVR 2.5V min 8 mA < 15 uA Imote2 Intel PXA271 1.3V min 44-66 mA 390 uA Imote2 is computationally powerful enough to run an embedded Linux kernel. Imote2 requires a relatively decent power supply (or a short usage period). Xscale sold to Marvell Technologies in 2006 J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 12

  17. Radio — IEEE 802.15.4 IEEE 802.15.4 (Zigbee) 250 kbps (16 channels, 2.4 GHz ISM band) personal area networks (few meters range) PHY and MAC layer covered Link encryption (AES) (no key management) Full / Reduced function devices ChipCon CC2420 popular 802.15.4 air interface 128byte TX/RX buffer J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 13

  18. Radio — IEEE 802.15.4 IEEE 802.15.4 (Zigbee) 250 kbps (16 channels, 2.4 GHz ISM band) personal area networks (few meters range) PHY and MAC layer covered Link encryption (AES) (no key management) Full / Reduced function devices ChipCon CC2420 popular 802.15.4 air interface 128byte TX/RX buffer J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 13

  19. Design Goals cheap ideally less than 1 Euro many lots of devices, economies of scale robust unattended operation (no repair) small importance depends on the circumstances low-power difficult/impossible to replace batteries J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 14

  20. Design Goals cheap ideally less than 1 Euro many lots of devices, economies of scale robust unattended operation (no repair) small importance depends on the circumstances low-power difficult/impossible to replace batteries J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 14

  21. Design Goals cheap ideally less than 1 Euro many lots of devices, economies of scale robust unattended operation (no repair) small importance depends on the circumstances low-power difficult/impossible to replace batteries J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 14

  22. Design Goals cheap ideally less than 1 Euro many lots of devices, economies of scale robust unattended operation (no repair) small importance depends on the circumstances low-power difficult/impossible to replace batteries J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 14

  23. Design Goals cheap ideally less than 1 Euro many lots of devices, economies of scale robust unattended operation (no repair) small importance depends on the circumstances low-power difficult/impossible to replace batteries J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 14

  24. Research Topics Embedded systems and languages Energy-aware resource management Cross-layer design and optimization (Ad-hoc) mesh routing protocols Internetworking Middleware for wireless sensor networks Localization, time synchronization, . . . Data fusion, control, actuation, . . . Security and Applications J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 15

  25. Outline Wireless Sensor Networks 1 Definition and Applications Hardware (Processors, Boards, Radios, . . . ) Constraints and Challenges NesC and TinyOS 2 NesC Language Overview TinyOS: Operating System for WSNs Demonstration Internet and Wireless Sensor Networks 3 Translating Gateway/Proxy uIP, 6lowpan Demonstration J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 16

  26. NesC and TinyOS History developed by a consortium led by UC Berkeley two versions TinyOS 1.1 TinyOS 2.0 2.0 not backwards compatible with 1.1 J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 17

  27. NesC: Programming Language for Embedded Systems Programming language: a dialect/extension of C static memory allocation only (no malloc/free) whole-program analysis, efficient optimization race condition detection Implementation: pre-processor – output is a C-program, that is compiled using gcc for the specific platform statically linking functions For more details, see [3] J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 18

  28. NesC — Interfaces commands can be called by other modules think functions events signalled by other modules have to be handled by this module Interface Example interface Send { command error_t send(message_t* msg, uint8_t len); event void sendDone(message_t* msg, error_t error); ... } J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 19

  29. NesC — Components a NesC application consists of components components provide and use interfaces components can be accessed only via interfaces (cannot call an arbitrary C-function from another module) Figure: NesC Interface J¨ urgen Sch¨ onw¨ alder, Mat´ uˇ s Harvan Motes, NesC, and TinyOS 20

Recommend


More recommend