MSE TSM MobCom
Hands-on of lesson 7
For slides and example code, see lesson 7
Note: Do not work on this repository right away.
Check existing forks to find the specific repository for your class.
a) Android BLE scanner, 10'
- Build and run the MyBleScannerApp example code.
- Check the Logcat output with filter "MainActivity".
- If it works, you should see BLE devices around you.
- Test the app by disabling Bluetooth, location, etc.
- Done? Add a button to the UI to start a scan.
b) Android BLE central, 10'
- Build and run the MyBleCentralApp example code.
- Use the nRF52840 with HRM BLE peripheral code.
- Check the Logcat output with filter "MainActivity".
- If it works, you should see heart rate measurements.
- Done? Read the Android app source code in detail.
c) Android BLE issues, 10'
- It looks easy, but BLE on Android has many issues.
- Read some of the tips how to make it actually work.
- Also check this list of issues to get an impression.
- iOS BLE seems more stable. Why could that be?
- Done? Find some stats about the Android OS.
d) nRF Blinky app example, 10'
- Android nRF Blinky is a complete BLE app example.
- It shows how to use the Nordic Android BLE library.
- Read the library docs and study the app source code.
- Which parts become easier by using this library?
- Done? Sketch the BLE API of the peripheral.
e) nRF Toolbox Plugin, 1h+
- The nRF Toolbox app allows to write new plugins.
- Build and run the nRF Toolbox app source code.
- Write a plugin for a custom SHT30 BLE service.
- Test the app with a nRF52840 BLE peripheral.
- Done? Create a custom icon for your service.