If you want to interact with this talk, download nRF Connect
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Bluetooth: With Low Energy
Comes High Power
bernie@allthenticate.com
Lead Software Architect @ Allthenticate
Senior studying CompSci @ UCSB
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Quick Disclaimer
I know more than I’d like to know about Bluetooth but I don’t know everything.
If I don’t know, see me after and I’ll get your contact to circle back!
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Goals
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Quick Audience Poll
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Who has connected to something over bluetooth before?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Who is familiar with general client server relationships?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Has anyone taken a networking class or is in a networking class?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Who has experience programming?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Who has experience programming with python?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Quick Demo
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
allthenticate.com
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Bluetooth Crash Course
Its history, strengths, and shortcomings
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Why was Bluetooth so important?
Bluetooth was invented at a time when:
Bluetooth (BR: 1999) enabled:
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Improvements
Bluetooth Enhanced Data Rate (BR/EDR: 2005):
Bluetooth High Speed (HS: 2009)
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Bluetooth sounds great!
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Strengths and Shortcoming
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Pop Quiz!
Apparently it’s a good way to engage viewers ¯\_(ツ)_/¯
Why is Bluetooth called Bluetooth?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Any Civ V fans?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
This is great right?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
What is BLE?
How is it related to bluetooth?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
BLE
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
BLE vs BR/EDR (Bluetooth Classic)
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Parts of BLE
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Quick Vocab Lesson
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Connecting
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Central
Peripheral
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Central
Peripheral
Connect
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Let’s see this in action!
Try to connect to “Click Me!” in nRF Connect
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
BLE Advertisements
This is a data a peripheral can include so centrals can distinguish them:
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Before we send or read data...
What kind of data can be sent or read? How is that managed?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
What is GATT?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
GATT
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Abstractly...
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
What is a profile?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Let’s send some data
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Central
Peripheral
Write
Acknowledge
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Let’s see this in action!
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
How does a central get data?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Central
Peripheral
Read
Data
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
But...
How do you think a peripheral sends new data to a central?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Central
Peripheral
Subscribe
Indicate
Acknowledge
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Central
Peripheral
Subscribe
Notify
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Let’s see this in action!
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
What is a characteristic?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
What is a characteristic?�What is a service?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
What is a characteristic?�What is a service?�What is a descriptor?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
How does a central send data?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
How does a central get data?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Now you know:
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Things we couldn’t get to
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
My Story With BLE and GATT
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
@Allthenticate
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
@UCSB
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Project Ideas
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Tools for you!
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Hardware
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Software
Python Packages:
Other:
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Check us out!
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Thank you!
Hmu bernie@allthenticate.net
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Neat Facts
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Security Concerns
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Is the Security Better with BLE?
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
“None of the pairing methods provide protection against a passive eavesdropper”
-Bluetooth Core Spec
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Issues with LE key exchanges...
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21
Moral of the story: encrypt the data if it matters or don’t send really important data, as it stands there’s no private way to advertise
Intro To Bluetooth/BLE - Bernie Conrad - 11/06/21