NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.07k stars 461 forks source link

blt uart received data is discontinuous #29

Closed adofirst2018 closed 7 years ago

adofirst2018 commented 7 years ago

my Bluetooth device send data in 50Hz, but receive data is not 0.02s at Android6.0 App at Android 4.4 is normal

philips77 commented 7 years ago

The minimum connection interval on Android 5+ is 11.25 ms which should give you 88 Hz. Please check the minimum and maximum connection interval set on your device. A phone is free to choose any value it want from this range. It's also not an application bug, but a matter of configuration of your device. To debug it you may enable Settings->Developer options->Enable Bluetooth HCI snoop log on your phone, gather data in nRF Toolbox, go back to settings and disable it. Then you'll find a file hci_snoop.log (or something like that) on your phone's main folder sdcard/. You may copy it to your PC and open in Wireshark and check the real packet timestamps. You will also see there the actual connection parameters.