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

Without connection Beacons transmitting Broadcast packets and also receiving Broadcast packets

Hello,

 

I am using nRF52840, SDK_16.0.0, SoftDevice S140 V7.0.1 and Segger for flashing the image. I am using ‘ble_app_beacon’.

 

1) ‘ble_app_beacon’ will only broadcast Advertisement packets. But at same time, in-between Advertisement interval Beacon should enable Rx and receive other Broadcasting packets and decode their RSSI values.

2) In ‘ble_app_beacon’, m_adv_params.properties.type is BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED. By changing to BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED whether can I receive broadcast packets while Advertising.

 

Please let me know how to do this.

 

Thanks & Regards

Vishnu Beema

  • Hi,

    1) Yes, this is possible.

    2) When you change BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED, to BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED, it means that the advertiser(ble_app_beacon) can send a scan response packet. Scan response data is an optional "secondary" advertising payload which allows scanning devices that detect an advertising device to request a "second advertising packet". This allows you to send two advertising frames with a total payload of 62 bytes.

    Please let me know how to do this.

    I recommend adding the scan module to the beacon example. Take a look at e.g. ble_app_blinky_c on how the scan module is added there. PS: Since you are not connecting to another device, you don't need the discovery module.

    BR,

    Sigurd

Related