<?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>[NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate</link><description>Hi, 
 I’m using the Thingy:91X board with the nRF9151 chip, modem firmware version 2.0.2, and SDK version 2.9.0. 
 We’re encountering a serious issue: the modem does not reconnect after the SIM has been deactivated and then reactivated. 
 I’ve tried:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Sep 2025 10:32:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate" /><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/547308?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 10:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2077d142-839a-46e3-a6f1-0954502e0ff9</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/members/achimkraus"&gt;Achim Kraus&lt;/a&gt;&amp;nbsp;Thank you for your input.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/members/mlgr"&gt;Mlgr&lt;/a&gt;&amp;nbsp;I am sorry for delayed reply. I was out-of-office. Have you made any progress in the meantime? Can you provide status update?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/547213?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2025 14:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e00555-e7ed-408c-b021-372fa86fcff6</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="5203" url="~/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate/543421"]I did it with the snippets &amp;quot;west build&amp;nbsp;-S nrf91-modem-trace-uart ...&amp;quot; and &amp;quot;west build&amp;nbsp;-S nrf91-modem-trace-rtt ...&amp;quot;.[/quote]
&lt;p&gt;Oh, what a mess with the snippets and sysbuild!&lt;/p&gt;
&lt;p&gt;-S will apply the snippet to all images, including the McuBoot one, therefore the errors.&lt;/p&gt;
&lt;p&gt;(see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/122149/mcuboot-ncs-3-0-1-snippets-won-t-compile/538690"&gt;MCUBOOT + NCS 3.0.1 + Snippets won&amp;#39;t compile&lt;/a&gt;&amp;nbsp;)&lt;/p&gt;
&lt;p&gt;To fix that and apply the snippet only to the application, -D&amp;lt;app&amp;gt;_SNIPPET must be used, with the application folder name in &amp;lt;app&amp;gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With that, also the modem trace with RTT works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/547048?ContentTypeID=1</link><pubDate>Thu, 28 Aug 2025 09:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0464f3-41fa-4d35-afa4-d4780b2b37cd</guid><dc:creator>Mlgr</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Do you have&amp;nbsp;any news about our problem and the Jon&amp;#39;s logs?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/546143?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 08:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:990d90a8-4770-48af-ab1a-c3a3dddbe538</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Hello :)&lt;br /&gt;&lt;br /&gt;Any idea on what we could do ?!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best !&lt;/p&gt;
&lt;p&gt;Jon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/545079?ContentTypeID=1</link><pubDate>Fri, 08 Aug 2025 16:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:211fcf9f-0056-4cf4-ad64-96fecba808f7</guid><dc:creator>Jon</dc:creator><description>&lt;p data-start="108" data-end="245"&gt;So, I just couldn&amp;rsquo;t get modem traces working on the Thingy91X.&lt;br data-start="170" data-end="173" /&gt; Every time I tried to use the required snippet, the build failed with:&lt;/p&gt;
&lt;div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary select-none rounded-t-2xl"&gt;&lt;/div&gt;
&lt;div class="sticky top-9"&gt;
&lt;div class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="overflow-y-auto p-4" dir="ltr"&gt;&lt;code class="whitespace-pre!"&gt;&lt;span&gt;&lt;span class="hljs-literal"&gt;undefined&lt;/span&gt; reference to &lt;span class="hljs-string"&gt;`sys_clock_elapsed`&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p data-start="301" data-end="435"&gt;I didn&amp;rsquo;t want to sink more time into debugging this for now &amp;mdash; all I was doing was building the &lt;code data-start="396" data-end="407"&gt;at_client&lt;/code&gt; example with the snippet.&lt;/p&gt;
&lt;p data-start="437" data-end="536"&gt;Instead, I reproduced the exact same issue on an nRF9151 DK, &lt;strong data-start="498" data-end="533"&gt;this time with traces available&lt;/strong&gt;.&lt;/p&gt;
&lt;ul data-start="537" data-end="613"&gt;
&lt;li data-start="537" data-end="574"&gt;
&lt;p data-start="539" data-end="574"&gt;&lt;strong data-start="539" data-end="550"&gt;Trace 1&lt;/strong&gt;: before a power cycle&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="575" data-end="613"&gt;
&lt;p data-start="577" data-end="613"&gt;&lt;strong data-start="577" data-end="588"&gt;Trace 2&lt;/strong&gt;: after the power cycle&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start="615" data-end="657"&gt;The test scenario is the same as before:&lt;/p&gt;
&lt;ol data-start="658" data-end="878"&gt;
&lt;li data-start="658" data-end="722"&gt;
&lt;p data-start="661" data-end="722"&gt;Using a Tele2 SIM card (unsteered, all operators available)&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="723" data-end="765"&gt;
&lt;p data-start="726" data-end="765"&gt;SIM is &lt;strong data-start="733" data-end="746"&gt;activated&lt;/strong&gt; at the beginning&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="766" data-end="791"&gt;
&lt;p data-start="769" data-end="791"&gt;Then &lt;strong data-start="774" data-end="789"&gt;deactivated&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="792" data-end="836"&gt;
&lt;p data-start="795" data-end="836"&gt;Perform a few modem power off/on cycles&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="837" data-end="878"&gt;
&lt;p data-start="840" data-end="878"&gt;&lt;strong data-start="840" data-end="854"&gt;Reactivate&lt;/strong&gt; the SIM after a while&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-start="880" data-end="954"&gt;That&amp;rsquo;s when the board fails to reattach &amp;mdash; even after a full power cycle.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace1.pcapng"&gt;devzone.nordicsemi.com/.../trace1.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace2_5F00_posPowerCycle.pcapng"&gt;devzone.nordicsemi.com/.../trace2_5F00_posPowerCycle.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best :)&lt;br /&gt;Jon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/544868?ContentTypeID=1</link><pubDate>Thu, 07 Aug 2025 06:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a466f571-c61b-4f2e-ab86-f2006d32a89d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Mathieu,&lt;br /&gt;&lt;br /&gt;Here is a list of links from documentation to help you in capturing modem traces:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-cellularmonitor/page/index.html"&gt;cellular monitor&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-cellularmonitor/page/capturing.html"&gt;capturing modem trace using cellular monitor&lt;/a&gt;&lt;br /&gt;&lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-7-cellular-fundamentals/topic/lesson-7-exercise-1/"&gt;capturing modem trace&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/nrf91/nrf91_snippet.html"&gt;nrf91 snippets&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/mob_termination_ctrl_status/xmodemtrace_set.html"&gt;%XMODEMTRACE set&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/mob_termination_ctrl_status/xmodemtrace_set.html"&gt;modem trace module&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/544843?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 18:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eeaa7eb-0c29-4762-a3fe-349c914877df</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;But you will still need to provide a modem trace for that case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/544839?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 18:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d08a78ba-8cc5-4a79-b148-2ed21a1b52c4</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;This happens when i deactivate the sim manually, So this one is okay and happens as expected ;)&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; but the problem occurs after that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/544838?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 18:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75d19ad1-dd7a-4a37-8f1d-12542cf10095</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt;&amp;nbsp;EMM cause: 7&lt;/p&gt;
&lt;p&gt;=&amp;gt; &amp;quot;EPS not allowed&amp;quot;&lt;/p&gt;
&lt;p&gt;And that log is no modem trace ;-).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/544819?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 15:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b02c2806-e821-4400-94a5-f95c2d30b4d7</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;i forgot to add, we tried this with 3 different Thingy91x, and with 2 different operators (TELE2 and Onomondo).&amp;nbsp;&lt;br /&gt;And of course, we have good network coverage in our office :)&lt;br /&gt;&lt;br /&gt;Best&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/544818?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 15:06:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6101f7e1-b8ce-40f4-bf6a-15fab01326f3</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here are some news :)&lt;br /&gt;We were not able to plug our app with the tracing tools. But we are really stuck, so we changed our approch.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We reproduced the problem by using the Nordic modem shell example.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You will find attach all the command we did.&amp;nbsp; At the beginning, we are able to reach the network, we generate the problem by deactivating the sim and reactivating it later after having&amp;nbsp; done a at+CFUN=0 and at+CFUN1 (2/3 minutes after),&amp;nbsp;&lt;br /&gt;&lt;br /&gt;By the end of the file, you can see we tried several stuff to connect but it never work.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;THe only way to reach the network again is by power cycling the thingy91x&lt;br /&gt;&lt;br /&gt;What are your thoughts ?&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/serial_2D00_terminal_2D00_06082025_5F00_165918.txt"&gt;devzone.nordicsemi.com/.../serial_2D00_terminal_2D00_06082025_5F00_165918.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/543919?ContentTypeID=1</link><pubDate>Tue, 29 Jul 2025 11:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bd2453a-71df-4ad7-8dd9-6f9e8400f061</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;For additional information about capturing modem traces, you can refer to these links in documentation&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/asset-tracker-template-latest/page/common/tooling_troubleshooting.html#modem-tracing"&gt;modem tracing&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-cellularmonitor/page/capturing.html"&gt;capturing modem trace using Cellular Monitor&lt;/a&gt;.&lt;/p&gt;
[quote user="JonJon"]Tomorrow, i will check with some TELE2 sim, and a brand new Thingy91X. I&amp;#39;ll give you more infos then.[/quote]
&lt;p&gt;I am looking forward to your update.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/543812?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2025 17:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c005316c-0bfc-46cc-9b80-b24320926f83</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Hi !&lt;br /&gt;&lt;br /&gt;We were not really able to make some progress.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We were not able to get modem traces. I was not able to do it with UART1, since the uart1 is used for other purposes, and the connectivy_bridge is not used anymore. That&amp;#39;s why we redirect all our app uart to RTT.&lt;br /&gt;&lt;br /&gt;So, i tried to use the RTT modem trace snippet.&amp;nbsp;&lt;br /&gt;I also get the -63 error.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753723725868v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;By the way, i get nothing on channel 2, about modem traces. It remains empty&lt;br /&gt;&lt;img style="max-height:152px;max-width:194px;" height="152" src="https://devzone.nordicsemi.com/resized-image/__size/388x304/__key/communityserver-discussions-components-files/4/pastedimage1753723804119v2.png" width="194" alt=" " /&gt;&lt;br /&gt;Here is the command i used to build&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1753723845528v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;of course, i used the link given for the snippet.&lt;br /&gt;&lt;br /&gt;Well, it seems i won&amp;#39;t be able to get some modem traces :)&lt;br /&gt;&lt;br /&gt;About the operator, i tried with a Onomondo sim until now.&amp;nbsp; &amp;nbsp;My device connects to Bouygues Telecom Network (by using onomondo or Tele2).&lt;br /&gt;&lt;br /&gt;Tomorrow, i will check with some TELE2 sim, and a brand new Thingy91X. I&amp;#39;ll give you more infos then.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/543439?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 08:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e32e3bfa-63c0-498c-9e8a-f09580315555</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Mathieu,&lt;br /&gt;&lt;br /&gt;Have you made some progress?&lt;br /&gt;&lt;br /&gt;Have you been able to capture modem trace, possibly following Achim&amp;#39;s suggestion using modem trace snippet?&lt;br /&gt;&lt;br /&gt;Which mobile network operator does your device connect to?&lt;br /&gt;&lt;br /&gt;Due to frequent rebooting via watchdog, it could be that&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nwp_042/page/WP/nwp_042/intro.html"&gt;reset loop restriction&lt;/a&gt;&amp;nbsp;was triggered.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/543421?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 05:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f468cc6-6871-4660-85d7-e938d2e66887</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;I don&amp;#39;t know, how&amp;nbsp;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Mathieu&lt;/span&gt;&amp;nbsp;enabled the modem trace, in my test I did it with the snippets &amp;quot;west build&amp;nbsp;-S nrf91-modem-trace-uart ...&amp;quot; and &amp;quot;west build&amp;nbsp;-S nrf91-modem-trace-rtt ...&amp;quot;.&lt;/p&gt;
&lt;p&gt;With the UART it works, with RTT I wasn&amp;#39;t able to get the trace and got only warnings in the logging console instead.&lt;/p&gt;
&lt;p&gt;NCS 2.9.2, nRF9151-DK, mfw 2.0.2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ubuntu,&amp;nbsp;JLinkRTTLogger V8.18&lt;/p&gt;
&lt;p&gt;nrfjprog --reset &amp;amp;&amp;amp; JLinkRTTLogger -Device NRF9151_XXCA -If SWD -Speed 50000&amp;nbsp; modemtracesrtt.bin&lt;/p&gt;
&lt;p&gt;(As already mentioned above.)&lt;/p&gt;
&lt;p&gt;But the modem trace is rather a side issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/543389?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 15:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21fd4958-a65d-46e9-a1d3-82a77d035449</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you show how you enable tracing over UART and RTT?&lt;br /&gt;You can read more about&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/asset-tracker-template-latest/page/common/tooling_troubleshooting.html#modem-tracing"&gt;modem tracing&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html"&gt;modem trace module&lt;/a&gt; in the documentation.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/543314?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 09:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:262092ca-4bda-402b-9c8f-84a511047389</guid><dc:creator>Mlgr</dc:creator><description>[quote userid="5203" url="~/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate/543281"]&lt;p&gt;You added the power_off/normal cycle and the modem trace via RTT.&lt;/p&gt;
&lt;p&gt;I would start removing both and retest. If you use versioning, that may be easier to checkout a last working version and retest that.&lt;/p&gt;
&lt;p&gt;And then adding one change step by step and see, if both stops the device from working or just one.&lt;/p&gt;[/quote]
&lt;p data-start="40" data-end="270"&gt;That&amp;rsquo;s the problem: I flashed the same software that worked two weeks ago, but now this board won&amp;rsquo;t connect, even though it connects fine on another board. I think we received a defective batch, I&amp;rsquo;ve already thrown away five or six boards.&lt;/p&gt;
&lt;p data-start="276" data-end="663"&gt;The modem sends a &amp;ldquo;Searching&amp;rdquo; event and then does nothing. That&amp;rsquo;s why I tried enabling modem tracing. But when I read its output over UART the data appears garbled, even though my DTS settings (baud rate, pins, etc.) are correct and I&amp;rsquo;m using 1,000,000 baud / 8 data bits / 1 start bit / 1 stop bit / no parity. I don&amp;rsquo;t know why the output isn&amp;rsquo;t legible, so I&amp;rsquo;m switching to RTT instead.&lt;/p&gt;
&lt;p data-start="669" data-end="806"&gt;I really don&amp;rsquo;t understand why I&amp;rsquo;m having modem issues; I&amp;rsquo;ve never seen this with the Thingy:91 and I haven&amp;rsquo;t changed anything in my code.&lt;/p&gt;
&lt;p data-start="812" data-end="830"&gt;On startup I call:&lt;/p&gt;
&lt;ol data-start="836" data-end="961"&gt;
&lt;li data-start="836" data-end="863"&gt;
&lt;p data-start="839" data-end="863"&gt;&lt;code data-start="839" data-end="861"&gt;nrf_modem_lib_init()&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="866" data-end="890"&gt;
&lt;p data-start="869" data-end="890"&gt;&lt;code data-start="869" data-end="888"&gt;modem_info_init()&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="893" data-end="926"&gt;
&lt;p data-start="896" data-end="926"&gt;&lt;code data-start="896" data-end="924"&gt;modem_info_rsrp_register()&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li data-start="929" data-end="958"&gt;
&lt;p data-start="932" data-end="958"&gt;&lt;code data-start="932" data-end="956"&gt;lte_lc_connect_async()&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-start="964" data-end="983"&gt;On shutdown I call:&lt;/p&gt;
&lt;ul data-start="989" data-end="1012"&gt;
&lt;li data-start="989" data-end="1009"&gt;
&lt;p data-start="991" data-end="1009"&gt;&lt;code data-start="991" data-end="1009"&gt;lte_lc_offline()&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start="1015" data-end="1172"&gt;I have another board running exactly the same software and it works fine (I&amp;rsquo;d rather not deactivate/reactivate its SIM because I need it for something else).&lt;/p&gt;
&lt;p data-start="1178" data-end="1235" data-is-last-node=""&gt;Am I doing something wrong in my initialization sequence?&lt;/p&gt;
&lt;div id="simple-translate" class="simple-translate-system-theme"&gt;
&lt;div&gt;
&lt;div class="simple-translate-button isShow" style="height:22px;left:344px;top:540px;width:22px;"&gt;&lt;/div&gt;
&lt;div class="simple-translate-panel " style="font-size:13px;height:200px;left:0px;top:0px;width:300px;"&gt;
&lt;div class="simple-translate-result-wrapper" style="overflow:hidden;"&gt;
&lt;div class="simple-translate-move"&gt;&lt;/div&gt;
&lt;div class="simple-translate-result-contents"&gt;
&lt;p class="simple-translate-result" dir="auto"&gt;&lt;/p&gt;
&lt;p class="simple-translate-candidate" dir="auto"&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/543281?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 06:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91ff11d0-af54-40b1-a279-46e3f66b2df5</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="139584" url="~/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate/543240"]I haven’t changed anything in this software version, and it was working fine two weeks ago. I’m really lost.[/quote]
&lt;p&gt;You added the power_off/normal cycle and the modem trace via RTT.&lt;/p&gt;
&lt;p&gt;I would start removing both and retest. If you use versioning, that may be easier to checkout a last working version and retest that.&lt;/p&gt;
&lt;p&gt;And then adding one change step by step and see, if both stops the device from working or just one.&lt;/p&gt;
&lt;p&gt;----------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;I&amp;#39;m used to trace the mode via UART and sometimes use the FLASH to keep a the trace for a time span (and afterward write that to the UART).&lt;/p&gt;
&lt;p&gt;I never tried the RTT interface for the modem trace before, but at least using a nRF9151-DK, NCS 2.9.2, Ubuntu doesn&amp;#39;t work for me either. I enabled it via the snippet, it start to report quite a lot of &amp;quot;trace_backend.write failed with err: -63&amp;quot;. But using&lt;/p&gt;
&lt;p&gt;nrfjprog --reset &amp;amp;&amp;amp; JLinkRTTLogger -Device NRF9151_XXCA -If SWD -Speed 50000&amp;nbsp; modemtracesrtt.bin&lt;/p&gt;
&lt;p&gt;(see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/104983/how-to-capture-nrf9160-modem-traces-using-rtt"&gt;How to capture nrf9160 modem traces using RTT?&lt;/a&gt;&amp;nbsp;)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;only reports:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;SEGGER J-Link RTT Logger&lt;br /&gt;Compiled Mar&amp;nbsp; 5 2025 14:51:21&lt;br /&gt;(c) 2016-2017 SEGGER Microcontroller GmbH, www.segger.com&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Solutions for real time microcontroller applications&lt;br /&gt;&lt;br /&gt;Default logfile path: /home/achim/.config/SEGGER&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------&amp;nbsp;&lt;br /&gt;Connected to:&lt;br /&gt;&amp;nbsp; SEGGER J-Link (unknown)&lt;br /&gt;&amp;nbsp; S/N: 1051240195&lt;br /&gt;&lt;br /&gt;Searching for RTT Control Block...OK.&lt;br /&gt;3 up-channels found:&lt;br /&gt;0: Terminal&lt;br /&gt;1:&amp;nbsp;&lt;br /&gt;2:&amp;nbsp;&lt;br /&gt;Selected RTT Channel description:&amp;nbsp;&lt;br /&gt;&amp;nbsp; Index: 1&lt;br /&gt;&amp;nbsp; Name:&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp; Size:&amp;nbsp; 0 bytes.&lt;br /&gt;&lt;br /&gt;Output file: modemtracesrtt.bin&lt;br /&gt;&lt;br /&gt;Getting RTT data from target. Press any key to quit.&lt;br /&gt;------------------------------------------------------------&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Transfer rate: 0 Bytes/s Data written: 0 Bytes 0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Not sure, may be this requires someone from Nordic to retest the modem trace via RTT.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/543240?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2025 16:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:750f4b63-e47e-4d42-8f67-70f9f48b9d3d</guid><dc:creator>Mlgr</dc:creator><description>&lt;p data-start="0" data-end="251"&gt;I tried retesting using the &lt;code data-start="28" data-end="46"&gt;lte_lc_power_off&lt;/code&gt; / &lt;code data-start="49" data-end="64"&gt;lte_lc_normal&lt;/code&gt; cycle on disconnection, but now my device doesn&amp;rsquo;t connect at all, it just hangs after the &amp;ldquo;Searching&amp;rdquo; event (the same thing happens when I deactivate/reactivate the SIM but this SIM was always activated).&lt;/p&gt;
&lt;p data-start="253" data-end="429"&gt;I enabled tracing as described here: &lt;a class="" href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html" target="_new" data-start="290" data-end="398"&gt;https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html&lt;/a&gt;, but all I get are these logs:&lt;/p&gt;
&lt;div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;[00:00:01.526,733] &amp;lt;inf&amp;gt; modem_trace_backend: Modem_trace RTT backend channel 1&amp;nbsp;&amp;nbsp;&lt;br /&gt;[00:00:01.526,733] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace thread ready&amp;nbsp;&amp;nbsp;&lt;br /&gt;[00:00:01.534,637] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace level override: 2&amp;nbsp;&amp;nbsp;&lt;br /&gt;[00:00:01.782,501] &amp;lt;err&amp;gt; nrf_modem_lib_trace: trace_backend.write failed with err: -63&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;hellip;&amp;nbsp;&amp;nbsp;&lt;br /&gt;[00:00:08.544,372] &amp;lt;err&amp;gt; nrf_modem_lib_trace: trace_backend.write failed with err: -63&amp;nbsp;&amp;nbsp;&lt;br /&gt;[00:00:13.396,179] &amp;lt;inf&amp;gt; lte_monitor: Network: Searching&lt;/div&gt;
&lt;div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;&lt;/div&gt;
&lt;div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;I haven&amp;rsquo;t changed anything in this software version, and it was working fine two weeks ago. I&amp;rsquo;m really lost.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/542973?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 09:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7f1f47b-787b-496c-8c77-5cf79a8dfb59</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="139584" url="~/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate/542972"]If I understand correctly, the calls to &lt;code data-start="54" data-end="72"&gt;lte_lc_power_off&lt;/code&gt; and &lt;code data-start="77" data-end="92"&gt;lte_lc_normal&lt;/code&gt; should work.[/quote]
&lt;p&gt;Yes, that was my experience with the nRF9160/mfw1.3.7 and is now the same in the retest with the nRF9151/mfw2.0.2.&amp;nbsp;&lt;/p&gt;
[quote userid="139584" url="~/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate/542972"]I’ll retry them and increase the watchdog timeout to give the modem enough time to reconnect without being reset during the process.[/quote]
&lt;p&gt;It should be at least worth to be tested.&lt;/p&gt;
[quote userid="139584" url="~/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate/542972"]I’ll let you know the results.[/quote]
&lt;p&gt;I&amp;#39;m looking forward.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/542972?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 09:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1141d9f-a8d6-42d0-8745-37aab80477b3</guid><dc:creator>Mlgr</dc:creator><description>&lt;p&gt;If I understand correctly, the calls to &lt;code data-start="54" data-end="72"&gt;lte_lc_power_off&lt;/code&gt; and &lt;code data-start="77" data-end="92"&gt;lte_lc_normal&lt;/code&gt; should work.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll retry them and increase the watchdog timeout to give the modem enough time to reconnect without being reset during the process.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll let you know the results.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/542971?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 08:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b4ad99-fd6c-4532-b73c-7b4dbbeb042b</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;If 5 minutes are OK depends on the bands, the modes and the available networks. If you want to ensure, that this isn&amp;#39;t the cause, just use 15 minutes and see, if that changes.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/542970?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 08:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de29e9f8-677f-44d3-a86e-6066bab23410</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="5203" url="~/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate/542963"]I will check the SIM deactivation/activation using 1nce and a nRF9151-DK. Let&amp;#39;s see, what I get.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;I&amp;#39;ve tested it twice using a 1nce SIM.&lt;/p&gt;
&lt;p&gt;In the first test, I activated the SIM after a couple of seconds, but the modem didn&amp;#39;t test all the available TAC in that time. So the modem was able to reconnect to (a new) network without power-off/normal.&lt;/p&gt;
&lt;p&gt;In the second test, I&amp;#39;ve waited until all available TAC rejected the modem with 15, before a activated the SIM again. Here it required the&amp;nbsp;power-off/normal cycle as I was used to in the past.&lt;/p&gt;
&lt;p&gt;But no watchdog, reboot nor power switch off-on cycle was required to get the modem connected again.&lt;/p&gt;
&lt;p&gt;nRF9151-DK, NCS 2.9.2, mfw 2.0.2,&amp;nbsp;nRF9151 LACA A0A&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/542967?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 08:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24b47d22-41ab-4bbd-af88-e7dc939f6a11</guid><dc:creator>Mlgr</dc:creator><description>&lt;p data-start="14" data-end="60"&gt;The watchdog reboots the card after 5 minutes.&lt;/p&gt;
&lt;p data-start="62" data-end="216"&gt;On reboot, the app restarts by calling (after initializing other components) &lt;code data-start="139" data-end="159"&gt;nrf_modem_lib_init&lt;/code&gt;, &lt;code data-start="161" data-end="187"&gt;modem_info_rsrp_register&lt;/code&gt;, and &lt;code data-start="193" data-end="215"&gt;lte_lc_connect_async&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF9151] Modem does not connect after SIM deactivate/reactivate</title><link>https://devzone.nordicsemi.com/thread/542965?ContentTypeID=1</link><pubDate>Mon, 21 Jul 2025 08:10:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18a13993-fa77-4794-9159-08c8a616032c</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="139584" url="~/f/nordic-q-a/123007/nrf9151-modem-does-not-connect-after-sim-deactivate-reactivate/542962"](the watchdog still rebooted the card after a few minutes)[/quote]
&lt;p&gt;That depends on how many &amp;quot;a few&amp;quot; are in numbers ;-).&lt;/p&gt;
&lt;p&gt;Depending on the used bands and modes (LTE-M/NB-IoT) such a network search may take some more time. I usually start with 3 min and double that search time for each search after a quiet phase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>