SlideShare a Scribd company logo
1 of 18
Resource Oriented
Architecture in
Wireless Sensor Network
Sun SPOT Smart Logger in the
context of a supply chain
SYSTEMATIC THOUGHT LEADERSHIP FOR INNOVATIVE BUSINESS


Thomas Pham, Intern at SAP Research CEC Zürich (Switzerland)




                                        January 2009
Outline of the
  presentation

 1. Introduction
   1.1. Context of the project
   1.2. Approach : DPWS vs REST
 2. Integration Scenario : Video presentation
 3. The system Components
   3.1. Global Overview
   3.2. The Enterprise Logistics Application
   3.3. The Gateway Application
   3.4. The Sun SPOT Application
 4. The encountered difficulties
 5. Future Work
 6. Conclusion

© SAP 2007 / Page 2
Introduction
               Internship     : SAP Research CEC Zürich
                      Diploma Work : University of Applied Sciences of
                      Western Switzerland

               How        to integrate and simplify the interoperability of
                      heterogeneous and limited devices in sensors
                      networks with existing information systems ?


© SAP 2007 / Page 5
1.1 Context of the project


  SOCRADES :
  (Service-Oriented Cross-layer InfRAstructure for Distributed smart Embedded deviceS)

  European           R&D project, 15 partners from 6 countries
  SAP’s contribution is in the enterprise integration
  Need to increased flexibility and agility of
   manufacturing processes
  The   challenge : coupling high-level back-end
     systems (e.g. ERP) with shop-floor Smart Devices
             Web Services based shop floor integration
        
             Enable dynamic reconfiguration of devices
        
             High level services compositions
        
             Automatic workflow processing
        
             ...
        
 >    Need to integrate all kind of heterogeneous and
     distributed devices with existing information systems


© SAP 2007 / Page 4
1.2 Approach : DPWS vs REST

SOCRADES : is based on Service Oriented Architecture

 Use          DPWS (Device Profile for Web Services)
            Based on WS-* standards for providing (Big) Web
        
            Services at the device level

 But,         ... for limited devices it involves :
            Complex XML messages (e.g. WSDL, SOAP)
        

            Redundancy and addition of useless XML contents
        

            Less space storage, limited bandwidth
        

            More “calculation power”, less battery’s autonomy
        

            Strong-coupling : fixed integration scenario
        




© SAP 2007 / Page 4
1.2 Approach : DPWS vs REST

 Our Approach : a Resource Oriented Architecture

  REST  (Representational State Transfer) Web Services
     Based on existing Web standards :
      HTTP + URI + Hypermedias
     Resource & Representation concepts
     Light , simple
     uniform interfaces (GET, POST, ...)
     Flexible and easily integrable
  JSON (JavaScript Object Notation) as interchange format
     more compact than XML
     easier for human comprehension



 Objectives :
  Prototype : REST concepts on limited devices
  Design an integration scenario


© SAP 2007 / Page 4
Integration Scenario




© SAP 2007 / Page 5
Video presentation




© SAP 2007 / Page 4
The System Components




© SAP 2007 / Page 5
3.1 Global Overview

  Example of network topology in which the system
  could be integrated :

      A. The Enterprise Logistics Application
  
          – manage users and theirs deliveries
                  track shipments and events notifications
              –
      B.
  
           1. The gateway Application
         
           – devices discovery & forward communications
          2. The device’s Manager
         browse and manage software & hardware
              –
         resources
   C. The embedded Application on sensors device
                tiny HTTP Web server
              –
              – periodic values sampling
              – rules monitoring system
              – provide event notifications



© SAP 2007 / Page 4
3.2 The Enterprise Logistics Application

    Developed JAVA with J2EE Standards

      EJB 3
      JPA + TopLink
      WS-*
      JSP + JSF


    SAP : JAVA is the main computer language for new

    technologies.

    SAP Solutions compliant with J2EE standards



    Glassfish Application Server :

      instead of SAP Netweaver CE, because
      better suited to a quick prototyping


    REST / WS Adapter is the notification endpoint

      enable devices to send their message “RESTfuly”




