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

Scanning and Advertising at the same time using s130 on nrf51822 ?

I have successfully implemented Scanning and Advertising at the time using s132 on nrf52832 with SDK14, it works very stable and fast which satisfied me.

Recently, I was working the same function on nrf51822 with SDK12. But this is not going as expected. The code works fine, but there are some delays always, like delay on starting an advertising or stopping an advertising when scanning is running.

So I came to this question, is it possible Scanning and Advertising at the same time using s130 on nrf51822 with SDK12 ?

  • Hi,

    It is possible to do scanning and advertising at the same time with nRF51822/S130 as well, it works just the same as nRF52832. If the softdevice is busy handling some event, the application will have to wait for the softdevice to finish before you can handle other events. This is also the case on nRF52832. The nRF51 series have a less powerfull CPU, which could cause some slightly longer delays than on nRF52, but if you are seeing very long delays, this sounds more like an application issue.

    Can you give some examples of the delays you are seeing? Have you tried the same example on nRF51 and nRF52, to compare performance?

    Best regards,
    Jørgen

  • Hi Jørgen, Thank you, after weeks, I have implemented Scanning and Advertising function on my nrf51822 with s130. They are running at the same time. But sometimes I have to stop Advertising and restart it later. At this point, which the scanning is always running but Advertising restarts sometimes, there are some delays for stopping an Adv and restart it. But I found where is problem, my scan window and scan interval both are 120ms. Then I changed Scan interval to 250 and Scan window to 100. After this, everything becomes stable, the Scanning is running continuously, and restarting Adv also become fast.

    Thanks Jørgen,

    Best thanks,

    Nijat

Related