Why does advertising stop when a device connects successfully?

Hello,

I am comparing an old implemtation based on Zephyr 2.7.1 for nRF52832 with examples for nRF5340. On both devices there are more than 1 connection allowed.

On the older Zephyr 2.7.1 based implentation I see the device is advertising even when someone connects to the device. I use two phones with nRF connect App. One is for showing the RSSI graph and the other one connects to the BLE device. When the one phone connects to the device, I see RSSI updates on the other phone.

I am trying different samples for the nRF5340 DK board. For example multiple_adv_set sample. There is 'Nordic Beacon' (non-connectable) and 'Nordic multi-adv-sets' (connectable) advertised. When the one phone connects to the 'Nordic multi adv sets', the other phone stops updating RSSI values - as long as the connections stays active. When I disconnect, the RSSI values show up again. So I asssume that advertising is stopped while a device is connected - but I do not know why. And why does it work on older Zephyr 2.7.1 implementation. Can someone help me on this?

Parents
  • Hi Lexologe, 

    Please correct me if I'm wrong. In your test with two phones and multi-adv-sets sample, you still can see Nordic Beacon advertising on the other phone after you connect to Nordic Multi Adv Set on the first phone, correct ? 

    I assume you are asking about if you should still see Nordic Multi Adv Set after you connect to the same advertiser. I think the logic  has been changed. That you need to manually restart the advertising after it get connected on the same adv set. 
    I don't know when the behavior changed, but now you need to restart the advertising manually in the code to be able to advertise after the device is connected.  

Reply
  • Hi Lexologe, 

    Please correct me if I'm wrong. In your test with two phones and multi-adv-sets sample, you still can see Nordic Beacon advertising on the other phone after you connect to Nordic Multi Adv Set on the first phone, correct ? 

    I assume you are asking about if you should still see Nordic Multi Adv Set after you connect to the same advertiser. I think the logic  has been changed. That you need to manually restart the advertising after it get connected on the same adv set. 
    I don't know when the behavior changed, but now you need to restart the advertising manually in the code to be able to advertise after the device is connected.  

Children
Related