© SAP 2007 / Page 4
3.3 The Gateway Application
  The      “server” : act as bi-directional proxy bridge between networks
          use of RESTlet framework : provide a standalone Web server
          simplify and rebuild HTTP messages
          register and manage Sun SPOT connections of new discovered devices


  The      “client” : HTML + AJAX application developed with GWT
          async XmlHttpRequest to the resources


  access             to device’s resources via : http://{gateway_ip:port}/{spot_name}/ ...
                              802.15.4
                                                                                            TCP / IP
                              Wireless
                                                                                           Connection
                             Connection

                                          Gateway Application Server

                                                                           Outgoing
                                                                                                              WebServers
                                                                       Request/Response
                                                                          Forwarder
                           Périphérique
                           de capteurs
                                                                                                                 UI
                                                                                                              Enterprise
                                                                                                                Client
                                                                                          Enterprise Server
                                                                                             Application
                                                                         WebServer
                                                                                                                 UI
                                                                                                              Enterprise
                                            GatewayID                                                           Client
                                                                                             UI Gateway
                                            Broadcaster                                      Application
                                                                                                Client




© SAP 2007 / Page 4
3.4 The Sun SPOT Application
                      Developed in J2ME on Squawk JVM
                       Gateway locator,


                       tinyWeb Server
                          De/serialize HTTP resquest/response
                          provide resources tree
                           (actuators/sensors/management)

                       HTTP methods : GET, POST, UPDATE, DELETE
                          CRUD signification


                       Resources   allow parameters
                        (application/x-www-form-urlencoded)

                       provide   rules system for sensors values monitoring

                       HTTP   client to push event notifications to the endpoint

© SAP 2007 / Page 4
4. The encountered difficulties

      Principally with Sun SPOT : few documentation, experimental technology

   no    TCP/IP implementation stack on Sun SPOT 802.15.4 network :
          involves no possibility to directly address devices
          soon IPv6-over-LowPan


   Particularities   of Sun SPOT API & strange behaviors
          no device discovery protocol
          negotiation to open StreamConnection (MAC + port)


   Sun     SPOT debugging
          not possible via USB
          only remotely by the air via the Sun SPOT BaseStation
          but ... as it was dedicated to the Gateway Application -> problem
          solution : use of another Sun SPOT acting as it.



© SAP 2007 / Page 4
5. Future Work

  Request/response            Buffer on the Gateway
              Limit solicitations of the limited devices to ensure :
         

                  better responsiveness
              –

                  autonomy
              –



  The          JSON structure that represent embedded resources
              Our solution is quite personal :
         

                  because it doesn’t exist a standard JSON structure representing resources of
              –
                  sensors
              Solution to explore :
         

                  RDF/JSON (Resources Description Framework)
              –

                  open the way of Semantic Sensor Web
              –




© SAP 2007 / Page 4
6. Conclusion


   Existing          Web standards on any embedded devices :
              enable a simple interoperability of heterogeneous devices
         

              improve the flexibility and adaptability of various device’s components
         

              facilitate the integration with professional business applications
         




   For        me :
              rewarding experience
         

              discover a lot of new technologies
         

              Collaborations with dynamic and interesting smart people
         




© SAP 2007 / Page 4
Thanks for your attention !




© SAP 2007 / Page 5
Your questions ?

                      For more informations, please to contact :

                      dominique.guinard@sap.com
                      mihai.vlad.trifa@sap.com
                      thomas.pham@ithings.ch




© SAP 2007 / Page 5

More Related Content

What's hot

Axp Introduce In China Open Source Forum 2008
Axp Introduce In China Open Source Forum 2008Axp Introduce In China Open Source Forum 2008
Axp Introduce In China Open Source Forum 2008
OpenSourceCamp
 
Continuous delivery on the cloud
Continuous delivery on the cloudContinuous delivery on the cloud
Continuous delivery on the cloud
Anand B Narasimhan
 
vFabric - Ideal Platform for SaaS Apps
vFabric - Ideal Platform for SaaS AppsvFabric - Ideal Platform for SaaS Apps
vFabric - Ideal Platform for SaaS Apps
VMware vFabric
 
Virtualization for Development
Virtualization for DevelopmentVirtualization for Development
Virtualization for Development
elliando dias
 
Talk IT_ Oracle_이범_110727
Talk IT_ Oracle_이범_110727Talk IT_ Oracle_이범_110727
Talk IT_ Oracle_이범_110727
Cana Ko
 
Bertrand Delsart Java R T S
Bertrand Delsart Java R T SBertrand Delsart Java R T S
Bertrand Delsart Java R T S
deimos
 
Build Resilient Private Cloud
Build Resilient Private CloudBuild Resilient Private Cloud
Build Resilient Private Cloud
Symantec APJ
 

What's hot (19)

