Hi, I want to know if it's possible to disable ble completely and then re-enabling it converting device from peripheral to central.
Thanks.
Hi, I want to know if it's possible to disable ble completely and then re-enabling it converting device from peripheral to central.
Thanks.
I am not user of that softdevice, but check S130 - it supports both: central and peripheral roles.
Like Wojtek already answered. Only S130 can be used if you want your device to act as central and peripheral. You do not need to disable S130 softdevice
, when done with central, just stop all Central activities and start your peripheral initialization and start advertising. There are examples for this in SDK9.0
S120 2.x.x does in fact have both central and peripheral roles, selectable at time of enabling. It is not necessary to do this for S130 as you mention.
Ulrich: is it possible for S120 to initialize soft device as central, do some central activity, disable and inisitalize it as peripheral?
S130 has both roles simultaneously without any activation, and this cannot be configured. But it has more buffers available per link than the S120. The S120 has only 1 user buffer available per link in the central role, which is why we allow disabling/enabling a peripheral with more throughput. This is useful for e.g. DFU, and we still keep the memory footprint low. This "feature" might not have been communicated well enough, but it is there nonetheless :)