SlideShare una empresa de Scribd logo
1 de 32
Descargar para leer sin conexión
Beyond the Device
Extending the Device Experience with Wireless Peripherals
JAM805
John Murray, Ranbijay Kumar
September 26-27, 2013
1
Agenda
2
Introduc)on	
  
What’s	
  it	
  all	
  about?	
  
NFC	
  
WiFi	
  Direct	
  
Bluetooth	
  Low	
  Energy	
  
What’s it all about?
3
The Future!
“Wearables and connectables will herald a fast-changing local
network of customer context. Devices worn on or near the body
that sense and relay information will be embedded in clothing,
accessories, and even the body itself.17 First-generation
wearables like the Nike+ FuelBand and Fitbit will give way to
internal biomedical instruments, shoes that generate power to
recharge devices, and golf clubs that provide swing telemetry.
Connectable home alarm systems, automobiles, and scales will
function in a similar way. Developers will tap into these new
information sources, with a phone or tablet acting as a local
combination of router and remote-control device. Client-side
developers will release updates faster than ever to dynamically add
support for new devices in the extended local network.”
4
Source: Forrester Research Inc.: “The Future of Mobile Application Development” 2013
Imagine!!
Ÿ  Your home anticipates your arrival since it’s in
contact with your smart phone
Ÿ  On arriving home you unlock your door using
your smart phone
5
Ÿ  Lights and heating are automatically adapted when rooms
detect that they are occupied.
Ÿ  Control and manage household services such as heating,
lighting, blinds, security, entertainment and data
Ÿ  Lights and heating automatically turn down when rooms
are vacated and everything can be switched off with one
button on leaving.
Crazy? ... No!
6
Potential Experience: Fitness
Ÿ  Fitness app connects to running shoes via Bluetooth LE
Ÿ  Notification received in Hub via Push from a Fitness BBM
Channel
„  “Flash Special: Log a 5km+ run in the next 24 hours and get 20% off your
next purchase online”
Ÿ  Your run is tracked and analyzed using Bluetooth LE and LBS
Ÿ  Fitness app’s Scoreloop integration notifies user
„  “You’re in 2nd place this week at 21km total! 4km more and you’ll be on
top of the leaderboard”
Ÿ  Achievement gets posted via Share to social media and with
BBM trophy avatar
Ÿ  Minimized app motivates you to run more (Active Frames):
„  “4km more and you’ll be the winner”
7
Other Potential Experiences!
Ÿ  Sports equipment
with sensors –
how about this
Basketball?
8
Ÿ  Location aware beacons
Ÿ  Indoor Navigation (e.g.
Museum Tour)
Ÿ  In-store marketing/
payment
Limited only by ...
Ÿ  ... your imagination
Ÿ  BlackBerry 10 has all the
capabilities you need to start
exploring this area as a
developer
Ÿ  Let’s take a look in more detail
9
NFC
We cover NFC in Session JAM803
10
What can I do with NFC?
Ÿ  Enable users to interact securely and efficiently with their environment
Ÿ  Tap to share; Tap to pair; Tap to pay; Tap to access; Tap to…
Ÿ  Smart Tags: Tags can give the user information or automate common tasks
„  Tag reading and writing is supported
Ÿ  Tag Emulation: Tag functionality can also be replicated by the phone’s NFC antenna
Ÿ  Ticketing and Access: Allow users to gain access to workplaces, secure areas,
theatres, events, trains, buses etc.
„  BlackBerry - first phones to be HID-enabled, replacing security access badges
Ÿ  Data Exchange: Exchange pictures, messages or electronic items between devices
„  Automatically configure/connect devices by tapping them together
11
WiFi Direct
12
13
•  Peer-to-peer Wi-Fi connection without the need for wireless access points
(APs)
•  Typically short-lived, application-controlled connections for a specific
purpose
•  One device acts as Wi-Fi Direct Group Owner (GO) others are Group Clients
•  Backward compatible with existing Wi-Fi devices (GO looks like an AP to
legacy devices)
•  Security is WPA2 Personal using Wi-Fi Protected Setup: Push Button or PIN-
based
•  Simply establishes an IP connection on which services can run
•  & Share)
Wi-Fi Direct – What is it?
14
•  BlackBerry Tag NFC-initiated file transfer uses Direct
for faster performance
•  File sharing also offers Wi-Fi Direct
•  Mobile Hotspot operates as Wi-Fi Direct Group Owner
•  Saves battery when all clients are Direct-capable
•  DEMO!
Wi-Fi Direct – Use Cases
Bluetooth Low Energy
15
Bluetooth Low Energy Basics
16
Op)mised	
  for	
  ultra	
  low	
  power	
  