Axp Introduce In China Open Source Forum 2008
Axp Introduce In China Open Source Forum 2008Axp Introduce In China Open Source Forum 2008
Axp Introduce In China Open Source Forum 2008
 
The Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the CloudThe Java EE 7 Platform: Developing for the Cloud
The Java EE 7 Platform: Developing for the Cloud
 
InduSoft Web Studio e Dream Report
InduSoft Web Studio e Dream ReportInduSoft Web Studio e Dream Report
InduSoft Web Studio e Dream Report
 
JAX-RS 2.0: RESTful Web services on steroids
JAX-RS 2.0: RESTful Web services on steroidsJAX-RS 2.0: RESTful Web services on steroids
JAX-RS 2.0: RESTful Web services on steroids
 
Meta soft corporate profile
Meta soft  corporate profileMeta soft  corporate profile
Meta soft corporate profile
 
Continuous delivery on the cloud
Continuous delivery on the cloudContinuous delivery on the cloud
Continuous delivery on the cloud
 
vFabric - Ideal Platform for SaaS Apps
vFabric - Ideal Platform for SaaS AppsvFabric - Ideal Platform for SaaS Apps
vFabric - Ideal Platform for SaaS Apps
 
Fast, Strong & Nimble Mobile Performance Testing
Fast, Strong & Nimble Mobile Performance TestingFast, Strong & Nimble Mobile Performance Testing
Fast, Strong & Nimble Mobile Performance Testing
 
Novell Identity Manager Troubleshooting
Novell Identity Manager TroubleshootingNovell Identity Manager Troubleshooting
Novell Identity Manager Troubleshooting
 
Virtualization for Development
Virtualization for DevelopmentVirtualization for Development
Virtualization for Development
 
Blaze Ds Slides
Blaze Ds SlidesBlaze Ds Slides
Blaze Ds Slides
 
Talk IT_ Oracle_이범_110727
Talk IT_ Oracle_이범_110727Talk IT_ Oracle_이범_110727
Talk IT_ Oracle_이범_110727
 
Nuno Godinho
Nuno GodinhoNuno Godinho
Nuno Godinho
 
Bertrand Delsart Java R T S
Bertrand Delsart Java R T SBertrand Delsart Java R T S
Bertrand Delsart Java R T S
 
How to Choose A SOA Gateway from Layer 7
How to Choose A SOA Gateway from Layer 7How to Choose A SOA Gateway from Layer 7
How to Choose A SOA Gateway from Layer 7
 
VMware vFabric - CIO Webinar - Al Sargent
VMware vFabric - CIO Webinar - Al SargentVMware vFabric - CIO Webinar - Al Sargent
VMware vFabric - CIO Webinar - Al Sargent
 
Build Resilient Private Cloud
Build Resilient Private CloudBuild Resilient Private Cloud
Build Resilient Private Cloud
 
Successful PaaS and CI in the Cloud - EclipseCon 2012
Successful PaaS and CI in the Cloud - EclipseCon 2012Successful PaaS and CI in the Cloud - EclipseCon 2012
Successful PaaS and CI in the Cloud - EclipseCon 2012
 
Orange is v cloud 3
Orange is v cloud 3Orange is v cloud 3
Orange is v cloud 3
 

Viewers also liked

뱀파이어탐정『SX797』『СOM』바카라사이트
뱀파이어탐정『SX797』『СOM』바카라사이트뱀파이어탐정『SX797』『СOM』바카라사이트
뱀파이어탐정『SX797』『СOM』바카라사이트
hdlkfjgldf
 
Monica Davies Resume copy
Monica Davies Resume copyMonica Davies Resume copy
Monica Davies Resume copy
Monica Davies
 
Private Investment Opportunities In Education Booz And Company Bfe Mena 2011
Private Investment Opportunities In Education Booz And Company Bfe Mena 2011Private Investment Opportunities In Education Booz And Company Bfe Mena 2011
Private Investment Opportunities In Education Booz And Company Bfe Mena 2011
espie77
 

Viewers also liked (15)

Nicole frias
Nicole friasNicole frias
Nicole frias
 
Ecologia individual carlos guardado
Ecologia individual carlos guardadoEcologia individual carlos guardado
Ecologia individual carlos guardado
 
뱀파이어탐정『SX797』『СOM』바카라사이트
뱀파이어탐정『SX797』『СOM』바카라사이트뱀파이어탐정『SX797』『СOM』바카라사이트
뱀파이어탐정『SX797』『СOM』바카라사이트
 
