<?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 Usage when connected to nRF Connect Android App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90610/power-usage-when-connected-to-nrf-connect-android-app</link><description>Hi 
 
 I am testing a thermometer peripheral using the nRF52840DK. It is advertising using BT LE Coded (BT_LE_ADV_OPT_CODED) with an advertising frequency of 3 seconds. 
 When it is advertising it is using ~20&amp;#181;A of power. When I connect to the peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Aug 2022 12:00:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90610/power-usage-when-connected-to-nrf-connect-android-app" /><item><title>RE: Power Usage when connected to nRF Connect Android App</title><link>https://devzone.nordicsemi.com/thread/382672?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 12:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81296ccc-0ad7-4c4b-9791-0c008e882607</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Gary,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the file : zephyr\subsys\bluetooth\host\gatt.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&amp;nbsp;&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;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Usage when connected to nRF Connect Android App</title><link>https://devzone.nordicsemi.com/thread/382495?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 14:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eab36a70-a489-429f-badf-f102758b6284</guid><dc:creator>Gary T</dc:creator><description>&lt;p&gt;Hi Kazi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s perfect. I hadn&amp;#39;t set the timeout value.&lt;/p&gt;
&lt;p&gt;I have set it now and it works correctly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When the max is set to 500ms the power usage is 15&amp;micro;A. Very nice!&lt;/p&gt;
&lt;p&gt;When set to 4s the power usage is only 7&amp;micro;A but the response times when pulling data are too slow.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know which file you extracted the screenshot from.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Gary&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Usage when connected to nRF Connect Android App</title><link>https://devzone.nordicsemi.com/thread/382486?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2022 13:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a2d553b-55ae-4352-941d-a9ddcb369697</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Gary,&lt;/p&gt;
&lt;p&gt;Is the preferred time is 1/4 of the supervision timeout in your configuration?&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/pastedimage1660917401384v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is another requirement for preferred connection interval.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Usage when connected to nRF Connect Android App</title><link>https://devzone.nordicsemi.com/thread/381697?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 07:37:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c05fea88-5abb-4a13-82c1-cb621a6bfdd7</guid><dc:creator>Gary T</dc:creator><description>&lt;p&gt;Hi Kazi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your feedback.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was successful in changing the connection interval from the default (~45ms to around ~150ms) by adding the CONFIG&amp;#39;s you mention below to the PRJ.conf file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Interestingly, if I set the MAX_INT beyond 160 then I get a compile error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example, if I use the exact values you provide below, it doesn&amp;#39;t work.&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/pastedimage1660634862318v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;According to the docs it seems I should be able to set this anywhere from 6 to 3200.&lt;/p&gt;
&lt;p&gt;Any ideas on what&amp;#39;s causing this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thankfully, setting to 160 has dropped the power usage while connected from ~235&amp;micro;A to ~60&amp;micro;A which is good enough for me (although I would like it lower).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Usage when connected to nRF Connect Android App</title><link>https://devzone.nordicsemi.com/thread/380424?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 14:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90effad6-3907-4d48-a3ac-9a2797173a9f</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Gary,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The following configs set the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;preferred&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;connection interval:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_BT_PERIPHERAL_PREF_MIN_INT=3100&lt;/p&gt;
&lt;p&gt;CONFIG_BT_PERIPHERAL_PREF_MAX_INT=3200&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However as you said that the peripheral can only have preferred connection interval settings. It is always the central that decides what you actually get.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;Regarding nRF Connect for android app, you can read this link&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/21398766/android-ble-connection-time-interval"&gt;https://stackoverflow.com/questions/21398766/android-ble-connection-time-interval&lt;/a&gt;&amp;nbsp;. It is possible to choose between a few intervals, but you are not free to set it to any value that you want.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;#39;&amp;#39;I also have another question related to the connection timeout for the nRF Connect Android App.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If I set my advertising interval on my peripheral to 2 seconds the app connects reliably. If I set it to 3 seconds then sometimes it connects but sometimes it times out. If I set it to 5 seconds then it never seems to connect. Is there a specific connection timeout in the app? Is there a way for me to adjust this?&amp;#39;&amp;#39;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If the advertising is slow then there is a higher chance that the central will not pick the advertising packets up.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can read the following blog post:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/bluetooth-smart-and-the-nordics-softdevices-part-1"&gt;https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/bluetooth-smart-and-the-nordics-softdevices-part-1&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>