Advertise two connectable peripherals from one board

I am using nrF5340DK board. I want to advertise two connectable peripherals from one board. Using the sample application of Multi-advert, I able to advertise one peripheral as connectable and other as non-connectable. When I run this code, I can see both advertise on the client side (nrf connect app). When I modify the code to advertise both as non-connectable, I can see both non-connectable peripherals advertise on the client side (nrf connect app). But when I modify the code to advertise both as connectable, I can see only first connectable peripherals advertised on the client side (nrf connect app) and other one got failed to advertise. 

Kindly can you please advise the required configurations I need in firmware to achieve this.

Kind Regards,

Moh

Parents
  • Hi Moh,

    Are you refering to Bluetooth: Multiple advertising sets? If so, you should be able to make it do two connectable advertisers with small modifications, by changing the flags of the non-connectable advertiser to be connectable, and adding somethign like CONFIG_BT_MAX_CONN=4 in your prj.conf.

    Note that it will not look sensible in for instance iOS, as it will see it as the same device. So to verify that you actually got two connectable advertisiers, you can use a sniffer. (This brings up the point that multiple connectable advertisers are perhaps not that usefull in practice, ans not commonly supported or used).

Reply
  • Hi Moh,

    Are you refering to Bluetooth: Multiple advertising sets? If so, you should be able to make it do two connectable advertisers with small modifications, by changing the flags of the non-connectable advertiser to be connectable, and adding somethign like CONFIG_BT_MAX_CONN=4 in your prj.conf.

    Note that it will not look sensible in for instance iOS, as it will see it as the same device. So to verify that you actually got two connectable advertisiers, you can use a sniffer. (This brings up the point that multiple connectable advertisers are perhaps not that usefull in practice, ans not commonly supported or used).

Children
Related