• Different	
  from	
  Classic	
  Bluetooth	
  (Headsets,	
  
Serial	
  Port,	
  ...	
  )	
  
• Smarter,	
  more	
  Efficient,	
  rather	
  than	
  Faster	
  
• Powered	
  by	
  small	
  buIon	
  cells	
  like	
  this	
  
• Perfect	
  for	
  devices	
  like	
  sensors	
  (Heart	
  Rate	
  
Monitors,	
  Wearable	
  technology,	
  ..)	
  	
  
• An	
  enabler	
  for	
  the	
  Internet	
  of	
  Things	
  
Radio Layer
37
15
31
26
9
10
6
33
38
22
7
27
23
18
32
11
2
16
34
28
12
13
19
8
29
34
3
14
20
25
35
36
17
0
4
21
39
5
30
1
Wi-Fi
Channel 1
Wi-Fi
Channel 6
Wi-Fi
Channel 11
Advertising
Channel 37
(2402 MHz)
Advertising
Channel 38
(2426 MHz)
Advertising
Channel 39
(2480 MHz)
Frequency Hopping Frequency Hopping
Others are Data
Channels
Robust	
  and	
  Reliable	
  
• Retains	
  ability	
  to	
  operate	
  in	
  noisy	
  
radio	
  environments	
  
• Shares	
  spectrum	
  with:	
  
• WiFi	
  
• DECT	
  cordless	
  phones	
  
• Microwave	
  ovens	
  
• Similar	
  channel	
  structure	
  to	
  
classic	
  Bluetooth	
  
• Adap%ve	
  Frequency	
  Hopping	
  
Bluetooth LE devices interaction
Advertiser
Slave
Master /
Scanner
Scanner
Slave
Slave
Advertiser
Advertiser
Advertises
Advertises
Advertises
Advertises
Connection
Connection
Connection
Various	
  Roles	
  
• Adver%ser	
  
• “Here	
  I	
  am!”	
  
• Scanner	
  
• “Who’s	
  there?”	
  
• Ini%ator	
  
• “Can	
  I	
  connect	
  to	
  you?”	
  
• Master	
  
• “I’m	
  in	
  charge!”	
  
• Slave	
  
• “I’ll	
  respond	
  to	
  requests!”	
  
Bluetooth Low Energy Services
Use Case
Use Case
Use Case
Characteristic
Characteristic
Characteristic
Characteristic
Request
Response
GATT Client GATT Server
Service
Service
...
...
Indication
Notification
Acknowledgement
Applica)ons	
  use	
  this	
  model	
  
•  As	
  a	
  Developer	
  you	
  will	
  work	
  with	
  services	
  
•  Services	
  
•  Client	
  
•  Make	
  requests	
  
•  Interact	
  with	
  Characteris)cs	
  
•  Server	
  
•  Responds	
  to	
  requests	
  
•  Manage	
  Characteris)cs	
  
•  Can	
  also	
  send	
  events	
  called	
  
•  Indica%ons	
  	
  
•  No%fica%ons	
  
...
...
Characteristics
Primary Service <<GAP>>
Primary Service <<GATT>>
Primary Service <<Temperature>>
<<Device Name>> “XYZ Thermometer”
<<Appearance>> <<Thermometer>>
<<Attribute Opcodes Supported>> 0x03fdf
<<Temperature Celsius>> 0x0801
(Note: by specification 0x0801 = 2049 * 0.01 deg C = 20.49 C )
More	
  than	
  just	
  numbers	
  or	
  strings	
  
•  Uniquely	
  universally	
  iden)fied	
  
•  UUIDs	
  (16-­‐	
  or	
  128-­‐bits)	
  
•  Registered	
  by	
  Bluetooth	
  SIG	
  
•  Used	
  to	
  
•  Iden)fy	
  device	
  (GAP)	
  
•  Describe	
  capabili)es	
  (GATT)	
  
•  Applica)on	
  aIributes	
  
•  Permissions	
  
•  Have	
  associate	
  scale	
  (	
  e.g.	
  )	
  
•  Temp	
  (Celsius,	
  Kelvin	
  etc)	
  
•  Pressure	
  (	
  mmHg,	
  Nm-­‐2)	
  
Examining GATT Services
Sample application review
22
HeartMonitor - BT LE Notifications
GATT Notifications
Heart rate measurement values
Coding Recipe - High Level
24
INITIALISATION	
  
