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

Implement scan request / scan response by directly accessing radio

Hello

Beacon using timeslot API

I am trying to implementing a beacon functionality using your timeslot API.

The beacon shall run in parallel to the normal SoftDevice operations such as advertising / being in a connection.

Using your Multi Activity Example (https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/ble_sdk_app_multi_activity.html) as a reference, I was able to implement a beacon in non-connectable/non-scannable mode.

Scannable beacon

Now, I would like to make the beacon scannable.

I know that this is not common for a beacon. But, since some vendors offer the option, I am assuming, our customers would want it too.

As with the timeslot API the radio is accessed directly, I assume, waiting for a scan request and sending the response while complying to all timing restrictions must be implemented manually using low-level direct access to the radio?

Would you maybe have an example where something similar was done before or do you have a recommendation on how best to proceed?

Thank you in advance for any help you might be able to provide.

Kind regards,

spuhlele

  • Hi,

    FIY the example that you're referring to is from an old SDK and isn't included in any of the newer SDK versions. We don't have any examples that implement this and it can be a bit complicated to implement as you must indeed write everything directly to the radio registers if you don't use the Softdevice.  What you can do is use two advertisement buffers which contain your advertisement data and change between them on the fly. Is there a specific reason as why don't want to use the radio timeslots?

     regards

    Jared

Related