javaone 2015 - con6489 - smart open spaces powered by low cost computers

40
Copyright © 2015 Accenture All rights reserved. Smart Open Spaces Powered by Java ME, Java SE and Single Board Computers Jorge Hidalgo & Julio Palma JavaOne Conference – CON6489 – October 2015

Upload: jorge-hidalgo

Post on 11-Apr-2017

318 views

Category:

Software


2 download

TRANSCRIPT

Page 1: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved.

Smart Open Spaces Powered by Java ME, Java SE and Single Board ComputersJorge Hidalgo & Julio PalmaJavaOne Conference – CON6489 – October 2015

Page 2: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 2

Presenter Introductions

Jorge Hidalgo @_deorshttp://deors.wordpress.comSenior Technology Architect – Accenture Delivery Center in Spain

Capability Lead – Custom Distributed & Architecture domain

Father of two kids, husband, whistle player, video gamer, sci-fi junkie, Raspberry Pi fan, gadgets maniac... My other car is a Millenium Falcon.

Julio Palma @restalionTechnology Architect – Accenture Delivery Center in Spain

Team Lead – Custom Distributed & Architecture domain

Mountain biker, SW & LOTR fan, gamer, Nyarlathotep enemy, father of two kids who show me something new every day, husband. In my spare time I work at Accenture.

Page 3: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 3

Objectives for the Session

• Describe Open Spaces and common use cases• Introduce the proposed Architecture• Highlights of how the solution works• Examples• Live Demo

Page 4: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

4Copyright © 2015 Accenture All rights reserved.

What are Open Spaces and common use cases

Page 5: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 5

Smart Open Spaces

Page 6: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 6

Smart Open Spaces

Page 7: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 7

Smart Open Spaces

Page 8: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 8

Smart Open Spaces

Page 9: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 9

Smart Open Spaces

Page 10: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 10

Smart Open Spaces

Department stores, smaller stores, hypermarkets

Page 11: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 11

Smart Open Spaces

Department stores, smaller stores, hypermarkets

Museums, airports, train/bus stations

Page 12: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 12

Smart Open Spaces

Department stores, smaller stores, hypermarkets

Museums, airports, train/bus stations

Hospitals

Page 13: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 13

Smart Open Spaces

Department stores, smaller stores, hypermarkets

Museums, airports, train/bus stations

Manufacturing plants, oil rigs

Hospitals

Page 14: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 14

Smart Open Spaces

Department stores, smaller stores, hypermarkets

Museums, airports, train/bus stations

Manufacturing plants, oil rigs

Offices

Hospitals

Page 15: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 15

Smart Open Spaces

Department stores, smaller stores, hypermarkets

Museums, airports, train/bus stations

Manufacturing plants, oil rigs

Offices

City DowntownsHospitals

Page 16: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 17

Smart Open SpacesI wish I could know what is

exactly happening,real-time and historic info

Page 17: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 18

Smart Open SpacesSmart in this context mean• Presence Zones

platform to enable intelligent decision making

• Real-time decisions

• Strategy decisions

Page 18: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 19

Smart Open SpacesSmart in this context mean

• Track people activity through the radio signals of their personal devices• Smartphones• Wearables• Laptops• Tablets

Page 19: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 20

Smart Open SpacesSmart in this context mean

• Track people activity through the radio signals of their personal devices• Smartphones• Wearables• Laptops• Tablets

Page 20: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 21

Smart Open SpacesSmart in this context mean

• Track people activity through the radio signals of their personal devices• Smartphones• Wearables• Laptops• Tablets

Page 21: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 22

Smart Open SpacesSmart in this context mean

• Track people activity through the radio signals of their personal devices• Smartphones• Wearables• Laptops• Tablets

Page 22: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 23

Smart Open Spaces• Now we can use collected information in real time:

• Where are the customers located at this exact moment in time?

• Which places are capturing the customer attention?

Page 23: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 24

Smart Open Spaces• Now we can use collected information in real time:

• Where are the customers located at this exact moment in time?

• Which places are capturing the customer attention?

• Or analyse aggregated data for insights on people habits• Which are the paths that customers follow more frequently inside the

store?

• A sale on selected items started yesterday at noonHow was the activity in the surrounding area compared to normal days?

• What is the activity pattern along the day in the electronics department?That information would be helpful to plan working shifts better

Page 24: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

27Copyright © 2015 Accenture All rights reserved.

Proposed Architecture

Page 25: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 28

Smart Open Spaces

Why develop a new solution for Presence Zones?

“Vendor X already has a product named Y that does exactly this.”

Our approach was born with one main objective

TCO should be as low as possible

To enable that objective

- Leverage open standards, minimise cost of software licenses

- Leverage low-cost, easy to obtain devices

- Simple & lightweight, but easy to scale

Page 26: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 29

Architectural Approach

o Java and Python as programming languages/runtimes• Device sniffing through Java ME 8 midlet or Python script (for devices that cannot run ME... yet)

• Data collector through Java SE 8 server

o Bluetooth LE• More precise than WiFi

• Not as frequently used compared with WiFi, but usage is growing fast thanks to wearables

o Single Board Computers• Raspberry Pi A+, B+, 2 B

• Beaglebone Black

• Arduino

Page 27: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 30

Architectural Approach

Sniff devices on spot Send data to collector Correlate and store Generate reports (daily, on demand, real-time)

Page 28: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 31

Architectural Approach

Device (Nexus 5) detected by RPis & Device (Pebble) detected by RPi Device (iPhone 6) detected by RPi

Four packets sent to collectorMatched by MAC address and timeframeOnly three events are generated

Page 29: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 32

Architectural Approach

Device (Nexus 5) detected by RPis & After some time, detected only by RPi After some time, detected only by RPi

Events are timestampedEasy to obtain time series for a given device

Page 30: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 33

Architectural Approach – Scaling Out

Data Collector

EdgeDevices

Data Centre /Cloud

Analytics

Historic Info

Real-Time Info

Sockets

Sockets

Sockets

MQTT

Internet DomainIntranet Domain

Page 31: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 34

Architectural Approach – Scaling Out

Page 32: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 35

Architectural Approach – Scaling Out

acme/activity/europe/uk/london

acme/activity/europe/uk/edinburgh/electronics

acme/activity/+/+/+/electronics

acme/activity/americas/#

acme/activity/#

Page 33: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

36Copyright © 2015 Accenture All rights reserved.

Examples and Demo

Page 34: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 37

Examples and Demo – Reports

Distribution of time at beacon per device

Average time per beacon

Page 35: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 38

Examples and Demo – Reports

Frequent Paths

Page 36: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 39

Examples and Demo – 3D Real-Time

Page 37: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 40

Examples and Demo – Hot Zones

Page 38: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

41Copyright © 2015 Accenture All rights reserved.

Summary

Page 39: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 42

Conclusion – Lessons Learned

Raspberry Pis are cheap but powerful enough to take multiple roles simultaneously: Bluetooth device detection Collector device correlating data and producing reports

When multiple languages can do the job, leverage the skills of your team More complex platforms like OEP are very useful...

...but can be overkill – mind the KISS principle Open standards facilitate integration and addition of new features in the

future

Page 40: JavaOne 2015 - CON6489 - Smart Open Spaces Powered by Low Cost Computers

Copyright © 2015 Accenture All rights reserved. 43

If you want to get in touch

Public Accenture Portal Sub-site for Application Services for Java:

https://www.accenture.com/us-en/service-enterprise-systems-java.aspx

Follow (and interact with) us on Twitter:

https://twitter.com/AccentureTech

https://twitter.com/_deors

https://twitter.com/restalion