This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to determine the connection interval in android

Did anybody know how I could determine the connection interval for a established ble connection between an android (4.4) central and a (e.g. nRF51822) peripheral?

Parents
  • Read the parameters in HCI Event LE_Connection_Complete or HCI Event LE_Connection_Update_Complete from the btsnoop_hci.log log. To get this log file: 1 Settings->Developer options->Enable Bluetooth HCI snoop log (if Developer options screen is hidden then make it available. Go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.) 2 Bluetooth must be toggled to make this settings work. 3 adb pull /sdcard/btsnoop_hci.log . (the path might be different and you can find it out by adb shell cat etc/bluetooth/bt_stack.conf | grep BtSnoopFileName) 4 Open btsnoop_hci.log in www.fte.com/.../CPAS-download.aspx or in wireshark

Reply
  • Read the parameters in HCI Event LE_Connection_Complete or HCI Event LE_Connection_Update_Complete from the btsnoop_hci.log log. To get this log file: 1 Settings->Developer options->Enable Bluetooth HCI snoop log (if Developer options screen is hidden then make it available. Go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.) 2 Bluetooth must be toggled to make this settings work. 3 adb pull /sdcard/btsnoop_hci.log . (the path might be different and you can find it out by adb shell cat etc/bluetooth/bt_stack.conf | grep BtSnoopFileName) 4 Open btsnoop_hci.log in www.fte.com/.../CPAS-download.aspx or in wireshark

Children
No Data
Related