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

Two centrals both scanning

I have two nRF52832 side by side scanning for advertisement with filter by name. Because I will have a number of peripherals advertising, so I want to have multiple centrals to serve them. I notice both centrals will connect to the same device, and one connection eventually timeouts and one connection succeeds. The one that fails take a little longer like 500 to 600 msec to connect, while the good one take 20 to 30 msec to connect. How can I make a earlier detection it is not a real connection so that it can scan for the next peripheral?

Bad one:

[01:51:46.648,925] <debug> ble_scan: Scanning
[01:51:46.690,917] <debug> ble_scan: Connecting
[01:51:46.690,917] <debug> ble_scan: Connection status: 0
[01:51:47.326,171] <debug> nrf_ble_gatt: on_connected_evt
[01:51:47.326,171] <debug> nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.

Good one:

[01:51:30.124,023] <debug> ble_scan: Scanning
[01:51:46.173,828] <debug> ble_scan: Connecting
[01:51:46.173,828] <debug> ble_scan: Connection status: 0
[01:51:46.197,265] <debug> nrf_ble_gatt: on_connected_evt
[01:51:46.197,265] <debug> nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.

Thanks.

Related