際際滷

際際滷Share a Scribd company logo
Wearables at Scale 
Deploying OSGi on an army of Cubie Trucks 
Frank Lyaruu
About me 
Frank Lyaruu 
CTO at 
Senior Technology Architect at 
@lyaruu 
11/17/14 2
About Dexels 
 Est. 2001 based in Amsterdam 
 Enterprise software for large 
companies 
 Heavily invested in OSGi 
 Focused on sports and entertainment 
11/17/14 
3
About Dexels 
 Est. 2013 
 Joint venture with Dexels 
 Custom hardware for large events 
11/17/14 
4
 Case study 
 Hardware stack 
 Software stack 
 Development chain 
 DEMO! 
5
Tomorrowland
Tomorrowland
Tomorrowland 2014 
Electronic music festival near Antwerp, 
Belgium 
 2 weekends 
 8 stages 
 ~100 hectares 
 ~100k visitors a weekend 
 ~  250 per ticket 
11/17/14 
8
Requirements
Requirements 
Design a wristband to do: 
 Access control 
 Location 
 Profiling / feedback 
 Crowd monitoring 
 Integrate with 3rd party applications 
 Something that adds to the UX 
11/17/14 
10
Access control 
 Should always work 
 Should be secure 
simplicity is essential: Passive RFID 
11/17/14 
11
Location 
 Ability to locate individuals 
 Ability to locate security personnel 
11/17/14 
12
Profiling / feedback 
 How do the visitors behave? 
 What acts are popular? 
11/17/14 
13
Crowd monitoring 
 Find hotspots in the flow of people 
 Dashboard for security personnel 
11/17/14 
14
UX 
 UX is key 
 Comfortable 
 Match the festival 
 Suitable for non-nerds 
11/17/14 
15
The plan
The setup 
 Set up base stations around the 
terrain 
 Wristbands will report status 
 The base stations triangulate and 
consolidate the data 
 Visualize and push the data to other 
applications 
 Use regular passive RFID for access 
11/17c/14ontrol 
17
Something cool 
 LED lights on the wristbands, 
integrated with the light show 
 A button to send Facebook friend 
requests 
11/17/14 
18
The protocol 
 Time slotted protocol 
 All base stations synchronise with 
each other 
 Visitor bracelets send every few 
minutes 
 Staff bracelets send every few 
seconds 
11/17/14 
19
Hardware
Hardware 
 One 3V battery for 3 days 
 Leather 
 Branded for the festival 
 < $10 per bracelet 
11/17/14 
21
Base station hardware 
22
Base station 
23
則 
24
Hardware challenges
11/17/14 
26
Base stations 
 Heat 
 Rain 
 Unreliable power 
 Unreliable network 
 Unstable mount points 
 Electromagnetic interference 
11/17/14 
27
Base station deployment 
28
Base stations 
11/17/14 
29
Sendrato Infrastructure 
LLooccaal l ddaattaacceennttrree 
HHaazzeelclcaasstt c clulusstteerr 
11/17/14 
33rrdd p paarrttyy 
30 
CCuubbieieTTrruucckk CCuubbieieTTrruucckk CCuubbieieTTrruucckk 
CClolouudd 
SSaaltlt M Maasstteerr 
LLoogg s seerrvveerr 
MMoonnggooDDbb MMoonnggooDDbb 
SSuuppeerr c coooorrddininaattoorr 
MMaannaaggeemmeenntt U UII
Base station software stack 
11/17/14 
31 
AAppaacchhee F Feelilxix 
JJaavvaa 
FFeeddoorraa 2 200 
SSaalltt aaggeenntt 
SSeennddrraattoo A Apppplilcicaattioionn
Basestation software 
BBaassee s sttaattioionn 
FFilitlteerr e evveenntt PPuubblilsishh i nin c clulusstteerr 
32 
WWrrisisttbbaannddss 
o 
Radi 
RRaaddioio D Drriviveerr OOSSGGi ie evveenntt 
LLoogg l oloccaalllyly?? 
Radi 
o
Logging 
 Custom Logback appender to Redis 
queue 
 ElasticSearch analytics 
 Kibana web interface 
33
Salt Stack 
 Configuration manager 
 Remote execution 
 Agent based 
 Versatile & Fast 
 Master running in the cloud 
34
Testing in production
Development cycle 
36 
 Pretty crude but effective: 
EEcclilpipssee MMaavveenn b buuilidld GGitit SSaaltlt FFilieleInInssttaallll
Future work 
 Distributed OSGi 
 More mature deployment model 
 Apache Karaf + Cellar 
 Pluggable network / clustering 
 Proper 3rd party API 
37
Demo
 http://youtu.be/eDZaea7OCd0 39
Thank you! 
@Sendrato 
sendrato.com 
info@sendrato.com 
40

More Related Content

