<?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>Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88954/power-consumption---scanning-and-advertising-at-same-time---s140</link><description>Hi, 
 I&amp;#39;m working on a project using BLE via s140, everything works fine until I look more seriously at the current draw of the device. 
 Simply, my project starts a Scan which lasts X milliseconds and which repeats every 20seconds. In parallel, the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Aug 2022 07:38:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88954/power-consumption---scanning-and-advertising-at-same-time---s140" /><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/382149?ContentTypeID=1</link><pubDate>Thu, 18 Aug 2022 07:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e61488-07ff-4c57-8800-1d3fa1ce7a1c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;These lost scan windows are expected yes, but you should not have to worry about the scanning stopping entirely, as it will always just reschedule the next scan to a free time slot.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/381957?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 09:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0567281d-177f-433a-9781-5339346c6d38</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If I understood your answer correctly, I have no reason to be worried about the loss of one or more scan windows because the softdevice should make up for the losses in the next free time. Isn&amp;#39;t it ?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/381945?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 09:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89af5b47-1df2-44e8-9f82-53804d7de0dc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, thank you for explaining. I understand what you mean, unfortunately this is not something you can control in the app as it is part of the BLE specification and is expected to happen from time to time. Since there is a randomized delay of 0-10ms between advertisements there will always be a chance of this happening when doing both scanning and advertising, and the scanning will then request a new timeslot and do it on the next possible opportunity instead.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/381799?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 13:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b536a8e2-9752-44d6-abb2-6fc6a2a57fa3</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m afraid of is that advertising will break the long range scan. If the advertising interval is synchronized with the scan window, the Coded PhY risks being destroyed as shown below :&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/Scan1s_5F00_20s_5F00_periode_5F00_Adv100ms-_2D00_-Copie.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;but at each scan interval&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/381789?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 13:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a6213f0-9384-46b4-bcbb-dfd0575690c4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Well, if the scanning is doing something &amp;quot;important&amp;quot; like connecting the advertising won&amp;#39;t be allowed to &amp;quot;break&amp;quot; the scanning if that&amp;#39;s what you&amp;#39;re worried about. Let me know if I misunderstand and you&amp;#39;re worried about something else.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/381699?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 07:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a5ca82f-2ce4-4ea0-8c7c-4d10fa0a5e29</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I understand, but it makes it very dangerous to use Coded PHY when we want to advertise at the same time.&lt;/p&gt;
