SlideShare a Scribd company logo
1 of 22
Download to read offline
Bluetooth LE
Building Block of the Internet of Things
Agenda
• How differs Bluetooth Smart from BT Classic?
• The power of the Services
• Example: Using Battery Level and Current Time service
• Steven Mohr, Android developer since Android 1.5
• Started working on device integration with Bluetooth
(BT) in 2010 at the German Aerospace Center
• Continued to work with Bluetooth Classic and Smart
for clients in Healthcare
• Since 2014 with my own company Smart As Apps
Who’s that guy?
Why are we talking
about Bluetooth
again?
Bluetooth Classic has been around forever
• mainly used for Headsets and Car connectivity
• only very generic profiles (serial port profile (SPP), 

audio transmission)
• standards for specific use cases can be expensive (IEEE 11073 for
health care > 1000€)
Why are we talking about BT again?
Why are we talking about BT again?
Interoperability problems (devices had problems with different
phones and OS)
• Nightmare with increasing amount of smartphones available
• No direct access on iOS / devices need to comply with Made for iOS
specification (includes also communication protocol changes)
• Direct accessibility in iOS: One device for all platforms -> cheaper
for device manufacturers to support it
• While BT Classic is stream-oriented, Bluetooth LE works event-
based
• Allowing to be more energy-efficient as devices can sleep as long
as no notifications are received -> makes it great for wearables and
IoT devices
How differs Bluetooth LE from BT Classic?
How is 

Bluetooth LE
structured?
How is Bluetooth LE structured?
• GATT profile (General Attribute profile)
• Via this profile GATT services can the
accessed in a defined way.
★ identified by UUID
• These services contain characteristics
★ identified by UUID
★ contains the actual data to interact with
★ Meta data is stored in the descriptor
How is Bluetooth LE structured?
The power of the services
What to do with this services?
• Health:
★ Blood pressure or heart rate
• General:
★ Automation IO (e.g. GPIO ports from various boards)
★ Indoor Positioning (Beacons)
The power of the services
• Specifications for services are available for free at bluetooth.org
★ Access to drafts is available with a free membership 

(just postage to send license agreement)
• BUT: Manufacturers can define their own services and mix standard
services with custom devices or use no standard services at all
How to actually do
something?
Battery Service
• Read battery level
• Get (optionally) updates about level changes



