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.

  • Hi,

    I am using the following calculations to calculate the power consumption for the chip:

    Formulae to calculate battery power consumption:

    Current consumption is calculated /hour: BLE Transmission current = 16mA: active for 20ms/ minute, hence active for 1.2 seconds per hour BLE sleep current = 8uA: subtracting 1.2 seconds active period from 1 hour: in sleep for 3598.8 seconds/ hour

    Total current consumption/hour = (Active current consumption X time)/3600 + (Sleep current consumption X time)/3600

    Total current consumption = (16000 uA X 1.2 s)/3600 s + (8 uA X 3598.8 s)/3600 s

    Total current consumption for an hour = 5.3 uA + 8 uA

    Total current consumption an hour = 13.6 uA

    Total current consumption for day = 13.6 uA X 24

    Total current consumption for day = 326.4 uA

    Can you please tell me if this is correct or am i wrong somewhere?

    Thanks

Reply
  • Hi,

    I am using the following calculations to calculate the power consumption for the chip:

    Formulae to calculate battery power consumption:

    Current consumption is calculated /hour: BLE Transmission current = 16mA: active for 20ms/ minute, hence active for 1.2 seconds per hour BLE sleep current = 8uA: subtracting 1.2 seconds active period from 1 hour: in sleep for 3598.8 seconds/ hour

    Total current consumption/hour = (Active current consumption X time)/3600 + (Sleep current consumption X time)/3600

    Total current consumption = (16000 uA X 1.2 s)/3600 s + (8 uA X 3598.8 s)/3600 s

    Total current consumption for an hour = 5.3 uA + 8 uA

    Total current consumption an hour = 13.6 uA

    Total current consumption for day = 13.6 uA X 24

    Total current consumption for day = 326.4 uA

    Can you please tell me if this is correct or am i wrong somewhere?

    Thanks

Children
No Data
Related