<?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>AT_LTE socket hanging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66733/at_lte-socket-hanging</link><description>My application is again having troubles with opening an AF_LTE socket. It hangs indefinitely on the call to socket(AF_LTE,...). This code has been running successfully at home and trying this now at the customer site so the only difference is the cell</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Oct 2020 11:44:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66733/at_lte-socket-hanging" /><item><title>RE: AT_LTE socket hanging</title><link>https://devzone.nordicsemi.com/thread/275059?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 11:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daed8930-eb69-4bbc-a423-91695a3c5803</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Mike,&amp;nbsp;&lt;br /&gt;Are you connected to the same network at your home?&lt;br /&gt;Is it possible to get the modemtrace when the device is working as well to compare?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Br,&lt;br /&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT_LTE socket hanging</title><link>https://devzone.nordicsemi.com/thread/274428?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 17:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:934d49d8-19e2-4153-a36a-e9497186c1a0</guid><dc:creator>miked531</dc:creator><description>&lt;p&gt;I&amp;#39;ve left the customer site and have not yet been able to reproduce the issue here at home. Building with NCS v1.3 is going to take some time to get it working due to the zephr api changes so I&amp;#39;ll try 1.2.1 when I can duplicate the hang.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT_LTE socket hanging</title><link>https://devzone.nordicsemi.com/thread/274023?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 12:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49f80f32-20de-4df6-a9d0-a00d3ad8d560</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Sorry for the delay, I have not managed to analyze the modem traces yet.&lt;br /&gt;I will get back to you on this next week.&lt;br /&gt;&lt;br /&gt;In the meantime could you build your project based on NCS v1.3.1 to see if an updated bsdlib etc. could have a positive effect to this?&lt;/p&gt;
&lt;p&gt;(or&amp;nbsp;v&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.2.1"&gt;1.2.1&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Br;&lt;br /&gt;martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT_LTE socket hanging</title><link>https://devzone.nordicsemi.com/thread/273528?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 14:08:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c8aa8fe-1463-48db-99ac-546f08df8695</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Mike,&lt;br /&gt;&lt;br /&gt;We will analyze the modemtrace and see if we can find out what is going on.&lt;br /&gt;Most likely I can share the information tomorrow.&lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT_LTE socket hanging</title><link>https://devzone.nordicsemi.com/thread/273278?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 14:17:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6364ca03-703e-4823-bb17-3ef9a33358e8</guid><dc:creator>miked531</dc:creator><description>&lt;p&gt;Thanks for the quick response. I am using NCS 1.2.0 and mfw 1.2.1 (saw the same problem with mfw 1.2.0). The message is a bit misleading--it *will* try nb-iot the next time, but I haven&amp;#39;t got around to it yet. The code is attempting to issue AT+CFUN=4 when I experience the hang. I open an additional socket to issue that AT command. I will set the XSYSTEMMODE after the modem shuts down.&lt;/p&gt;
&lt;p&gt;I am less concerned as to why I am not connecting but more about the reason socket() is hanging. I am not using lte_lc as I have my own modem access routines (lte_lc wasn&amp;#39;t mature enough when I started the project).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT_LTE socket hanging</title><link>https://devzone.nordicsemi.com/thread/273261?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 13:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2906c2f-0cbe-4735-89b8-915fe7b6654a</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Mike,&lt;br /&gt;Which NCS version is this code based of?&lt;br /&gt;From what I see in the modemtrace the basestation in your customers area does not support&amp;nbsp;LTE-M.&lt;/p&gt;
&lt;p&gt;However I do suspect that you may not switch to NB-IoT gracefully.&lt;br /&gt;&lt;br /&gt;When you do:&amp;nbsp;&lt;br /&gt;&lt;em&gt;&amp;quot;[00:02:00.796,997] &amp;lt;inf&amp;gt; boss: next LTE connection will use NB-IoT&amp;quot;&lt;/em&gt;&lt;br /&gt;Do you make sure that the modem is fully in offline mode (&amp;quot;AT+CFUN=4&amp;quot;) before changing the mode (&amp;quot;AT%XSYSTEMMODE=0,1,0,0&amp;quot;) ?&lt;br /&gt;Are you using the lte_lc to handle this?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>