Talking to your bike and other devices (wait, what?)
summary
Android apps connect to an e-bike over Bluetooth Low Energy using cloud-backed certificates for authorization and read/write of BLE characteristics, with a homegrown command queuer to queue many quick commands and a reordering of characteristic reads to make unlocking reliably fastest. Implementation uses Android Nearby/Fast Pair and companion device pairing to avoid location permissions, libraries like RXAndroidBle or Kable help, emulator BLE (Android Emulator 31.3.8) supports virtual testing, and OEM stack quirks and UWB are practical concerns.
AI-written summary · about
chapters (13)
- 0:00Introduction and overview
- 6:31Bluetooth internals and basics
- 9:18Android Bluetooth permissions
- 12:50Discovering Bluetooth devices
- 15:37Reading and writing characteristics
- 18:23Challenges of Bluetooth development
- 21:52Libraries to simplify Bluetooth
- 24:40Companion device pairing
- 29:15Secure connections and Android X
- 30:38Emulated Bluetooth in Android Studio
- 32:04Nearby and Fast Pair
- 33:49Ultra Wideband and future tech
- 35:54Summary and closing
related talks
30mBLE App Design Patterns
46mBluetooth Low Energy on Android: Top Tips for the Tricky Bits
38mBluetooth LE for Modern Android Development
34mBluetooth Low Energy in Android: Getting it Done
34mA journey in Android's BLE world
19mWhat's all that hype about BLE?
38mBest Practices for Bluetooth Development
31mAn introduction to Bluetooth mesh for Android developers
