<?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>Merging application mqtt_simple and gps</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76415/merging-application-mqtt_simple-and-gps</link><description>Hello, 
 I am trying to merge mqtt_simple and gps together. Each of them is working well on Thingy:91. 
 1. I am using lte_lc to configure the modem and enable PSM and eDRX. 
 
 How do I know if the modem enters PSM/eDRX mode? 
 Should I call something</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Jun 2021 06:53:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76415/merging-application-mqtt_simple-and-gps" /><item><title>RE: Merging application mqtt_simple and gps</title><link>https://devzone.nordicsemi.com/thread/316597?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 06:53:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b5ea5a-7fe6-4571-9af7-bb2265430bd4</guid><dc:creator>leo.lau</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion. I have finally make my project works.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Leo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merging application mqtt_simple and gps</title><link>https://devzone.nordicsemi.com/thread/315628?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 13:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e96e94e-b2b4-4e88-b14e-5b434cf21de4</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Leo,&amp;nbsp;&lt;/p&gt;
[quote user=""]How do I know if the modem enters PSM/eDRX mode?[/quote]
&lt;p lang="en-GB"&gt;You can use the &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xmodemsleep.html"&gt;%XMODEMSLEEP &lt;/a&gt;and &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xt3412.html"&gt;%XT3412&lt;/a&gt; notifications to check the PSM status of the modem.&amp;nbsp;Within your application, you can use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/modem/at_cmd.html#c.at_cmd_handler_t"&gt;at_cmd_handler&lt;/a&gt; to process these notifications. But when it comes to co-existence of LTE and GPS, I’m not sure if you need to know the PSM status of the modem. It will basically take care of that by itself.&lt;/p&gt;
[quote user=""]2. is lte_lc_psm_req(true) using the parameter set from Kconfig?[/quote]
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.5-branch/lib/lte_link_control/lte_lc.c#L127"&gt;Yes&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]But how do I know how long the time is needed to transmit one packet?[/quote]
&lt;p&gt;Normally, the modem will prioritise the LTE stack. Sending data every 2 seconds might result in that the GPS stack does not get the possibility to run “long enough” for getting a fix. My recommendation is to make usage of PSM/eDRX accordingly to avoid this problem.&lt;/p&gt;
&lt;p lang="en-GB"&gt;I hope my answers will help you!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>