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

Using peripheral-only softdevice with timeslot API for central purposes

Hello, i have a question about program interaction with softdevice and using timeslot API.

I have custom board with nRF52811 chip on it and want to realize peripheral and central functionality. At first i used SD140 with SDK v16, but SD140 is quiet large and i didn't have enough FLASH memory for my program. So my question is: it is possible to use, for example, SD112/SD113 only for peripheral purposes and timeslot API or anything else for central purposes (observing advertising packets)?

UPD: i found a "experimental_ble_app_multiactivity_beacon" example in SDK v11, in "scanner_beacon.h" states: "This module implements an Scanner which can be run in parallel with the S110 (thus allowing, for example, to scan while in a connection or while advertising)" and S110 is Bluetooth Low Energy Peripheral protocol stack for the nRF51 Series SoCs. So i conclude that i can run scanning with peripheral-only softdevice. But there is a new question: after i finished working with scanning timeslot session, do i need to restore advertising parameters and registers to their initial values or softdevice will do it for me?

Parents
  • Hi,

    As you already found out; yes this is possible.

    But there is a new question: after i finished working with scanning timeslot session, do i need to restore advertising parameters and registers to their initial values or softdevice will do it for me?

    If you are e.g. doing advertising, and scanning in the timeslot, then the SoftDevice will continue to advertise after the timeslot. You don't need to initialize / restore the advertising parameters to the SotftDevice again.

Reply
  • Hi,

    As you already found out; yes this is possible.

    But there is a new question: after i finished working with scanning timeslot session, do i need to restore advertising parameters and registers to their initial values or softdevice will do it for me?

    If you are e.g. doing advertising, and scanning in the timeslot, then the SoftDevice will continue to advertise after the timeslot. You don't need to initialize / restore the advertising parameters to the SotftDevice again.

Children
Related