Web of Things for Sensor Networks

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Notes on slide 1

    The problem is that to build applications on top of these devices we still need to learn a 100 different systems and APIs. Our thesis: how do you enable business to create applications on top of eco-systems of sensor networks and embedded devices.

    Thus, we suggest creating a Web of Things as an alternative. We basically consider sensor nodes as nodes of the Internet and make them universally accessible over HTTP like the Web is. We do this by: Having IP connectivity (IPv6 Lowpan) Having the nodes (or a gateway) embedding a Web-Server Modeling services as resources.

    Where we started, a quick overview of our first trials to integrate sensor networks to business applications. A few guidelines on how to make sensor nodes first class citizens of the Web. Our implementation of these guidelines on the Sun SPOT plateform, including the video of a business use case we implemented using the RESTful Sun SPOTs.

    The first step is to get the Sensors connected to the Internet (!= Web, the Internet is the underlying network! Not the application layer). This can be achieved in two ways: Direct connectivity by using for instance IPv6 Lowpan, i.e. the Ipv6 protocol for resource constrained devices. More and more sensor networks (e.g. Arch Rock nodes, etc.) For non-IPv6 nodes we propose the concept of smart gateways. Smart gateways are small pieces of software that can be installed on emedded devices such as Wireless routers or NAS (Network Access Storage). Their goal is to understand the proprietary protocols and APIs of embedded devices (e.g. BT) and to « translate » offer access to these devices through uniform REST APIs.

    Now that we have means to connect the nodes to the Internet we need to « Web enable » them. This is done by exposing their services as « resources », i.e. by applying the REST architectural style to represent their functionality and thus making them service nodes of the Web. REST is basically about four concepts: every thing, that can and that's worth, getting a URI and links is a resource Resources have a unique name in the form of a URI (often a URL). Resources have several representations (JSON, XHTML). Resources can be interacted with using a unform interface: HTTP:

    Since the sun spot do not support IP connectivity yet, we implemented HTTP on top of 802.15.4 radio (~= Zigbee).

    Discover a Sun Spot, see the Web UI, browse it.

    GW Tomcat (GWT) Spots Ploggs GW

    Easy to program, create new stuff Browse and use the IoT 1 or 2.0

    Our experience in using DPWS is that WS-* still create a rather big overhead for device with limited capabilities such as sensor networks. Especially since you need to: generate stub classes from the WSDLs (the screen shot contains the classes you need to generate to invoke a simple light service) and send SOAP messages (which are rather heavy), go through rather complicated service lookup steps to find the services which makes the service discovery quite opaque. Thus, web services are probably not the best answer to make sensor and actuator networks easily accessible to build upon, however it is still relevant for more static settings where higher QoS and process formalization is required.

    1 Favorite

    Web of Things for Sensor Networks - Presentation Transcript

    1. Towards a Web of Things Applying REST to Sensor and Actuator Networks. Dominique Guinard (1, 2) / Vlad Trifa (1,2) / Thomas Pham (1) / Olivier Liechti (3) 1) SAP Research Zurich 2) Institute for Pervasive Computing, ETH Zurich 3) HEIG-VD 6980
    2. Motivation [http://www.flickr.com/photos/madelinetosh/ ]
    3. Embedded Devices Invade us!
      • Emergence of the physical Web
        • Embedded devices get more powerful .
        • Real-world devices are getting connected to the Web.
    4. Problem: How to Achieve a Composable Web of Things?
      • Huge eco-system of devices.
        • About 1000 smart objects / person:
        • and… about 1000 systems to use them and build applications on top of them.
      • How do we enable tech savvys and companies to create applications on top of this eco-system?
      “ re-think the way we design computing systems in order to take into account the >1000 smart objects per people we will soon have to deal with.” David Orban
    5. Contribution: Web of Things (WOT) in a Nutshell
      • Creating a Web of Things by:
        • Connecting embedded devices to the Internet (IP) [2].
        • Having them embedding a Web-Server.
        • Modelling their services in a Resource Oriented manner (RESTful API) so that they become first-class citizens of the World Wide Web!
      • Benefits:
        • Ease the building of applications on top of embedded devices.
        • Get a lot of the features of the Web almost for free:
          • bookmarking, caching, linking, searching, securing etc.
        • And enable physical mashups:
          • dynamic, ad-hoc composite applications involving embedded devices.
        • [2] Hui, Jonathan W., and David E. Culler. “IP is dead, long live IP for wireless sensor networks.” In Proceedings of the 6th ACM conference on Embedded network sensor systems, 15-28. Raleigh, NC, USA: ACM, 2008.
    6. Today’s Menu
      • A Web Oriented Architecture for the Real World
      • Protoypes Implementations
      [http://www.flickr.com/photos/lessio/1346732230/ ]
    7. A Web Oriented Architecture for the Real-World
      • Connecting Embedded Devices to the Internet.
      • Resource-oriented design for Embedded Devices.
      [ http://www.flickr.com/photos/julianbleecker ]
    8. 1) Connecting the Embedded Devices to the Internet IPv6 lowpan Non IP devices
    9. 2) Resource Oriented Embedded Devices REST in a Nutshell
      • Resources.
      • Their unique names (URIs).
      • Their representations (JSON, XHTML, Atom).
      • Links between them.
      • A uniform interface (HTTP).
      REPRESENTATION HTTP URI Links
    10. 2.1. Resource Design
      • Thanks to their atomicity services on embedded devices are quite adapted to Resource-Oriented Architectures.
      • Root: http://webofthings.com/
      • Resources:
        • Spots: http://webofthings.com/spots
        • Spot 2: http://webofthings.com/spots/2
        • Light Sensor: http://webofthings.com/spots/2/sensors/light
        • Led Actuator: http://webofthings.com/spots/2/actuators/led/
      • XHTML as default, ideal for browsing:
        • http://webofthings.com/spots
      • JSON, ideal for parsing and OO:
        • http://webofthings.com/spots.json or HTTP Content Negociation (Accept …)
      • XML, ideal for integration with business systems:
        • http://webofthings.com/spots.xml
      2.2. Representation Design
    11. 2.3. Uniform Interface
      • HTTP Verbs: What do you want to do?
        • GET: retrieve the representation of a resource.
        • PUT: create a new or update a resource.
        • DELETE: remove a resource.
        • POST: create a subordinate (or custom: RPC!).
      • HTTP Headers: What type of data are you sending me/requesting?
        • Metadata:
          • Content type: application/json, text/html, etc.
        • Status:
          • 200 OK, 201 Create, 400 Bad Request, 401 Unauthorized
      • HTTP Body: The actual data.
        • The content in its representation.
    12. Prototype Implementation
      • Restful Sun SPOTs
      • The Ploggs Energy Monitor
      [http://www.flickr.com/photos/sharynmorrow/47086098/ ]
    13. RESTful SunSPOTs
      • Turning the Sun SPOT platform into a Resource Oriented one:
        • Each node embedds a tiny Webserver that offers resources with JSON representations.
        • A gateway (using RESTlet) is used to offer additional functionality:
          • Queue management, AJAX management interface, HTML representation, etc.
    14. Embedded Software
      • An embedded HTTP server directly on the SunSPOT nodes, natively supports the four main operations of the HTTP:
        • GET, POST, PUT, DELETE (i.e the verbs of REST).
        • HTTP over 2.4 GHz IEEE 802.15.4 radio.
    15. Demo
    16. The « Energie Visible » Project
      • Aim:
        • Monitor and control your energy consumption at home.
        • Fully integrate the monitoring and control to the web.
        • www.webofthings.com/energie
      Gateway Level: Web server and RESTful API Sensor Level: Ploggs Device Level: Appliances Client Level: Web/Mobile App
    17. RESTful Plogg Gateway
        • C/C++ Gateway:
        • Finds all the Ploggs in the environment.
        • Offers their functionality as a RESTful API.
        • Based on Mongoose (Web server).
    18. Talk to devices: The WEB Way
    19. Energy Monitoring and Control Web UI
        • Energy Monitoring Web UI:
        • Dynamic graph for each monitored appliance.
        • Google Web Toolkit app.
        • Using the OFCGWT toolkit.
    20. Dominique Guinard www.guinard.org SAP Research / ETH Zurich dguinard‘at’guinard.org www.webofthings.com Vlad Trifa SAP Research / ETH Zurich Thomas Pham SAP Research Zurich Olivier Liechti HEIG-VD
    21. Backups for Discussion [http://www.flickr.com/photos/sharynmorrow/ ]
    22. Enable Real-World Mashups URL URL URL URL
    23. A Year ago @ Jazoon 2008
      • Mashing up Manufacturing: Thanks to Java SOAs.
        • Build a cross-layer infrastructure composed of web service enabled devices (SOA-ready) strongly coupled with enterprise applications.
      • Based on:
        • WS-* Web Services (DPWS).
        • And a big business integration architecture.
    24. Qualitative Results: Still Rather Heavy
        • Still heavy on the embedded device itself:
          • No DPWS on Sun SPOT, Gripper, PLC yet.
          • Probably just a matter of time.
        • Heavy to program services and clients:
          • Have a WSDL
          • Generate stub from WSDL
          • Databinding (JAXB) and SOAP
          • Service lookup, etc.
        • WS-* Web Services is possibly not the best technology for an Internet of Things...
        • Especially not for tactical, ad-hoc, applications.
    SlideShare Zeitgeist 2009

    + Dominique GuinardDominique Guinard Nominate

    custom

    457 views, 1 favs, 0 embeds more stats

    Web of Things for Sensor Networks

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 457
      • 457 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 19
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?