<?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>How to achieve NB-IoT/LTE-M fallback in NRF9160 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82003/how-to-achieve-nb-iot-lte-m-fallback-in-nrf9160</link><description>I&amp;#39;m Using sim card which support both LTE and NB-IoT. In some areas i can&amp;#39;t use LTE-M and in that case i need to switch it to NB-IoT. I referred and there is fallback method which can do this. I want to know how to do that in code. Can somebody help me</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Nov 2021 08:47:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82003/how-to-achieve-nb-iot-lte-m-fallback-in-nrf9160" /><item><title>RE: How to achieve NB-IoT/LTE-M fallback in NRF9160 ?</title><link>https://devzone.nordicsemi.com/thread/340265?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 08:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20e8d784-74c5-46aa-8874-38799de3f1ee</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;The &amp;quot;lte_lc&amp;quot; module has a option for a fallback, but this is only on the initial connect to the network.&lt;/p&gt;
&lt;p&gt;In order to change the network mode dynamically, this should be implemented in your application.&lt;/p&gt;
&lt;p&gt;You could do something like this:&lt;/p&gt;
&lt;p&gt;1. check the network state for x amount of time (For instance AT+CEREG?)&lt;/p&gt;
&lt;p&gt;2. If state is&amp;nbsp;not connected (see here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cereg_read.html?cp=2_1_7_6_1"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cereg_read.html?cp=2_1_7_6_1&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;you can change to flight mode (&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cfun_set.html"&gt;AT+CFUN=4&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;3. Change the systemmode (&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xsystemmode_set.html?cp=2_1_4_26_0"&gt;AT%XSYSTEMMODE&lt;/a&gt;) to your preferred mode&lt;/p&gt;
&lt;p&gt;4. go back to online mode (&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cfun_set.html"&gt;AT+CFUN=1&lt;/a&gt;) and see if it connects on the newly selected network mode&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: you can use modem_info to get some of the above mentioned notifications (from AT+CEREG) if wanted.&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>