<?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 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76023/nrf9160-behavior-when-changing-mode-and-switching-sim</link><description>Hi, 
 We are currently trying to create a small test code to test multiple operator with different modes: 
 - lte-m1 or lte-nb1 
 - edrx 0s, 5.12s, 10.24s 
 - with and without psm 
 Our board has multiple SIM slot, with a SIM switch rerouting the SIM_xxx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Sep 2021 08:29:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76023/nrf9160-behavior-when-changing-mode-and-switching-sim" /><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/328121?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 08:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fea07f4-1a80-4567-b18f-4092d0471771</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Not yet sorry... between vacation and managing chip shortage, I did not have much time to spare on that subject.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to tackle it by the end of next week.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/326781?ContentTypeID=1</link><pubDate>Thu, 26 Aug 2021 12:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335f64de-260a-43a4-96c8-54578b04dbb6</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi! Were you able to try the firmware?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/323781?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 13:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b0e6ad-27c8-4133-ac7f-4f258001808a</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Sorry for being late, I didn&amp;#39;t receive the email notification of your answer for some reason....&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try the firmware next week.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/320068?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 14:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8f6bbb0-dff8-44be-94f3-84b43c1df84c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There have been some issues with the trace bitmasks in certain MFW versions. I have copied the workaround below, which I&amp;#39;m hoping will fix this issue for you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. Flash corrected MFW Production Test Image via the Programmer application:&amp;nbsp;&lt;a href="https://projecttools.nordicsemi.no/confluence/download/attachments/82572767/mfw-pti_nrf9160_1.1.2.zip?version=1&amp;amp;modificationDate=1606985855853&amp;amp;api=v2"&gt;mfw-pti_nrf9160_1.1.2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;NOTE:&amp;nbsp;The application may give an error message at the end. However, flashing should be just fine and can be confirmed by giving &amp;quot;AT+CGMR&amp;quot; which should reply &amp;quot;mfw-pti_nrf9160_1.1.2&amp;quot;.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2. Execute AT command: AT%XFSSYNC&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;Observe OK response for AT command&lt;/p&gt;
