<?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>Not able to use nordic proprietary AT-Commands on nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86100/not-able-to-use-nordic-proprietary-at-commands-on-nrf9160</link><description>Hello dear People, 
 I would be very happy if anyone has an idea how to solve this. 
 The Problem is the following: I am using nordics lte link controller to connect to nb-iot(&amp;lt;modem/lte_lc.h&amp;gt;), but when opening a socket, it times out... (error 116).</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Mar 2022 14:33:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86100/not-able-to-use-nordic-proprietary-at-commands-on-nrf9160" /><item><title>RE: Not able to use nordic proprietary AT-Commands on nrf9160</title><link>https://devzone.nordicsemi.com/thread/359843?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 14:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345c0ceb-1fe4-4c06-8dfb-5e93b9b24466</guid><dc:creator>jannis</dc:creator><description>&lt;p&gt;Hey Charlie,&lt;/p&gt;
&lt;p&gt;That was actually a very good hint, i was using the wrong apn the entire time,&lt;/p&gt;
&lt;p&gt;for anyone facing a similar problem, this is my code to set the apn, while using the LTE link controller to handle the connection:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void set_apn(){
  char response[256];
  nrf_modem_at_cmd(response, 256, &amp;quot;AT+CGDCONT=0,\&amp;quot;IPV4V6\&amp;quot;,\&amp;quot;your.chosen.apn\&amp;quot;&amp;quot;);
  printk(&amp;quot;set apn: %s\n&amp;quot;, response);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you Charlie for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to use nordic proprietary AT-Commands on nrf9160</title><link>https://devzone.nordicsemi.com/thread/359615?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 13:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1bfbe37-baf4-449b-a389-05467c77dc2c</guid><dc:creator>jannis</dc:creator><description>&lt;p&gt;Thank you! I will look into that &lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to use nordic proprietary AT-Commands on nrf9160</title><link>https://devzone.nordicsemi.com/thread/359595?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 12:08:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17761a9c-f495-4daa-a422-46b9e98d3d80</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Jannis,&lt;/p&gt;
&lt;p&gt;PDN can be set automatically by default or manually, you can&amp;nbsp;search PDN to refer to more discussion about it.&lt;/p&gt;
&lt;p&gt;I guess the next step you&amp;nbsp;need to improve your code compatibility with the &lt;span&gt;NB-IoT&lt;/span&gt;&amp;nbsp;network.&lt;/p&gt;
&lt;p&gt;You can still play&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/applications/serial_lte_modem/README.html"&gt;nRF9160: Serial LTE modem — nRF Connect SDK 1.9.1 documentation (nordicsemi.com)&lt;/a&gt;&lt;span&gt;&amp;nbsp;TCP commands with NB-IoT network and learn its source codes to see how to improve your codes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to use nordic proprietary AT-Commands on nrf9160</title><link>https://devzone.nordicsemi.com/thread/359561?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 10:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c230aff-b559-4b27-9df3-81d1ea9b7cb3</guid><dc:creator>jannis</dc:creator><description>&lt;p&gt;Hey Charlie, thank you for your reply!,&lt;/p&gt;
&lt;p&gt;that&amp;#39;s a good idea, i only tested on the thingy with lte-m, which worked, i just tested it on the thingy91 with nb-iot and the connection process times out here as well.&lt;/p&gt;
&lt;p&gt;I did some research but whenever I look up Information about nb-iot most of it is for businesses highlighting its advantages for their products, but not so many technically details or processes, we use a deutsche Telekom sim-card specific for nb-iot. Is it common that there is some registration necessary to connect to the internet/pdn?(softwarewise during the connection-process, like with this method:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/nrf/include/modem/lte_lc.html#_CPPv419lte_lc_pdn_auth_set20lte_lc_pdn_auth_typePKcPKc"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/nrf/include/modem/lte_lc.html#_CPPv419lte_lc_pdn_auth_set20lte_lc_pdn_auth_typePKcPKc&lt;/a&gt; )&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jannis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to use nordic proprietary AT-Commands on nrf9160</title><link>https://devzone.nordicsemi.com/thread/359553?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 09:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ee1adc1-982c-4d8a-a9c8-f77b0ac8ae10</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Jannis,&lt;/p&gt;
&lt;p&gt;I have two suggestions:&lt;/p&gt;
&lt;p&gt;1) Can you verify your codes with thingy works with the NB-IoT network?&lt;/p&gt;
&lt;p&gt;2) Can you test your custom board with&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/applications/serial_lte_modem/README.html"&gt;nRF9160: Serial LTE modem — nRF Connect SDK 1.9.1 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;TCP commands? You need to verify if the HW especially the antenna has issues or not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to use nordic proprietary AT-Commands on nrf9160</title><link>https://devzone.nordicsemi.com/thread/359528?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 08:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c4c8314-7cd2-4353-9c06-9406c5c76e7e</guid><dc:creator>jannis</dc:creator><description>&lt;p&gt;Hey :),&lt;/p&gt;
&lt;p&gt;All right, I just realized that using those proprietary at-commands is only possible when externally controlling the serial lte-modem.&lt;/p&gt;
&lt;p&gt;But that still leaves me with the timed out connection and I am back to the beginning of the search for the cause.&lt;/p&gt;
&lt;p&gt;I would be very happy if anyone has an idea.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;greetings Jannis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>