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
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
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
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