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

Wake BLE advertiser up and then disconnect

Hi there, 

How can I manually  awake my advertiser which is in low power mode,  to start advertising and get it back to sleep after it advertises certain number of packets?

Thanks in advance

Parents
  • Hello,

    manually  awake my advertiser which is in low power mode

    Do you mean SYSTEM OFF or SYSTEM ON sleep, when you say low power mode? And do you mean that you would like to wake it up with a button push, for example, when you say manually?

    to start advertising and get it back to sleep after it advertises certain number of packets?

    For a rough estimate of the sent packets you can just divide your configured advertising timeout on your configured advertising interval, to know how many packets have been sent. Once the advertising times out the device can go to sleep.
    For a precise packet count you can use Radio Notifications from the SoftDevice to count the times the radio has been advertising, and then stop the advertising when it reaches a specific number.

    Best regards,
    Karl

Reply
  • Hello,

    manually  awake my advertiser which is in low power mode

    Do you mean SYSTEM OFF or SYSTEM ON sleep, when you say low power mode? And do you mean that you would like to wake it up with a button push, for example, when you say manually?

    to start advertising and get it back to sleep after it advertises certain number of packets?

    For a rough estimate of the sent packets you can just divide your configured advertising timeout on your configured advertising interval, to know how many packets have been sent. Once the advertising times out the device can go to sleep.
    For a precise packet count you can use Radio Notifications from the SoftDevice to count the times the radio has been advertising, and then stop the advertising when it reaches a specific number.

    Best regards,
    Karl

Children
No Data
Related