Link: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.battery_service.xml
How to actually do something?
• Read is mandatory
• Notify is optional
Battery Level Service
How to actually do something?!
• Current Time Service
★ Read / get updated about the time
★ Optionally set current time
Link: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.current_time.xml
Current Time Service
• Current Time
★ Read and Notify mandatory, Write optional
• Local Time
★ itself optional
★ Read Mandatory, Write Optional
• Reference Time
★ optional
★ Read mandatory
What’s the process in a nutshell?
1. Check for BLE standard services you can use
2. Investigate whether you can realize you app idea with that standard
service
3. Do you have to work around optional parts or can you even benefit
from them?
4. Create a great app and get happy users!
What to take away?
• You don’t need to test every device as long as you use standard
services
• Make sure to handle optional capabilities properly
• Try to provide value for your users using the mandatory parts of the
specification and add extended values for devices that support
optional parts you want to use
Chaos! by Robert Scoble: CC-BY 2.0 (https://www.flickr.com/photos/scobleizer/5628705627/)
Zombie! by Daniel Hollister: CC-BY 2.0 (https://www.flickr.com/photos/dhollister/2596483147/)
DSC_0210 by SergioDelgado: CC-BY 2.0 (https://www.flickr.com/photos/sdelgado/3433299832/)
Source
Thanks for your attention
I’m looking for Junior Android Devs to join :)
Send a mail to jobs@smartasapps.de
Recruitment

More Related Content

Similar to Bluetooth LE - Building Block of the Internet of Things (Droidcon DE 2016)

Bluetooth vs Wi-Fi comparison for IoT Solutions
Bluetooth vs Wi-Fi comparison for IoT SolutionsBluetooth vs Wi-Fi comparison for IoT Solutions
Bluetooth vs Wi-Fi comparison for IoT SolutionsRiyaz Lakhani
 
Bw13 session2 app_dev_presenter_final
Bw13 session2 app_dev_presenter_finalBw13 session2 app_dev_presenter_final
Bw13 session2 app_dev_presenter_finalBlair Poloskey
 
QA Fest 2018. Александр Хотемский. Использование голосовых помощников для раз...
QA Fest 2018. Александр Хотемский. Использование голосовых помощников для раз...QA Fest 2018. Александр Хотемский. Использование голосовых помощников для раз...
QA Fest 2018. Александр Хотемский. Использование голосовых помощников для раз...QAFest
 
Chapter-1 - Internet of Things: A Hands-on Approach
Chapter-1 - Internet of Things: A Hands-on ApproachChapter-1 - Internet of Things: A Hands-on Approach
Chapter-1 - Internet of Things: A Hands-on ApproachYtubegamesTechknowle
 
Understanding bluetooth
Understanding bluetoothUnderstanding bluetooth
Understanding bluetoothKumar
 
Understanding bluetooth
Understanding bluetoothUnderstanding bluetooth
Understanding bluetoothmadhu428
 
Connected home - market evolution & protocol wars
Connected home - market evolution & protocol warsConnected home - market evolution & protocol wars
Connected home - market evolution & protocol warsBorys Tomala
 
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 dataTushar Choudhary
 
FIWARE Global Summit - Developing New IoT Agents
FIWARE Global Summit - Developing New IoT AgentsFIWARE Global Summit - Developing New IoT Agents
FIWARE Global Summit - Developing New IoT AgentsFIWARE
 
Demystifying IoT skills : What does it take to become a FullStack IoT engineer?
Demystifying IoT skills : What does it take to become a FullStack IoT engineer?Demystifying IoT skills : What does it take to become a FullStack IoT engineer?
Demystifying IoT skills : What does it take to become a FullStack IoT engineer?Emertxe Information Technologies Pvt Ltd
 
Bluetooth basic
Bluetooth basicBluetooth basic
Bluetooth basicEngr Sid
 
Bluetooth smart technology(description about all versions)
Bluetooth smart technology(description about all versions)Bluetooth smart technology(description about all versions)
Bluetooth smart technology(description about all versions)lurdhu agnes
 
Alastair Worth — Introduction to Avnet
Alastair Worth — Introduction to AvnetAlastair Worth — Introduction to Avnet
Alastair Worth — Introduction to AvnetNick Brook
 
End to End IoT projects with Zephyr.pdf
End to End IoT projects with Zephyr.pdfEnd to End IoT projects with Zephyr.pdf
End to End IoT projects with Zephyr.pdfAlvaro Viebrantz
 
IoTino - Arduino for Internet of Things
IoTino - Arduino for Internet of ThingsIoTino - Arduino for Internet of Things
IoTino - Arduino for Internet of ThingsAbiro AB
 
Bluetooth Basic Version
Bluetooth Basic VersionBluetooth Basic Version
Bluetooth Basic VersionAyesha Saeed
 

Similar to Bluetooth LE - Building Block of the Internet of Things (Droidcon DE 2016) (20)

Bluetooth vs Wi-Fi comparison for IoT Solutions
Bluetooth vs Wi-Fi comparison for IoT SolutionsBluetooth vs Wi-Fi comparison for IoT Solutions
Bluetooth vs Wi-Fi comparison for IoT Solutions
 
Bw13 session2 app_dev_presenter_final
Bw13 session2 app_dev_presenter_finalBw13 session2 app_dev_presenter_final
Bw13 session2 app_dev_presenter_final
 
QA Fest 2018. Александр Хотемский. Использование голосовых помощников для раз...
QA Fest 2018. Александр Хотемский. Использование голосовых помощников для раз...QA Fest 2018. Александр Хотемский. Использование голосовых помощников для раз...
QA Fest 2018. Александр Хотемский. Использование голосовых помощников для раз...
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Chapter-1 - Internet of Things: A Hands-on Approach
Chapter-1 - Internet of Things: A Hands-on ApproachChapter-1 - Internet of Things: A Hands-on Approach
Chapter-1 - Internet of Things: A Hands-on Approach
 
Understanding bluetooth
Understanding bluetoothUnderstanding bluetooth
Understanding bluetooth
 
Understanding bluetooth
Understanding bluetoothUnderstanding bluetooth
Understanding bluetooth
 
Connected home - market evolution & protocol wars
Connected home - market evolution & protocol warsConnected home - market evolution & protocol wars
Connected home - market evolution & protocol wars
 
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
 
Bluethooth technology
Bluethooth technologyBluethooth technology
Bluethooth technology
 
FIWARE Global Summit - Developing New IoT Agents
FIWARE Global Summit - Developing New IoT AgentsFIWARE Global Summit - Developing New IoT Agents
FIWARE Global Summit - Developing New IoT Agents
 
Demystifying IoT skills : What does it take to become a FullStack IoT engineer?
Demystifying IoT skills : What does it take to become a FullStack IoT engineer?Demystifying IoT skills : What does it take to become a FullStack IoT engineer?
Demystifying IoT skills : What does it take to become a FullStack IoT engineer?
 
Bluetooth basic
Bluetooth basicBluetooth basic
Bluetooth basic
 
Bluetooth smart technology(description about all versions)
Bluetooth smart technology(description about all versions)Bluetooth smart technology(description about all versions)
Bluetooth smart technology(description about all versions)
 
Alastair Worth — Introduction to Avnet
Alastair Worth — Introduction to AvnetAlastair Worth — Introduction to Avnet
Alastair Worth — Introduction to Avnet
 
Bluetooth Technology
Bluetooth TechnologyBluetooth Technology
Bluetooth Technology
 
End to End IoT projects with Zephyr.pdf
End to End IoT projects with Zephyr.pdfEnd to End IoT projects with Zephyr.pdf
End to End IoT projects with Zephyr.pdf
 
IoTino - Arduino for Internet of Things
IoTino - Arduino for Internet of ThingsIoTino - Arduino for Internet of Things
IoTino - Arduino for Internet of Things
 
Bluetooth Basic Version
Bluetooth Basic VersionBluetooth Basic Version
Bluetooth Basic Version
 

Recently uploaded

George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024eCommerce Institute
 
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxGenesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxFamilyWorshipCenterD
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfhenrik385807
 
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024eCommerce Institute
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...NETWAYS
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...NETWAYS
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Delhi Call girls
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...NETWAYS
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@vikas rana
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfhenrik385807
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyPooja Nehwal
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Salam Al-Karadaghi
 
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝soniya singh
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...Sheetaleventcompany
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Pooja Nehwal
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Krijn Poppe
 
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...NETWAYS
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...NETWAYS
 
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrSaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrsaastr
 

Recently uploaded (20)

George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024
 
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxGenesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
 
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
 
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
 
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
 
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrSaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
 

Bluetooth LE - Building Block of the Internet of Things (Droidcon DE 2016)

  • 1. Bluetooth LE Building Block of the Internet of Things
  • 2. Agenda • How differs Bluetooth Smart from BT Classic? • The power of the Services • Example: Using Battery Level and Current Time service
  • 3. • Steven Mohr, Android developer since Android 1.5 • Started working on device integration with Bluetooth (BT) in 2010 at the German Aerospace Center • Continued to work with Bluetooth Classic and Smart for clients in Healthcare • Since 2014 with my own company Smart As Apps Who’s that guy?
  • 4. Why are we talking about Bluetooth again?
  • 5. Bluetooth Classic has been around forever • mainly used for Headsets and Car connectivity • only very generic profiles (serial port profile (SPP), 
 audio transmission) • standards for specific use cases can be expensive (IEEE 11073 for health care > 1000€) Why are we talking about BT again?
  • 6. Why are we talking about BT again? Interoperability problems (devices had problems with different phones and OS) • Nightmare with increasing amount of smartphones available • No direct access on iOS / devices need to comply with Made for iOS specification (includes also communication protocol changes)
  • 7. • Direct accessibility in iOS: One device for all platforms -> cheaper for device manufacturers to support it • While BT Classic is stream-oriented, Bluetooth LE works event- based • Allowing to be more energy-efficient as devices can sleep as long as no notifications are received -> makes it great for wearables and IoT devices How differs Bluetooth LE from BT Classic?
  • 8. How is 
 Bluetooth LE structured?
  • 9. How is Bluetooth LE structured?
  • 10. • GATT profile (General Attribute profile) • Via this profile GATT services can the accessed in a defined way. ★ identified by UUID • These services contain characteristics ★ identified by UUID ★ contains the actual data to interact with ★ Meta data is stored in the descriptor How is Bluetooth LE structured?
  • 11. The power of the services What to do with this services? • Health: ★ Blood pressure or heart rate • General: ★ Automation IO (e.g. GPIO ports from various boards) ★ Indoor Positioning (Beacons)
  • 12. The power of the services • Specifications for services are available for free at bluetooth.org ★ Access to drafts is available with a free membership 
 (just postage to send license agreement) • BUT: Manufacturers can define their own services and mix standard services with custom devices or use no standard services at all
  • 13. How to actually do something?
  • 14. Battery Service • Read battery level • Get (optionally) updates about level changes
 
 Link: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.battery_service.xml How to actually do something?
  • 15. • Read is mandatory • Notify is optional Battery Level Service
  • 16. How to actually do something?! • Current Time Service ★ Read / get updated about the time ★ Optionally set current time Link: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.current_time.xml
  • 17. Current Time Service • Current Time ★ Read and Notify mandatory, Write optional • Local Time ★ itself optional ★ Read Mandatory, Write Optional • Reference Time ★ optional ★ Read mandatory
  • 18. What’s the process in a nutshell? 1. Check for BLE standard services you can use 2. Investigate whether you can realize you app idea with that standard service 3. Do you have to work around optional parts or can you even benefit from them? 4. Create a great app and get happy users!
  • 19. What to take away? • You don’t need to test every device as long as you use standard services • Make sure to handle optional capabilities properly • Try to provide value for your users using the mandatory parts of the specification and add extended values for devices that support optional parts you want to use
  • 20. Chaos! by Robert Scoble: CC-BY 2.0 (https://www.flickr.com/photos/scobleizer/5628705627/) Zombie! by Daniel Hollister: CC-BY 2.0 (https://www.flickr.com/photos/dhollister/2596483147/) DSC_0210 by SergioDelgado: CC-BY 2.0 (https://www.flickr.com/photos/sdelgado/3433299832/) Source
  • 21. Thanks for your attention
  • 22. I’m looking for Junior Android Devs to join :) Send a mail to jobs@smartasapps.de Recruitment