Deploying OSGi on an Army of CubieTrucksSendrato powerpoint

  • 1. Wearables at Scale Deploying OSGi on an army of Cubie Trucks Frank Lyaruu
  • 2. About me Frank Lyaruu CTO at Senior Technology Architect at @lyaruu 11/17/14 2
  • 3. About Dexels Est. 2001 based in Amsterdam Enterprise software for large companies Heavily invested in OSGi Focused on sports and entertainment 11/17/14 3
  • 4. About Dexels Est. 2013 Joint venture with Dexels Custom hardware for large events 11/17/14 4
  • 5. Case study Hardware stack Software stack Development chain DEMO! 5
  • 8. Tomorrowland 2014 Electronic music festival near Antwerp, Belgium 2 weekends 8 stages ~100 hectares ~100k visitors a weekend ~ 250 per ticket 11/17/14 8
  • 10. Requirements Design a wristband to do: Access control Location Profiling / feedback Crowd monitoring Integrate with 3rd party applications Something that adds to the UX 11/17/14 10
  • 11. Access control Should always work Should be secure simplicity is essential: Passive RFID 11/17/14 11
  • 12. Location Ability to locate individuals Ability to locate security personnel 11/17/14 12
  • 13. Profiling / feedback How do the visitors behave? What acts are popular? 11/17/14 13
  • 14. Crowd monitoring Find hotspots in the flow of people Dashboard for security personnel 11/17/14 14
  • 15. UX UX is key Comfortable Match the festival Suitable for non-nerds 11/17/14 15
  • 17. The setup Set up base stations around the terrain Wristbands will report status The base stations triangulate and consolidate the data Visualize and push the data to other applications Use regular passive RFID for access 11/17c/14ontrol 17
  • 18. Something cool LED lights on the wristbands, integrated with the light show A button to send Facebook friend requests 11/17/14 18
  • 19. The protocol Time slotted protocol All base stations synchronise with each other Visitor bracelets send every few minutes Staff bracelets send every few seconds 11/17/14 19
  • 21. Hardware One 3V battery for 3 days Leather Branded for the festival < $10 per bracelet 11/17/14 21
  • 27. Base stations Heat Rain Unreliable power Unreliable network Unstable mount points Electromagnetic interference 11/17/14 27
  • 30. Sendrato Infrastructure LLooccaal l ddaattaacceennttrree HHaazzeelclcaasstt c clulusstteerr 11/17/14 33rrdd p paarrttyy 30 CCuubbieieTTrruucckk CCuubbieieTTrruucckk CCuubbieieTTrruucckk CClolouudd SSaaltlt M Maasstteerr LLoogg s seerrvveerr MMoonnggooDDbb MMoonnggooDDbb SSuuppeerr c coooorrddininaattoorr MMaannaaggeemmeenntt U UII
  • 31. Base station software stack 11/17/14 31 AAppaacchhee F Feelilxix JJaavvaa FFeeddoorraa 2 200 SSaalltt aaggeenntt SSeennddrraattoo A Apppplilcicaattioionn
  • 32. Basestation software BBaassee s sttaattioionn FFilitlteerr e evveenntt PPuubblilsishh i nin c clulusstteerr 32 WWrrisisttbbaannddss o Radi RRaaddioio D Drriviveerr OOSSGGi ie evveenntt LLoogg l oloccaalllyly?? Radi o
  • 33. Logging Custom Logback appender to Redis queue ElasticSearch analytics Kibana web interface 33
  • 34. Salt Stack Configuration manager Remote execution Agent based Versatile & Fast Master running in the cloud 34
  • 36. Development cycle 36 Pretty crude but effective: EEcclilpipssee MMaavveenn b buuilidld GGitit SSaaltlt FFilieleInInssttaallll
  • 37. Future work Distributed OSGi More mature deployment model Apache Karaf + Cellar Pluggable network / clustering Proper 3rd party API 37
  • 38. Demo
  • 40. Thank you! @Sendrato sendrato.com info@sendrato.com 40

Editor's Notes

  • #3: Last name for twitter handle! 1m
  • #5: Means wireless in Esperanto. (We think) 3m
  • #6: Ask questions when you have them
  • #7: 5m
  • #8: Anyone heard of Tomorrowland? Big deal
  • #9: pretty scary launch customer 6m
  • #11: Not the typical enterprise requirements
  • #12: People can get hurt when access control fails 9m
  • #14: typical big data questions
  • #18: 13m
  • #24: Cubie = power pi, with onboard storage ARM architecture
  • #25: 17m
  • #30: +5
  • #31: +8 Also dmx 25 min
  • #32: 27m
  • #33: 30m
  • #34: Server in the cloud because of possible network config problems
  • #35: 34m master in the cloud because of possible routing problems agent based faster and more resilient to network probe (Ansible)
  • #36: We knew wed be hacking all weekend
  • #39: +3 37 min 41 min
  • #40: 42 min.