Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Smart IoTt on OSGi with Apache Openwhisk - C Ziegeler & D Bosschaert

144 views

Published on

OSGi Community Event 2017 Presentation by Carsten Ziegeler & David Bosschaert [Adobe]

IoT solutions are becoming more and more common in the market and new devices and gadgets are showing up on a daily basis. Additionally, the networks and protocols used by the devices can be highly specialized for use cases such as minimal energy consumption or for long range connectivity. If you want your IoT system to be future proof while being able to take advantage of new technologies without having to change your system every time, then the OSGi Device Abstraction Layer can help. It provides IoT APIs independent of the underlying technology. In this talk Carsten and David will look at integrating IoT systems through OSGi with serverless backend systems such as Apache OpenWhisk to combine IoT with smart decisions or controls initiated by a cloud based functional architecture. It will include a demo with IoT sensors that communicate with Apache Felix on a Raspberry Pi connected to a serverless backend for additional processing and orchestration.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Smart IoTt on OSGi with Apache Openwhisk - C Ziegeler & D Bosschaert

  1. 1. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Smart IoT on OSGi with Apache OpenWhisk David Bosschaert and Carsten Ziegeler
  2. 2. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. I am doing IoT ! 2 C
  3. 3. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. I am doing IoT ! 3 C
  4. 4. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Carsten Ziegeler § Principal Scientist @ Adobe Research Switzerland § Member of the Apache Software Foundation § VP of Apache Felix and Sling § OSGi Expert Groups and Board member 4 C
  5. 5. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. David Bosschaert • R&D Adobe Ireland • Co-chair OSGi Enterprise Expert Group • Apache Felix, Aries PMC member and committer • … other opensource projects • Cloud and embedded computing enthusiast 5 C
  6. 6. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. IoT
  7. 7. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 💡 IoT and OSGi 7 D
  8. 8. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. I am doing IoT ? 8 D
  9. 9. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. ? IoT devices 9 D
  10. 10. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Gateway zwave zigbee IoT and OSGi 10 D
  11. 11. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. OSGi for Gateway and Cloud § Unified platform § Service Registry integration point § IoT APIs § Share & Reuse § Provisioning, tooling... § Dynamically updatable 11 D
  12. 12. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. OSGi Framework OSGi Device Abstraction Layer § Device and Function Services § Protocol independent § Event Admin support 12 Function Temperature MultiLevelControl Device ID / State / Misc info Function Low Battery BooleanSensor D
  13. 13. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. OSGi Device Abstraction Layer (DAL) DataTypes Alarm BooleanControl BooleanSensor Keypad Meter MultiLevelControl MultiLevelSensor WakeUp … custom types ... 13 Function Types COLD CONTACT DOOR FIRE FLOW GAS HEAT HUMIDITY LIGHT LIQUID MOTION NOISINESS OCCUPANCY POWER PRESSURE RAIN SMOKE TEMPERATURE WATER WINDOW D
  14. 14. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. OSGi DAL demo 14 Gateway D D
  15. 15. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. OSGi DAL code DAL allows for purely functional code @Component( property = { "event.topics=org/osgi/service/dal/FunctionEvent/PROPERTY_CHANGED", "event.filter=(dal.function.UID=pir1:motion)"}) public class RadiatorLogic implements EventHandler { @Reference(target = "(dal.function.UID=rad1:setpoint)") Function radiator; @Override public void handleEvent(Event event) { MultiLevelControl radCtrl = getControl(radiator); // Get the updated PIR sensor data BooleanData data = (BooleanData) event.getProperty(FunctionEvent.PROPERTY_VALUE); // Set the radiator temperature radCtrl.setData(data.getValue() ? 21 : 7, "degrees"); } } 15 D
  16. 16. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Demo 16
  17. 17. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Gateway zwave zigbee D A L Let‘s make it smarter! 17 C
  18. 18. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Less Server?
  19. 19. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. A Short History of Infrastructure/Deployment 19 2000 Physical Hardware 2006 Virtual Servers Hardware disappeared 2013 Containers Operating systems disappeared 2016 Serverless Language runtime disappeared C
  20. 20. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Serverless § Function as a Service (FaaS) § Event triggering § Scale as needed 20 C
  21. 21. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Apache OpenWhisk 21 Source: https://github.com/apache/incubator-openwhisk/blob/master/docs/about.md C
  22. 22. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Smart Home Logic
  23. 23. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. D A L Machine Learning @ Work 23 Motion Sensor Time OpenWhisk DB Store ML Prediction Gateway C
  24. 24. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Machine Learning @ Work 24 OpenWhisk Prediction Heating D A L Gateway Motion Sensor Time C
  25. 25. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Seamless Integration 25 D A L Gateway OSGi Prediction Service DB C
  26. 26. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Seamless Integration 26 D A L Gateway OSGi Prediction Service Proxy Remote OSGi Framework DB OSGi Prediction Service C
  27. 27. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Cloud Seamless Integration 27 D A L Gateway OSGi Prediction Service Proxy Remote OSGi Framework OSGi Prediction Service DB C
  28. 28. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Cloud OpenWhisk Seamless Integration 28 D A L Gateway OSGi Prediction Service Proxy Remote OSGi Framework DB OSGi Prediction Service C
  29. 29. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Demo 29
  30. 30. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. OSGi + OpenWhisk: the ideal base for IoT Endless possibilities with IoT 30
  31. 31. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. THANK YOU. 31
  32. 32. © 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 32

×