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

Advertising Interval configuration

Hi,

I would like to know can i configure advertising interval for more than 10.24 seconds. Which are the functions i can use for configuring advertising interval.

Also is there a function to stop advertising data.

Basically, i am developing an application which is a bettery operated device. And if advertise data every 10 sec my battery will last for 3-4 days. But the application demands that battery should be operational for a period over 7 days.

Hence, i was thinking whether is it possible to advertise data every few minutes. Is there a way to achieve this?

Thanks

Parents
  • No you can't configure for more than 10.24 seconds, that's the max that the BTLE spec allows.

    the function to stop advertising is sd_ble_gap_adv_stop(), it's listed right below the one to start advertising, sd_ble_gap_adv_start().

    You must have a very small battery. Typically devices which advertise a lot more often than once every 10 seconds have battery lives measured in months or years. What's your calculation for battery life based on?

    Yes you can turn advertising on for a short time, then, using a timer, turn it off again (or possibly even just use the advertising timeout value to turn it off, that probably works). Then use a timer to wake up and start it again a number of minutes later. You can start and stop advertising as many times as you like.

  • Sumit, your current consumption question is different and not related to this thread(and title). Can you please accept RK's answer if you think that he has answered your main question. I recommend you to create another question regarding the power consumption.

Reply Children
No Data
Related