OSGi provisioning deep dive and demo (Subsystems, Repository, Contracts and more) - D Bosschaert
OSGi IoT Demo & Contest 2015
-
Upload
mfrancis -
Category
Technology
-
view
4.609 -
download
6
Transcript of OSGi IoT Demo & Contest 2015
COPYRIGHT © 2008-2015 OSGi Alliance. All Rights Reserved
OSGi IoT Demo & Contest 2015
3 to 5 November
OSGi Community Event 2015 & EclipseCon Europe 2015
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 2
OSGi IoT Contest
Still Time To Enter• Being judged on Weds Nov 4 @ 17.45 • Develop a Track or Train Manager bundle using
SDK• Prizes:
• €200 Amazon Gift certificate for winner • €50 Amazon Gift certificate each for two
runners up
• Get the SDK from
https://github.com/osgi/osgi.iot.contest.sdk
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 3
Objectives
• Demonstrate how OSGi was made for the Internet of Things (IoT)
• Provide an OSGi based demo and Contest • Build upon success of 2014 IoT Demo and Hackathon • Show how multiple open source and vendor OSGi
products can be integrated to deliver an end-to-end solution
• Provide a ‘visible’ demo thats fun, entertaining and engaging
SDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 4
2015 IoT Demo
• Its all about trains…… LEGO® Trains and Track
SDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 5
Key Components
• OSGi • Its everywhere
• Cloud • Raspberry Pi’s
• OSGi enRoute • Train Manager • Track Manager • SDK for the Contest
• Customized hardware • Circuit Boards, RFID readers, Signals and Switches /
Track Points
SDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 6
OSGi enRoute ‘The Easy Way Towards Real Modularity’
• Objective:
To make OSGi as easy as possible for developers to get started with OSGi without
compromising its core values
http://enroute.osgi.org
SDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 7
Customized Hardware
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 8
Customized Hardware• Circuit boards made for controlling signals, points and
train and RFID readers • Fritzing (see http://fritzing.org/projects/raspberry-pi-rfidmotorled-driver)
• Red/Green LED’s provide signals • IR LED emulates LEGO® Remote Control
What we did: • RFID readers
detect train location • Motors operate the
points
SDK
• Track Manager • Runs in Cloud • Controls the track
• Train Manager • Controls speed of trains
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 9
Software & SDK
• OSGi based role play between a Track Manager and a number of Train Managers
• Created using OSGi enRoute
SDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 10
Emulator & GUISDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 11
Track Manager
• Track Manager: • controls the switches
(points) • controls the signals • receives the RFID • dispatches events so that
the other participants know what is going on
SDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 12
Track Manager
• Track Manager: • controls the switches
(points) • controls the signals • receives the RFID • dispatches events so that
the other participants know what is going on
SDKTrack Manager
SDK
• Controls the switches (points)
• Controls the signals • Receives the RFID • Dispatches events so
that the other participants know what is going on
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 13
Train Manager
• Train Manager • Responsible for navigating the
train • Assigned a position and the
software must then navigate through the track to that destination
• The Train Manager: • Must obtain permission to use
segments of the track • Must obey the signals • Make sure the train does not
speed
SDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 14
SDK
Train Manager • Responsible for navigating the
train • Assigned a position and the
software must then navigate through the track to that destination
• Must obtain permission to use segments of the trackMust obey the signals
• Make sure the train does not speed
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 15
SDK Service ModelKEY
• Yellow triangle — Service. Triangle points to the provider of the service. Listeners connect to the side of the triangle and clients of the service to the straight part.
• Orange rounded rectangle — Bundle
• Green Parallelogram — An IO device
SDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 16
Demo ArchitectureSDK
ProSyst mPRM
MQTTTrack
ManagerRedis
Train Manager
ProSyst mPRM Provisions OSGi Bundles ro Raspberry Pi's
Raspeberry Pi Train Manager Communicates
with Cloud Track Manager using
Distributed OSGi to update Train
positions
OSGi enRoute based SDK running in Cloud and on Raspberry Pis OSGi running everywhere
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 17
OSGi & IoTSDK
• OSGi was made for IoT • OSGi roots from 1998 as a
specification for the Home Gateway
• OSGi Residential Expert Group (REG)
• OSGi IoT Expert Group launched Sept 2015
• Held several free workshops • Collecting RFP’s for new IoT
specifications • Next meeting in Chicago Nov 19
• 2015 OSGi IoT Demo and Contest has been put together by Peter Kriens from OSGi Alliance and team members the following organizations:
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 18
ThanksSDK
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 19
SDK Service ModelSDKGet Involved
Make Your Mark
Help us create and deliver the future www.osgi.org/Join
Join the OSGi Alliance and
the IoT Expert Group
• Have some suggestions or ideas for next year?
• Want to get involved?
• Can you contribute people, time, resources?
• Talk to us today or email us [email protected]
November 2015OSGi IoT Demo & Contest 2015 © 2008-2015 OSGi Alliance. All Rights Reserved 20
OSGi IoT Demo & Contest 2016SDK