<?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 change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back</link><description>Hi, 
 I&amp;#39;m using nrf9160custom board using sdk version 2.0.0 our Esim has 2 profiles one is for LTE and another one is for NB-IoT. Present i have tested tested LTE network and its working fine but i need to work on NB-IoT. 
 i have no idea how to do fallback</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2023 12:58:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back" /><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/438081?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 12:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9c1c29-17f3-4b49-beb7-75a9ca5cf5b9</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="bhanu prakash"]in this case when i search for NB-IoT&amp;nbsp; if getting error that means my e-sim don&amp;#39;t have NB-IoT network right?[/quote]
&lt;p&gt;What error do you get?&lt;/p&gt;
&lt;p&gt;I am able to search for NB-IoT networks with my LTE-M-only SIM card, so there shouldn&amp;#39;t be any limitations on searching.&lt;/p&gt;
[quote user="bhanu prakash"]How can i enable both LTE &amp;amp; NB-IoT modes as i now &amp;quot;1,0,0,0&amp;quot; is to enable LTE &amp;quot;0,1,0,0&amp;quot; is for NB-IoT&lt;br /&gt;so i need to enable both is have use &amp;quot;&lt;strong&gt;AT%XSYSTEMMODE=1,1,0,0&lt;/strong&gt;&amp;quot; ?[/quote]
&lt;p&gt;Yes, AT%XSYSTEMMODE=1,1,0,0 will enable both LTE-M and NB-IoT, with no specific priority to either mode.&lt;/p&gt;
&lt;p&gt;You can find the documentation for the %XSYSTEMMODE command here: &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xsystemmode_set.html"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xsystemmode_set.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/437780?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 05:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dcfd542-5a81-4a80-bd2e-1489212dac0f</guid><dc:creator>bhanu prakash</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back/437719"]If I enable only NB-IoT, it would find the local NB-IoT networks.[/quote]
&lt;p&gt;in this case when i search for NB-IoT&amp;nbsp; if getting error that means my e-sim don&amp;#39;t have NB-IoT network right?&lt;br /&gt;&lt;br /&gt;How can i enable both LTE &amp;amp; NB-IoT modes as i now &amp;quot;1,0,0,0&amp;quot; is to enable LTE &amp;quot;0,1,0,0&amp;quot; is for NB-IoT&lt;br /&gt;so i need to enable both is have use &amp;quot;&lt;strong&gt;AT%XSYSTEMMODE=1,1,0,0&lt;/strong&gt;&amp;quot; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/437719?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 15:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13d1d8ea-d5de-4479-b4e4-21eb5a4722f2</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Then only NB-IoT will be searched, so it will not look for any LTE-M networks.&lt;/p&gt;
&lt;p&gt;I did some tests with my LTE-M only SIM card (so not the exact same situation as you have, but some of the results might still be relevant).&lt;/p&gt;
&lt;p&gt;If I enable only NB-IoT, it would find the local NB-IoT networks. However, if both LTE-M and NB-IoT modes were enabled, it would connect to a LTE-M network (because that is what my SIM card supports), and also only list LTE-M networks. So it appears that AT+COPS=? will only list networks from one mode, even though both modes are enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/437567?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 04:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2abf6220-719b-4866-b53d-4e5c4d4729ca</guid><dc:creator>bhanu prakash</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back/437524"]Did you have both modes enabled, or just NB-IoT?[/quote]
&lt;p&gt;i enable only NB-IoT mode using command at%xsystemmode=0,1,0,0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/437524?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 15:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddf557be-784a-43f8-ad48-a9dea15a3d25</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="bhanu prakash"]i have tried with NB-IoT enable too[/quote]
&lt;p&gt;Did you have both modes enabled, or just NB-IoT?&lt;/p&gt;
&lt;p&gt;CME error 521 means &amp;quot;PLMN search interrupted, partial results&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/437446?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 11:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a18884f-f336-43db-a2bc-5f63a301d071</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="81181" url="~/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back/437301"]If you only had LTE-M enabled (%XSYSTEMMODE=1,0,0,0), the modem will only search for LTE-M networks. Regardless of what the SIM card supports.[/quote]
&lt;p&gt;i have tried with NB-IoT enable too i that moment i&amp;#39;m got error msg then i got all same networks with mode &amp;quot;9&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;+COPS: (1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26202&amp;quot;,9),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26203&amp;quot;,9),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26201&amp;quot;,9)
+CME ERROR: 521&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/437301?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 14:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:391a3ad0-9037-41d2-9f51-1f869dee54da</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="bhanu prakash"]i send at+cops=? command when nRF9160 is in LTE mode.[/quote]
&lt;p&gt;If you only had LTE-M enabled (%XSYSTEMMODE=1,0,0,0), the modem will only search for LTE-M networks. Regardless of what the SIM card supports.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/436620?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 04:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:318b575a-18ed-4cd0-abf7-ce3b89973a2b</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply,&lt;/p&gt;
[quote userid="124801" url="~/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back/436138"]+COPS: (2,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26201&amp;quot;,7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26203&amp;quot;,7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26202&amp;quot;,7)[/quote]
&lt;p&gt;based on this l observed our e-sim don&amp;#39;t have nb-iot profile network right? please correct if i&amp;#39;m wrong&lt;/p&gt;
&lt;p&gt;i send at+cops=? command when nRF9160 is in LTE mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/436525?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 14:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e3302e-cfac-4999-9e20-73a278043b88</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;You can select the PLMN manually with +COPS.&lt;/p&gt;
&lt;p&gt;If the first argument is 1, manual network selection will be used.&lt;/p&gt;
&lt;p&gt;However, you should be aware that this prevents the modem from connecting to any other network, so if you move out of the given networks coverage, but there are other networks that the modem could connect to, it will not connect to those.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/436138?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 06:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd3cc472-a621-4058-a006-103d5ff7e9bb</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i can&amp;#39;t able to take modem trace due to its custom board and we don&amp;#39;t have any other uart port available&lt;/p&gt;
&lt;p&gt;+COPS: (2,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26201&amp;quot;,7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26203&amp;quot;,7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26202&amp;quot;,7)&lt;/p&gt;
&lt;p&gt;based on this i have total 3 networks. by default its connecting to &amp;quot;26201&amp;quot; if i want to connect to another network which is &amp;quot;26203&amp;quot; how i can connect to it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/436039?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 15:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d759654-e952-4f81-ae7a-cd10715d4504</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;could you take a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html"&gt;modem trace&lt;/a&gt;, where you try to change the SIM profile and connect to NB-IoT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/435401?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 07:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abc7d437-62b5-490b-9363-3381e5ecffa0</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;HI&lt;/p&gt;
[quote userid="81181" url="~/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back/433859"] I just noticed that in your nbiot_connect AT command, you set the Act to 7, meaning LTE-M. What happens if you set it to 9 instead?[/quote]
&lt;p&gt;i have tried by changing &amp;quot;9&amp;quot; when i change its not even resister to the network and system mode is in NBIOT&lt;/p&gt;
&lt;p&gt;please check the below logs&amp;nbsp; when modem is in both LET and NB-IoT mode&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt; at%xsystemmode?
%XSYSTEMMODE: 1,0,0,0

