About adv data update timer

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
dhrishi
Offline
Last seen:3 years 3 months ago
加入:2017-02-10 09:56
About adv data update timer

Hi,

In most of the peripheral applications, I see that an update adv data timer is used and after 10 seconds it restarts the advertisement. Is this correct?
I want to know, if this is necessary everytime?

Our setup is such that DA14580 is connected to external MCU over UART and it receives the BLE commands over UART.
In this case, can I completely eliminate the use of udpate timer and instead add an API to stop advertisement separately.
This stop advertisement API would have the call to app_easy_gap_advertise_stop(); Does this seem correct?

So, what will happen is, the advertisement will go through continuously when I do not require any change in advertisement data and when an update is to be done, we will stop and start the advertisement.

Device:
STS_Dialog(未验证)
Hi dhrishi,

Hi dhrishi,

You are right about the advertising data timer, it restarts every 10 seconds (you can choose it’s value).It’s not necessary to use the timer, the time out of the advertising is optional. You can advertise for example until the battery times out. You can simply stop the advertisement by calling the app_easy_gap_advertise_stop function at the point you like in your implementation. The advertising procedure doesn’t time out in unless it is instructed otherwise.

Thanks,

STS_Dialog