<?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 DK - Allow program execution to continue without cellular connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46623/nrf9160-dk---allow-program-execution-to-continue-without-cellular-connection</link><description>Hi, I&amp;#39;m looking to use the nRF9160 DK as an IoT Bluetooth Gateway as listed on the nRF9160&amp;#39;s product page. Basically, I am tasked with connecting two nRF52840&amp;#39;s (both in GATT client mode) to an nRF9160 DK (in GATT server mode) using Bluetooth 5 and then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 May 2019 13:32:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46623/nrf9160-dk---allow-program-execution-to-continue-without-cellular-connection" /><item><title>RE: nRF9160 DK - Allow program execution to continue without cellular connection</title><link>https://devzone.nordicsemi.com/thread/185515?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 13:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:017f73c5-8db9-4f66-829a-0266b5843552</guid><dc:creator>CoryJPAE</dc:creator><description>&lt;p&gt;As a followup, executing the nrfjprog program with flags above fixed the issues I was seeing. I&amp;#39;m thinking most likely the sector erase flag.&lt;br /&gt;&lt;br /&gt;I was able to successfully have the lte_ble_gateway sample project work as well. The program now executes without have an LTE connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK - Allow program execution to continue without cellular connection</title><link>https://devzone.nordicsemi.com/thread/185479?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 12:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01cff903-4727-452e-baaa-4f6cf530c20f</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Cory,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;From your log, it does not look like you are running the at_client sample, or at least the application has not started correctly.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I have added a precompiled .hex file which has merged the &amp;quot;at_client&amp;quot; and the &amp;quot;spm&amp;quot; (secure partition manager) (&lt;em&gt;before:&amp;nbsp;&lt;/em&gt;secure_boot):&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-bfb46e2830f44865a65bec3817d0b925/at_5F00_client.hex"&gt;at_client.hex&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Please flash via the command line:&amp;nbsp;&lt;strong&gt;nrfjprog --program at_client.hex -f nrf91 --sectorerase -r --verify&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And then connect the board and run the LTE link Monitor.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you have any issues seeing any logs in the Terminal, please press the reset button on the nRF91 DK so you can see that the nrf91 sends out the logs from the initialization.&lt;/p&gt;
&lt;hr /&gt;
&lt;ul&gt;
&lt;li&gt;I&lt;b&gt; &lt;/b&gt;recommend you to update the modem firmware on the custom board to the latest (&lt;strong&gt;0.7.0-15&lt;/strong&gt;&lt;span&gt;)&lt;/span&gt;:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs"&gt;https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;IMPORTANT NOTE:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;There is a bug in the modem firmware version -&amp;gt; &amp;quot;mfw_nrf9160_0.7.0-15.alpha&amp;quot; which makes it start in &amp;quot;nb-iot mode&amp;quot; as default.&amp;nbsp;&lt;br /&gt;&lt;/strong&gt;To change to the &amp;quot;LTE-M&amp;quot; mode you need to send an&amp;nbsp; AT-Command.&lt;br /&gt;-&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fxsystemmode_set.html&amp;amp;cp=2_1_3_30_0" rel="noopener noreferrer" target="_blank"&gt;AT%XSYSTEMMODE&lt;/a&gt;=1,0,0,0&amp;nbsp;and then&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fcfun_set.html" rel="noopener noreferrer" target="_blank"&gt;AT+CFUN=0&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to save the changes into the modem flash.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-134af44bfa164b9ab4c66520169d99e5/pastedimage1557143986741v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When you restart your device it will now go into the LTE-M mode.&amp;nbsp;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK - Allow program execution to continue without cellular connection</title><link>https://devzone.nordicsemi.com/thread/184379?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 15:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ad2d64-a861-450c-b3c4-b6670317a949</guid><dc:creator>CoryJPAE</dc:creator><description>&lt;p&gt;Hi Martin,&lt;br /&gt;&lt;br /&gt;Thank you for the reply.&lt;br /&gt;&lt;br /&gt;Sorry about the link.&amp;nbsp;There is no &amp;quot;Copy URL&amp;quot; at the specific page in Chrome or Edge, but here&amp;#39;s the path: nRF91 Series -&amp;gt; nRF9160 -&amp;gt; nRF9160 Object Product Specification -&amp;gt; LTE Modem -&amp;gt; Introduction.&lt;br /&gt;&lt;br /&gt;I performed the Git checkout procedure for NCS. No changes/updates.&lt;br /&gt;&lt;br /&gt;I had already tried the latest modem firmware (mfwm1nrf9160068131alpha) and successfully updated the modem firmware, but I went ahead and perform the update against successfully.&lt;br /&gt;&lt;br /&gt;We have tested that we do indeed have an LTE connection in the area (if we go outside...our building is a bit of a Faraday cage so it&amp;#39;s easy to simulate LTE connection on/off by going inside/outside).&lt;br /&gt;&lt;br /&gt;When I am outside with an LTE connection, I can issue modem AT commands no problem and see expected behavior.&lt;br /&gt;&lt;br /&gt;When I am inside, if I issue: AT+CFUN=4 or any AT command for that matter, the nRF9160 via the nRFConnect tool reports a timeout. Note that nRFConnect does report opening a port to the modem.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Debugging via Embbedded Studio (stepping through the assembly code) reveals the nRF9160&amp;nbsp;&lt;/span&gt;&lt;span&gt;DK&lt;/span&gt;&lt;span&gt;&amp;nbsp;is &amp;quot;stuck&amp;quot; (stuck isn&amp;#39;t the best word but for lack of a better word) in a library function called &amp;quot;interface_socket_wait&amp;quot;.&lt;br /&gt;&lt;br /&gt;Below is a sample terminal output from nRFConnect while inside (no LTE connection):&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " height="436" src="https://devzone.nordicsemi.com/resized-image/__size/1040x0/__key/communityserver-discussions-components-files/4/06025.Capture.PNG" width="824" /&gt;&lt;br /&gt;&lt;br /&gt;Are we thinking that maybe I should try setting AT+CFUN=4 while having an LTE connection on the nRF9160 to enable Airplane mode and that subsequent reset(s) it will work?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK - Allow program execution to continue without cellular connection</title><link>https://devzone.nordicsemi.com/thread/184354?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 13:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2881bd1-311a-4837-9b9b-e4bb9172a331</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Cory,&lt;/p&gt;
[quote user=""] It seems the nRF9160 does NOT allow main program execution if there is NO cellular connection.[/quote]
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&amp;nbsp;This is not true.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There should not be any issue running the nrf9160 without any network connection. You can set the modem to different power saving modes (sleeping) or even shut it off if you like (&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fcfun_set.html&amp;amp;cp=2_1_3_0_0" rel="noopener noreferrer" target="_blank"&gt;AT+CFUN=4&lt;/a&gt;) while reading data from sensor etc.&amp;nbsp;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;em&gt;The link you sent is unfortunately &amp;quot;broken&amp;quot;, or at least shows the front page of the &amp;quot;nRF9160 DK&amp;quot;.&amp;nbsp;&lt;/em&gt;&lt;br /&gt;If you want to link to something in &amp;quot;infocenter&amp;quot; please make sure to&amp;nbsp;use the &amp;quot;Copy URL&amp;quot; button to get the correct URL for your selected page:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-134af44bfa164b9ab4c66520169d99e5/pastedimage1556545109481v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;hr /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;Please make sure to have the latest version of NCS:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd ncs/nrf
git checkout master
git pull
west update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So you have all the new features and bug fixes.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Please make sure to have the latest modem firmware version:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs"&gt;https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This may actually solve the issues you may see, if not please provide the output log from the terminal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Have you by the way tested with the &amp;quot;at_client&amp;quot; and LTE Link Monitor to confirm that you have network connection in your area?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK - Allow program execution to continue without cellular connection</title><link>https://devzone.nordicsemi.com/thread/184095?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 13:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb043344-a53e-48bc-94ab-47ee9638b06f</guid><dc:creator>CoryJPAE</dc:creator><description>&lt;p&gt;Any help would be appreciated.&lt;br /&gt;&lt;br /&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>