Android app disconnects when from device receiving notifications from multiple devices

Hello everyone,

I am currently developing an Android app, where I have 2 BLE custom boards with the nRF52832 as a BLE chip. Each board has the same firmware running on it and is configured to send notification of 20 bytes in a 50Hz frequency. I am using the the Nordic BLE library to connect and communicate with the devices.

The connection to both devices works without any issues. Initially the phone is receiving data from both sensors but after a short time (between 1 - 5 seconds) the phone disconnects itself from one sensor. The Logcat for the app doe not provide any useful information either. The only thing i can see there is, that the device has been disconnected (only onConnectionUpdated is shown. No disconnect request).

Connecting the same devices with the equivalent iOS app does work. So I assume the error has to be in some way, how I handle it on Android.

If you need any additional information please let me know.

Thank you all in advance.

  • J.R. said:
    seems to be an issue with the Bluetooth version

    I still haven't found any difference in BLE 4 and 5 that should cause this issue, multiple connections is definitely supported in BLE 4.

    Though if your application is data heavy it could simply be caused by BLE 5 supporting a higher bandwidth.

    J.R. said:
    Can there be any other causes tor this to happen?

    There could be a difference in the BLE controller (hardware) in the phones causing this different behavior.

    -Einar

Related