Download - Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Transcript
Page 1: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

Probably  NERD   Handsome  Businessman  Focused  on  Verbs   Black-­‐Belt  AdjecMves  

deploy()

run()

debug()add()

compile()

reverse()

test()invoke()

detect()

commit()

refactor()

duplicate()

update()

comment()

exec()

listen()let()

develop()

copy()

push()

submit()

efficient

empathetic

enableruniqueness sustainable

revolutionary

resolutiveinnovative

cost-saving

powered

renewable

simplicity

funded

managed

valuable

effective

Page 2: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

2010200820001994

Didi Dache

Source:  Kauffman  FoundaMon  

95%new jobs created by startups that have less than 5 years

Page 3: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

IoT    in  the    Middle  of…    from  Nerd    to  Company  

3  

Nino  Guarnacci  [email protected]  

Page 4: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

•  BeZer  Customer  Experience  

•  New  Business  Models  

•  OperaMonal  Improvements  

•  Increased  Efficiency  

Grow  Revenue  

Reduce  Cost  

Driving  New  IoT  Services  

•  HVAC  •  LighMng  •  Safety  and  Security  •  Resource  UMlizaMon  •  Maintenance  

•  PreventaMve  Maintenance  •  Remote  DiagnosMcs  •  Safety  Systems  •  V2X  and  C2X  •  Fleet  and  Use  Management  

Shareholder    Value  

DEMO

Page 5: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   5  

Supplier,  Warehouse  

Industrial  Manufacturing    

Shop  Floor  

Manufacturing   Distribu?on  

Consumer  Goods  

Upstream  Extrac?on   Processing   Downstream  Distribu?on  

Oil  &  Gas  

Customer  

In  Storage  In  Transit  

DEMO

Page 6: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  DEMO

Page 7: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

IoT  standards  compeMng…  (and  many  more)  

Thread  •  Thread  is  a  networking  protocol  with  security  and  low-­‐power  features  that  make  it  beZer  for  connecMng  household  devices  than  other  technologies  such  as  Wifi,  NFC,  Bluetooth  or  ZigBee.  

“Chris  Boross,  Nest  product  manager”  

HomeKit  •  HomeKit  is  a  framework  in  iOS  8  for  communicaMng  with  and  controlling  connected  accessories  where  you  can  create  acMons  to  control  those  devices.  

“Apple  developer  portal”  

Zwave  /  ZigBee  •  Z-­‐Wave  is  a  wireless  communicaMons  protocol  designed  for  remote  control,  use  technology  with  low-­‐power  RF  radio  embedded  or  retrofiZed  into  electronic  devices  and  systems.  

“Wikipedia”  

7  

AllJoyn  

Open  Interconn

ect  

Consor?um  

Industrial  Int

ernet  

Consor?um  

DEMO

Page 8: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

Two  different  approaches  

Adapt,  Integrate  and  Connect  to  devices  

Separate    Business  Logic  from  network  and  aggregaMon  

8  DEMO

Page 9: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

MVC  is  used  from  most  successful  language  frameworks  for:  – Facilitate  reuse  of  logic  – separaMon  of  concerns  – less  coupling  between  layers  

DEMO

Page 10: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

Immediate  advantage  for  applicaMons:  – Modular  – Scalable  – Easy  to  maintain  and  grow  

DEMO

Page 11: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

Reuse  the  same  concept  to:  – Simplify  Devices  and  Gateways  IntegraMon  – Standardize  Business  Logic  – Integrate  with  Enterprise  Backend  

…in  IoT  landscape  

Gateways  

Devices  

DEMO

Page 12: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Oracle  ConfidenMal  –  Internal/Restricted/Highly  Restricted   12  

M  like  Business    Logic  

DEMO

Page 13: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Oracle  ConfidenMal  –  Internal/Restricted/Highly  Restricted   13  

Different  Standards  Same  Logic    Rapid  IntegraMon  Fast  Growing  Simple  Upgrading  Direct  Deploy  Bit  Debugging  

DEMO

Page 14: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  DEMO

ProtocolInterpreter

Pulse SensorsAceptor

Page 15: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  DEMO

Min - MaxProcessor

Std DeviationProcessor

Page 16: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  DEMO Oracle  ConfidenMal  –  Internal/Restricted/Highly  Restricted   16  

Asynch ThreadHook Dispatcher

Abstract TemplateHook

Page 17: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Oracle  ConfidenMal  –  Internal/Restricted/Highly  Restricted   17  

IoT  &  Cloud  enable  enterprise  faster  and  at  lower  risk:  –  Enabling  connecMvity  for  a  devices  directly  

or  through  3rd  party  clouds  or  via  gateways  

–  less  coupling  between  the  layers  

Building  Blocks  for  IoT  

DEMO

Page 18: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Oracle  ConfidenMal  –  Internal/Restricted/Highly  Restricted   18  

(Demo)  Let  see  it  in  AcMon  :  Java  Embedded  +  Event  Processing  Server  

Things:  –  Light  Sensor  –  Seismometer  Sensor  

–  Temperature  Sensor  

–  MoMon  Sensor  

–  Energy  Metering  

–  Siren  Actuator  Alarm  

–  Power  Switch    

Protocol:  –  Z-­‐Wave  

–  TCP/IP  –  Rest-­‐JSON  –  CQL  -­‐  SQL  

Node:  –  Z-­‐Wave  Gateway  

–  3G/WiFi  Router  

–  Raspberry  PI  Mod.  B  

SoSware:  –  Java  7  Embedded  

–  Oracle  Event  Processor  11c  –  Z-­‐Wave  LUA  5.2  

DEMODEMO

Page 19: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |  

(Demo)  Let  see  it  in  AcMon  :    Mobile  ApplicaMon  Framework  +  Java  7  

Func?onali?es:  –  Device  Registry  –  Sensor  DetecMons  –  Hooks  ConfiguraMon  –  Thresholds  DefiniMon    –  ViolaMons  AlerMng    –  Purge  Data  

PlaTorm:  –  IOS  8.2  –  Android  5.0  

(API  21)  

SoSware:  –  Java  7  –  Mobile  ApplicaMon  

Framework  2.1  

DEMODEMO

Page 20: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Oracle  ConfidenMal  –  Internal/Restricted/Highly  Restricted   20  

(Demo)  Let  see  it  in  AcMon  

MAF OEP

Demo  

DEMODEMO

Page 21: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

Copyright  ©  2014  Oracle  and/or  its  affiliates.  All  rights  reserved.    |   Oracle  ConfidenMal  –  Internal/Restricted/Highly  Restricted   21  

Let  DIY  

MAF

OEP

Page 22: Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Mesh - Nino Guarnacci - Codemotion Roma 2015

22