<?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>Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99217/merge-two-zephyr-code-examples</link><description>Hi, 
 I&amp;#39;m developing for nRF9160 using NCS v2.1.3. 
 I would like to merge two different code examples: MQTT simple and GNSS . 
 I tried to use the MQTT code as my base and add the GNSS to it. I&amp;#39;ve added the &amp;quot;src&amp;quot; folder contents of the GNSS code to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Jun 2023 10:57:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99217/merge-two-zephyr-code-examples" /><item><title>RE: Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/thread/432925?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 10:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f761d198-8fa4-4060-9144-f23046963095</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;Ok, thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/thread/432921?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 10:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b48a3155-c047-4b67-afac-7769b50fbd03</guid><dc:creator>Hakon</dc:creator><description>[quote user="Dekel"]&lt;p&gt;According to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fintro.html"&gt;Nordic&amp;#39;s infocenter&lt;/a&gt;:&amp;nbsp;&lt;em&gt;The device can enter&amp;nbsp;&lt;a title="A feature introduced in 3GPP Release 12 to improve battery life of IoT devices by minimizing energy consumption. The device stays dormant during the PSM window." href="https://infocenter.nordicsemi.com/topic/ref_at_commands/dita_common/glossary/glossary.html#psm"&gt;&lt;dfn&gt;Power Saving Mode (PSM)&lt;/dfn&gt;&lt;/a&gt;&amp;nbsp;state in LTE idle mode when the&amp;nbsp;&lt;span&gt;&amp;lt;Active-Time&amp;gt;&lt;/span&gt;&amp;nbsp;parameter has a valid value where at least one of bits 6–8 is set to&amp;nbsp;&lt;span&gt;0&lt;/span&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt;One can tell that my device returns all zeros in those indexes.&lt;em&gt;&lt;/em&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The values you are getting indicate that PSM is not enabled. You should check this with your network provider.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/thread/430307?ContentTypeID=1</link><pubDate>Sat, 10 Jun 2023 10:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aa69b44-513e-43db-8279-0dcf131def3f</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;I&amp;#39;m getting this response:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;+CEREG: 5,1,&amp;quot;42E3&amp;quot;,&amp;quot;008D3602&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;According to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fintro.html"&gt;Nordic&amp;#39;s infocenter&lt;/a&gt;:&amp;nbsp;&lt;em&gt;The device can enter&amp;nbsp;&lt;a title="A feature introduced in 3GPP Release 12 to improve battery life of IoT devices by minimizing energy consumption. The device stays dormant during the PSM window." href="https://infocenter.nordicsemi.com/topic/ref_at_commands/dita_common/glossary/glossary.html#psm"&gt;&lt;dfn class="term abbreviated-form"&gt;Power Saving Mode (PSM)&lt;/dfn&gt;&lt;/a&gt;&amp;nbsp;state in LTE idle mode when the&amp;nbsp;&lt;span class="keyword parmname"&gt;&amp;lt;Active-Time&amp;gt;&lt;/span&gt;&amp;nbsp;parameter has a valid value where at least one of bits 6&amp;ndash;8 is set to&amp;nbsp;&lt;span class="keyword value"&gt;0&lt;/span&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt;One can tell that my device returns all zeros in those indexes.&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The situation is unclear to me, since I&amp;#39;m calling&amp;nbsp;&lt;em&gt;lte_lc_psm_req(true);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Furthermore, I use directly the command&amp;nbsp;&lt;em&gt;AT+CPSMS=1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;10101010&amp;quot;,&amp;quot;00100001&amp;quot; &lt;/em&gt;(for&amp;nbsp;setting&amp;nbsp;Periodic-TAU timer to 10 minutes and Active-Time to 1 minute)&lt;em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;and the test command&amp;nbsp;&lt;em&gt;AT+CPSMS?&lt;/em&gt; reads it well.&lt;/p&gt;
&lt;p&gt;Still, the response to CEREG stays as before.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The question is if there&amp;#39;s something I can do about it? Or is it a property of the network I&amp;#39;m connected to that cannot be changed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/thread/429609?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 14:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b781709-4a88-4c32-a6bc-6d8efe351530</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Have you checked that the network will actually allow PSM? What values are you reading from +CEREG?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/thread/428260?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 16:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36ac3f7f-25c3-4f93-a9db-22fcbec216a7</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;I truly need help here, would be much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/thread/426341?ContentTypeID=1</link><pubDate>Fri, 19 May 2023 13:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c3f1999-34fa-4fe1-9239-87d350af9259</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;As offered in the thread, removing&amp;nbsp;CONFIG_GNSS_SAMPLE_LOG_LEVEL&amp;nbsp; did the trick, thanks!&lt;/p&gt;
&lt;p&gt;But I do encounter another challenge: the LTE and GNSS share the radio, and currently the GNSS doesn&amp;#39;t get a fix if the LTE is initialized.&lt;/p&gt;
&lt;p&gt;I read about &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/working_with_nrf/nrf91/nrf91_features.html#concurrent-gnss-and-lte"&gt;concurrent GNSS and LTE&lt;/a&gt;&amp;nbsp;and tried calling&amp;nbsp;&lt;span&gt;lte_lc_psm_req(true),&amp;nbsp;&lt;/span&gt;&lt;span&gt;lte_lc_edrx_req(true) in the MQTT module, but it didn&amp;#39;t have any effect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;How can I configure them to operate concurrently?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/thread/423108?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 06:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d21da0e-24d2-4e08-a87a-dfed8eadc35d</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;I&amp;#39;ll try that and let you know.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merge two Zephyr code examples</title><link>https://devzone.nordicsemi.com/thread/422982?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 12:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c864cb2-6826-490b-acef-5c56e523c74b</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;someone had a similar issue a while ago. You can look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95421/unable-to-combine-gnss-and-mqtt-sample-together"&gt;this post&lt;/a&gt; and see if it is of any help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>