&lt;p&gt;4. Make sure that the device boots once (either reset by flashing tool (nrfjprog --reset) or manually). Wait a few seconds and reset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now the trace masks in the modem filesystem should be OK, so that traces get enabled. Go ahead and flash the normal MFW and try to take a new modem trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/319793?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 12:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c63cc66-991d-4cdb-8149-83c99f462e0c</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Hi Heidi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you have some intel on why the modem is not sending all the traces in our use cases?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Giuliano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/317721?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 12:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1afaead0-3634-429f-a1f3-f11aa9ddeb19</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;The data is missing, but we&amp;#39;re not sure why. It doesn&amp;#39;t look like an issue on your side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Reviews on PRs can take a while depending on how busy the developers are, and since we&amp;#39;re currently in the middle of the summer holiday here in Norway all departments are short-staffed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/317661?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 10:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0256296d-82d5-498f-adec-4091d3df3688</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have added pull request with my code to get traces over RTT: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/5025"&gt;https://github.com/nrfconnect/sdk-nrf/pull/5025&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Please, follow up with that ticket, as it has already been a week without response form Nordic.&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;Giuliano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/317068?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 16:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe19bdb-2645-4c8b-85b1-a74f0a496fd7</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Yes, if we take the SIM card out of the test board and put it in a nrf9160dk, the dk is able to connect.&lt;/p&gt;
&lt;p&gt;When you say traces are missing, is it a software configuration issue or my SWD porting not working?&lt;/p&gt;
&lt;p&gt;Do you have truncated data or just missing data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/316981?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 12:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30cb7e34-7523-4277-9eb3-def326d10c0a</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Thanks. What they want to know is if you have confirmed that the second SIM is able to connect to a network in your area?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There isn&amp;#39;t much information to get from the trace logs, unfortunately. There are a lot of traces missing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/316959?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 11:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e73fd13-9e22-461a-a96d-0ee2f341044c</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;The tests are done on one of our own board with has multiple SIM slot (both MFF2 and 4FF) with SIM switches controlled by GPIO connected to the nrf9160.&lt;/p&gt;
&lt;p&gt;The providers we are currently testing are Orange and&amp;nbsp; Vodafone&lt;/p&gt;
&lt;p&gt;Which info did you gather from the logs? Are they correctly formatted ?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/316954?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 11:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44e56f40-43be-4f23-b4f2-6b425570856c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Have you tested both SIM cards separately, either on your custom board or preferably on an nRF9160 DK, to see if it&amp;#39;s able to connect independently?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What are the network providers you&amp;#39;re testing with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/316745?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 13:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ebec9d7-c9fa-482f-827a-781792213cb8</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Didrik is on vacation so I have taken over this case. I will take a look at the logs and have an update for you tomorrow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/316038?ContentTypeID=1</link><pubDate>Fri, 18 Jun 2021 09:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faeeaca2-30cc-4e19-9b21-700601c480be</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Did you had time to analyze the logs to find the cause of the nrf9160 lock?&lt;/p&gt;
&lt;p&gt;Are they correctly formatted ?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Giuliano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/315755?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 07:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51c6c85a-632b-41a0-8ef7-78ec3b082e1f</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;The program ran for something like 10 to 15 minutes. As said earlier, it really seems that the program freezes.&lt;/p&gt;
&lt;p&gt;As for the modem version, our program crashes at startup with the latest version. Maybe it has some incompatibility between our NCS version and/or our nRF9160 chip version (which is quite old right now)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/315696?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 15:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:506671b7-bea3-459e-9607-9b8eb945c5bc</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I will look more at the trace tomorrow, but yes, it seems to be valid.&lt;/p&gt;
&lt;p&gt;The error rate was a bit higher than normal, but I don&amp;#39;t know how much of a problem that really is. From my quick look, it seemed like most of the information was there.&lt;/p&gt;
&lt;p&gt;How long did you trace? Looking at the timestamps in the trace, there is ~2 minutes of traces in the file. Is that correct?&lt;/p&gt;
&lt;p&gt;On a different note, that trace is from mfw 1.2.3, not mfw 1.3.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/315663?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 14:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06e0f68e-ad1c-4e52-bd5f-c4799ddb5299</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to add RTT as trace output. Here is the result of my test.&lt;/p&gt;
&lt;p&gt;Please tell me if the traces are correctly formatted and understandable.&lt;/p&gt;
&lt;p&gt;If so, I&amp;#39;ll do a pull request on sdk-nrf to add that functionality to the tree&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Giuliano&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf9160_5F00_modem.zip"&gt;devzone.nordicsemi.com/.../nrf9160_5F00_modem.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/315086?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 10:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:030dcafe-983b-4cd9-b363-418e8df8a461</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Here is the newest log.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Same thing, test stopped after 10 min without any more logs&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4456.sim_5F00_card_5F00_test.log"&gt;devzone.nordicsemi.com/.../4456.sim_5F00_card_5F00_test.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/315068?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 09:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d91ce49-a218-44b3-bd1e-c8c16eef1aa9</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I apologise for not remembering this earlier, but you have to send the list of AT commands for each test.&lt;/p&gt;
&lt;p&gt;The modem removes any urc subscriptions when it receives +CFUN=0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/315032?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 07:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:367299f6-c209-4317-8ffb-c799ccd50082</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached the log received during our test.&lt;br /&gt;&lt;br /&gt;As you can see, the modem stops responding after the SIM card is switched (more than 15 minutes without any log at all)&lt;br /&gt;&lt;br /&gt;==&amp;gt; What can you learn from these logs?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sim_5F00_card_5F00_test.log"&gt;devzone.nordicsemi.com/.../sim_5F00_card_5F00_test.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is a small extract of our testing code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;struct test_data {
	enum lte_lc_system_mode mode;
	bool use_edrx;
	const char *ltem_edrx_value;
	const char *nbiot_edrx_value;
};

