androidnotificationsbluetooth-lowenergygatt

Android BLE notifications are irregular


My java code runs on Quest 2 (Android 12.0 and OS version 56) and subscribes to the gatt cadence characteristic of a cadence sensor.

The Cadence notifications typically arrive once per second. However some notifications can take up to 5 seconds to arrive. In that case all 5 notifications arrive at once. Is this typical on Android devices? I don't recall seeing this problem with my IOS code.


Solution

  • With the much appreciated assistance of Emil and Michael Kotzjan, I was able to run nRF Connect on the Quest 2.

    The cadence notifications received by nRF Connect were as irregular as with my app.

    However, when running nRF Connect on IOS (IPhone 13), all cadence notifications came in regularly. That is to say, each notification came in approximately one second after the previous one.

    It appears that the problem is with the Quest 2. I've submitted a bug report.