DEVICE	
  DISCOVERY	
  AND	
  SELECTION	
  
MONITOR	
  
Coding Recipe - Initialisation
25
• bt_device_init	
  
• ini)alise	
  the	
  Bluetooth	
  device	
  and	
  library	
  	
  
• bt_ldev_set_power	
  
• switch	
  the	
  Bluetooth	
  radio	
  on	
  
• bt_ga@_init	
  
• specify	
  call	
  	
  back	
  func)ons	
  for	
  GATT	
  events	
  
Ini)alisa)on	
  
Coding Recipe - Device
Discovery
26
•  bt_disc_start_inquiry	
  
•  start	
  scanning	
  for	
  Bluetooth	
  devices	
  
•  delay(5)	
  
•  bt_disc_cancel_inquiry	
  
•  we’ve	
  waited	
  long	
  enough	
  so	
  cancel	
  the	
  scan	
  
•  bt_disc_retrieve_devices	
  
•  retrieve	
  list	
  of	
  Bluetooth	
  devices	
  that	
  are	
  within	
  range	
  
•  bt_rdev_get_type	
  
•  check	
  devices	
  for	
  being	
  LE	
  devices.	
  Disregard	
  those	
  that	
  are	
  not.	
  
•  bt_rdev_get_services_ga@	
  
•  examine	
  services	
  supported	
  by	
  each	
  found	
  device	
  and	
  filter	
  those	
  that	
  do	
  not	
  
support	
  the	
  service	
  we	
  need	
  
Device	
  Discovery	
  and	
  Selec)on	
  
Coding Recipe - Monitoring #1
27
•  bt_ga@_connect_service	
  	
  
•  connect	
  to	
  the	
  heart	
  rate	
  service	
  on	
  the	
  selected	
  device	
  	
  
•  ga@_service_connected	
  
•  your	
  call	
  back	
  func)on,	
  called	
  when	
  connec)on	
  to	
  the	
  selected	
  service	
  is	
  
achieved	
  
•  bt_ga@_reg_no%fica%ons	
  
•  register	
  for	
  GATT	
  no)fica)ons	
  from	
  the	
  service	
  we	
  connected	
  to	
  
•  bt_ga@_enable_no%fy	
  
•  indicate	
  the	
  specific	
  characteris)cs	
  we	
  want	
  to	
  receive	
  no)fica)ons	
  for	
  
•  no%fica%ons_cb	
  
•  your	
  call	
  back	
  func)on.	
  Receive	
  a	
  no)fica)on	
  for	
  a	
  characteris)c	
  of	
  interest	
  
here	
  
Monitoring	
  
Coding Recipe - Monitoring #2
28
• bt_ga@_characteris%cs_count	
  
• Find	
  out	
  how	
  many	
  characteris)cs	
  this	
  service	
  offers	
  
• bt_ga@_characteris%cs	
  
• Obtain	
  a	
  list	
  of	
  the	
  service’s	
  supported	
  
characteris)cs	
  
• bt_ga@_enable_no%fy	
  
• Enable	
  no)fica)ons	
  for	
  a	
  selected	
  characteris)c	
  
Register	
  for	
  GATT	
  no)fica)ons	
  
Bizarre Apps – Heart Monitor
29
Ÿ  Two of my crazy
colleagues from
London took this
one step further
Ÿ  Control a music
track using your
heart rate
Ÿ  Let’s give that a
go here!!!!!!!
Ÿ  Ran???? Don (@donturner) and Luca (@blackberryluca) in their Bizarre
Apps Laboratory deep underground the UK Technical Centre
Close
30
How can I find out more?
31
•  Code	
  
•  Full	
  source	
  code	
  available	
  on	
  Git	
  Hub	
  
hIps://github.com/blackberry/Cascades-­‐Community-­‐Samples	
  	
  
•  Ar%cle	
  
•  A	
  more	
  detailed	
  Ar)cle	
  is	
  available	
  on	
  the	
  Support	
  Forums	
  
hIp://supporgorums.blackberry.com	
  
•  Contact	
  us	
  if	
  you	
  have	
  ques%ons	
  
•  TwiIer	
  
•  John	
  Murray	
  @jcmrim	
  
•  Mar)n	
  Woolley	
  @mdwrim	
  
•  Ranbijay	
  Kumar	
  @ranbijay	
  
Resources	
  
THANK YOU
JAM805
John Murray, Ranbijay Kumar
September 26-27, 2013
32

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Getting Physical with Web Bluetooth - Uri Shaked, BlackBerry
Getting Physical with Web Bluetooth - Uri Shaked, BlackBerryGetting Physical with Web Bluetooth - Uri Shaked, BlackBerry
Getting Physical with Web Bluetooth - Uri Shaked, BlackBerry
 