static const struct test_data test[] = {
	{
		.mode = LTE_LC_SYSTEM_MODE_LTEM,
		.use_edrx = true,
		.ltem_edrx_value = &amp;quot;0001&amp;quot;,
		.nbiot_edrx_value = &amp;quot;0001&amp;quot;,
	},
	{
		.mode = LTE_LC_SYSTEM_MODE_NBIOT,
		.use_edrx = true,
		.ltem_edrx_value = &amp;quot;0001&amp;quot;,
		.nbiot_edrx_value = &amp;quot;0001&amp;quot;,
	},
};

int main(void)
{
	int err;

    ... uninteresting init ...
    
    gpio_pin_configure(gpio, 31, GPIO_OUTPUT);

	LOG_WRN(&amp;quot;====Calling lte_lc_init()====&amp;quot;);
	lte_lc_init();

	LOG_WRN(&amp;quot;====Registering %%XSIM urc====&amp;quot;);
	at_cmd_write(&amp;quot;AT%XSIM=1&amp;quot;, NULL, 0, NULL);

	LOG_WRN(&amp;quot;====Registering %%CESQ urc====&amp;quot;);
	at_cmd_write(&amp;quot;AT%CESQ=1&amp;quot;, NULL, 0, NULL);

	LOG_WRN(&amp;quot;====Registering %%MDEV urc====&amp;quot;);
	at_cmd_write(&amp;quot;AT%MDEV=1&amp;quot;, NULL, 0, NULL);

	LOG_WRN(&amp;quot;====Registering +CMEE urc====&amp;quot;);
	at_cmd_write(&amp;quot;AT+CMEE=1&amp;quot;, NULL, 0, NULL);

	LOG_WRN(&amp;quot;====Registering +CNEC urc====&amp;quot;);
	at_cmd_write(&amp;quot;AT+CNEC=24&amp;quot;, NULL, 0, NULL);

	for (int sim = 0; sim &amp;lt; 2; sim++) {
		LOG_WRN(&amp;quot;====Using SIM %d====&amp;quot;, sim);
		gpio_pin_set(gpio, 31, sim);

		for (int i = 0; i &amp;lt; ARRAY_SIZE(test); i++) {
			const struct test_data *data = &amp;amp;test[i];

			LOG_WRN(&amp;quot;====Starting test %d in 3 seconds=====&amp;quot;, i);
			LOG_WRN(&amp;quot;Mode: %d, edrx: %d, ltem: %s, nbiot: %s&amp;quot;,
				data-&amp;gt;mode, data-&amp;gt;use_edrx,
				str_or_null(data-&amp;gt;ltem_edrx_value),
				str_or_null(data-&amp;gt;nbiot_edrx_value));

			k_sleep(K_SECONDS(3));

			lte_lc_system_mode_set(data-&amp;gt;mode, 0);
			lte_lc_psm_req(false);

			if (!data-&amp;gt;use_edrx) {
				lte_lc_edrx_req(false);
			}
			else {
				lte_lc_edrx_param_set(LTE_LC_LTE_MODE_LTEM,
					data-&amp;gt;ltem_edrx_value);
				lte_lc_edrx_param_set(LTE_LC_LTE_MODE_NBIOT,
					data-&amp;gt;nbiot_edrx_value);
				lte_lc_edrx_req(true);
			}

			err = lte_lc_connect();
			if (err) {
				LOG_ERR(&amp;quot;Test %d fails: no connection&amp;quot;, i);
			}
			else {
				LOG_WRN(&amp;quot;Connected ! Checking eDRX value&amp;quot;);
				k_sleep(K_SECONDS(2));
				at_cmd_write(&amp;quot;AT+CEDRXRDP&amp;quot;, NULL, 0, NULL);
				k_sleep(K_SECONDS(2));
				at_cmd_write(&amp;quot;AT+CEDRXRDP&amp;quot;, NULL, 0, NULL);
				k_sleep(K_SECONDS(2));
				at_cmd_write(&amp;quot;AT+CEDRXRDP&amp;quot;, NULL, 0, NULL);
			}

			LOG_WRN(&amp;quot;====Test %d done. &amp;quot;
				&amp;quot;Starting next one in 10 seconds====&amp;quot;, i);
			lte_lc_power_off();
			k_sleep(K_SECONDS(10));
		}
	}

	return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And our prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_ASSERT=y
CONFIG_REBOOT=y
CONFIG_SERIAL=n

# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y

# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_NETWORK_MODE_LTE_M=y
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y
CONFIG_LTE_NETWORK_USE_FALLBACK=n
CONFIG_LTE_NETWORK_TIMEOUT=90
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n

# Modem info
CONFIG_NRF_MODEM_LIB=y
CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y

# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_HW_STACK_PROTECTION=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The modem firmware is the 1.3.0.&lt;/p&gt;
&lt;p&gt;The nRF9160 chip we are using comes from a kinda old board, and as the following lines written on it:&lt;/p&gt;
&lt;p&gt;nrf9160 SICA&lt;/p&gt;
&lt;p&gt;B0&lt;/p&gt;
&lt;p&gt;191104&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to see if I can redirect trace to SWD.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Giuliano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/314630?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 08:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a7f95cc-4966-4ffc-b039-74676b90b886</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="GiulianoFranchetto"]&lt;p&gt;However, I cannot get the trace, as I don&amp;#39;t have any available UART.&lt;/p&gt;
&lt;p&gt;Is there any possibility to get trace through SWD using SEGGER RTT?&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;There is no support for other transports than UART in the SDK.&lt;/p&gt;
&lt;p&gt;However, as the modem trace handling is implemented in nrf/lib/nrf_modem_lib/nrf_modem_os.c, it is possible to change the transport.&lt;/p&gt;
&lt;p&gt;You can read more about what is required to handle the modem traces here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/ug_nrf_modem_porting_os.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/ug_nrf_modem_porting_os.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I believe it is possible to send the modem trace over RTT, though I am not sure how easy it would be.&lt;/p&gt;
&lt;p&gt;If you could send an application log with the previously mentioned AT commands enabled, that might be enough to get us started.&lt;/p&gt;
&lt;p&gt;Finally, I noticed a typo in my previous reply. It should be &lt;strong&gt;+&lt;/strong&gt;CEREG, not &lt;strong&gt;%&lt;/strong&gt;CEREG. I&amp;#39;ve updated the reply, so it is correct now. I&amp;#39;ve also added +CMEE and +CNEC to the list, and what values each of the commands should be set to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/314352?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 07:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deb1386a-e886-4208-9a62-9fa24328574c</guid><dc:creator>GiulianoFranchetto</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Forever is until next reboot of the board. The longest time I&amp;#39;ve had before running out of patience was something around 30 minutes.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll send you the result today.&lt;/p&gt;
&lt;p&gt;However, I cannot get the trace, as I don&amp;#39;t have any available UART.&lt;/p&gt;
&lt;p&gt;Is there any possibility to get trace through SWD using SEGGER RTT?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Giuliano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 behavior when changing mode and switching SIM</title><link>https://devzone.nordicsemi.com/thread/313996?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 15:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e540a9b0-21de-4cb0-9c74-ee030d9b3805</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How long is &amp;quot;forever&amp;quot;?&lt;/p&gt;
&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;, and share the application log?&lt;/p&gt;
&lt;p&gt;What modem firmware version are you using?&lt;/p&gt;
&lt;p&gt;It would also be interresting if you could enable unsolicited responses from the %XSIM (1), %CESQ (1), +CEREG (5), +CMEE (1), +CNEC(24) and, if you are using mfw v1.3.0 %MDEV (1).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>