&lt;p&gt;Let me explain:&lt;/p&gt;
&lt;p&gt;When the device advertise, it cuts off the current scan. If we therefore increase the frequency of advertising, we risk breaking the pattern of the Coded PHY. No ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/380532?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db94c70-358f-47fe-aead-6b6109db3fec</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, then that makes more sense, as the Coded PHY is expected to draw more power than the Uncoded PHYs (1MBPS/2MBPS). This is mostly because the Coded PHY transmits all packages 8 times to ensure the longer range it provides,&amp;nbsp;and so the central will need to scan for more time as well, so I think this is only expected.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/378558?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 13:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08e34168-8994-40e2-9a41-c04c73798889</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, it is the only difference between the high and low current consumption.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/377365?ContentTypeID=1</link><pubDate>Mon, 18 Jul 2022 09:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d865cb5-feb8-491b-9638-3a0aaaa736a1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;This seems like the expected current consumption, so I guess that scanning the on the Coded PHY is what increases the current consumption actually then? Can you confirm that this is the only difference between the high and low current consumption measurements in your case?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/377130?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 09:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e20c8c78-dba8-4870-91a5-1e44102c0a8c</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;This is done on the uart_c project. Unfortunately, I could not provide the results on my custom project before S30&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/377127?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 09:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ea770e3-2935-4c45-8401-2daa16f42ea0</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Below are the results,&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/scan.JPG" 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/8132.scan_5F00_config.JPG" 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/1351.sdk_5F00_config.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/377091?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 07:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64bc9ac5-f483-4344-b3fc-61fa38f044f3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;So it&amp;#39;s not really related to these scan settings in your sdk_config.h at all? Can you test to see if removing the PHY_CODED scan parameter changes the current consumption?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/376819?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 15:15:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0b9d409-6f72-4af4-a1ff-813bcba5264a</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have my setup at hand but during my tests, I seem to remember that when I configured .scan_phy = BLE_GAP_PHY_1MBPS and not .scan_phy = (BLE_GAP_PHY_1MBPS | BLE_GAP_PHY_CODED), the consumption profile was correct.&lt;/p&gt;
&lt;p&gt;Unfortunately, this configuration change greatly impacts the SoftDevice environment and I cannot, from my point of view, explain this behavior.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/376802?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 14:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0afb6d18-82f4-4a59-a075-a1a8c334c0b7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, so when you set the scan duration to 100 by using the define in sdk_config.h the power consumption looks normal ~6mA. The only difference between the two configs (custom and default) I see now is the&amp;nbsp;NRF_BLE_SCAN_BUFFER size (31 vs. 255) but I&amp;nbsp;don&amp;#39;t think that&amp;#39;s what is hindering the scanning device from going to sleep between scans... Correct me if I&amp;#39;m wrong.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DEFAULT:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6864.default_5F00_sdk_5F00_config.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CUSTOM:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4721.sdk_5F00_config.JPG" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/376552?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 08:37:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eac1f81-0015-4b95-a70f-b72723c158fd</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, as you asked :&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/default_5F00_sdk_5F00_config.JPG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/376551?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 08:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbc8ed20-ffca-494f-b82b-871c6dbf4ad4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just to make sure, the &amp;quot;default scan configuration in this case is with the scan settings set to:&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/pastedimage1657614499157v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/376356?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 08:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd774282-d1fc-40ab-bc90-a5ddecc1d7cd</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&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/default_5F00_config.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is the result with the default scan configuration of the project&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/376351?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 08:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:892ffc46-6ff1-4595-890e-33d61757928a</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&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/2235.sdk_5F00_config.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&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/scan_5F00_init.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&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/0753.log.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&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/OnlyScan_5F00_duration_5F00_1s.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&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/OnlyScan_5F00_duration_5F00_1s_5F00_zoom.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Looks like the scan tries to stop before and after a scan window but is directly pulled to scan.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/376218?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 12:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d69dff7c-90e7-4e39-8583-5d60c8426a6a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, thank you for the detailed update. Can you, just to rule that part out, try just setting the NRF_BLE_SCAN_SCAN_DURATION to 100 (1 second) instead of 0 and not use your custom snippet so we can rule that out?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/375975?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 09:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63869ec4-9a87-4f21-9805-55bb8a5583bc</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So I used the example you mention and here are my results:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;On my custom board&lt;/strong&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;default configuration&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&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/CustomBoard_5F00_OnlyScan_5F00_defaultConfig.JPG" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&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/CustomBoard_5F00_OnlyScan_5F00_default.JPG" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="list-style-type:none;"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;span class="Y2IQFc" lang="en"&gt;custom configuration&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span class="Y2IQFc" lang="en"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="Y2IQFc" lang="en"&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/CustomBoard_5F00_OnlyScan_5F00_customConfig.JPG" alt=" " /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="Y2IQFc" lang="en"&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/CustomBoard_5F00_OnlyScan_5F00_customsdkConfig.JPG" alt=" " /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="Y2IQFc" lang="en"&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/CustomBoard_5F00_OnlyScan_5F00_custom.JPG" alt=" " /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;PCA10056&lt;/strong&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;default configuration&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&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/PCA10056Board_5F00_OnlyScan_5F00_default.JPG" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="list-style-type:none;"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;span class="Y2IQFc" lang="en"&gt;custom configuration&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&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/PCA10056Board_5F00_OnlyScan_5F00_custom.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/375816?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 13:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b70c33e-1574-4c59-8929-d564346d3dcb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, it still seems like the scanning in these two plots are scanning with a 100% duty cycle (scanning continuously). Can you try reading out the duty cycle (scan window) value when only scanning, as it doesn&amp;#39;t seem to be set to 50ms. It only seems to be the advertisements in the 100ms that actually stops the scanning every 100ms, so something seems to be wrong with the duty cycle when the advertiser doesn&amp;#39;t run. Do you see the same if you modify a pure central application as well (for example the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_c.html"&gt;Nordic UART service Client&lt;/a&gt;)?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/375471?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 08:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00e7094c-f1a3-4ac0-8d50-1e63e5e5e4bc</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Indeed, the default scan configuration is 0 (looping forever) but as you noted, I use the&amp;nbsp;&lt;strong&gt;ble_cus_scanconfig_update&lt;/strong&gt;() function to change it to 1s. To avoid any problem related to my application code, I therefore used the following configuration during my tests:&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/8883.onlyScan_5F00_config.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Yes, I correctly removed all traces of advertising during my &amp;quot;OnlyScan&amp;quot; test, I even checked on the nRF Connect app that my device was no longer visible.&lt;/p&gt;
&lt;p&gt;Knowing that scan lasts 1s and that advertising is configured at 3s interval. I just think that on the &lt;strong&gt;&amp;quot;Scan + Adv 3s Interval&amp;quot; &lt;/strong&gt;scheme, we fall between two advertisements, which explains the similarities with the &lt;strong&gt;&amp;quot;OnlyScan&amp;quot;&lt;/strong&gt; scheme.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/375462?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 07:51:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc1e94f-3a42-4719-a283-55c9b6e729c5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;You say that your scan duration is set to 1 second, but the&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;NRF_BLE_SCAN_SCAN_DURATION seems to be set to 0 (looping forever) in your sdk_config.h file (that shouldn&amp;#39;t be the issue though, but more for your information). I think it would be better to change this define to 1 second instead of using the &lt;strong&gt;ble_cus_scanconfig_update&lt;/strong&gt;() function you made yourself. Did you disable advertising altogether for your &amp;quot;&lt;strong&gt;Only Scan&lt;/strong&gt;&amp;quot; power profiler trace, because it seems almost identical to the 3s adv interval trace? Please make sure you disable/remove all mentions of advertising (both init, start, uninit, and so on).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/375344?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2022 13:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:082fb475-2546-4ae1-85ba-e6304420c786</guid><dc:creator>Pegaze</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;Thanks you for your answer!&lt;/p&gt;
&lt;p&gt;I have carried out some tests since our last exchanges and here are my conclusions:&lt;/p&gt;
&lt;p&gt;In order to use a sensor on our custom board, I had to implement its driver. Unfortunately too large, it was necessary to use optimization for memory (-02 for size). This caused, for some unknown reason, bluetooth packet transmission issues (seen last week). We decided to remove the use of the sensor temporarily in order to remove the optimization. As a result, the offsets you pointed to are no longer present.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Only Scan:&lt;/strong&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/OnlyScan1s_5F00_20s_5F00_duration.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Scan + Adv 3s interval:&lt;/strong&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/Scan1s_5F00_20s_5F00_duration_5F00_Adv3s.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Scan + Adv 100ms interval:&lt;/strong&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/Scan1s_5F00_20s_5F00_duration_5F00_Adv100ms.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;div id="KnM9nf"&gt;&lt;span id="tw-cst" class="tw-menu-btn KTDgic" data-ved="2ahUKEwjUsf-hrN_4AhXW0YUKHUkmARAQxZgCegQIAhAN"&gt;&lt;span class="tw-menu-btn-image z1asCe wuXmqc" title="Effacer le texte source"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="oSioSc"&gt;
&lt;div id="tw-target"&gt;
&lt;div id="kAz1tf" class="g9WsWb"&gt;
&lt;div id="tw-target-text-container" class="tw-ta-container F0azHf tw-nfl"&gt;
&lt;pre class="tw-data-text tw-text-large tw-ta" style="text-align:left;" dir="ltr" data-placeholder="Traduction"&gt;&lt;span class="Y2IQFc" lang="en"&gt;We can discuss the optimization problem but let&amp;#39;s focus on the consumption problem.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" style="text-align:left;" dir="ltr" data-placeholder="Traduction"&gt;&lt;span class="Y2IQFc" lang="en"&gt;I wanted a point of comparison. so I used the example code &lt;br /&gt;ble_app_blinky_c_pca10056_s140.hex&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="tw-data-text tw-text-large tw-ta" style="text-align:left;" dir="ltr" data-placeholder="Traduction"&gt;&lt;span class="Y2IQFc" lang="en"&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/Scanning.JPG" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class="oSioSc"&gt;
&lt;div id="tw-target"&gt;
&lt;div id="kAz1tf" class="g9WsWb"&gt;
&lt;div id="tw-target-text-container" class="tw-ta-container F0azHf tw-nfl"&gt;
&lt;pre class="tw-data-text tw-text-large tw-ta" style="text-align:left;" dir="ltr" data-placeholder="Traduction"&gt;&lt;span class="Y2IQFc" lang="en"&gt;We can observe a difference with my graphs which, after some research, turns out &lt;br /&gt;to come from the configuration of the scan and more precisely from &lt;br /&gt;ble_gap_scan_params_t.scan_phys&lt;br /&gt;&lt;br /&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/Scan_5F00_config.JPG" alt=" " /&gt;&lt;br /&gt;&lt;br /&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/scan_5F00_sdk_5F00_config.JPG" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;The only place the scan configuration is changed is here to change the scan duration&lt;/span&gt;:&lt;br /&gt;&lt;br /&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/scan_5F00_update_5F00_config.JPG" alt=" " /&gt;&lt;span class="Y2IQFc" lang="en"&gt;&lt;br /&gt;&lt;br /&gt;I therefore remain in the misunderstanding of the consumption levels between &lt;br /&gt;the configurations.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" style="text-align:left;" dir="ltr" data-placeholder="Traduction"&gt;&lt;span class="Y2IQFc" lang="en"&gt;I also carried out tests by deleting the application code but &lt;br /&gt;I obtain the same consumption results.&lt;br /&gt;&lt;br /&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/onlyScan_5F00_config.JPG" alt=" " /&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/onlyScan_5F00_TimeoutEvt.JPG" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Waiting for your feedback, I will adapt my code in order to test it &lt;br /&gt;on the PCA10056 evaluation board in order to have a common reference.&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;&lt;br /&gt;Pegaze&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" style="text-align:left;" dir="ltr" data-placeholder="Traduction"&gt;&lt;span class="Y2IQFc" lang="en"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" style="text-align:left;" dir="ltr" data-placeholder="Traduction"&gt;&lt;span class="Y2IQFc" lang="en"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Consumption - Scanning and Advertising at same time - S140</title><link>https://devzone.nordicsemi.com/thread/374326?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2022 10:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6288f627-e47f-49d1-bf0b-00885d793cfc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the late reply, I was out of office for the Embedded World trade show last week, so I didn&amp;#39;t have time to get back to you unfortunately.&lt;/p&gt;
&lt;p&gt;But, after looking closer at the Power profiler plots, it seems like the scan window might be causing trouble for you. The scanning process in the two scenarios draw ~2.5mA and ~5.5mA which is huge.&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/pastedimage1656327123213v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you compare the scanning plots you see that it scans with ~100 duty cycle on the last plot, vs. ~50% on the first one, see picture above. The red lines mark 100ms intervals. You say that the duty cycle of scanning is at 50% with&amp;nbsp;&lt;span&gt;Scan_Interval = 100ms and Scan_window = 50ms, which means that the top one is what we would expect, but it does seem like it still skips some scanning cycles and are sometimes &amp;quot;stuck&amp;quot; for 100ms.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So it seems like the scanning might not work as intended, either due to the advertising aborting scanning, or by itself. Can you double check that the scan_window is indeed set to 50ms for both scenarios, and try turning off advertising entirely, and see if the scan windows for different intervals seem more correct then?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>