2015ResumeMW
2015ResumeMW2015ResumeMW
2015ResumeMW
 
Final PPT
Final PPTFinal PPT
Final PPT
 
Presentacin1 130529094130-phpapp01
Presentacin1 130529094130-phpapp01Presentacin1 130529094130-phpapp01
Presentacin1 130529094130-phpapp01
 
Free Good Quality Photo Sources
Free Good Quality Photo SourcesFree Good Quality Photo Sources
Free Good Quality Photo Sources
 
M2 march
M2 marchM2 march
M2 march
 
Monica Davies Resume copy
Monica Davies Resume copyMonica Davies Resume copy
Monica Davies Resume copy
 
MIS Chapter V- Enhancing Collaboration Using Web 2.0
MIS Chapter V- Enhancing Collaboration Using Web 2.0MIS Chapter V- Enhancing Collaboration Using Web 2.0
MIS Chapter V- Enhancing Collaboration Using Web 2.0
 
Top 10 Instagram tools.
Top 10 Instagram tools.Top 10 Instagram tools.
Top 10 Instagram tools.
 
Booz&co
Booz&coBooz&co
Booz&co
 
Private Investment Opportunities In Education Booz And Company Bfe Mena 2011
Private Investment Opportunities In Education Booz And Company Bfe Mena 2011Private Investment Opportunities In Education Booz And Company Bfe Mena 2011
Private Investment Opportunities In Education Booz And Company Bfe Mena 2011
 
Introduction to Catholic Social Teaching - Session 2
Introduction to Catholic Social Teaching - Session 2Introduction to Catholic Social Teaching - Session 2
Introduction to Catholic Social Teaching - Session 2
 
Intro to Catholic Social Teaching - Session 4
Intro to Catholic Social Teaching - Session 4Intro to Catholic Social Teaching - Session 4
Intro to Catholic Social Teaching - Session 4
 

Similar to Resource Oriented Architecture in Wireless Sensor Network

IBM Pulse 2013 session - DevOps for Mobile Apps
IBM Pulse 2013 session - DevOps for Mobile AppsIBM Pulse 2013 session - DevOps for Mobile Apps
IBM Pulse 2013 session - DevOps for Mobile Apps
Sanjeev Sharma
 
Nitesh_Sr._Java_developer_Lead
Nitesh_Sr._Java_developer_Lead Nitesh_Sr._Java_developer_Lead
Nitesh_Sr._Java_developer_Lead
Nitesh Dasari
 

Similar to Resource Oriented Architecture in Wireless Sensor Network (20)

Service Provider Architectures for Tomorrow by Chow Khay Kid
Service Provider Architectures for Tomorrow by Chow Khay KidService Provider Architectures for Tomorrow by Chow Khay Kid
Service Provider Architectures for Tomorrow by Chow Khay Kid
 
SWIMing in a Standards Soup
SWIMing in a Standards SoupSWIMing in a Standards Soup
SWIMing in a Standards Soup
 
Azure Services Platform
Azure Services PlatformAzure Services Platform
Azure Services Platform
 
(ATS3-GS02) Accelrys Enterprise Platform in Enterprise Architectures
(ATS3-GS02) Accelrys Enterprise Platform in Enterprise Architectures(ATS3-GS02) Accelrys Enterprise Platform in Enterprise Architectures
(ATS3-GS02) Accelrys Enterprise Platform in Enterprise Architectures
 
IBM Pulse 2013 session - DevOps for Mobile Apps
IBM Pulse 2013 session - DevOps for Mobile AppsIBM Pulse 2013 session - DevOps for Mobile Apps
IBM Pulse 2013 session - DevOps for Mobile Apps
 
2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update
 
Venus-c: Using open source clouds in eScience
Venus-c: Using open source clouds in eScienceVenus-c: Using open source clouds in eScience
Venus-c: Using open source clouds in eScience
 
Giri_WCS
Giri_WCSGiri_WCS
Giri_WCS
 
Transaction-based Capacity Planning for greater IT Reliability™ webinar
Transaction-based Capacity Planning for greater IT Reliability™ webinar Transaction-based Capacity Planning for greater IT Reliability™ webinar
Transaction-based Capacity Planning for greater IT Reliability™ webinar
 
OpenStack Quantum Network Service
OpenStack Quantum Network ServiceOpenStack Quantum Network Service
OpenStack Quantum Network Service
 
