Standards for the Futureof Java EmbeddedWERNER KEILJavaOne Russia 2013Moscow24th April 2013
IN MEMORIAMDipl.-Ing. Erwin Keil13th October 1938 – 26th December 20122 © 2007-2013 Creative Arts & Technologies
Agenda• Introduction• Sensors• Historic IT Errors and Bugs• UOMo, Unit-API, UCUM• Sensor Web, SensorML• M2M• NFC• Use Case...
Bio4 © 2007-2013 Creative Arts & TechnologiesWerner Keil• Consultant – Coach• Creative Cosmopolitan• Open Source Evangelis...
Java Godfather?5 © 2007-2012 Creative Arts & Technologies
Type-Safety•Java does not have strongly typed primitive types(like e.g. Ada or Smalltalk).• This is likely to change aroun...
What do these disasters have in common?•Patriot MissileThe cause was an inaccurate calculation of the time since boot due ...
What do these disasters have in common?8 © 2007-2012 Creative Arts & Technologies
23rd March 1983. Ronald Reaganannounces SDI (or “Star Wars”):ground-based and space-basedsystems to protect the US from at...
1985: The PlanMirror on undersideof shuttleSDI Experiment:The PlanBig mountain in Hawaii10 © 2007-2012 Creative Arts & Tec...
1985: What really happenedSDI Experiment:What reallyhappened11 © 2007-2012 Creative Arts & Technologies
12 © 2007-2012 Creative Arts & Technologies1985: Why it happened?
Unit Tests wouldn„t find these…• All previous example illustrate three categories of errorsdifficult to find through Unit ...
Causes of Conversion Errors• Ambiguity on the unit• Gallon Dry / Gallon Liquid• Gallon US / Gallon UK• Day Sidereal / Day ...
ALL OF THEM HAPPENED INMOBILE, REAL TIME OREMBEDDED SYSTEMS!What else do they have in common?15 © 2007-2012 Creative Arts ...
Measurement Package• Namespace: org.osgi.util.measurement• SI only Unit API “in the closet”• UnitEssentially an SI singlet...
Mobile Sensor API• Namespace: javax.microediton.sensor*• Focusing on Sensors, but it got a minimalistic Unit API “in the c...
Base Classes and Packages• Namespace: javax.measure.*• Only one interface and one abstract class• Measurable<Q extends Qua...
Units of Measurement API• Namespace: org.unitsofmeasurement.*• Only interfaces (and exception classes)• public interface Q...
Eclipse UOMoOne Small Step…
One Unit Framework to Measure them All• Namespace: org.eclipse.uomo.*• Two main areas• Static Type Safe Units of Measure S...
Unified Code for Units of MeasureThe Unified Code for Units of Measure is inspired byand heavily based on• ISO 2955-1983• ...
Slide by NASASensor Web
“A coordinated observation infrastructure composed of a distributed collection of resourcesthat can collectively behave as...
OGC O&M Observations & Measurements ApprovedSensorML Sensor Model Language ApprovedTransducerML Transducer Model Language ...
Sensor Web | What is the OGC?• Not-for-profit• International industry consortium• Founded 1994, currently 340+ members• Op...
Sensor Web | Mozambique floods•The task under study is floods in differentparts of the world•Particular test case was floo...
Sensor Web | Weather PredictionEUMetCastReceiving facilityEUMetCastEARS-AVHRREARS-ATOVSInternetMSGNOMADS LAADSData assimil...
PetrSU Cooperation with Nokia Research Centre• Since 2006• The main directions of the joint activity are software developm...
SensorML• Sensor modeling language is the cornerstone of all SWservices• It provides comprehensive description of sensorpa...
SensorML | Example..............<inputs><InputList><input name="ambiantTemperature"><swe:Quantity definition="urn:ogc:def:...
Demo32 © 2007-2013 Creative Arts & Technologies
Estimated Number of ActiveCellular M2M Connected Devices2010 to 2020Source: Machina Research, July 20111. New connected de...
Transportation & Logistics LogisticsMedical &HealthcareIndustrial &EnergyCommunicationInfrastructureSecurity & Surveillanc...
Medical Services GatewayCommunicationInfrastructureSmartPillBoxesHeartbeatSensorWeightScalesBloodPressureMedicalSmartServi...
Logistic Services GatewayCommunicationInfrastructureHandheld &WearableDevicesRFIDReadersMedicalSmartServicesGatewaySmart C...
37 © 2007-2012 Creative Arts & Technologies, Eclipse FoundationM2M | Tools
NFC38 © 2007-2013 Creative Arts & Technologies
NFC | StatsRegistered Mobile devices worldwide (Millions)39 © 2007-2012 Creative Arts & Technologies
• eNFC (enhanced NFC): Fully compliant NFC technology enhanced byISO 14443B and ISO 15693 standards on chip emulation side...
Exchange photosGet your e-ticketPay without cashRedeem couponsGet your ReceiptNFCPass the gateRead a map frominteractive b...
Chiuaua Driving License: ISO 15693Toronto Payment: ISO 14443-B & ISO 15693Sao Paulo Transport: ISO 14443ASingapore Transpo...
Open NFC interfaces can be classified at different levels, from very high-levelinterfaces that greatly simplify the usual ...
• 2 new JSRs for Mobile and Embedded approved• JSR-360: CLDC 8• CLDC 8 is an evolutionary update to CLDC 1.1.1 to bringthe...
Interoperable platform for delivery oftrusted personal services High, industry-proven security Designed for the smalles...
Security | Java Card Technology46 © 2007-2012 Creative Arts & Technologies
Security | To Catch A ThiefSession ID: LTK1114Session Title: Cloud Security with Trusted ComputingAPI for JavaRoom: Antwer...
Q & ALet„s talkAny resemblance to real persons, living or dead or public figures, is purely coincidental.
Eclipse – Project UOMohttp://www.eclipse.org/uomo/Units of Measurement APIhttp://www.unitsofmeasurement.orgUCUMhttp://www....
Eclipse – M2M IWGhttp://m2m.eclipse.orgOpen Geospatial Consortiumhttp://www.opengeospatial.orgJava Community Processhttp:/...
Contactwerner@catmedia.usoruomo@catmedia.usTwitter: @wernerkeilHashtag #EclipseUOMo
Nächste SlideShare
Wird geladen in ...5
×