IoT Broker
IoT BrokerIoT Broker
IoT Broker
 
Osiot13 IoT buildout
Osiot13 IoT buildoutOsiot13 IoT buildout
Osiot13 IoT buildout
 
Global Azure boot camp 2015 - Microsoft IoT Solutions with Azure
Global Azure boot camp 2015 - Microsoft IoT Solutions with AzureGlobal Azure boot camp 2015 - Microsoft IoT Solutions with Azure
Global Azure boot camp 2015 - Microsoft IoT Solutions with Azure
 
Successful Industrial IoT Patterns
Successful Industrial IoT PatternsSuccessful Industrial IoT Patterns
Successful Industrial IoT Patterns
 
Webinar IoT Cloud Platforms and Middleware for Rapid Application Development
Webinar IoT Cloud Platforms and Middleware for Rapid Application DevelopmentWebinar IoT Cloud Platforms and Middleware for Rapid Application Development
Webinar IoT Cloud Platforms and Middleware for Rapid Application Development
 
How to Implement Conversational IVR
How to Implement Conversational  IVRHow to Implement Conversational  IVR
How to Implement Conversational IVR
 
Telerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXT
Telerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXTTelerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXT
Telerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXT
 
Internet of Things propositie - Enterprise IOT - AMIS - Conclusion
Internet of Things propositie - Enterprise IOT - AMIS - ConclusionInternet of Things propositie - Enterprise IOT - AMIS - Conclusion
Internet of Things propositie - Enterprise IOT - AMIS - Conclusion
 
Cubeacon Smart Retail Industry with iBeacon Technology
Cubeacon Smart Retail Industry with iBeacon TechnologyCubeacon Smart Retail Industry with iBeacon Technology
Cubeacon Smart Retail Industry with iBeacon Technology
 
CIS 2015- IoT? The ‘I’ needs to be ‘Identity’- Paul Madsen
CIS 2015- IoT? The ‘I’ needs to be ‘Identity’- Paul MadsenCIS 2015- IoT? The ‘I’ needs to be ‘Identity’- Paul Madsen
CIS 2015- IoT? The ‘I’ needs to be ‘Identity’- Paul Madsen
 
Designing For Interoperability in Mobile
Designing For Interoperability in MobileDesigning For Interoperability in Mobile
Designing For Interoperability in Mobile
 
Mobile interoperability and business productivity
Mobile interoperability and business productivityMobile interoperability and business productivity
Mobile interoperability and business productivity
 
PechaKucha - "Siri, start presentation 'HomeKit'"
PechaKucha - "Siri, start presentation 'HomeKit'"PechaKucha - "Siri, start presentation 'HomeKit'"
PechaKucha - "Siri, start presentation 'HomeKit'"
 
IoT material revised edition
IoT material revised editionIoT material revised edition
IoT material revised edition
 
Azure IoT - Global Azure Bootcamp 2019
Azure IoT - Global Azure Bootcamp 2019Azure IoT - Global Azure Bootcamp 2019
Azure IoT - Global Azure Bootcamp 2019
 
An IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m servicesAn IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m services
 
Azure IoT services - overview, SenZations 2015
Azure IoT services - overview, SenZations 2015Azure IoT services - overview, SenZations 2015
Azure IoT services - overview, SenZations 2015
 
2016 Public Safety Vision Strategy Direction - Avaya
2016 Public Safety Vision Strategy Direction - Avaya2016 Public Safety Vision Strategy Direction - Avaya
2016 Public Safety Vision Strategy Direction - Avaya
 
Creating an Internet of Everything
Creating an Internet of Everything Creating an Internet of Everything
Creating an Internet of Everything
 

Similar a JAM805 - Beyond the Device

Bw13 session2 app_dev_presenter_final
Bw13 session2 app_dev_presenter_finalBw13 session2 app_dev_presenter_final
Bw13 session2 app_dev_presenter_final
Blair Poloskey
 
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
Shakacon
 
Kavya racharla ndh-naropanth_fin
Kavya racharla ndh-naropanth_finKavya racharla ndh-naropanth_fin
Kavya racharla ndh-naropanth_fin
PacSecJP
 
IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014
IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014
IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014
Brian Knopf
 

Similar a JAM805 - Beyond the Device (20)

Hack your business android+beacons+big data
Hack your business  android+beacons+big dataHack your business  android+beacons+big data
Hack your business android+beacons+big data
 