Rajeev_Resume
Rajeev_ResumeRajeev_Resume
Rajeev_Resume
 
Multi client Development with Spring
Multi client Development with SpringMulti client Development with Spring
Multi client Development with Spring
 
On-Demand Webinar: Software Virtualization Lifecycle
On-Demand Webinar: Software Virtualization LifecycleOn-Demand Webinar: Software Virtualization Lifecycle
On-Demand Webinar: Software Virtualization Lifecycle
 
Comm Gate Corporate Profile V0.4
Comm Gate Corporate Profile V0.4Comm Gate Corporate Profile V0.4
Comm Gate Corporate Profile V0.4
 
Mobile Application Security – Effective methodology, efficient testing!
Mobile Application Security – Effective methodology, efficient testing!Mobile Application Security – Effective methodology, efficient testing!
Mobile Application Security – Effective methodology, efficient testing!
 
09 (IDNOG02) Services SDN & NFV Delivering more with less by Mochammad Irzan
09 (IDNOG02) Services SDN & NFV Delivering more with less by Mochammad Irzan09 (IDNOG02) Services SDN & NFV Delivering more with less by Mochammad Irzan
09 (IDNOG02) Services SDN & NFV Delivering more with less by Mochammad Irzan
 
BayThreat Why The Cloud Changes Everything
BayThreat Why The Cloud Changes EverythingBayThreat Why The Cloud Changes Everything
BayThreat Why The Cloud Changes Everything
 
Best Practices for Upgrading Your Portal to SAP NetWeaver 7.3
Best Practices for Upgrading Your Portal to SAP NetWeaver 7.3Best Practices for Upgrading Your Portal to SAP NetWeaver 7.3
Best Practices for Upgrading Your Portal to SAP NetWeaver 7.3
 
Nitesh_Sr._Java_developer_Lead
Nitesh_Sr._Java_developer_Lead Nitesh_Sr._Java_developer_Lead
Nitesh_Sr._Java_developer_Lead
 
Patterns of Cloud Applications Using Microsoft Azure Services Platform
Patterns of Cloud Applications Using Microsoft Azure Services PlatformPatterns of Cloud Applications Using Microsoft Azure Services Platform
Patterns of Cloud Applications Using Microsoft Azure Services Platform
 

Recently uploaded

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
 

