<?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>Can&amp;#39;t connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70494/can-t-connect-to-nrf-cloud-when-ui-module-disabled-asset-tracker-thingy-91</link><description>Hello, 
 I want to measure current consumption of nRF9160 of the Thingy 91 with the Asset Tracker application in PSM mode without GPS. For that, I added to the function modem_configure in main.c the lines 
 
 I also changed data sending interval to 300</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Feb 2021 15:32:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70494/can-t-connect-to-nrf-cloud-when-ui-module-disabled-asset-tracker-thingy-91" /><item><title>RE: Can't connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/thread/295179?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 15:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfda2166-a28a-4a3f-904c-735412e42ab4</guid><dc:creator>andrew926</dc:creator><description>&lt;p&gt;You are right, the spikes are from DRX events. I finally learned that PSM RAT should &lt;strong&gt;not&lt;/strong&gt; be &amp;quot;11100000&amp;quot;. I have set RAT to &amp;quot;00000000&amp;quot; and the spikes are gone! &amp;quot;11100000&amp;quot; means, RAT timer is deactivated, so RRC Idle (DRX) would go forever. I thought DRX would be deactivated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/thread/292006?ContentTypeID=1</link><pubDate>Fri, 29 Jan 2021 13:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fae6a6e-9962-4c0a-8077-8c3c7c6f1abd</guid><dc:creator>andrew926</dc:creator><description>&lt;p&gt;Could you measure the current and tell me if you get the same result, so that I can know whether the problem is in the code or it&amp;#39;s the network in my country. I posted a download link to the project in a previous message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/thread/291959?ContentTypeID=1</link><pubDate>Fri, 29 Jan 2021 10:58:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0df2cd73-1c59-4dcc-9d5a-feb4ed412f08</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;The spikes are probably from DRX events. It probably doesn&amp;#39;t enter PSM properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/thread/291137?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 19:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:464d0151-e982-4f3e-9bdc-b2b5fe1949d4</guid><dc:creator>andrew926</dc:creator><description>&lt;p&gt;I did the plot with 3000 measurements per second and got an average current (calculated by multimeter) of 6.5 mA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/thread/291136?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 19:43:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ace396e5-aa80-405d-b454-f620c3a9d6ab</guid><dc:creator>andrew926</dc:creator><description>&lt;p&gt;First 12 seconds (y unit Ampere, x unit seconds):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x1080/__key/communityserver-discussions-components-files/4/Data_5F00_Thingy91_5F00_asset_5F00_tracker.png" /&gt;&lt;/p&gt;
&lt;p&gt;Zoomed in between seconds 8 and 9:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x1080/__key/communityserver-discussions-components-files/4/Data_5F00_Thingy91_5F00_asset_5F00_tracker_5F00_zoomed_5F00_in.png" /&gt;&lt;/p&gt;
&lt;p&gt;The duration of a 40-50 mA peak is about 0,02 seconds. What could it be and how can I turn&amp;nbsp;it off? As far as I know, the sensors do not consume so much power. There is also 1 mA current consumption in between the 40-50 mA peaks, which is much. Where could it come from?&lt;/p&gt;
&lt;p&gt;This current was measured with Keysight 34465A before I removed src/ui.&amp;nbsp;I also measured the current with a cheap multimeter at home.&lt;/p&gt;
&lt;p&gt;The results of the cheap multimeter measurements were the same&amp;nbsp;after I removed src/ui. I haven&amp;#39;t measured the current with Keysight 34465A&amp;nbsp;after I removed src/ui because at the moment I don&amp;#39;t have access to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/thread/291064?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 14:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec3aadc7-221a-47bd-90c7-1b6e8d19c38f</guid><dc:creator>Hakon</dc:creator><description>[quote user="andrew926"]It has peaks of 40 mA every 180 ms.[/quote]
&lt;p&gt;How long do these peaks last? Can you post a plot?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/thread/290835?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 22:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da150337-6a7e-4ba6-91d9-b58766fb7042</guid><dc:creator>andrew926</dc:creator><description>&lt;p&gt;Thank you for the advice! I removed src/ui folder&amp;nbsp;and commented out following symbols in &lt;em&gt;prj_thingy91_nrf9160ns.conf&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#CONFIG_UI_LED_USE_PWM=n
#CONFIG_UI_BUZZER=n
#CONFIG_UI_NMOS=n
#CONFIG_USE_UI_MODULE=n
#CONFIG_NRF_CLOUD_LOG_LEVEL_DBG=y
#CONFIG_NRF9160_GPS_LOG_LEVEL_DBG=n
#CONFIG_CONSOLE_GETCHAR=y
#CONFIG_AWS_FOTA_LOG_LEVEL_DBG=y
#CONFIG_AWS_JOBS_LOG_LEVEL_DBG=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and changed:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CONSOLE_SUBSYS=n
CONFIG_CONSOLE_HANDLER=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In &lt;em&gt;Kconfig&lt;/em&gt;, I commented out&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#rsource &amp;quot;src/ui/Kconfig&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In &lt;em&gt;CMakeLists.txt&lt;/em&gt; I commented out&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;...
#  src/ui
...
#add_subdirectory(src/ui)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then I commented out every &amp;#39;# include &amp;quot;ui.h&amp;quot; &amp;#39; and &amp;#39;ui_led_set_color(...)&amp;#39; and &amp;#39;ui_led_set_pattern&amp;#39; call in &lt;em&gt;main.c&lt;/em&gt; and &lt;em&gt;gps_controller.c&lt;/em&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested the application and it connects!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then I added &amp;#39;set_gps_enable(true);&amp;#39; in the end of the main() function,&amp;nbsp;because the Asset Tracker application does not react to button presses when UI module is disabled. Unfortunately, GPS still doesn&amp;#39;t work. What can I do to make GPS work with UI module disabled?&lt;/p&gt;
&lt;p&gt;Then I measured the current consumption (without&amp;nbsp;&lt;span&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;set_gps_enable(true);&amp;#39;), and it is about the same as before, too high.&amp;nbsp;How can I lower the current consumption of the Asset Tracker application? It has peaks of 40 mA every 180 ms. Could you measure the current consumption of the Asset Tracker application, to see what I mean, and to compare? Here is the link to my project:&amp;nbsp;&lt;a href="https://yadi.sk/d/WooH3vjoHxBHuA" rel="noopener noreferrer" target="_blank"&gt;https://yadi.sk/d/WooH3vjoHxBHuA&lt;/a&gt;&amp;nbsp;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't connect to nRF cloud when UI Module disabled (Asset Tracker, Thingy 91)</title><link>https://devzone.nordicsemi.com/thread/290426?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 09:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1503131-ff6c-49f9-8f08-6b154dd9c249</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;you can try removing the entire src/ui folder from asset tracker, and rebuild.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>