<?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>NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118684/nus-example-when-connected-see-current-pulse-50ms-interval</link><description>ncs v2.9.0 
 nRF52832 DK (NUS central) 
 nRF52840 DK (NUS peripheral) 
 1) When connected, see the empty PDU from peripheral to central about 100ms interval. 
 
 2) To use the power monitor to watch the current consumption, the current pulse is about</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2025 14:29:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118684/nus-example-when-connected-see-current-pulse-50ms-interval" /><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/525307?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 14:29:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a568e617-2ca7-4c2d-9ccd-35bf5d629f51</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="James168"]&lt;p&gt; Yes, using the latter peripheral_uart sample to send packet to central_uart, the current consumption is higher than online power profiler. I disable the UART in prj.conf and use timer expire to send packet from peripheral to central.&lt;/p&gt;
&lt;p&gt;2) I send 13 bytes from nRF52840 &lt;span style="color:rgba(255, 0, 0, 1);"&gt;&lt;strong&gt;dongle&lt;/strong&gt;&lt;/span&gt; (peripheral_uart) to nRF52832 DK (central_uart), and change connection interval to 100ms, so the measured current consumption is about 102 &lt;span&gt;µA&lt;/span&gt;, and the online power profiler is about&amp;nbsp;&lt;span&gt;79 µA as the following.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7318.pastedimage1739783112726v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Online power profiler application does only estimate the current consumption of the BLE stack. Anything extra in the application such as timers will consume additional current that is not taken into consideration by the estimation. I think what you measure is within what is acceptable.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/523998?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 07:25:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:894e3527-b0df-43bc-8ce3-d55ee15c4214</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;1) I attach the code, and most of the modified codes are between line 587 to line 692, the other modifications are used to disable the LED and UART.&lt;/p&gt;
&lt;p&gt;To use send_data() to send the packet 10s interval, the connection interval is 100ms.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4188.peripheral_5F00_uart_5F00_v290_5F00_low_5F00_power_5F00_250221_5F00_connected_5F00_send_5F00_data_5F00_10s_5F00_interval.7z"&gt;devzone.nordicsemi.com/.../4188.peripheral_5F00_uart_5F00_v290_5F00_low_5F00_power_5F00_250221_5F00_connected_5F00_send_5F00_data_5F00_10s_5F00_interval.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2) About run the power profile sample, I did press the button 1 or button 2, and I can see entering the system off mode from the log.&lt;/p&gt;
&lt;p&gt;I doubt the sample use&amp;nbsp;&lt;/p&gt;
&lt;p&gt;bt_le_ext_adv_start(adv_set, &amp;amp;connectable_start_param);&lt;/p&gt;
&lt;p&gt;to send the advertising, does the wireshark can capture the extended advertising packet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/523867?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 10:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcf1b078-98dc-4f34-b5e0-566c3a8e179f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;ok, on a second thought, the power profiler sample does not support the dongle as it requires you to press button 1 to wakeup the device from sleep and start advertising.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you can share the modified code&amp;nbsp;that you use here, and I&amp;#39;ll check if I can give you any suggestions to decrease the current.&amp;nbsp;&lt;/p&gt;
[quote user="James168"]I used button to trigger send the packet before, and today I change to use timer interval to send packet when timer is expired and the current pulse happened just once. It seems normal now. But the power consumption is large than the &amp;quot;Online Power Profiler for Bluetooth LE&amp;quot; about 30uA.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/523807?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 07:02:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c06e83f-89fc-41eb-bd33-d82bb0a1a51b</guid><dc:creator>Bhagyashree badiger</dc:creator><description>&lt;p&gt;How did you measure this current.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/523466?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 11:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6583dc2-7434-4912-ab59-89e5c8478057</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;1) I am using nrf52840 dongle for test, but using nrf52840 DK and sw6 to &amp;quot;nRF only&amp;quot; almost the same current value.&lt;/p&gt;
&lt;p&gt;2) Can power profiler sample packet be captured by wireshark? I see nothing when advertising.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/523322?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 14:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab9df057-83fa-40fe-bdaf-a951c1c3be12</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have you set the development kit to nrf Only on switch 6?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;I think the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/bluetooth/peripheral_power_profiling/README.html"&gt;Bluetooth power profiler sample&lt;/a&gt; is better for power profiling.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/523197?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 09:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c158896-e418-4c74-ac41-339ce55d99fa</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) Yes, using the latter peripheral_uart sample to send packet to central_uart, the current consumption is higher than online power profiler. I disable the UART in prj.conf and use timer expire to send packet from peripheral to central.&lt;/p&gt;
&lt;p&gt;2) I send 13 bytes from nRF52840 &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;dongle&lt;/strong&gt;&lt;/span&gt; (peripheral_uart) to nRF52832 DK (central_uart), and change connection interval to 100ms, so the measured current consumption is about 102 &lt;span&gt;&amp;micro;A&lt;/span&gt;, and the online power profiler is about&amp;nbsp;&lt;span&gt;79 &amp;micro;A as the following.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1739783112726v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) I have read the following data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/power_general.html"&gt;docs.nordicsemi.com/.../power_general.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/523069?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 14:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5a297f0-0da2-453b-ac4a-b37d61fae814</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Ok so the original issue has been resolved, and now the issue is that you measure a higher average current than expected?&lt;/p&gt;
&lt;p&gt;Are you using the &lt;a href="https://docs.zephyrproject.org/latest/samples/bluetooth/peripheral_nus/README.html"&gt;peripheral nus sample from Zephyr&lt;/a&gt;&amp;nbsp;or &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;peripheral UART&lt;/a&gt;&amp;nbsp;sample from NRF folder? Are you now measuring on central or peripheral?&lt;/p&gt;
&lt;p&gt;You say that you measure 30 µA more than expected when using the online power profiler. Exactly how much do you measure?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/522398?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 10:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb4a07ff-5888-4934-81ab-ba654766c301</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I used button to trigger send the packet before, and today I change to use timer interval to send packet when timer is expired and the current pulse happened just once. It seems normal now. But the power consumption is large than the &amp;quot;Online Power Profiler for Bluetooth LE&amp;quot; about 30uA.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1739269770200v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/522158?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 10:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f607a6-dabf-4f6c-b313-9d90a60a958a</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;1) connection interval is unmodified, the default values are&lt;/p&gt;
&lt;p&gt;#define BT_GAP_INIT_CONN_INT_MIN 0x0018 /* 30 ms */&lt;br /&gt;#define BT_GAP_INIT_CONN_INT_MAX 0x0028 /* 50 ms */&lt;/p&gt;
&lt;p&gt;I think maybe the sniffer can&amp;#39;t capture all packets for channel hopping condition, so the interval changed to 100ms in the wireshark.&lt;/p&gt;
&lt;p&gt;I got empty PDU packets interval 50ms sometimes in the wireshark.&lt;/p&gt;
&lt;p&gt;2) To send &amp;quot;hello\n&amp;quot; once waveform as the following, the sampling rate is 32k/s, maybe not the real waveform.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1739181706709v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;zoom in&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1739181785353v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;zoom in&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1739181890203v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It seems have 6 spikes matching the 6 bytes data, but why it continued many times in 10ms interval?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/521974?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 14:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0410b60-8416-402a-a3ab-eab1abe8d391</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Can you zoom into one of the &amp;quot;pulses&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/521962?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 14:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa1205f1-55f9-432c-b120-cdb6c2622eac</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I have another question to send &amp;quot;Hello\n&amp;quot; 6 bytes about current consumption, can you reply also?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/521908?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 12:07:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6779de2-cb4a-4b12-be18-dcfc90a78323</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;That looks indeed like current consumed from the Radio, is the sample unmodified?&lt;/p&gt;
&lt;p&gt;Could it be that the interval starts at 50 ms and then increases to 100 ms later? Do you see the same if you measure current after some time has elapsed?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example, when connected, see current pulse 50ms interval</title><link>https://devzone.nordicsemi.com/thread/521895?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 10:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad76d395-310a-4756-b993-f893ab41a4f2</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;I send &amp;quot;Hello\n&amp;quot; 6 bytes from peripheral to central to test peripheral TX current consumption, and I see many pulses more than 6 in the power monitor. It continued about 420ms, how to explain it and how to improve it?&lt;/p&gt;
&lt;p&gt;I expect to see the current like the &amp;quot;Online Power Profiler for Bluetooth LE&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738923951260v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The following is the power monitor screen captured,&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738923987918v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;zoom in&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738924042086v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738924060892v4.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>