Presentation is loading. Please wait.

Presentation is loading. Please wait.

Starting With The OSGi Specifications By Peter Kriens, CEO aQute OSGi Fellow www.aQute.se.

Similar presentations


Presentation on theme: "Starting With The OSGi Specifications By Peter Kriens, CEO aQute OSGi Fellow www.aQute.se."— Presentation transcript:

1 Starting With The OSGi Specifications By Peter Kriens, CEO aQute OSGi Fellow

2 IIR Home nrg - 2 Content About the OSGi Alliance About the OSGi Alliance Why? Where? Why? Where? Pro/Con Pro/Con Pilot Project Pilot Project Development Development Your OSGi Needs You! Your OSGi Needs You! Conclusion Conclusion

3 IIR Home nrg - 3 About The OSGi Alliance Established in 1999 to create a common model for networked services Established in 1999 to create a common model for networked services Active in the car industry, industrial automation, entertainment, and of course home automation Active in the car industry, industrial automation, entertainment, and of course home automation Applicable for the coming generation of wired appliance that will require management Applicable for the coming generation of wired appliance that will require management

4 IIR Home nrg - 4 Why is OSGi needed? Unconnected Dedicated Device Closed universe Closed universe Upgrades are in unity Upgrades are in unity Not necessary to interact with other devices Not necessary to interact with other devices (Relatively) easy to manage (Relatively) easy to manage Can be proprietary Can be proprietary No Need For OSGi... No Need For OSGi...

5 IIR Home nrg - 5 Why Is OSGi needed? Needs to inter-work with future products Increased functionality requires off the shelf components Execute branded services... Too much for a single development organization! Connected Open Device Bluetooth Firewire MHP

6 IIR Home nrg - 6 Products Based On OSGi Easy to upgrade with new functionality Easy to upgrade with new functionality Easy to have a family of products Easy to have a family of products Save cost with standard components Save cost with standard components Simplify development Simplify development

7 IIR Home nrg - 7 Pro/Con Con Con – Size & Performance. Java requires a heavier processor and more RAM for the similar functionality. Pro Pro – Large Java Developer Society – Third party components – (Much) Wider market opportunities – Hedge your bets

8 IIR Home nrg - 8 Pilot Project Find an applicable product that is (becoming) connected to other devices Find an applicable product that is (becoming) connected to other devices Train a group of developers Train a group of developers Analyze the role OSGi can play for the product Analyze the role OSGi can play for the product Analyze the changes required for the device Analyze the changes required for the device Find standard components Find standard components Build a prototype Build a prototype

9 IIR Home nrg - 9 Train a group of developers Training is paramount Training is paramount – Design is on the wrong side of development. We have to take decisions before we know the details. – The dynamic programming model of the OSGi specifications are somewhat "different" Technical skills required are Technical skills required are – Java on Embedded systems – OSGi service model – Domain knowledge

10 IIR Home nrg - 10 Analyze The Role OSGi Can Play Candidate Areas Candidate Areas – Network Application Protocols (HTTP,UPnP,JINI,NEWS) – "Intelligence" – Remote Management – User Interface – Caching – Database – Security

11 IIR Home nrg - 11 How To Handle Native Code OSGi is Java based but supports native code very well OSGi is Java based but supports native code very well A bundle (an OSGi executable) can contain native code for different architectures A bundle (an OSGi executable) can contain native code for different architectures Suitable for: Suitable for: – Legacy code – High Performance Code – Low level device control

12 IIR Home nrg - 12 What Changes Are Required? It is usually better when the OSGi Framework is "in control" It is usually better when the OSGi Framework is "in control" – Simplifies use of components – Better decomposition – Prevent the "mixed approach" trap" OSGi can handle legacy code very well OSGi can handle legacy code very well

13 IIR Home nrg - 13 Find Standard Components Many OSGi member companies have developed off- the-shelf components Many OSGi member companies have developed off- the-shelf components – These are usually cheaper than building them in-house – Very good quality available – More functionality, more choice Companies are, amongst others, IBM, Gatespace, ProSyst, Atinav, OpenSugar, SUN, Acunia,... Companies are, amongst others, IBM, Gatespace, ProSyst, Atinav, OpenSugar, SUN, Acunia,... Select preferred vendor, but work with others Select preferred vendor, but work with others

14 IIR Home nrg - 14 OS And VM Most embedded OS's support Java today Most embedded OS's support Java today – Linux, QNX, Win CE, Win XP embedded Not all VMs are created equal Not all VMs are created equal – Memory consumption and performance can differ significantly between VMs Select VM Profile Select VM Profile – OSGi runs on CDC with Foundation Profile (SUN), jclGateway (IBM) or other profiles that implement the OSGi minimum execution requirement

15 IIR Home nrg - 15 Quantify What Memory & CPU is needed? What Memory & CPU is needed? – Java adds a significant overhead. – > 100 MIPS – > 8 Mbyte RAM Overhead (space/time) OSGi is minimal Overhead (space/time) OSGi is minimal Note that extra space is needed for downloaded services (Include memory stick like the Ericsson P800) Note that extra space is needed for downloaded services (Include memory stick like the Ericsson P800)

16 IIR Home nrg - 16 Quantify Applications Java Functionality Overhead Ratio < 0Ratio > 0 Added Value

17 IIR Home nrg - 17 Build a Prototype Build a prototype, because you will build one anyway … Build a prototype, because you will build one anyway … Remember performance and size, always! Remember performance and size, always! – Budget memory + performance Stay vendor independent Stay vendor independent – At least do not become proprietary without a decision Use component model for internal development Use component model for internal development Reuse might be higher than you think Reuse might be higher than you think

18 IIR Home nrg - 18 Your OSGi Needs You Feedback experiences and service definitions into the OSGi Feedback experiences and service definitions into the OSGi Why Why – Improve the quality by having many eyes look at it critically – Discover alternatives – If it becomes standardized, you have a head start – Altruism!

19 IIR Home nrg - 19 Conclusions The OSGi/Java combination is going to be needed in a connected world The OSGi/Java combination is going to be needed in a connected world Java simplifies programming, but embedded devices will remain more complex than desktops Java simplifies programming, but embedded devices will remain more complex than desktops The component model can help making devices applicable in new markets The component model can help making devices applicable in new markets Third party development will be a requirement in the future Third party development will be a requirement in the future

20 IIR Home nrg - 20


Download ppt "Starting With The OSGi Specifications By Peter Kriens, CEO aQute OSGi Fellow www.aQute.se."

Similar presentations


Ads by Google