&amp;gt; AT+COPS=?
+COPS: (2,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26201&amp;quot;,7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26203&amp;quot;,7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26202&amp;quot;,7)
OK

&amp;gt; at+cops?
+COPS: 0,2,&amp;quot;26201&amp;quot;,7
OK

&amp;gt; at+cereg?
+CEREG: 5,5,&amp;quot;05D7&amp;quot;,&amp;quot;019C4600&amp;quot;,7,,,&amp;quot;00000001&amp;quot;,&amp;quot;01011111&amp;quot;
OK

&amp;gt; at+cfun=0
OK

&amp;gt; at%xsystemmode=0,1,0,0
OK

&amp;gt; at+cfun=1
OK

&amp;gt; at+cereg?
+CEREG: 0,4
OK

&amp;gt; at+cereg?
+CEREG: 0,2,&amp;quot;089A&amp;quot;,&amp;quot;0052C0DF&amp;quot;,9
OK


&amp;gt; ATCOPS=?
+COPS: (1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26203&amp;quot;,9),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26201&amp;quot;,9),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;26202&amp;quot;,9)
OK

&amp;gt; at+cereg?
+CEREG: 0,2,&amp;quot;C2F0&amp;quot;,&amp;quot;00273265&amp;quot;,9
OK

&amp;gt; at+cops=0,2,&amp;quot;26203&amp;quot;,9
OK

&amp;gt; at+cops?
+COPS: 0
OK

&amp;gt; at+cereg?
+CEREG: 0,2
OK

