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

BLE App Beacon Advertisement Period

I am using "ble_app_beacon" code in nRF5_SDK_17.0.2 so that it beacons every 10 seconds. 

When I increase beaconing period (NON_CONNECTABLE_ADV_INTERVAL) above 10.24s, the code does not work and I get this in the Debug terminal: 

<info> app_timer: RTC: initialized.
<error> app: ERROR 7 [NRF_ERROR_INVALID_PARAM] 
PC at: 0x0002EAA1
<error> app: End of error report

How can I increase beaconing period above this limit? 

Thanks

  • Hi,

    A advertising interval above 10.24s is not supported. If you need a longer period, then I suggest you stop an start advertising. For instance, configure advertising with a long interval and start it regularly with a repeated app_timer with an interval of what you want (say 100 s to pick a number). In addition to starting advertising, also start a single shot app_timer at the same time with a decent delay (to accomodate the random offset and some margin) - say 20 ms. In that timeout handler, stop advertising. That way you know that you only send a single packet (on all three advertising channels) every time you start advertising.

    Einar

Related