BT RE notes
Taking logs
Android: Settings > System > Developer Options > Bluetooth HCI Snoop log
“It creates a file called “btsnoop_hci.log” in /sdcard but it’s just a pcap”
On some posts regarding the the bluetooth snooping it was recommended to first turn bluetooth off, enable snooping, enable bluetooth, do tests, disable bluetooth, disable snooping; exactly in this order. Otherwise the logs might not appear. -https://forum.fairphone.com/t/location-of-btsnoop-hci-log-file/60320/2
iOS: https://www.bluetooth.com/blog/a-new-way-to-debug-iosbluetooth-applications/
handles
https://www.bluetooth.com/specifications/assigned-numbers/
00002a37-0000-1000-8000-00805f9b34fb
Python
bleak is good library
Device notes
Mi Home LYWSD02MMC (the e-ink one)
Subscribe to notifs of ebe0ccc1-7a0a-4b0c-8a1a-6ff2997da3a6
humidity = data[2]
celcius = ((data[1] << 8) + data[0]) / 100Mi Home LYWSD03MMC (the tiny one)
Subscribe to notifs of EBE0CCC1-7A0A-4B0C-8A1A-6FF2997DA3A6
temperature, humidity, voltage = struct.unpack_from('<hBh', data)
temperature /= 100
voltage /= 1000pebble 2 HR
Subscribe to notifs of 00002a37-0000-1000-8000-00805f9b34fb
hr = data[1]