&amp;gt; at+cgdcont?
+CGDCONT: 0,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,0,0
OK

&amp;gt; at+cereg?
+CEREG: 0,2
OK&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/434148?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 09:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d072df20-eae3-4020-a7f7-f841718d36ee</guid><dc:creator>bhanu prakash</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back/433859"]I just noticed that in your nbiot_connect AT command, you set the Act to 7, meaning LTE-M. What happens if you set it to 9 instead?[/quote]
&lt;p&gt;i haven&amp;#39;t check that&amp;nbsp; i will check and update you ASAP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/433859?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 08:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d73dc7e4-b5ce-4512-8a4c-eb46779a58f3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Also, I just noticed that in your nbiot_connect AT command, you set the Act to 7, meaning LTE-M. What happens if you set it to 9 instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/433505?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 14:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7f1313b-6266-432b-bef7-9eac33f5187d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;The modem does not know that you switch the SIM card to the NB-IoT profile. You would also have to change the system mode of the modem to NB-IoT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/433327?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 18:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b33904dc-db42-405b-9a57-c4229df1d67c</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="81181" url="~/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back/433203"]the SIM card changes profile so that the modem is able to connect to a network.[/quote]
&lt;p&gt;That fine but when sim card profile switches to NB-IoT profile then the modem also need to change to NB-IoT to connect with that but in my car modem is in still lte mode but some how it&amp;#39;s connecting to NB-IoT profile network and it&amp;#39;s sending data to aws also. Is it possible?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/433203?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 11:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8d6e9b4-b4e2-4d96-b7e8-2b1419bf3c15</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;In both of those cases, you have automatic network selection enabled, so the modem will still try to select a network to connect to automatically.&lt;/p&gt;
&lt;p&gt;Besides, depending on how the SIM card works, the modem might be able to handle the profile switching itself. So it could be that the modem informs the SIM card about what networks are available, and then the SIM card changes profile so that the modem is able to connect to a network.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/433038?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 16:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f747cf00-8d82-4fde-9418-f6a5d0652056</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;sorry for the late reply&lt;/p&gt;
&lt;p&gt;based on the sim card providers i have done the sim profile switching.&lt;/p&gt;
&lt;p&gt;but i have facing the issue now when sim profile is nbiot its connecting to network even&amp;nbsp; nrf9160 system in LTE mode i don&amp;#39;t know how its possible and when nrf9160 is in nbiot its not connecting to network also?&lt;/p&gt;
&lt;p&gt;below is the network switching code:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;char nbiot_connect[] =&amp;quot;AT+COPS=0,2,\&amp;quot;26203\&amp;quot;,7&amp;quot;;
err =at_cmd_write(esim_fallback,NULL,0,NULL);
&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;above cops command is to switch network to NB-IoT.&lt;/div&gt;
&lt;div&gt;and below command is to switch network to LTE&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;char lte_m[] = &amp;quot;AT+COPS=0,2,\&amp;quot;26201\&amp;quot;,7&amp;quot;;
int err=at_cmd_write(lte_m,NULL,0,NULL);&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;i have seen logs if network is in NB-IoT&amp;nbsp; its still connecting to network even System mode in LTE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/424913?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 14:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd3735ea-5b12-455f-b6fd-ec06f8f0a7f8</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="bhanu prakash"]i have enabled&amp;nbsp;&lt;span&gt;&amp;quot;&lt;strong&gt;CONFIG_BSD_LIBRARY_TRACE_ENABLED&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;=y&lt;/strong&gt;&amp;quot; in prj.config&lt;/span&gt;[/quote]
&lt;p&gt;Note that for NCS v2.0.0, you should use CONFIG_NRF_MODEM_LIB_TRACE_ENABLED, not CONFIG_BSD_LIBRARY_TRACE_ENABLED.&lt;/p&gt;
&lt;p&gt;The trace backend is hardcoded to use UART1, so the easiest way to get the trace over UART is to just swap the pins between UART1 and UART0. That way, they trace will come over the correct pins, and you don&amp;#39;t have to change anything else than the pin assignment in the device tree.&lt;/p&gt;
[quote user="bhanu prakash"]&lt;div&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;strong&gt;at_cmd_write(lte_m,NULL,0,NULL);&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;when i call this function im getting &lt;strong&gt;err=-8;&lt;/strong&gt; may i know what it means?&lt;/div&gt;[/quote]
&lt;p&gt;Which SDK version are you using?&lt;/p&gt;
&lt;p&gt;That function is deprecated, and had already been removed in NCS v2.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/424185?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 09:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:642d72d0-3ac9-48dd-ac45-3aa4f71069ea</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we are using nrf9160 custom board can you guide how to take modem trace logs in custom board.&lt;/p&gt;
&lt;p&gt;In my board UART0 has UART to USB cable to see logs. how can i take modem trace using UART0?&lt;/p&gt;
&lt;p&gt;i have enabled&amp;nbsp;&lt;span&gt;&amp;quot;&lt;strong&gt;CONFIG_BSD_LIBRARY_TRACE_ENABLED&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;=y&lt;/strong&gt;&amp;quot; in prj.config&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;below is my uart .dts&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;29&amp;gt;;
	rx-pin = &amp;lt;28&amp;gt;;
};

