<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BLE advertising beacon eddystone data over air then go to sleep in system ON mode periodically need example of this?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98540/ble-advertising-beacon-eddystone-data-over-air-then-go-to-sleep-in-system-on-mode-periodically-need-example-of-this</link><description>i am using nrf connect extension in vs code with Zephyr os version v3.2.99-ncs2 . i use BLE beacon sample on NRF52833 development Kit. i want to build Application in which device send specific string of data over ble without making Connection to scanner</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Apr 2023 05:33:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98540/ble-advertising-beacon-eddystone-data-over-air-then-go-to-sleep-in-system-on-mode-periodically-need-example-of-this" /><item><title>RE: BLE advertising beacon eddystone data over air then go to sleep in system ON mode periodically need example of this?</title><link>https://devzone.nordicsemi.com/thread/420375?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 05:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12f7c4ed-67ab-4abd-9580-139c21c18bad</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;thanks for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising beacon eddystone data over air then go to sleep in system ON mode periodically need example of this?</title><link>https://devzone.nordicsemi.com/thread/420133?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 08:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88138ca3-bfda-40ea-b25d-4c65bbd05d12</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="starkAbhi"]1. my requirement of project to use 3v/3.3v button cell with nrf52833 soc. to advertise for 1 second and goes to sleep for 3 second periodically. minimum total average current should be in range 3uA - 20uA.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Do you mean to send&amp;nbsp;several advertising pckets during this one second, and then no for the next 3 seconds, and then some for 1 second again, etc? If so, you can still use the online power profiler to estimate the current consumption but you need to do some simple calculations your self in addition to take into account that you are only actively advertising for 25% of the time, and for the rest of the you have the idle current consumption.&lt;/p&gt;
[quote user="starkAbhi"]2. timer interrupt alarm,&amp;nbsp; i have been use this timer. to &lt;em&gt;toggle&lt;/em&gt;&amp;nbsp;led. does below code will wakeup the nrf52833 dk from event based sleep? or please suggest code sample and advice regarding sleep?[/quote]
&lt;p&gt;The&amp;nbsp;counter_set_channel_alarm API can use both an RTC and TIMER as backend, and if it use an RTC it will be low-power. If use a TIMER, it will not (I do not know what your&amp;nbsp;counter_dev_o is though). I would suggest using other Zephyr time API instead. For LED blinking for instance, I would just use&amp;nbsp;k_msleep() as you can see&amp;nbsp; in the blinky example. This will pause the thread for the specified amount of time, and the kernel handles the timing using an RTC.&lt;/p&gt;
[quote user="starkAbhi"]3. in online power profiler, it shows total average current. how many samples of measurement does it take to conclude its total average current.[/quote]
&lt;p&gt;This doe snot sample anything, but it is based on models that we have feed a lot of&amp;nbsp;measurement&amp;nbsp;data into. You can see in the plot which current consumption levels calculate for which duration of time with the given configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising beacon eddystone data over air then go to sleep in system ON mode periodically need example of this?</title><link>https://devzone.nordicsemi.com/thread/420099?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 07:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9116205-c9fe-4ed0-add3-1ab242fdbc67</guid><dc:creator>starkAbhi</dc:creator><description>&lt;h1 id="mcetoc_1gtso50ot0"&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;hi,&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;Einar Thorsrud said:&lt;/blockquote&gt;
&lt;blockquote&gt;I understand. But please keep in mind that the lowest possible sleep current might not give you the lowest possible average current consumption, which in the end is what determines the battery life. (Like in the case I described in my previous post, if you don&amp;#39;t&amp;nbsp;retain RAM etc, you will need to do more processing when the device wakes up, and the resulting average power consumption may be higher).What is your requierment for average current consumption? You can use the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le"&gt;online power profiler&lt;/a&gt;&amp;nbsp;to see estimates on what it can be so that you will see what you can realistically achieve (this does not have the nRF52833, but you can select nRF52840 to get comparable numbers).&lt;/blockquote&gt;
&lt;p&gt;starkAbhi:&lt;/p&gt;
&lt;p&gt;i got your point. now i am constraint to use &amp;quot;ram retention rtc wakeup&amp;quot; sleep mode to decrease current consumption. thanks to share. i will definitely use online power profiler tool.&lt;/p&gt;
&lt;p&gt;1. my requirement of project to use 3v/3.3v button cell with nrf52833 soc. to advertise for 1 second and goes to sleep for 3 second periodically. minimum total average current should be in range 3uA - 20uA.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;Einar Thorsrud said:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the nRF Connect SDK, one RTC is always used by the OS (Zephyr) to keep track of time. This is used to wake up as needed, and you can use the normal zephyr clock API&amp;#39;s (see&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/zephyr/kernel/services/timing/clocks.html"&gt;Kernel Timing&lt;/a&gt;). With this, the kernel handles the detail, and you get low power timers exposed to the application. This is generally what all nRF Connect SDK and Zephyr applications use.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;starkAbhi:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. timer interrupt alarm,&amp;nbsp; i have been use this timer. to &lt;em&gt;toggle&lt;/em&gt;&amp;nbsp;led. does below code will wakeup the nrf52833 dk from event based sleep? or please suggest code sample and advice regarding sleep?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;counter_start(counter_dev_o);
	gpio_pin_set_dt(&amp;amp;led,1);
	alarm_cfg.flags = 0;
	alarm_cfg.ticks = counter_us_to_ticks(counter_dev_o, DELAY);
	alarm_cfg.callback = test_counter_interrupt_fn;
	alarm_cfg.user_data = &amp;amp;alarm_cfg;

	err = counter_set_channel_alarm(counter_dev_o, ALARM_CHANNEL_ID,&amp;amp;alarm_cfg);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1218x202/__key/communityserver-discussions-components-files/4/current_5F00_consumption.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;starkAbhi:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. in online power profiler, it shows total average current. how many samples of measurement does it take to conclude its total average current.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:201px;max-width:503px;" alt=" " height="201" src="https://devzone.nordicsemi.com/resized-image/__size/1006x402/__key/communityserver-discussions-components-files/4/power_5F00_settings.PNG" width="503" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising beacon eddystone data over air then go to sleep in system ON mode periodically need example of this?</title><link>https://devzone.nordicsemi.com/thread/419890?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 08:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d742ab2c-6fdc-4cff-847e-5b64bd3b3d51</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="starkAbhi"]&lt;p&gt;yes, my requirement of project is to&amp;nbsp;consume&amp;nbsp;minimal amount of current from small lipo battery.&lt;/p&gt;
&lt;p&gt;1. sleep current is should be less than 2uA .&lt;/p&gt;[/quote]
&lt;p&gt;I understand. But please keep in mind that the lowest possible sleep current might not give you the lowest possible average current consumption, which in the end is what determines the battery life. (Like in the case I described in my previous post, if you don&amp;#39;t&amp;nbsp;retain RAM etc, you will need to do more processing when the device wakes up, and the resulting average power consumption may be higher).&lt;/p&gt;
&lt;p&gt;What is your requierment for average current consumption? You can use the &lt;a href="https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le"&gt;online power profiler&lt;/a&gt; to see estimates on what it can be so that you will see what you can realistically achieve (this does not have the nRF52833, but you can select nRF52840 to get comparable numbers).&lt;/p&gt;
[quote user="starkAbhi"]1. how i can implement event base wakeup call during sleep ? event like software based timer interrupt?[/quote]
&lt;p&gt;In the nRF Connect SDK, one RTC is always used by the OS (Zephyr) to keep track of time. This is used to wake up as needed, and you can use the normal zephyr clock API&amp;#39;s (see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/zephyr/kernel/services/timing/clocks.html"&gt;Kernel Timing&lt;/a&gt;). With this, the kernel handles the detail, and you get low power timers exposed to the application. This is generally what all nRF Connect SDK and Zephyr applications use.&lt;/p&gt;
[quote user="starkAbhi"]2. how minimize the current consumption during advertisement? or which parameters are affecting the current and performance?[/quote]
&lt;p&gt;Tx power is important (particularily if you use a high Tx power), and the advertising interval. You can experiment with the effect of this using the online power profiler.&lt;/p&gt;
[quote user="starkAbhi"]as mentioned in product specification , ION_RAMON_EVENT System ON, full 128 kB RAM retention, wake on any event : 1.8uA.&amp;nbsp;[/quote]
&lt;p&gt;You also need an RTC running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising beacon eddystone data over air then go to sleep in system ON mode periodically need example of this?</title><link>https://devzone.nordicsemi.com/thread/419847?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 06:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22a92d9d-983e-470c-b18d-efd05c20a8e8</guid><dc:creator>starkAbhi</dc:creator><description>&lt;p&gt;hi, i hope you are doing well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;yes, my requirement of project is to&amp;nbsp;consume&amp;nbsp;minimal amount of current from small lipo battery.&lt;/p&gt;
&lt;p&gt;1. sleep current is should be less than 2uA .&lt;/p&gt;
&lt;p&gt;2. during advertisement&amp;nbsp; peak current is&amp;nbsp; should be minimum as much possible.&lt;/p&gt;
&lt;p&gt;currently i use this method to put nRf52833 Dk in sleep to consume 2.1uA with ble ON and&amp;nbsp; advertisement off.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void main(void) {
/* Initialize the Bluetooth Subsystem */
bt_enable(NULL);
while(1) {
bt_ready(0); //advertising
/* Update advertising */
//// -------simulating voltage increasing gradually-----------
vol_Per++;
adv_data[2] = vol_Per;
if (vol_Per &amp;gt; 64) {
vol_Per = 0;
}
k_sleep(K_SECONDS(1)); //1 second
//////////////////////////////////////////////////////
bt_le_adv_update_data(ad, ARRAY_SIZE(ad),sd, ARRAY_SIZE(sd));

k_sleep(K_SECONDS(10)); //WAIT time
// k_sleep( K_MSEC(100)); //WAIT time
bt_le_adv_stop();
pm_state_force(0u, &amp;amp;(struct pm_state_info){PM_STATE_SUSPEND_TO_IDLE, 0, 0}); //nrfonly switch: 2.2 uA 
k_sleep(K_SECONDS(3)); //update time
} //end of while
}//end of main&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;during advertisement&amp;nbsp; i use DMM to measure Current:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;advertisement window- min = 1 second , max= 1.2 second&lt;/p&gt;
&lt;p&gt;peak current advertisement = 99.4 uA&lt;/p&gt;
&lt;p&gt;sleep current = 2.1 uA&lt;/p&gt;
&lt;p&gt;//--------another parameter------------------------------------------&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;advertisement window- min = 100 millisecond , max=&amp;nbsp;150 millisecond&lt;/p&gt;
&lt;p&gt;peak current advertisement = 158.4uA&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sleep current = 2.1 uA&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. how i can implement event base wakeup call during sleep ? event like software based timer interrupt?&lt;/p&gt;
&lt;p&gt;2. how minimize the current consumption during advertisement? or which parameters are affecting the current and performance?&lt;/p&gt;
&lt;p&gt;as mentioned in product specification , ION_RAMON_EVENT System ON, full 128 kB RAM retention, wake on any event : 1.8uA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:101px;max-width:609px;" alt=" " height="101" src="https://devzone.nordicsemi.com/resized-image/__size/1218x202/__key/communityserver-discussions-components-files/4/current_5F00_consumption.PNG" width="609" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE advertising beacon eddystone data over air then go to sleep in system ON mode periodically need example of this?</title><link>https://devzone.nordicsemi.com/thread/419784?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 14:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feb440f6-75ab-4565-b193-785b561cf052</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is 1.6 uA sleep current a hard requierment?&lt;/p&gt;
&lt;p&gt;Based on what you write, the most sensible sleep mode is &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/_tmp/nrf52833/autodita/CURRENT/parameters.i_sleep.html?cp=5_1_0_4_1_0_0"&gt;ION_RAMON_RTC&lt;/a&gt; which is full RAM retention and wake on RTC. This will typically give you a idle cunsumption of&amp;nbsp;2.6 uA.You need wake on RTC as you don&amp;#39;t have an external wakeup source, and you also probably want RAM rentention so that you will not have do re-initialization on every wake-up. If you&amp;nbsp; don&amp;#39;t retain the RAM you will need to do re-initialization which takes time and CPU resources, and the average current consumption may be higher in the end.&lt;/p&gt;
&lt;p&gt;PS: You should not use the 0.7 OPS which was a preliminary specification. Use the latest official &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/keyfeatures_html5.html?cp=5_1_0"&gt;product specification&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>