<?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>Setting EDRx</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111320/setting-edrx</link><description>Hi, 
 I am trying to set EDRx en LOG_INF the result using following code: 
 
 
 static struct lte_lc_edrx_cfg drx_cfg ; 
 
 
 
 //enable EDRx 
 LOG_INF(&amp;quot;== Setting EDRx ==&amp;quot;); 
 lte_lc_edrx_req (true); 
 lte_lc_edrx_param_set (LTE_LC_LTE_MODE_LTEM, NULL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2024 17:53:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111320/setting-edrx" /><item><title>RE: Setting EDRx</title><link>https://devzone.nordicsemi.com/thread/488177?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 17:53:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d538c8e-3066-4150-b2c2-beb7398f7d12</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;What if you set:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_RTT_CONSOLE"&gt;CONFIG_RTT_CONSOLE&lt;/a&gt;=y&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_UART_CONSOLE"&gt;CONFIG_UART_CONSOLE&lt;/a&gt;=n&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting EDRx</title><link>https://devzone.nordicsemi.com/thread/487951?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 15:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f400c81-cdef-43a2-8d88-bfaa126c582d</guid><dc:creator>nrfmh</dc:creator><description>&lt;p&gt;Correct &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting EDRx</title><link>https://devzone.nordicsemi.com/thread/487948?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 14:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fdac584-7447-4b1a-ac1d-01ebf38058dd</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;By debug-terminal, do you mean RTT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting EDRx</title><link>https://devzone.nordicsemi.com/thread/487798?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 17:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6129ce4-9c4d-49ec-9bdf-3550408baf31</guid><dc:creator>nrfmh</dc:creator><description>&lt;p&gt;Hi Michal,&lt;/p&gt;
&lt;p&gt;Yes, but that does not print through the debug-terminal like printk and log_inf.&lt;/p&gt;
&lt;p&gt;Any suggestions how to solve this? Are there working Kconfig settings for this board en recent SDK versions or do you have any suggestions?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards and thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting EDRx</title><link>https://devzone.nordicsemi.com/thread/487796?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 17:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c73f28e-94ea-465b-890a-5a862a4231ef</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello Mart,&lt;/p&gt;
&lt;p&gt;Ah, that makes sense. Have you tried using the solution with printf instead mentioned in that ticket?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting EDRx</title><link>https://devzone.nordicsemi.com/thread/486993?ContentTypeID=1</link><pubDate>Sun, 02 Jun 2024 13:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:129ce17e-5cd7-449b-b31d-b54fc836352f</guid><dc:creator>nrfmh</dc:creator><description>&lt;p&gt;Hi Michal,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did some research and found other posts regarding the same issue. eDRX was set correctly, the issue is printing the values using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;LOG_INF&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;printk&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;It seems both cannot handle &amp;quot;%f&amp;quot; (float). See also posts like:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47152/nrf9160-samples-cannot-use-sscanf-or-printk-with-float"&gt;nrf9160 samples cannot use sscanf or printk with float&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;All given possible solutions to make LOG_INF and printk work with floats are not working - or I am missing some&amp;nbsp;&lt;/span&gt;information - using the latest SDK.&lt;/p&gt;
&lt;p&gt;A workaround using gcvt given in this forum also:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;char&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;10&lt;/span&gt;&lt;span&gt;];&lt;br /&gt;&lt;/span&gt;gcvt(drx_cfg.edrx, 6, buf);&lt;br /&gt;LOG_INF(&amp;quot; == drx_cfg.edrx (eDRX interval in seconds): %s&amp;quot;, &amp;nbsp;buf);&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;This is working although VisualCode gives an error regarding gcvt does not have any parameters. But is compiles, flashes and works without problems.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;So there is something wrong printing floats using %f in my config.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Any ideas?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Mart&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting EDRx</title><link>https://devzone.nordicsemi.com/thread/486521?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 20:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:991e0730-03ce-4cc4-9d6e-51880e27d5fe</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello Mart,&lt;/p&gt;
&lt;p&gt;Are you able to check the eDRX status using AT commands by chance?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting EDRx</title><link>https://devzone.nordicsemi.com/thread/485190?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 15:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b7e80b6-aa17-4349-97f6-c85794e4b576</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello Mart,&lt;/p&gt;
&lt;p&gt;We are currently experiencing a high workload. I will get back to you before the end of the week.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>