This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

S130 simultaneous scan & advertise problem

I'm trying to implement a simultaneous broadcaster observer by calling ble_gap_adv_start() and sd_ble_gap_scan_start() and waiting for respective events.

If I call advertising start first and scan start second, everything works fine. However, if I call scan start first and advertising start second, ble_gap_adv_start() returns invalid state.

The reason I need to call advertising start second, is that I'm always scanning but advertising only when I scan something of interest.

Am I doing something wrong?

Thanks,

K

  • Hi all,

    After some investigation I managed to reproduce and locate the problem and it turns out this is an issue within the SoftDevice. This issue has since been corrected and will be included with the next release of the S130 SoftDevice.

    It can be worked around by temporarily disabling scanning before starting advertising.

    Apologies for the inconvenience and thanks to Konstantin for the help debugging this.

    Regards,

    Carles

  • Thanks! Are you able to share the timeframe for the next S130 release?

  • I am sorry, I am only an engineer. Please contact your Nordic representative for information on future updates and products.

  • The above discussion took place in September 2014. Today, 1y2m later, I still see S130 version 1.0.0 in the latest SDK (10.0.0). Does this mean that this error has not been fixed yet?

  • It has, but there has not been a production release of a new S130 SoftDevice yet (a new one is coming soon). In the meantime you can use the S130 2.0.0 alpha which has the fix. Unfortunately there is no compatible SDK yet, but that also is coming very soon. Apologies for the delay, but the 2.0.0 release is a major one (many subsystems have been reworked) and that is why it has taken longer than expected.

Related