<?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 how to connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57133/nrf9160-how-to-connect</link><description>Hi, we are trying to get the nRF9160 connected to the internet again, we had it working 6 months ago. 
 Our hardware is 0.8.5 
 We are in Ireland where we only have NB-IOT operated by Vodafone. 
 We have evaluation NB-IOT SIMs provided by Vodafone. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Jan 2020 14:43:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57133/nrf9160-how-to-connect" /><item><title>RE: nRF9160 how to connect</title><link>https://devzone.nordicsemi.com/thread/232116?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 14:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79c56d4c-edd6-46b6-a104-331d12bfc1c1</guid><dc:creator>Hakon</dc:creator><description>[quote user="Ian Mellor"]&lt;span&gt;Changing it in prj.conf doesn&amp;#39;t work but c&lt;/span&gt;&lt;span&gt;hanging it in&amp;nbsp;autoconf.h does work.&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;So building doesn&amp;#39;t overwrite it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 how to connect</title><link>https://devzone.nordicsemi.com/thread/231965?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 16:40:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd0e3ab-93b9-47bd-a848-ac1aeb87b29e</guid><dc:creator>Yano</dc:creator><description>&lt;p&gt;Sorry one more question:&lt;/p&gt;
&lt;p&gt;Once we manually use AT commands to configure modem it starts the connection process:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;LTE Link Connected!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;IPv4 Address found 137.135.83.217&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR: mqtt_connect -60 &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note: 137.135.83.217 is not white listed in our SIMs which might explain the error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How does it resolve this IP address?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;137.135.83.217 is&amp;nbsp;mqtt.eclipse.org but this is commented out in the prj.conf file?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Changing it in prj.conf doesn&amp;#39;t work but c&lt;/span&gt;&lt;span&gt;hanging it in&amp;nbsp;autoconf.h does work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 how to connect</title><link>https://devzone.nordicsemi.com/thread/231919?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 14:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c87066f-798c-45b2-b13d-79a3c28fae88</guid><dc:creator>Yano</dc:creator><description>&lt;p&gt;Thanks Hakon,&lt;/p&gt;
&lt;p&gt;We can&amp;#39;t find&amp;nbsp;&lt;span&gt;CONFIG_LTE_NETWORK_MODE_NBIOT=y in the prj.conf so we added it. Is that OK?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Where do we put the other settings e.g.&amp;nbsp;AT+CGDCONT=0,&amp;quot;IP&amp;quot;,&amp;quot;eplpwa.vodafone.iot&amp;quot; etc. ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I assume the simple MQTT example just run and connect without AT command intervention once all is set right?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 how to connect</title><link>https://devzone.nordicsemi.com/thread/231879?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 12:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77e7f7fa-d0d3-44e8-bd9a-2ecbbf4cdff8</guid><dc:creator>Hakon</dc:creator><description>[quote user="Ian Mellor"]1. Does the LTE Link monitor work with the MQTT sample (is it built into the nRF9160 firmware not the app)?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;It should work fine for MQTT simple, as the at host is enabled by default.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Ian Mellor"]2. Is there a way to ping an IP address to test the route or is there&amp;nbsp;another way?[/quote]
&lt;p&gt;&amp;nbsp;There is no functionality for pinging an IP address in the SDK that I&amp;#39;m aware of. You could implement it yourself though.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Ian Mellor"]3. How can we set it to be permanently on NB-IOT so we don&amp;#39;t need to use &lt;span&gt;AT%XSYSTEMMODE=0,1,0,0&lt;/span&gt;?[/quote]
&lt;p&gt;&amp;nbsp;You can set the option CONFIG_LTE_NETWORK_MODE_NBIOT=y in prj.conf in the project directory.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Ian Mellor"]4. Where can we modify the MQTT IP address?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;&amp;nbsp;You can set the option CONFIG_MQTT_BROKER_HOSTNAME=&amp;quot;190.10.3.4&amp;quot; in prj.conf in the project directory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 how to connect</title><link>https://devzone.nordicsemi.com/thread/231767?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 22:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c9b48b0-4e50-4e74-a8b5-a7a2869e54f6</guid><dc:creator>Yano</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;Thanks we are now connected!&lt;/p&gt;
&lt;p&gt;This the AT sequence that seem to work:&lt;/p&gt;
&lt;p&gt;AT+CFUN=1&lt;/p&gt;
&lt;p&gt;AT+CGDCONT=0,&amp;quot;IP&amp;quot;,&amp;quot;eplpwa.vodafone.iot&amp;quot;&lt;/p&gt;
&lt;p&gt;AT+CGAUTH=0,&amp;quot;PAP&amp;quot;,&amp;quot;vodafone&amp;quot;,&amp;quot;vodafone&amp;quot;&lt;/p&gt;
&lt;p&gt;AT+CFUN=4&lt;/p&gt;
&lt;p&gt;AT%XSYSTEMMODE=0,1,0,0&lt;/p&gt;
&lt;p&gt;AT+COPS=1,2,&amp;quot;27201&amp;quot;&lt;/p&gt;
&lt;p&gt;AT+CFUN?&lt;/p&gt;
&lt;p&gt;AT+CFUN?&lt;/p&gt;
&lt;p&gt;Now we are connecting we are going to try the MQTT sample.&lt;/p&gt;
&lt;p&gt;A few questions:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. Does the LTE Link monitor work with the MQTT sample (is it built into the nRF9160 firmware not the app)?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Is there a way to ping an IP address to test the route or is there&amp;nbsp;another way?&lt;/p&gt;
&lt;p&gt;3. How can we set it to be permanently on NB-IOT so we don&amp;#39;t need to use &lt;span&gt;AT%XSYSTEMMODE=0,1,0,0&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;4. Where can we modify the MQTT IP address?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Searching the project I find this in three places:&lt;/p&gt;
&lt;p&gt;GEN_ABSOLUTE_SYM(CONFIG_MQTT_BROKER_HOSTNAME, 1);&lt;/p&gt;
&lt;p&gt;Changing it to this generates an error:&lt;/p&gt;
&lt;p&gt;GEN_ABSOLUTE_SYM(CONFIG_MQTT_BROKER_HOSTNAME, &amp;quot;190.10.3.4&amp;quot;);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 how to connect</title><link>https://devzone.nordicsemi.com/thread/231688?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 14:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aede6b58-61a0-45bd-a978-410ab93db0f2</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;please update the modem firmware, you are using a very old release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>