&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;13&amp;gt;;
	rx-pin = &amp;lt;14&amp;gt;;
	rts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;
	cts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;char&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;lte_m&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;AT+CSIM=28,&lt;/span&gt;&lt;span&gt;\&amp;quot;&lt;/span&gt;&lt;span&gt;80C2000009D3070202018110017C&lt;/span&gt;&lt;span&gt;\&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;strong&gt;at_cmd_write(lte_m,NULL,0,NULL);&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;when i call this function im getting &lt;strong&gt;err=-8;&lt;/strong&gt; may i know what it means?&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/424052?ContentTypeID=1</link><pubDate>Fri, 05 May 2023 14:49:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:986b335d-c24c-4496-a886-60c72097e874</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/bhanu-prakash"&gt;bhanu prakash&lt;/a&gt;, could you take a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html"&gt;modem trace&lt;/a&gt;, where you try to change the SIM profile and connect to NB-IoT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/423565?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 12:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:575d4076-1655-4fb0-9ffb-21a36d73a909</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;Hi sir,&lt;/p&gt;
[quote userid="5203" url="~/f/nordic-q-a/99123/how-to-change-esim-profile-for-nbiot-fall-back/423519"]+CEREG: 2,&amp;quot;C2F0&amp;quot;,&amp;quot;00273265&amp;quot;,9[/quote]
&lt;p&gt;This logs i got from my&amp;nbsp; code in code i have already written NB-IoT fallback for physical sim but now i&amp;#39;m trying same thing for E-sim.&lt;br /&gt;But now i&amp;#39;m trying in&amp;nbsp;LTE link monitor.&lt;/p&gt;
&lt;p&gt;After sending AT+CSIM&amp;nbsp; command how i can could whether e-sim profile changed or not.&lt;/p&gt;
&lt;p&gt;if it changed, i need to send &lt;span&gt;AT%XSYSTEMMODE=0,1,0,0 to enable the NB-IoT ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for more clarity&amp;nbsp;im send my fallback function when im using physical sim card please check it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void lteConnect(void)
{
    int err = NBIOT_ERROR_OK;

    if ((err = lte_lc_connect_async(lte_handler)) != NBIOT_ERROR_OK)
    {
        printk(&amp;quot;Modem could not be configured, error: %d\n&amp;quot;, err);
        err = NBIOT_ERROR_MODEM_CONFIG;
        errorHandler_process(err);
    }

    err = k_sem_take(&amp;amp;lte_connected_sem, K_SECONDS(CONFIG_LTE_NETWORK_TIMEOUT));
    if (err == -EAGAIN)
    {
        printk(&amp;quot;LTE connection could not be established within timeout. &amp;quot;
               &amp;quot;Schedule another attempt after sleeping\n&amp;quot;);

        scheduleLTEReconnect(
            lte_reconnection_delay_s[atomic_get(&amp;amp;lte_reconnection_attempts)]);

        /*  get the current sytem mode from api and fallback */
        int error = NBIOT_ERROR_OK;
        error     = lte_lc_system_mode_get(&amp;amp;get_sys_mode_current);
        printk(&amp;quot;Got mode %d \n&amp;quot;, get_sys_mode_current);
        if (!error)
        {
            if (get_sys_mode_current == LTE_LC_SYSTEM_MODE_NBIOT)
            {
                /* increment atomic variable to get the retry count of lte */
                atomic_inc(&amp;amp;lte_try_count);
                /*  Set the values in data structure to send to aws with fw
                 * info*/
                sensor_config.nbt_try_count = atomic_get(&amp;amp;nbt_try_count);
                sensor_config.lte_try_count = atomic_get(&amp;amp;lte_try_count);
                // sprintf(sensor_config.nw_mode, &amp;quot;lte&amp;quot;);
                sensor_config.network_mode = NETWORK_MODE_LTE;
                printk(&amp;quot;Current mode is NB-IoT and changing it to LTE-CAT1 : &amp;quot;
                       &amp;quot;count of LTE-M: %d\n&amp;quot;,
                       atomic_get(&amp;amp;lte_try_count));
                /*  Set the fallback MODE to LTE */
                int result = lte_lc_system_mode_set(LTE_LC_SYSTEM_MODE_LTEM);
                if (!result)
                {
                    printk(&amp;quot;Set mode done\n&amp;quot;);
                    /*  Sleep for a while just to give some time to change mode
                     Not given in Documantation but trial and error  */
                    k_msleep(5000);
                }
            }

            else if (get_sys_mode_current == LTE_LC_SYSTEM_MODE_LTEM)
            {
                /* increment atomic variable to get the retry count of lte */
                atomic_inc(&amp;amp;nbt_try_count);
                sensor_config.nbt_try_count = atomic_get(&amp;amp;nbt_try_count);
                sensor_config.lte_try_count = atomic_get(&amp;amp;lte_try_count);
                // sprintf(sensor_config.nw_mode, &amp;quot;nbt&amp;quot;);
                sensor_config.network_mode = NETWORK_MODE_LTE;
                printk(&amp;quot;Current mode is LTE-CAT1 and changing it to NB-IoT : &amp;quot;
                       &amp;quot;count of nbiot %d\n&amp;quot;,
                       atomic_get(&amp;amp;nbt_try_count));
                /*  Set the fallback MODE to NB-IoT */
                int result = lte_lc_system_mode_set(LTE_LC_SYSTEM_MODE_NBIOT);
                if (!result)
                {
                    printk(&amp;quot;Set mode done\n&amp;quot;);
                    /*  Sleep for a while just to give some time to change mode
                    Not given in Documantation but trial and error  */
                    k_msleep(5000);
                }
            }
        }

        /* Switch off modem until next reconnection attempt */
        modem_offline();
        return;
    }

    /* Setup Power Saving Mode */
    if ((err = setup_psm()) != NBIOT_ERROR_OK)
    {
        errorHandler_process(err);
    }

    return;
}
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;now i have added AT+CSIM command in this function&amp;nbsp;to switch the profile which fall back is happening&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; char nb_iot[] = &amp;quot;AT+CSIM=28,\&amp;quot;80C2000009D3070202018110017D\&amp;quot;&amp;quot;;&lt;br /&gt; int err =at_cmd_write(nb_iot,NULL,0,NULL);&lt;br /&gt; printf(&amp;quot;err:%d\n&amp;quot;,err);&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but still its not connecting to NB-IoT . let me if need anything to add in code or need to add any configuration&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/423519?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 11:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0891dd-2aa3-46be-a245-8a52c4571a94</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Your previous log from yesterday contains:&lt;/p&gt;
&lt;p&gt;&amp;gt; +CEREG: 2,&amp;quot;C2F0&amp;quot;,&amp;quot;00273265&amp;quot;,9&lt;/p&gt;
&lt;p&gt;with that your device was connecting to NB-IoT.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know, how you setup your device. Therefore I don&amp;#39;t know, what goes wrong or not nor what is required.&lt;/p&gt;
&lt;p&gt;My comment was mainly, that AT+CSIM has documentation and you didn&amp;#39;t comply with that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/423517?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 11:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e86d4236-d52d-45f6-a7b4-d54c80f0e528</guid><dc:creator>bhanu prakash</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In that case E-sim not switching the profile right ?&lt;/p&gt;
&lt;p&gt;whats may the solution to switch the e-sim profile or need to send any command&amp;nbsp; for NB-IoT after switching the e-sim profile?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to change Esim profile for nbiot fall back</title><link>https://devzone.nordicsemi.com/thread/423515?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 11:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:922c5cd5-71e8-4be9-bb2c-2eb45fea2e8d</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; +CEREG: 2,&amp;quot;05D7&amp;quot;,&amp;quot;019C4600&amp;quot;,7&lt;/p&gt;
&lt;p&gt;AFAIK the &amp;quot;7&amp;quot; means LTE-M/CAT-M1. A &amp;quot;9&amp;quot; would be NB-IoT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>