Indication loss when multiple peripheral devices are connected

Hi,

First of all, let me confess I am new to NRF and BLE environment.

I am working on a project where the mobile device and NRF 52840 acts as a BLE peripheral and one NRF 52840 device acts as a central which monitors the distance of all the connected peripheral devices

Now, when the NRF52840 peripherals are connected to the central device we see no issue with the indication and any device on the network can communicate to the central and central also can communicate with all the peripherals on the network.

The problem occurs when we connect the mobile to our network. Let me explain my observation below

Case 1: NRF 52840 peripheral is connected to the NRF52840 central first, and mobile device is connected later

Both can communication with each other, central can write to the peripheral characteristic and peripheral indicates to the central.

Now, a mobile device is connected with the central, central can communicate with the mobile and mobile can also indicate to the central, whereas the other NRF 52840 peripheral cannot indicate to the central.

The central device is not receiving any indication from the NRF 52840 peripheral, whereas the central can send data to the peripheral using GATT WRITE and both peripherals can receive the data.

Case 2: Mobile is connected to the central first and later the NRF 52840 peripheral is connected to the central

Now, again the central and mobile device can communicate each other without any issue and when the NRF 52840 peripheral is connected to the central, any indication sent from the mobile device is not received to the central.

Whereas the central can send data to the peripheral using GATT WRITE and both peripherals can receive the data.

GATT WRITE is working at any time no matter which device is connected at last, the only issue is with the indication, the central receive the indication only from the latest device which is connected to the central.

Please help me to debug the issue. Let me share my project.

I am using VS Code with NRF extensions. NRF Toolchain version is 2.7.0

issue-build.zip

Related