<?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>nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57642/nrf9160-lte-modem-documentation</link><description>Hi, 
 Im working with serial LTE modem sampleApp which I have manage to compile, connect to my server and validate that it works using nrfConnect LTE Link Monitor to send/receive data over TCP IP socket (Commit from 17 Dec 2019 - a955d411) 
 Currently</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Aug 2020 12:36:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57642/nrf9160-lte-modem-documentation" /><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/264050?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 12:36:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84b221c-7e9b-43c7-b14d-c2d148df5757</guid><dc:creator>Hadrien Kohl</dc:creator><description>&lt;p&gt;Sure thing. I created&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/64713/how-to-recover-9160-modem-after-enetdown-errors"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/64713/how-to-recover-9160-modem-after-enetdown-errors&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/264046?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 12:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ebdd536-69e0-467f-86e6-1f97dbdc5a89</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks, so the modem should respond to those AT commands.&lt;/p&gt;
&lt;p&gt;Could you create a new thread on your issue? I am afraid it falls a bit out of scope for this one.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/264045?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 12:25:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:013f24dc-b2e2-4284-ad19-abee394e84ff</guid><dc:creator>Hadrien Kohl</dc:creator><description>&lt;p&gt;I am using the modem version&amp;nbsp;1.2.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/264039?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 12:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f676127b-216c-48ce-b27e-059ea842fab5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Which modem fw are you using?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/264027?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 11:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5a322ec-7044-44f8-915f-238003e5363e</guid><dc:creator>Hadrien Kohl</dc:creator><description>&lt;p&gt;I H&amp;aring;kon, I wasn&amp;#39;t clear. I have a situation where I am getting&amp;nbsp;&lt;span&gt;ENETDOWN on socket operations after some time. This is a new thing that I did not experienced with a prior version of our application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What I am wondering is how do I reset the modem to a correct state. I have tried to send AT+CFUN=4 and AT+CFUN=0 via&amp;nbsp;lte_lc_offline() and&amp;nbsp;lte_lc_power_off() methods but it hangs from there.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:10:32.730,407] &amp;lt;dbg&amp;gt; at_cmd.at_write: Sending command AT+CFUN=4&lt;br /&gt;[00:10:32.731,109] &amp;lt;dbg&amp;gt; at_cmd.at_write: Awaiting response for AT+CFUN=4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hadrien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/263793?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 10:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c99988c6-cc56-4f97-8da5-67f1e1567278</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Check the network connection status (using AT+CEREG), as per the former comment. In that case, it can be that you&amp;#39;re out of range. You can for instance try to connect via NB1 (if former mode was M1). It all depends on your wanted application behavior.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/263765?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 08:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ade0fe17-0da0-4c8c-ae24-07755ef138f7</guid><dc:creator>Hadrien Kohl</dc:creator><description>&lt;p&gt;I see. What should one do when getting&amp;nbsp;&lt;span&gt;ENETDOWN?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/238708?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 07:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80bc6ca-90bb-4d75-a332-f98a386f6df4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="Hadrien Kohl"]What errno/err should one expect to see if the modem connection went down? And what would be the appropriate recovery actions to take?[/quote]
&lt;p&gt;The errno depends on the socket call, please see&amp;nbsp;the independent manual for each socket call (like &amp;quot;man setsockopt&amp;quot;).&amp;nbsp;A common one is ENETDOWN if the network is down, and ENOTCONN if the socket was closed. I would still recommend that you parse the CEREG status to see the LTE network status.&amp;nbsp;&lt;/p&gt;
[quote user="Hadrien Kohl"]Alternatively, is there a way to query the modem for it&amp;#39;s state (connected/disconnected) before using it?[/quote]
&lt;p&gt;AT+CEREG shall give you the network status, and you can check the signal strength RSRP with &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cesq.html?cp=2_1_3_4"&gt;AT+CESQ&lt;/a&gt; (or subscribe to it via AT%CESQ)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/238670?ContentTypeID=1</link><pubDate>Sun, 08 Mar 2020 15:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0d0761e-c70c-48cf-9598-27deb99f25d4</guid><dc:creator>Hadrien Kohl</dc:creator><description>&lt;p&gt;What errno/err should one expect to see if the modem connection went down? And what would be the appropriate recovery actions to take?&lt;/p&gt;
&lt;p&gt;Alternatively, is there a way to query the modem for it&amp;#39;s state (connected/disconnected) before using it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 LTE modem documentation</title><link>https://devzone.nordicsemi.com/thread/233676?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 10:09:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:275a5a09-c5fc-479e-ac86-8cddd72614dd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;AT+CEREG? gives you the network status:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cereg_read.html?cp=2_1_6_9_1"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cereg_read.html?cp=2_1_6_9_1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The &amp;lt;stat&amp;gt; field will be either 1 or 5 when you&amp;#39;re connected, depending on what type of SIM card you have. Since you&amp;#39;re using iBasis, it returns roaming (5)&lt;/p&gt;
&lt;p&gt;AT+CESQ will give you the signal quality and strength, as described here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cesq_set.html?cp=2_1_3_4_0"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cesq_set.html?cp=2_1_3_4_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For the RSRP, you normally want 40 or higher (ie: -100 dBm or better), which you seem to get.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the connection over IP, the socket operations will return an errno/err if the connection over LTE has gone down.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>