Standards for the Future of Java Embedded (16:9)

3,208

Published on

Published in: Technologie, Bildung
0 Kommentare
1 Gefällt mir
Statistiken
Notizen
  • Hinterlassen Sie den ersten Kommentar

Keine Downloads
Views
Gesamtviews
3,208
Bei Slideshare
0
Aus Einbettungen
0
Anzahl an Einbettungen
5
Aktionen
Geteilt
0
Downloads
0
Kommentare
0
Gefällt mir
1
Einbettungen 0
No embeds

No notes for slide
  • Enabling new access to and uses of data
  • Standards for the Future of Java Embedded (16:9)

    1. 1. Standards for the Futureof Java EmbeddedWERNER KEILJavaOne Russia 2013Moscow24th April 2013
    2. 2. IN MEMORIAMDipl.-Ing. Erwin Keil13th October 1938 – 26th December 20122 © 2007-2013 Creative Arts & Technologies
    3. 3. Agenda• Introduction• Sensors• Historic IT Errors and Bugs• UOMo, Unit-API, UCUM• Sensor Web, SensorML• M2M• NFC• Use Cases• Security• JavaCard• Q&A3 © 2007-2013 Creative Arts & Technologies
    4. 4. Bio4 © 2007-2013 Creative Arts & TechnologiesWerner Keil• Consultant – Coach• Creative Cosmopolitan• Open Source Evangelist• Software Architect• Java Godfather• JCP Executive Committee Member• Eclipse UOMo Project Lead• JSR 354 EG Member• …Twitter @wernerkeil
    5. 5. Java Godfather?5 © 2007-2012 Creative Arts & Technologies
    6. 6. Type-Safety•Java does not have strongly typed primitive types(like e.g. Ada or Smalltalk).• This is likely to change around Java 9 or 10(based on Oracle Road Map and statements)•For performance reasons most developer preferprimitive types over objects in their interface.•Primitives type arguments can more easily lead toname clashes (methods with the same signature)6 © 2007-2012 Creative Arts & Technologies
    7. 7. What do these disasters have in common?•Patriot MissileThe cause was an inaccurate calculation of the time since boot due to acomputer arithmetic error.•Ariane 5 ExplosionFloating point number which a value was converted from had a value greaterthan what would be represented by a 16 bit signed integer.• Gimli Glider (near disaster)Fuel loading was miscalculated through misunderstanding of the recently adopted MetricSystem, replacing the Imperial System• Mars OrbiterPreliminary findings indicate that one team used US/English units (e.g. inches, feet andpounds) while the other used metric units for a key spacecraft operation.7 © 2007-2013 Creative Arts & Technologies
    8. 8. What do these disasters have in common?8 © 2007-2012 Creative Arts & Technologies
    9. 9. 23rd March 1983. Ronald Reaganannounces SDI (or “Star Wars”):ground-based and space-basedsystems to protect the US from attackby strategic nuclear ballistic missiles.NASA “Star Wars” Initiative, 19839 © 2007-2012 Creative Arts & Technologies
    10. 10. 1985: The PlanMirror on undersideof shuttleSDI Experiment:The PlanBig mountain in Hawaii10 © 2007-2012 Creative Arts & Technologies
    11. 11. 1985: What really happenedSDI Experiment:What reallyhappened11 © 2007-2012 Creative Arts & Technologies
    12. 12. 12 © 2007-2012 Creative Arts & Technologies1985: Why it happened?
    13. 13. Unit Tests wouldn„t find these…• All previous example illustrate three categories of errorsdifficult to find through Unit Testing:• Interface Errors (e.g. millisecond/second, radian/degree, meters/feet).• Arithmetic Errors (e.g. overflow).• Conversion Errors.Despite their name13 © 2007-2012 Creative Arts & Technologies
    14. 14. Causes of Conversion Errors• Ambiguity on the unit• Gallon Dry / Gallon Liquid• Gallon US / Gallon UK• Day Sidereal / Day Calendar• Degree Celsius / Degree Fahrenheit• Did you know that Gabriel Fahrenheit was born in Gdansk (Danzig) in northern Poland?• Wrong conversion factors:static final double PIXEL_TO_INCH = 1 / 72;double pixels = inches * PIXEL_TO_INCH14 © 2007-2012 Creative Arts & Technologies
    15. 15. ALL OF THEM HAPPENED INMOBILE, REAL TIME OREMBEDDED SYSTEMS!What else do they have in common?15 © 2007-2012 Creative Arts & Technologies
    16. 16. Measurement Package• Namespace: org.osgi.util.measurement• SI only Unit API “in the closet”• UnitEssentially an SI singleton holding relevant unit constants, too.• MeasurementRepresents a value with an error, a unit and a time-stamp.• StateGroups a state name, value and timestamp.• Some usage, especially in Automotive► no further development by OSGiOSGi16 © 2007-2011 Creative Arts & Technologies
    17. 17. Mobile Sensor API• Namespace: javax.microediton.sensor*• Focusing on Sensors, but it got a minimalistic Unit API “in the closet”• UnitEssentially an SI singleton holding relevant unit constants, too.• ChannelInfoHolding name, accuracy, data type,measurement ranges, scale and unit• MeasurementRangeRange of possible values from minimum to maximum► Dead on Arrival (no actual handsets or vendorsusing it today)JSR-25617 © 2007-2011 Creative Arts & Technologies
    18. 18. Base Classes and Packages• Namespace: javax.measure.*• Only one interface and one abstract class• Measurable<Q extends Quantity> (interface)• Measure<V, Q extends Quantity> (abstract class)• Three sub-packages• unit (holds the SI and NonSI units)• quantity (holds dimensions mass, length)• converter (holds unit converters)JSR-27518 © 2007-2011 Creative Arts & Technologies
    19. 19. Units of Measurement API• Namespace: org.unitsofmeasurement.*• Only interfaces (and exception classes)• public interface Quantity<Q extends Quantity<Q>>• public interface Unit<Q extends Quantity<Q>>• Three sub-packages• quantity (holds dimensions mass, length,…)• unit (holds units)• service (OSGi services)The King is Dead…19 © 2007-2012 Creative Arts & Technologies
    20. 20. Eclipse UOMoOne Small Step…
    21. 21. One Unit Framework to Measure them All• Namespace: org.eclipse.uomo.*• Two main areas• Static Type Safe Units of Measure Support• Based on Units of Measurement API• On top of ICU4J, the Globalization standard at Eclipse and others(Android, GWT, Google Financial, etc.)• Prime UCUM Implementation• Successor to Eclipse OHF UCUM BundleEclipse UOMo21 © 2007-2012 Creative Arts & Technologies
    22. 22. Unified Code for Units of MeasureThe Unified Code for Units of Measure is inspired byand heavily based on• ISO 2955-1983• ANSI X3.50-1986• HL7s extensions called ISO+UOMo UCUM22 © 2007-2012 Creative Arts & Technologies
    23. 23. Slide by NASASensor Web
    24. 24. “A coordinated observation infrastructure composed of a distributed collection of resourcesthat can collectively behave as a single, autonomous, task-able, dynamically adaptive andreconfigurable observing system that provides raw and processed data, along withassociated meta-data, via a set of standards-based service-oriented interfaces.” (Glenn,2007)24 © 2007-2012 Creative Arts & TechnologiesSensor Web | What is it?
    25. 25. OGC O&M Observations & Measurements ApprovedSensorML Sensor Model Language ApprovedTransducerML Transducer Model Language ApprovedOGC SOS Sensor Observations Service ApprovedOGC SPS Sensor Planning Service ApprovedOGC SAS Sensor Alert Service In progressOGC WNS Web Notification Services In progressSensor Web | OpenGIS Standards• SW Enablement working group at OGC havedeveloped a number of standards governing differentaspects of Sensor Web25 © 2007-2012 Creative Arts & Technologies
    26. 26. Sensor Web | What is the OGC?• Not-for-profit• International industry consortium• Founded 1994, currently 340+ members• Open Standards development by consensus processOGC MissionTo lead in the development, promotion andharmonization of open spatial standards …26 © 2007-2012 Creative Arts & Technologies
    27. 27. Sensor Web | Mozambique floods•The task under study is floods in differentparts of the world•Particular test case was flooding of Mozambique27 © 2007-2012 Creative Arts & Technologies
    28. 28. Sensor Web | Weather PredictionEUMetCastReceiving facilityEUMetCastEARS-AVHRREARS-ATOVSInternetMSGNOMADS LAADSData assimilationsubsystemNOMADSadapterLAADSadapterMODISGFSAccess nodeComputationalclustersGrid of SRIof NASU-NSAUVisualization subsystemUMNMapServerInternetOpenLayersMeteorologysubsystemWRFSI WRFProcessing subsystemSeaDASP, U10, V10Users ofmonitoring system28 © 2007-2012 Creative Arts & Technologies
    29. 29. PetrSU Cooperation with Nokia Research Centre• Since 2006• The main directions of the joint activity are software development for mobiledevices, Open Source Software training, as well as scientific research andhardware and software development for wireless sensors networks.• In 2008 the Centre of Mobile and Wireless Technologies and Applications wasfounded in PetrSU under the auspices of Nokia. At present its staff consists of8 members and 10 students of PetrSU.All above mentioned activities (concerning production cooperation) arecoordinated by the IT-Park of PetrSU with the staff more than 300employees of 20 subdivisions. IТ-Park of PetrSU continues its active searchfor new partners and customers among companies, industrial enterprises,and other Finnish organizations.29 © 2010 Anastasia Kuznetsova , Natalia Kravchenkova , University of Applied Sciences, Vaasa, FinlandSensor Web | Russian Collaboration
    30. 30. SensorML• Sensor modeling language is the cornerstone of all SWservices• It provides comprehensive description of sensorparameters and capabilities• It can be used for describing different kind of sensors:– Stationary or dynamic– Remote or in-situ– Physical measurements or simulations30 © 2007-2012 Creative Arts & Technologies
    31. 31. SensorML | Example..............<inputs><InputList><input name="ambiantTemperature"><swe:Quantity definition="urn:ogc:def:phenomenon:temperature"/></input><input name="atmosphericPressure"><swe:Quantity definition="urn:ogc:def:phenomenon:pressure"/></input><input name="windSpeed"><swe:Quantity definition="urn:ogc:def:phenomenon:windSpeed"/></input></InputList></inputs>...........................<outputs><OutputList><output name="weatherMeasurements"><swe:DataGroup><swe:component name="time"><swe:Timedefinition="urn:ogc:def:phenomenon:time“uom="urn:ogc:def:unit:iso8601"/></swe:component><swe:component name="temperature"><swe:Quantitydefinition="urn:ogc:def:phenomenon:temperatureuom="urn:ogc:def:unit:celsius"/></swe:component><swe:component name="barometricPressure"><swe:Quantitydefinition="urn:ogc:def:phenomenon:pressure“uom="urn:ogc:def:unit:bar" scale="1e-3"/></swe:component><swe:component name="windSpeed"><swe:Quantitydefinition="urn:ogc:def:phenomenon:windSpeed“uom="urn:ogc:def:unit:meterPerSecond"/></swe:component></swe:DataGroup></output></OutputList></outputs>.............31 © 2007-2012 Creative Arts & Technologies
    32. 32. Demo32 © 2007-2013 Creative Arts & Technologies
    33. 33. Estimated Number of ActiveCellular M2M Connected Devices2010 to 2020Source: Machina Research, July 20111. New connected devices,applications and services2. Lower system costs3. Simplified development4. Network operator focus andinvestmentM2M | Outlook33 © 2007-2012 Creative Arts & TechnologiesKey Trends
    34. 34. Transportation & Logistics LogisticsMedical &HealthcareIndustrial &EnergyCommunicationInfrastructureSecurity & SurveillancePublic/Private Cloud Deployment InfrastructuresInternetof ThingsM2M | Integrated Processes34 © 2007-2012 Creative Arts & Technologies, Eclipse Foundation
    35. 35. Medical Services GatewayCommunicationInfrastructureSmartPillBoxesHeartbeatSensorWeightScalesBloodPressureMedicalSmartServicesGatewayNear fieldBloodSugarInternetof Things35 © 2007-2012 Creative Arts & Technologies, Eclipse FoundationM2M | Vertical Market Scenarios
    36. 36. Logistic Services GatewayCommunicationInfrastructureHandheld &WearableDevicesRFIDReadersMedicalSmartServicesGatewaySmart ContainerInternetof Things36 © 2007-2012 Creative Arts & Technologies, Eclipse FoundationM2M | Vertical Market Scenarios
    37. 37. 37 © 2007-2012 Creative Arts & Technologies, Eclipse FoundationM2M | Tools
    38. 38. NFC38 © 2007-2013 Creative Arts & Technologies
    39. 39. NFC | StatsRegistered Mobile devices worldwide (Millions)39 © 2007-2012 Creative Arts & Technologies
    40. 40. • eNFC (enhanced NFC): Fully compliant NFC technology enhanced byISO 14443B and ISO 15693 standards on chip emulation side• eNFC is compatible with all existing and future application usingcontactless technologyReader or DeviceCommunicationChip emulationCommunicationISO 14443-BISO 15693ISO 14443-BISO 15693ISO 14443-ASony (Type C)ISO 14443-ASony (Type C)eNFCNFC-2(ECMA 352)NFC(ECMA340)NFC | What is eNFC?40 © 2007-2012 Creative Arts & Technologies
    41. 41. Exchange photosGet your e-ticketPay without cashRedeem couponsGet your ReceiptNFCPass the gateRead a map frominteractive billboardNFCNFCNFC | Use Cases41 © 2007-2012 Creative Arts & Technologies
    42. 42. Chiuaua Driving License: ISO 15693Toronto Payment: ISO 14443-B & ISO 15693Sao Paulo Transport: ISO 14443ASingapore Transport : Felica, ISO 14443BParis Transport : ISO 14443BTokyo Transport:FelicaTMLondon Transport : ISO 14443ASan Francisco Transport: ISO 14443BShenzen Transport : ISO 14443BHong Kong Transport: FelicaTMSeoul Transport : ISO 14443AJapan ID Card: ISO 14443BUS Payment: ISO 14443-B & ISO 14443AUS Access Control: ISO 15693Pakistan Passport: ISO 14443BNew Delhi Transport:FelicaTMNFC | Where to use this technologyDubai RTACopenhagen Public Transport (Rejsekort), SAS Smart Pass42 © 2007-2013 Creative Arts & TechnologiesMoscow, St. Petersburg Metro
    43. 43. Open NFC interfaces can be classified at different levels, from very high-levelinterfaces that greatly simplify the usual tasks of NFC applications, to very low-level interfaces that allow fine tuning of NFC hardware parameters forexample.High Level Interfaces:• NDEF Messages• Bluetooth and Wi-Fi pairing• Read / Write to any tag• P2P• Virtual TagsNFC | Open NFC™Starting Open NFC 4.3.0, the support for Java porting for JSR-257 devices isdiscontinued. Older releases of the stack were fully compliant with the JSR-257 standard.► Android Edition is currently the only one actively maintained withJava Binding!43 © 2007-2012 Creative Arts & Technologies
    44. 44. • 2 new JSRs for Mobile and Embedded approved• JSR-360: CLDC 8• CLDC 8 is an evolutionary update to CLDC 1.1.1 to bringthe VM, Java Language, and libraries up to datewith Java SE 8. Recently started EDR• More: http://java.net/projects/jsr360/pages/Home• JSR-361: Java ME Embedded Profile• Update IMP(-NG) to align with state-of-the-art features and current embeddeddevice market requirements.• More: http://java.net/projects/jsr361/pages/Home• Feel free to join the EG if you are JCP member or want to become oneEmbedded Standards | JSR-360, 36144 © 2007-2013 Creative Arts & Technologies, Oracle and/or its affiliates.
    45. 45. Interoperable platform for delivery oftrusted personal services High, industry-proven security Designed for the smallest siliconhardware devices Runs Java in as little as 4 KB RAM Deployed on >5 billion devicesGrowing at 1.4 bill. Devices p. yearSIM Cards, secureelements, eID, payment servicesSecure, Connected, Versatile45 © 2011, Oracle and/or its affiliates. All Rights Reserved.Security | Java Card Technology
    46. 46. Security | Java Card Technology46 © 2007-2012 Creative Arts & Technologies
    47. 47. Security | To Catch A ThiefSession ID: LTK1114Session Title: Cloud Security with Trusted ComputingAPI for JavaRoom: Antwerpen18:00 - 18:2047 © 2007-2013 Creative Arts & Technologies Images ©
    48. 48. Q & ALet„s talkAny resemblance to real persons, living or dead or public figures, is purely coincidental.
    49. 49. Eclipse – Project UOMohttp://www.eclipse.org/uomo/Units of Measurement APIhttp://www.unitsofmeasurement.orgUCUMhttp://www.unitsofmeasure.orgLinks
    50. 50. Eclipse – M2M IWGhttp://m2m.eclipse.orgOpen Geospatial Consortiumhttp://www.opengeospatial.orgJava Community Processhttp://www.jcp.orgLinks (2)
    51. 51. Contactwerner@catmedia.usoruomo@catmedia.usTwitter: @wernerkeilHashtag #EclipseUOMo

    ×