Scan request packet modification

Hello Team and developer community,


I am using zephyr with nRF52 DK to develop a BLE application. My target is to send some custom data or commands from scanner side over the scan request and access that data at advertiser side from that scan request.

  1.  Is it anyhow possible to add some custom data in scan request packet  at scanner side?

  2. Is it possible to read that custom data from scan request packet at advertiser side?

Thanks in advance.

Best Regards
Maulik Sutariya

  • Hi Maulik

    •  Is it anyhow possible to add some custom data in scan request packet  at scanner side?

    • Is it possible to read that custom data from scan request packet at advertiser side?

    Unfortunately not. There is no way for the scanner to embed data in the scan request, and as such no way for the advertiser to receive any custom data either. 

    How many devices do you expect to interact with, and how often do you need to send custom data from the scanner to the advertiser? 

    The connection process in BLE is pretty quick, so I expect the simplest workaround is to make a connection to the advertiser and send the custom data/commands once the connection is established. 

    There is also a new feature introduced as a part of the Bluetooth 5.4 specification that allows a large number of devices to establish a form of bi-directional connection-less communication with a single gateway. This feature is quite complex though. 
    For more information about PAWR please have a look here

    Best regards
    Torbjørn

  • Hello Torbjørn,

    Thank you for this nice suggestion and introducing me to new functionality PAWR in Bluetooth 5.4. Can you please tell me if there is any example available regarding the same within zephyr SDK or nRF SDK or else can you point me somewhere where I can find API to implement and try out PAWR.

    Best Regards,
    Maulik Sutariya.

  • Hi Maulik

    Yes, there are already some samples in Zephyr showing how to use this functionality. Just look for any sample starting with "periodic advertising" in the Bluetooth samples section

    Best regards
    Torbjørn

Related