Bluetooth

Code examples of BLE communication, Android 

This project demonstrates how to scan for Movesense devices, connect to a device, and then subscribe for data from a sensor (i.e. enable notifications): https://gits-15.sys.kth.se/anderslm/Ble-Gatt-Movesense-2.0. In this example, only accelerometer data is read, at 13 Hz (/Meas/Acc/13). You have to figure out how to subscribe to, parse, and interpret, the data relevant in assignment 3, part B.

How to use an Android Service and a BroadcastReceiver to get BLE data, possibly in the background, https://gits-15.sys.kth.se/anderslm/Ble-Gatt-with-Service. This example is not specific to Movesense.

 

Code examples of BLE communication, iOS 

This project demonstrates how to scan for Movesense devices, connect to a device, and then subscribe for data from a sensor (i.e. enable notifications): https://gits-15.sys.kth.se/jwi/movesenseOSX_Firmware2.0.git