Recently uploaded (20)

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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
[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...
 
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
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced 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...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Resource Oriented Architecture in Wireless Sensor Network

  • 1. Resource Oriented Architecture in Wireless Sensor Network Sun SPOT Smart Logger in the context of a supply chain SYSTEMATIC THOUGHT LEADERSHIP FOR INNOVATIVE BUSINESS Thomas Pham, Intern at SAP Research CEC Zürich (Switzerland) January 2009
  • 2. Outline of the presentation 1. Introduction 1.1. Context of the project 1.2. Approach : DPWS vs REST 2. Integration Scenario : Video presentation 3. The system Components 3.1. Global Overview 3.2. The Enterprise Logistics Application 3.3. The Gateway Application 3.4. The Sun SPOT Application 4. The encountered difficulties 5. Future Work 6. Conclusion © SAP 2007 / Page 2
  • 3. Introduction Internship : SAP Research CEC Zürich Diploma Work : University of Applied Sciences of Western Switzerland How to integrate and simplify the interoperability of heterogeneous and limited devices in sensors networks with existing information systems ? © SAP 2007 / Page 5
  • 4. 1.1 Context of the project SOCRADES : (Service-Oriented Cross-layer InfRAstructure for Distributed smart Embedded deviceS)  European R&D project, 15 partners from 6 countries  SAP’s contribution is in the enterprise integration  Need to increased flexibility and agility of manufacturing processes  The challenge : coupling high-level back-end systems (e.g. ERP) with shop-floor Smart Devices Web Services based shop floor integration  Enable dynamic reconfiguration of devices  High level services compositions  Automatic workflow processing  ...  > Need to integrate all kind of heterogeneous and distributed devices with existing information systems © SAP 2007 / Page 4
  • 5. 1.2 Approach : DPWS vs REST SOCRADES : is based on Service Oriented Architecture  Use DPWS (Device Profile for Web Services) Based on WS-* standards for providing (Big) Web  Services at the device level  But, ... for limited devices it involves : Complex XML messages (e.g. WSDL, SOAP)  Redundancy and addition of useless XML contents  Less space storage, limited bandwidth  More “calculation power”, less battery’s autonomy  Strong-coupling : fixed integration scenario  © SAP 2007 / Page 4
  • 6. 1.2 Approach : DPWS vs REST Our Approach : a Resource Oriented Architecture  REST (Representational State Transfer) Web Services  Based on existing Web standards : HTTP + URI + Hypermedias  Resource & Representation concepts  Light , simple  uniform interfaces (GET, POST, ...)  Flexible and easily integrable  JSON (JavaScript Object Notation) as interchange format  more compact than XML  easier for human comprehension Objectives :  Prototype : REST concepts on limited devices  Design an integration scenario © SAP 2007 / Page 4
  • 9. The System Components © SAP 2007 / Page 5
  • 10. 3.1 Global Overview Example of network topology in which the system could be integrated : A. The Enterprise Logistics Application  – manage users and theirs deliveries track shipments and events notifications – B.  1. The gateway Application  – devices discovery & forward communications  2. The device’s Manager browse and manage software & hardware – resources  C. The embedded Application on sensors device tiny HTTP Web server – – periodic values sampling – rules monitoring system – provide event notifications © SAP 2007 / Page 4
  • 11. 3.2 The Enterprise Logistics Application Developed JAVA with J2EE Standards   EJB 3  JPA + TopLink  WS-*  JSP + JSF SAP : JAVA is the main computer language for new  technologies. SAP Solutions compliant with J2EE standards  Glassfish Application Server :   instead of SAP Netweaver CE, because  better suited to a quick prototyping REST / WS Adapter is the notification endpoint   enable devices to send their message “RESTfuly” © SAP 2007 / Page 4
  • 12. 3.3 The Gateway Application  The “server” : act as bi-directional proxy bridge between networks  use of RESTlet framework : provide a standalone Web server  simplify and rebuild HTTP messages  register and manage Sun SPOT connections of new discovered devices  The “client” : HTML + AJAX application developed with GWT  async XmlHttpRequest to the resources  access to device’s resources via : http://{gateway_ip:port}/{spot_name}/ ... 802.15.4 TCP / IP Wireless Connection Connection Gateway Application Server Outgoing WebServers Request/Response Forwarder Périphérique de capteurs UI Enterprise Client Enterprise Server Application WebServer UI Enterprise GatewayID Client UI Gateway Broadcaster Application Client © SAP 2007 / Page 4
  • 13. 3.4 The Sun SPOT Application Developed in J2ME on Squawk JVM  Gateway locator,  tinyWeb Server  De/serialize HTTP resquest/response  provide resources tree (actuators/sensors/management)  HTTP methods : GET, POST, UPDATE, DELETE  CRUD signification  Resources allow parameters (application/x-www-form-urlencoded)  provide rules system for sensors values monitoring  HTTP client to push event notifications to the endpoint © SAP 2007 / Page 4
  • 14. 4. The encountered difficulties Principally with Sun SPOT : few documentation, experimental technology  no TCP/IP implementation stack on Sun SPOT 802.15.4 network :  involves no possibility to directly address devices  soon IPv6-over-LowPan  Particularities of Sun SPOT API & strange behaviors  no device discovery protocol  negotiation to open StreamConnection (MAC + port)  Sun SPOT debugging  not possible via USB  only remotely by the air via the Sun SPOT BaseStation  but ... as it was dedicated to the Gateway Application -> problem  solution : use of another Sun SPOT acting as it. © SAP 2007 / Page 4
  • 15. 5. Future Work  Request/response Buffer on the Gateway Limit solicitations of the limited devices to ensure :  better responsiveness – autonomy –  The JSON structure that represent embedded resources Our solution is quite personal :  because it doesn’t exist a standard JSON structure representing resources of – sensors Solution to explore :  RDF/JSON (Resources Description Framework) – open the way of Semantic Sensor Web – © SAP 2007 / Page 4
  • 16. 6. Conclusion  Existing Web standards on any embedded devices : enable a simple interoperability of heterogeneous devices  improve the flexibility and adaptability of various device’s components  facilitate the integration with professional business applications   For me : rewarding experience  discover a lot of new technologies  Collaborations with dynamic and interesting smart people  © SAP 2007 / Page 4
  • 17. Thanks for your attention ! © SAP 2007 / Page 5
  • 18. Your questions ? For more informations, please to contact : dominique.guinard@sap.com mihai.vlad.trifa@sap.com thomas.pham@ithings.ch © SAP 2007 / Page 5