Bw13 session2 app_dev_presenter_final
Bw13 session2 app_dev_presenter_finalBw13 session2 app_dev_presenter_final
Bw13 session2 app_dev_presenter_final
 
Can a browser become an IoT Gateway?
Can a browser become an IoT Gateway?Can a browser become an IoT Gateway?
Can a browser become an IoT Gateway?
 
Bluetooth low energy final version
Bluetooth low energy final versionBluetooth low energy final version
Bluetooth low energy final version
 
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
 
Kavya racharla ndh-naropanth_fin
Kavya racharla ndh-naropanth_finKavya racharla ndh-naropanth_fin
Kavya racharla ndh-naropanth_fin
 
20130226 How Personal Is Your Cloud?
20130226 How Personal Is Your Cloud?20130226 How Personal Is Your Cloud?
20130226 How Personal Is Your Cloud?
 
Particle Keynote with Zach Supalla
Particle Keynote with Zach SupallaParticle Keynote with Zach Supalla
Particle Keynote with Zach Supalla
 
Wearables, Things & Apps - Mobile Dev + Test '15
Wearables, Things & Apps - Mobile Dev + Test '15Wearables, Things & Apps - Mobile Dev + Test '15
Wearables, Things & Apps - Mobile Dev + Test '15
 
How to use Bluetooth® Smart to control your embedded device with a mobile device
How to use Bluetooth® Smart to control your embedded device with a mobile deviceHow to use Bluetooth® Smart to control your embedded device with a mobile device
How to use Bluetooth® Smart to control your embedded device with a mobile device
 
IoT and the Future of work
IoT and the Future of work IoT and the Future of work
IoT and the Future of work
 
THAT_2023_BLE.pdf
THAT_2023_BLE.pdfTHAT_2023_BLE.pdf
THAT_2023_BLE.pdf
 
Internet of things, and rise of ibeacons
Internet of things, and rise of ibeaconsInternet of things, and rise of ibeacons
Internet of things, and rise of ibeacons
 
Successful Industrial IoT patterns
Successful Industrial IoT patterns Successful Industrial IoT patterns
Successful Industrial IoT patterns
 
MongoDB Mobile
MongoDB Mobile MongoDB Mobile
MongoDB Mobile
 
Not another *$#@ app: How to avoid IoT fatigue
Not another *$#@ app: How to avoid IoT fatigueNot another *$#@ app: How to avoid IoT fatigue
Not another *$#@ app: How to avoid IoT fatigue
 
IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014
IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014
IoT_and_the_Impact_on_Security_Brian_Knopf_ISSA-OC_July-2014
 
Phani Pandrangi - The 5 Ecosystem Partners You Need in Your Address Book. Kii
Phani Pandrangi - The 5 Ecosystem Partners You Need in Your Address Book. KiiPhani Pandrangi - The 5 Ecosystem Partners You Need in Your Address Book. Kii
Phani Pandrangi - The 5 Ecosystem Partners You Need in Your Address Book. Kii
 
Connecting devices to the internet of things
Connecting devices to the internet of thingsConnecting devices to the internet of things
Connecting devices to the internet of things
 
Introduction to FIWARE Open Ecosystem
Introduction to FIWARE Open EcosystemIntroduction to FIWARE Open Ecosystem
Introduction to FIWARE Open Ecosystem
 

Más de Dr. Ranbijay Kumar

Más de Dr. Ranbijay Kumar (12)

BlackBerry10: "Built For BlackBerry (BFB)"
BlackBerry10: "Built For BlackBerry (BFB)"BlackBerry10: "Built For BlackBerry (BFB)"
BlackBerry10: "Built For BlackBerry (BFB)"
 
JAM844 - Building Apps that Sense, Understand and Adapt
JAM844 - Building Apps that Sense, Understand and AdaptJAM844 - Building Apps that Sense, Understand and Adapt
JAM844 - Building Apps that Sense, Understand and Adapt
 
JAM803-How the Use of NFC is Evolving
JAM803-How the Use of NFC is EvolvingJAM803-How the Use of NFC is Evolving
JAM803-How the Use of NFC is Evolving
 
Ranbijay Kumar - BlackBerry Jam Americas 2013
Ranbijay Kumar - BlackBerry Jam Americas 2013Ranbijay Kumar - BlackBerry Jam Americas 2013
Ranbijay Kumar - BlackBerry Jam Americas 2013
 
