Changes between Version 1 and Version 2 of wireless/bluetooth/ledcandlegatt


Ignore:
Timestamp:
12/13/2018 07:53:00 PM (6 years ago)
Author:
Ryan Erbstoesser
Comment:

add instructions for sniffing

Legend:

Unmodified
Added
Removed
Modified
  • wireless/bluetooth/ledcandlegatt

    v1 v2  
    11= Remotely Controlling LED Bluetooth Candle with the Gateworks GW16126 CATM1/BLE Mini-PCIe Adapter =
    22[[Image(candle.jpg,300px)]]
     3
    34Bluetooth Low Engery (BLE) is the latest communication standard in the Internet of Things (IoT) and M2M markets. Sensors that report small amounts of data periodically can last for several years using BLE. The Generic Attribute Profile (GATT) is one of the most common profiles used over BLE. Gateworks setup a LED candle that changes colors and brightness using BLE commands sent from a Gateworks SBC and GW16126 BLE radio. The GW16126 Mini-PCIe card features a u-blox NINA-B301 BLE module with custom Zephyr firmware to use HCI. It also has a u-blox SARA-R4 LTE Cat M-1 modem for pushing data up to the cloud. More can be read on the [wiki:expansion/gw16126 GW16126 wiki page]
    45
     
    1112
    1213== Sniffing Bluetooth Packets ==
     141. Install Magic Hue app for the candle onto Android Phone
     151. Use Bluetooth settings on Android Phone to find and connect to the Magic Candle (LEDBlue-081051FE)
     161. Open Magic Hue and connect to Candle device and verify ability to change colors
     171. Connect Android phone to Linux computer (desktop or laptop)
     181. Allow USB Debugging on Android phone
     191. Under Developer Options in Settings on the phone, Enable Bluetooth HCI snoop log
     201. Go back to Magic Hue app and change the colors in a known sequence, such as Blue, Green, Red which will then be recorded in the log.
     211. On the Linux computer, use the following command to retrieve the Bluetooth Log immediately after changing the colors using the Android app:
     22{{{
     23adb pull /sdcard/btsnoop_hci.log
     24}}}
     251. Open btsnoop_hci.log using WireShark on the host PC
     261. Typically scroll to the bottom and find some events with protocol ATT.
     27 1. Note the Handle, value 0x002e
     28 1. Note the Value, 56:ff:00:00:00:f0:aa
     291.
     30
     31
    1332
    1433== Sending BLE Packets over GATT ==