<?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>Abrupt increase in the current readings Amidst Logs in Temperature Data Logger after connecting the peripheral while in the Advertising mode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81957/abrupt-increase-in-the-current-readings-amidst-logs-in-temperature-data-logger-after-connecting-the-peripheral-while-in-the-advertising-mode</link><description>Hi, I am trying to implement a Data Logger using nRF52832. I am using a Temperature Sensor to get the Temp readings(logs) and a Flash Memory to store those logs. The data logger functions first in the Advertising mode followed by the data logging mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Nov 2021 09:00:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81957/abrupt-increase-in-the-current-readings-amidst-logs-in-temperature-data-logger-after-connecting-the-peripheral-while-in-the-advertising-mode" /><item><title>RE: Abrupt increase in the current readings Amidst Logs in Temperature Data Logger after connecting the peripheral while in the Advertising mode.</title><link>https://devzone.nordicsemi.com/thread/340845?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 09:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c0b572c-c3c1-4090-b93d-02ef950b6fef</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for the traces. It does not seem like this extra current is tied to a changed connection interval, and it seems like the spikes are consistently occurring every ~190ms so the most likely culprit is a timer somewhere that triggers and wakes the chip every 190ms. Can you provide some more details on what your application does exactly? Can you also explain how exactly you measure the current consumption. Do you measure the current on a DK or on a custom board, and do you measure the current of the entire board or just the nRF?&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;stops logging after 3 logs&amp;quot; exactly? What is one log in this context, one BLE/connection event, or one set of data in I.E. a UART log? I would imagine it goes to sleep after these three logs, which is why it stops. Please check what other functions use the connection interval defines in their functions. You can also do a diff between to make sure that only the connection interval has been changed in the two applications.&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: Abrupt increase in the current readings Amidst Logs in Temperature Data Logger after connecting the peripheral while in the Advertising mode.</title><link>https://devzone.nordicsemi.com/thread/340695?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 11:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05b439d1-8f9f-41c6-baab-751820c12bc6</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;I have uploaded the trace of cases 1 and 2 separately as well as combinedly&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Trace_5F00_1_5F00_2_5F00_1_2B00_2.zip"&gt;devzone.nordicsemi.com/.../Trace_5F00_1_5F00_2_5F00_1_2B00_2.zip&lt;/a&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/81957/abrupt-increase-in-the-current-readings-amidst-logs-in-temperature-data-logger-after-connecting-the-peripheral-while-in-the-advertising-mode/340528#340528"]Are any other parameters affected by the changed connection intervals?[/quote]
&lt;p&gt;Yea, you&amp;#39;ll notice that in case 2 the BLE peripheral automatically stops logging after 3 logs, which is not the case in case 1. Kindly explain the reason behind this as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Abrupt increase in the current readings Amidst Logs in Temperature Data Logger after connecting the peripheral while in the Advertising mode.</title><link>https://devzone.nordicsemi.com/thread/340528?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 11:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cca6d43-ad66-454c-b054-47bf8d420291</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you export the PPK trace of&amp;nbsp;Case 2 and upload it here on DevZone in a .zip file so we can do a review. Or alternatively zoom in on the events between the data logging events so we can get a better look at them to determine if it&amp;#39;s just random noise or BLE events (which it looks like).&lt;/p&gt;
&lt;p&gt;My guess is that the slave latency is affected by the connection interval changing, and that this causes more BLE activity than you bargain for. Are any other parameters affected by the changed connection intervals?&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: Abrupt increase in the current readings Amidst Logs in Temperature Data Logger after connecting the peripheral while in the Advertising mode.</title><link>https://devzone.nordicsemi.com/thread/340290?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 10:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d139d45-7517-4173-9c72-b44c5e57dff0</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hi there!&lt;br /&gt;Your quick response is appreciated,&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/81957/abrupt-increase-in-the-current-readings-amidst-logs-in-temperature-data-logger-after-connecting-the-peripheral-while-in-the-advertising-mode/340232#340232"]Is the connection interval the only thing you change between cases 1 and 2?[/quote]
&lt;p&gt;Yes!&lt;br /&gt;&lt;br /&gt;I am using STTS751 Temperature Sensor and W25Q16 Flash Memory.&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/81957/abrupt-increase-in-the-current-readings-amidst-logs-in-temperature-data-logger-after-connecting-the-peripheral-while-in-the-advertising-mode/340232#340232"]You&amp;#39;re using a PPK2 to do all these measurements, correct?[/quote]
&lt;p&gt;Yes!&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/81957/abrupt-increase-in-the-current-readings-amidst-logs-in-temperature-data-logger-after-connecting-the-peripheral-while-in-the-advertising-mode/340232#340232"]Are the sampling parameters set to the same value in case 1 and 2?[/quote]
&lt;p&gt;Yes! they&amp;#39;re the same for cases 1 and 2.&lt;br /&gt;For the 3rd instance, I am attaching an image below with similar sampling parameters&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637661080041v1.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/81957/abrupt-increase-in-the-current-readings-amidst-logs-in-temperature-data-logger-after-connecting-the-peripheral-while-in-the-advertising-mode/340232#340232"]Also, what device is this central device?[/quote]
&lt;p&gt;I am using nRF Connect Android app on my smartphone.&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/81957/abrupt-increase-in-the-current-readings-amidst-logs-in-temperature-data-logger-after-connecting-the-peripheral-while-in-the-advertising-mode/340232#340232"]Can you confirm that the device actually communicates with the central in case 1, doing this data logging at all?[/quote]
&lt;p&gt;Like I said:&lt;br /&gt;&lt;span&gt;The data logger functions first in the Advertising mode followed by the data logging mode and then Sleep mode. It wakes up in the advertising mode where the Central is connected to read the logs.&lt;/span&gt;&lt;br /&gt;So, in cases 1 and 2, I am connecting the&amp;nbsp;Logger in the Advertising mode, but in case 3, I am putting the Logger directly into the data-logging mode without firstly connecting it in the advertising mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Abrupt increase in the current readings Amidst Logs in Temperature Data Logger after connecting the peripheral while in the Advertising mode.</title><link>https://devzone.nordicsemi.com/thread/340232?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 07:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79dc192d-690a-4caa-8415-25b7b554b906</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is the connection interval the only thing you change between cases 1 and 2? From the consistent activity I would think this was the nRF reading data from a sensor for example, or using some other peripheral continuously.&amp;nbsp;You&amp;#39;re using a PPK2 to do all these measurements, correct? Are the sampling parameters set to the same value in case 1 and 2? I see that they&amp;#39;re not in cases 2 and 3 for instance. Can you confirm that the device actually communicates with the central in case 1, doing this data logging at all? Also, what device is this central device?&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></channel></rss>