BlackBerry10 and iOS app SDK/Platform Comparison
BlackBerry10 and iOS app SDK/Platform ComparisonBlackBerry10 and iOS app SDK/Platform Comparison
BlackBerry10 and iOS app SDK/Platform Comparison
 
Online Industry - New Era
Online Industry - New EraOnline Industry - New Era
Online Industry - New Era
 
BlackBerry10: Blurring the Boundaries between HTML5 & Native Apps
BlackBerry10: Blurring the Boundaries between HTML5 & Native AppsBlackBerry10: Blurring the Boundaries between HTML5 & Native Apps
BlackBerry10: Blurring the Boundaries between HTML5 & Native Apps
 
Building Apps that Sense, Understand and Adapt.
Building Apps that Sense, Understand and Adapt.Building Apps that Sense, Understand and Adapt.
Building Apps that Sense, Understand and Adapt.
 
Bring Your Android Apps to BlackBerry 10 in minutes
Bring Your Android Apps to BlackBerry 10 in minutesBring Your Android Apps to BlackBerry 10 in minutes
Bring Your Android Apps to BlackBerry 10 in minutes
 
Identifying Bottlenecks in Mobile Cloud Computing (MCC)
Identifying Bottlenecks in Mobile Cloud Computing (MCC)Identifying Bottlenecks in Mobile Cloud Computing (MCC)
Identifying Bottlenecks in Mobile Cloud Computing (MCC)
 
JAM316 - Native API Deep Dive: Multimedia Playback & Streaming
JAM316 - Native API Deep Dive: Multimedia Playback & StreamingJAM316 - Native API Deep Dive: Multimedia Playback & Streaming
JAM316 - Native API Deep Dive: Multimedia Playback & Streaming
 
JAM819 - Native API Deep Dive: Data Storage and Retrieval
JAM819 - Native API Deep Dive: Data Storage and RetrievalJAM819 - Native API Deep Dive: Data Storage and Retrieval
JAM819 - Native API Deep Dive: Data Storage and Retrieval
 

Último

Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
amilabibi1
 
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven CuriosityUnlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Hung Le
 
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
David Celestin
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
Kayode Fayemi
 
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
ZurliaSoop
 

Último (17)

Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatment
 
Zone Chairperson Role and Responsibilities New updated.pptx
Zone Chairperson Role and Responsibilities New updated.pptxZone Chairperson Role and Responsibilities New updated.pptx
Zone Chairperson Role and Responsibilities New updated.pptx
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdfSOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven CuriosityUnlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
 
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
 
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait Cityin kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
Digital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of DrupalDigital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of Drupal
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
Introduction to Artificial intelligence.
Introduction to Artificial intelligence.Introduction to Artificial intelligence.
Introduction to Artificial intelligence.
 
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
 

JAM805 - Beyond the Device

  • 1. Beyond the Device Extending the Device Experience with Wireless Peripherals JAM805 John Murray, Ranbijay Kumar September 26-27, 2013 1
  • 2. Agenda 2 Introduc)on   What’s  it  all  about?   NFC   WiFi  Direct   Bluetooth  Low  Energy  
  • 3. What’s it all about? 3
  • 4. The Future! “Wearables and connectables will herald a fast-changing local network of customer context. Devices worn on or near the body that sense and relay information will be embedded in clothing, accessories, and even the body itself.17 First-generation wearables like the Nike+ FuelBand and Fitbit will give way to internal biomedical instruments, shoes that generate power to recharge devices, and golf clubs that provide swing telemetry. Connectable home alarm systems, automobiles, and scales will function in a similar way. Developers will tap into these new information sources, with a phone or tablet acting as a local combination of router and remote-control device. Client-side developers will release updates faster than ever to dynamically add support for new devices in the extended local network.” 4 Source: Forrester Research Inc.: “The Future of Mobile Application Development” 2013
  • 5. Imagine!! Ÿ  Your home anticipates your arrival since it’s in contact with your smart phone Ÿ  On arriving home you unlock your door using your smart phone 5 Ÿ  Lights and heating are automatically adapted when rooms detect that they are occupied. Ÿ  Control and manage household services such as heating, lighting, blinds, security, entertainment and data Ÿ  Lights and heating automatically turn down when rooms are vacated and everything can be switched off with one button on leaving.
  • 7. Potential Experience: Fitness Ÿ  Fitness app connects to running shoes via Bluetooth LE Ÿ  Notification received in Hub via Push from a Fitness BBM Channel „  “Flash Special: Log a 5km+ run in the next 24 hours and get 20% off your next purchase online” Ÿ  Your run is tracked and analyzed using Bluetooth LE and LBS Ÿ  Fitness app’s Scoreloop integration notifies user „  “You’re in 2nd place this week at 21km total! 4km more and you’ll be on top of the leaderboard” Ÿ  Achievement gets posted via Share to social media and with BBM trophy avatar Ÿ  Minimized app motivates you to run more (Active Frames): „  “4km more and you’ll be the winner” 7
  • 8. Other Potential Experiences! Ÿ  Sports equipment with sensors – how about this Basketball? 8 Ÿ  Location aware beacons Ÿ  Indoor Navigation (e.g. Museum Tour) Ÿ  In-store marketing/ payment
  • 9. Limited only by ... Ÿ  ... your imagination Ÿ  BlackBerry 10 has all the capabilities you need to start exploring this area as a developer Ÿ  Let’s take a look in more detail 9
  • 10. NFC We cover NFC in Session JAM803 10
  • 11. What can I do with NFC? Ÿ  Enable users to interact securely and efficiently with their environment Ÿ  Tap to share; Tap to pair; Tap to pay; Tap to access; Tap to… Ÿ  Smart Tags: Tags can give the user information or automate common tasks „  Tag reading and writing is supported Ÿ  Tag Emulation: Tag functionality can also be replicated by the phone’s NFC antenna Ÿ  Ticketing and Access: Allow users to gain access to workplaces, secure areas, theatres, events, trains, buses etc. „  BlackBerry - first phones to be HID-enabled, replacing security access badges Ÿ  Data Exchange: Exchange pictures, messages or electronic items between devices „  Automatically configure/connect devices by tapping them together 11
  • 13. 13 •  Peer-to-peer Wi-Fi connection without the need for wireless access points (APs) •  Typically short-lived, application-controlled connections for a specific purpose •  One device acts as Wi-Fi Direct Group Owner (GO) others are Group Clients •  Backward compatible with existing Wi-Fi devices (GO looks like an AP to legacy devices) •  Security is WPA2 Personal using Wi-Fi Protected Setup: Push Button or PIN- based •  Simply establishes an IP connection on which services can run •  & Share) Wi-Fi Direct – What is it?
  • 14. 14 •  BlackBerry Tag NFC-initiated file transfer uses Direct for faster performance •  File sharing also offers Wi-Fi Direct •  Mobile Hotspot operates as Wi-Fi Direct Group Owner •  Saves battery when all clients are Direct-capable •  DEMO! Wi-Fi Direct – Use Cases
  • 16. Bluetooth Low Energy Basics 16 Op)mised  for  ultra  low  power   • Different  from  Classic  Bluetooth  (Headsets,   Serial  Port,  ...  )   • Smarter,  more  Efficient,  rather  than  Faster   • Powered  by  small  buIon  cells  like  this   • Perfect  for  devices  like  sensors  (Heart  Rate   Monitors,  Wearable  technology,  ..)     • An  enabler  for  the  Internet  of  Things  
  • 17. Radio Layer 37 15 31 26 9 10 6 33 38 22 7 27 23 18 32 11 2 16 34 28 12 13 19 8 29 34 3 14 20 25 35 36 17 0 4 21 39 5 30 1 Wi-Fi Channel 1 Wi-Fi Channel 6 Wi-Fi Channel 11 Advertising Channel 37 (2402 MHz) Advertising Channel 38 (2426 MHz) Advertising Channel 39 (2480 MHz) Frequency Hopping Frequency Hopping Others are Data Channels Robust  and  Reliable   • Retains  ability  to  operate  in  noisy   radio  environments   • Shares  spectrum  with:   • WiFi   • DECT  cordless  phones   • Microwave  ovens   • Similar  channel  structure  to   classic  Bluetooth   • Adap%ve  Frequency  Hopping  
  • 18. Bluetooth LE devices interaction Advertiser Slave Master / Scanner Scanner Slave Slave Advertiser Advertiser Advertises Advertises Advertises Advertises Connection Connection Connection Various  Roles   • Adver%ser   • “Here  I  am!”   • Scanner   • “Who’s  there?”   • Ini%ator   • “Can  I  connect  to  you?”   • Master   • “I’m  in  charge!”   • Slave   • “I’ll  respond  to  requests!”  
  • 19. Bluetooth Low Energy Services Use Case Use Case Use Case Characteristic Characteristic Characteristic Characteristic Request Response GATT Client GATT Server Service Service ... ... Indication Notification Acknowledgement Applica)ons  use  this  model   •  As  a  Developer  you  will  work  with  services   •  Services   •  Client   •  Make  requests   •  Interact  with  Characteris)cs   •  Server   •  Responds  to  requests   •  Manage  Characteris)cs   •  Can  also  send  events  called   •  Indica%ons     •  No%fica%ons   ... ...
  • 20. Characteristics Primary Service <<GAP>> Primary Service <<GATT>> Primary Service <<Temperature>> <<Device Name>> “XYZ Thermometer” <<Appearance>> <<Thermometer>> <<Attribute Opcodes Supported>> 0x03fdf <<Temperature Celsius>> 0x0801 (Note: by specification 0x0801 = 2049 * 0.01 deg C = 20.49 C ) More  than  just  numbers  or  strings   •  Uniquely  universally  iden)fied   •  UUIDs  (16-­‐  or  128-­‐bits)   •  Registered  by  Bluetooth  SIG   •  Used  to   •  Iden)fy  device  (GAP)   •  Describe  capabili)es  (GATT)   •  Applica)on  aIributes   •  Permissions   •  Have  associate  scale  (  e.g.  )   •  Temp  (Celsius,  Kelvin  etc)   •  Pressure  (  mmHg,  Nm-­‐2)  
  • 23. HeartMonitor - BT LE Notifications GATT Notifications Heart rate measurement values
  • 24. Coding Recipe - High Level 24 INITIALISATION   DEVICE  DISCOVERY  AND  SELECTION   MONITOR  
  • 25. Coding Recipe - Initialisation 25 • bt_device_init   • ini)alise  the  Bluetooth  device  and  library     • bt_ldev_set_power   • switch  the  Bluetooth  radio  on   • bt_ga@_init   • specify  call    back  func)ons  for  GATT  events   Ini)alisa)on  
  • 26. Coding Recipe - Device Discovery 26 •  bt_disc_start_inquiry   •  start  scanning  for  Bluetooth  devices   •  delay(5)   •  bt_disc_cancel_inquiry   •  we’ve  waited  long  enough  so  cancel  the  scan   •  bt_disc_retrieve_devices   •  retrieve  list  of  Bluetooth  devices  that  are  within  range   •  bt_rdev_get_type   •  check  devices  for  being  LE  devices.  Disregard  those  that  are  not.   •  bt_rdev_get_services_ga@   •  examine  services  supported  by  each  found  device  and  filter  those  that  do  not   support  the  service  we  need   Device  Discovery  and  Selec)on  
  • 27. Coding Recipe - Monitoring #1 27 •  bt_ga@_connect_service     •  connect  to  the  heart  rate  service  on  the  selected  device     •  ga@_service_connected   •  your  call  back  func)on,  called  when  connec)on  to  the  selected  service  is   achieved   •  bt_ga@_reg_no%fica%ons   •  register  for  GATT  no)fica)ons  from  the  service  we  connected  to   •  bt_ga@_enable_no%fy   •  indicate  the  specific  characteris)cs  we  want  to  receive  no)fica)ons  for   •  no%fica%ons_cb   •  your  call  back  func)on.  Receive  a  no)fica)on  for  a  characteris)c  of  interest   here   Monitoring  
  • 28. Coding Recipe - Monitoring #2 28 • bt_ga@_characteris%cs_count   • Find  out  how  many  characteris)cs  this  service  offers   • bt_ga@_characteris%cs   • Obtain  a  list  of  the  service’s  supported   characteris)cs   • bt_ga@_enable_no%fy   • Enable  no)fica)ons  for  a  selected  characteris)c   Register  for  GATT  no)fica)ons  
  • 29. Bizarre Apps – Heart Monitor 29 Ÿ  Two of my crazy colleagues from London took this one step further Ÿ  Control a music track using your heart rate Ÿ  Let’s give that a go here!!!!!!! Ÿ  Ran???? Don (@donturner) and Luca (@blackberryluca) in their Bizarre Apps Laboratory deep underground the UK Technical Centre
  • 31. How can I find out more? 31 •  Code   •  Full  source  code  available  on  Git  Hub   hIps://github.com/blackberry/Cascades-­‐Community-­‐Samples     •  Ar%cle   •  A  more  detailed  Ar)cle  is  available  on  the  Support  Forums   hIp://supporgorums.blackberry.com   •  Contact  us  if  you  have  ques%ons   •  TwiIer   •  John  Murray  @jcmrim   •  Mar)n  Woolley  @mdwrim   •  Ranbijay  Kumar  @ranbijay   Resources  
  • 32. THANK YOU JAM805 John Murray, Ranbijay Kumar September 26-27, 2013 32