<?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>Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113011/modem-30-minute-lockup</link><description>This is driving me totally nuts. There are inconsistent pieces of information in documents and code. I am getting a modem reset loop problem. The documentation says the timer does not run when the modem has no power. That tells me I have to leave power</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Jul 2024 07:05:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113011/modem-30-minute-lockup" /><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494921?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2024 07:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d636fbb-4224-4e75-a21b-f7a50fa04f99</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="89447" url="~/f/nordic-q-a/113011/modem-30-minute-lockup/494916"]If you have examples of multi-imsi-SIM-cards with auto-switching, please let me know that. [/quote]
&lt;p&gt;I&amp;#39;ve tested a couple of them.&lt;/p&gt;
&lt;p&gt;Some switch after 2 minutes, which may cause larger issues, especially, if both NB-IoT and LTE-M should be considered in the network search. E.g. in a region with LTE-M only a modem with an config &amp;quot;NB-IoT preferred&amp;quot; and 2 minutes network search timeout will hardly work. To escape that you need to detect the imsi switch (by reading the IMSI and compare it with the last one). If it happens, it may be a good idea to swap the preference (here from NB-IoT to LTE-M) after 6-10 minutes network search without success.&lt;/p&gt;
&lt;p&gt;Some others switch after 10 minutes. Here you need some&amp;nbsp;patience. E.g. if there are 3 imsi on the SIM, it may take 20 minutes to have the right one active.&lt;/p&gt;
&lt;p&gt;Some of the SIM card providers offer also SIMs, where it&amp;#39;s possible for the App to select one of the available imsis. That helps a lot, if you know, which one is for your region and how to switch it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494919?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2024 06:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9efee66-2c88-4b30-950a-cbc5ed5911ca</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;The easiest and fastest way is just to check the IMSI frequently in the app. You may also ask your SIM card provider, but that may take more time and is sometimes not that easy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494918?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2024 06:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a628ab-fad6-47c5-94a3-7897fbb2264b</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;From the nrf9160_at_commands_v2.4.pdf, page 72.&lt;/p&gt;
&lt;p&gt;&amp;quot;The proprietary %XFACTORYRESET command resets the modem to factory settings. This operation is&lt;br /&gt;allowed only when the modem is not activated.&amp;quot;&lt;/p&gt;
&lt;p&gt;Therefore you need AT+CFUN=0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494917?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2024 04:14:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfaf9c02-73e9-40cc-828f-50e7993a1db8</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Oyvind,&lt;/p&gt;
&lt;p&gt;I want to correct my statement that AT%XFACTORYRESET=1 was the &amp;quot;trick&amp;quot; to have the Soracom SIM + nRF9160 combination register quickly with the network. What sped up the registration to under 10 seconds was the AT+CFUN=0 that I preceded the XFACTORYRESET with.&lt;/p&gt;
&lt;p&gt;Having said that, please help me understand why issuing AT+CFUN=0 prior to power resetting my nRF9160 is correcting &amp;quot;something.&amp;quot; And note that I only have to issue the +CFUN=0 once; then I can do multiple power resets with quick registrations (although I did not have the system powered on for more than a few minutes at a time in this testing).&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494916?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2024 03:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1efec01b-d984-49ab-80ed-ae423f250779</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Achim, yes, this is good to know. If you have examples of multi-imsi-SIM-cards with auto-switching, please let me know that. We use a Twilio Super SIM which is multi-imsi; I guess it is auto-switching, but I don&amp;#39;t know when I should expect the imsi to auto-switch. We also use Soracom SIMs; I don&amp;#39;t know whether or not those are multi-imsi.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494898?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 20:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4f979cf-f841-492f-8db3-cca38df890a6</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Sometimes long network searches may be caused by multi-imsi-SIM-cards with auto-switching. You may check that by reading the IMSI (AT+CIMI) frequently, e.g. every minute. If it changes, the modem usually restarts the network search. It&amp;#39;s only one cause, but sometimes a nasty one. Even if it doesn&amp;#39;t apply in your case, it&amp;#39;s good to know it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494886?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 18:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23419acc-34c4-4cb9-9c4b-8f7ac47b48e2</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Oyvind. Yeah, I guess it&amp;#39;s unfortunate that I opened the ticket with the &amp;quot;30-minute lockup&amp;quot; title. This was only one issue that arose while trying to work with Twilio SIM cards.&lt;/p&gt;
&lt;p&gt;I think I had a few extra questions for you. The one that sticks out in my mind: will AT%XFACTORYRESET=0 wipe out my certificates? In case I want to use it for clearing a reset loop, I want to know how much pain to expect.&lt;/p&gt;
&lt;p&gt;Oh, more questions, I saw the NS white paper about the reset loop restriction. I found that they did not define clearly what is meant by modem initialization and modem reset. I usually think of modem initialization in terms of the software (lte_lc.c). Reset refers to power reset, soft reset, WDT reset, and that class of events? Or is there something that can reset the modem that happens independently of a full nRF9160 reset and I won&amp;#39;t see in the log? [Maybe dumb questions but because I cannot see when the counter is climbing up to 7 I don't know what got me there.]&lt;/p&gt;
&lt;p&gt;Thanks, Oyvind.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494750?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 10:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98341167-c803-42f0-841c-916fbd362ce1</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Burt, I apologize for not being fully switched on, you are right in regards to the EMM events. I was too focused on the modem reset issue that I overlooked these messages in the modem trace.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not familiar with the Twilio SIM, I think you will need to reach out to your local sales rep for more information on this. The SIM must support LTE-M and NB-IoT, but from what I understand only US based NB-IoT is supported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494673?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 23:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:807b49df-de85-4ee6-b2f4-1927a7784d02</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Another thing I find a bit strange: in the pdn library, they enable CNEC_ESM events to appear in the log but not CNEC_EMM events. Here is what I get if I enable simple printing of EMM events:&lt;/p&gt;
&lt;p&gt;+CEREG: 2,&amp;quot;F460&amp;quot;,&amp;quot;00F536C9&amp;quot;,9&lt;br /&gt;&lt;span style="color:#808080;"&gt;[00:00:05.461,456] &amp;lt;dbg&amp;gt; modem_module: lte_evt_handler: LTE cell changed: Cell ID: 16070345, Tracking area: 62560&lt;/span&gt;&lt;br /&gt;[00:00:05.461,608] &amp;lt;inf&amp;gt; app_event_manager: MODEM_EVT_LTE_CELL_UPDATE&lt;br /&gt;+CSCON: 1&lt;br /&gt;&lt;span style="color:#808080;"&gt;[00:00:05.527,862] &amp;lt;dbg&amp;gt; modem_module: lte_evt_handler: RRC mode: Connected&lt;/span&gt;&lt;br /&gt;+CNEC_EMM: 6&lt;br /&gt;&lt;br /&gt;+CNEC_EMM: 6&lt;br /&gt;+CEREG: 0&lt;br /&gt;&lt;span style="color:#808080;"&gt;[00:00:06.663,574] &amp;lt;dbg&amp;gt; modem_module: lte_evt_handler: LTE cell changed: Cell ID: -1, Tracking area: -1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You see, even if I gray out the debug level messages, I mean, if you imagine they are not present, I would have seen really quickly that an EMM 6 happened. A quick perusal of the AT Commands Reference and following their suggestion to look it up in 3GPP 24.301 would show me quickly that using this SIM, the network is rejecting my IMEI (turns out KORE Wireless support informed me that Twilio only accepts the TAC for old B0 devices; I am using B1).&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494655?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 19:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b369ae7c-2174-4350-8bba-5295a8006245</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Oyvind, Hi, I am surprised that you didn&amp;#39;t have me issue an AT+CEER command! It is showing an &amp;quot;EMM 6&amp;quot; error, which I understand is a complaint from the network about an unacceptable IMEI.&lt;/p&gt;
&lt;p&gt;And, if we went through all the trouble to do a modem trace, wouldn&amp;#39;t it know about the EMM 6 problem regardless of whether I manually issued the +CEER command?&lt;/p&gt;
&lt;p&gt;The same IMEI is fully accepted when I use a Soracom SIM. So T-Mobile must have no problem, I would think. Is it normal that the home Twilio network would check the IMEI? Any thoughts you have are appreciated.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494447?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 01:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b533d259-efcb-4728-9bda-b2b6f3398a3c</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;A couple more questions:&lt;/p&gt;
&lt;p&gt;Related to %XFACTORYRESET=0, will this erase my loaded certificates put in via %CMNG or will it not touch them? Too bad there are not more details in the AT Commands Reference. Speaking of which, it would be nice if it stated explicitly in that document that reading certificates with %CMNG will not work when something like asset_tracker_v2 is running; it can get confusing when list works but read does not, etc. (It becomes harder and harder to search for or remember &amp;quot;getting started&amp;quot; type documentation when working with AT Commands Reference, if you follow my drift.)&lt;/p&gt;
&lt;p&gt;And here is an excellent question: while doing nothing more than switching application firmware back and forth between NB-IoT and LTE-M, and running them, given a SIM from Soracom, and running in NB-IoT mode, we find it often takes about over 4 minutes to connect to the T-Mobile network (this is not the Twilio SIM that refuses completely to connect). But if I issue an AT%XFACTORYRESET=1 properly, and then power reset, the board connects in under 10 seconds. And it continues to connect quickly given a few power resets. Please help me understand what garbage is getting stuck in the modem that needs this cleaning. It&amp;#39;s a really cool discovery!&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494409?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 14:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c982d35c-da5e-4491-8f70-406de470e531</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thank you very much, Oyvind. I do have a couple of questions.&lt;/p&gt;
&lt;p&gt;You say that nothing out of the ordinary shows up in the modem trace. But what I see using the Cell Monitor Dashboard or looking at log messages is that the modem stays in searching, not registered mode, and never gets to registered mode. Any hints from the trace about why that is? The other SIMs we have, from Soracom, do not have that issue; they register.&lt;/p&gt;
&lt;p&gt;Question about the %XFACTORYRESET=0 command: I was afraid to try that (as opposed to %XFACTORYRESET=1); I didn&amp;#39;t know if I would have to reinstall modem firmware or something more drastic. Can you give me a few words about this? I wish also that the &amp;quot;few words&amp;quot; could be added into the AT Commands Reference for those of us who have limited expertise to understand &amp;quot;all modem data&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thanks, Oyvind.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494405?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 14:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b95f1b81-bcd1-4882-bcfe-a0c25c3a0da0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Burt, thanks for sharing the modem trace. I was able to open but did not find anything out of the ordinary.&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;The modem reset loop&amp;nbsp;happens especially in the field when roaming. Have you&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nwp_042/page/WP/nwp_042/intro.html"&gt;read the Modem Reset Loop Restriction white paper&lt;/a&gt;?&amp;nbsp;The modem reset loop restriction serves as a safeguard against unexpected issues with the cellular modem and application. Its purpose is to protect networks in case the application or cellular modem does not behave as expected. This protection ensures that the nRF91 device does not congest the network, for example, with excessive signaling (Attach requests), which could occur if the application and modem continuously reset and attempt new connections in a loop.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;The modem counts all resets where the modem is not gracefully deinitialized with&amp;nbsp;&lt;code&gt;+CFUN=0&lt;/code&gt;. If modem deinitialization with&amp;nbsp;&lt;code&gt;+CFUN=0&lt;/code&gt;&amp;nbsp;is triggered before the predefined limit is reached, the reset counter is set to zero and the counting starts from the beginning. In modem firmware version 1.3.0, the limit is 5. In modem firmware version 1.3.1 and later, the limit is 7.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;In product development phase, active reset loop restriction can be removed with the&amp;nbsp;&lt;code&gt;%XFACTORYRESET=0&lt;/code&gt;&amp;nbsp;command. The command should not be used for this purpose in the final product. If&amp;nbsp;&lt;code&gt;%XFACTORYRESET=0&lt;/code&gt;&amp;nbsp;is used, all modem data, including user-configurable data, is reset.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494254?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 02:03:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb208b8a-4400-41e1-befb-3b7f06748d31</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2024_2D00_07_2D00_17T01_2D00_04_2D00_30.325Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2024_2D00_07_2D00_17T01_2D00_04_2D00_30.325Z.mtrace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you try this trace, Oyvind? I am seeing a MODEM RESET LOOP in the Cellular Monitor Dashboard. Also, I added a line of code&lt;/p&gt;
&lt;p&gt;err = nrf_modem_at_printf(&amp;quot;AT+CGDCONT=%u, %s, %s&amp;quot;, 1, &amp;quot;Non-IP&amp;quot;, &amp;quot;iot.nb&amp;quot;);&lt;/p&gt;
&lt;p&gt;Similar to what I mentioned earlier. I tried various flavors of &amp;quot;IP&amp;quot; &amp;quot;IPV6&amp;quot; &amp;quot;IPV4V6&amp;quot; and the &amp;quot;Non-IP&amp;quot; shown here. None solve a problem but do make a PDN appear in the Dashboard.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/494022?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 04:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:695733ff-3cf8-4e51-81d1-6eb258621798</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Burt,&amp;nbsp;&lt;/p&gt;
[quote user="Burt"]but it does not solve that Twilio/T-Mobile/NB problem.[/quote]
&lt;p&gt;I will need to see the modem traces in order to see what is going on inside the device. Do you get any error messages in your application logs?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/493779?ContentTypeID=1</link><pubDate>Sun, 14 Jul 2024 22:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8aa3314-8324-4d06-978e-7375d10c914b</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Okay, I figured out how to fix the Soracom SIM problem: AT%XFACTORYRESET=1 after AT+CFUN=0. That got rid of whatever hidden garbage I had inadvertently added.&lt;/p&gt;
&lt;p&gt;And that helped me further confirm that the Twilio and T-Mobile present Narrowband SIM is a mess.&lt;/p&gt;
&lt;p&gt;I changed the CGDCONT code above to&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;err = nrf_modem_at_printf(&amp;quot;AT+CGDCONT=%u,%s,%s&amp;quot;, 1, &amp;quot;IP&amp;quot;, &amp;quot;iot.nb&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;err = nrf_modem_at_printf(&amp;quot;AT+CGDCONT=%u,%s,%s&amp;quot;, 2, &amp;quot;IP&amp;quot;, &amp;quot;wireless.twilio.com&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;err = nrf_modem_at_printf(&amp;quot;AT+CGDCONT=%u,%s,%s&amp;quot;, 3, &amp;quot;IP&amp;quot;, &amp;quot;super&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;which seems to not hurt anything but it does not solve that Twilio/T-Mobile/NB problem.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/493772?ContentTypeID=1</link><pubDate>Sun, 14 Jul 2024 19:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58360947-d510-4652-bdfc-94a47a801b97</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Now I am not sure of anything. It seems that I now have killed a perfectly good Soracom SIM card by inserting a line of code into lte_lc_func_mode_set() [just a convenient place]&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;err = nrf_modem_at_printf(&amp;quot;AT+CGDCONT=%u,%s,%s&amp;quot;, 0, &amp;quot;IP&amp;quot;, &amp;quot;soracom.io&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;if (err) printf(&amp;quot;setting CGDCONT returns %d in %s\n&amp;quot;, err, __func__);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The SIM will no longer connect. If I use a good SIM I connect and the command&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;AT+CGDCONT?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;returns&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;DCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;soracom.io&amp;quot;,&amp;quot;10.164.75.168&amp;quot;,0,0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;after connecting. The bad SIM (that was a good SIM before experimenting with AT+CDGCONT) returns&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;soracom.io&amp;quot;,&amp;quot;&amp;quot;,0,0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;How did this mess occur and how do I fix it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Burt&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/493734?ContentTypeID=1</link><pubDate>Sat, 13 Jul 2024 03:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67a3fbc4-cd8f-4f8a-a37c-dffb19b2602c</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;I guess I misread that Twilio web page. I thought they were telling me that I needed to configure the APN somewhere in order to connect/register to the network; like I had to copy the APN that the SIM uses to somewhere else in order to establish an NB-IoT connection. Anyway, I have a ticket open with KORE Wireless/Twilio and they opened a secondary ticket with T-Mobile. I don&amp;#39;t think those KORE Wireless folks have any clue about the company Twilio that they purchased; not on a technology level, at least.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem 30 minute lockup</title><link>https://devzone.nordicsemi.com/thread/493725?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 22:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87ea2090-566e-4224-b6d6-84eb194ba1eb</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;I eventually was able to get out of the mess. It began when I tried adding this to asset_tracker_v2 prj.conf&lt;/p&gt;
&lt;p&gt;CONFIG_LWM2M_CARRIER_PDN_IPV4=y&lt;br /&gt;CONFIG_LWM2M_CARRIER=y&lt;br /&gt;CONFIG_LWM2M_CARRIER_SETTINGS=y&lt;br /&gt;CONFIG_LWM2M_CARRIER_CUSTOM_APN=&amp;quot;iot.nb&amp;quot;&lt;/p&gt;
&lt;p&gt;in an attempt to do the equivalent of&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;code class="ch-code-scroll-parent" style="height:57px;overflow:auto;position:relative;width:920px;" data-ch-lang="bash"&gt;AT+CGDCONT=1,&amp;quot;IP&amp;quot;,&amp;quot;iot.nb&amp;quot;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;as indicated by the clowns at &lt;a href="https://www.twilio.com/docs/iot/wireless/network-configuration#how-do-i-set-the-apn-with-at-commands"&gt;https://www.twilio.com/docs/iot/wireless/network-configuration#how-do-i-set-the-apn-with-at-commands&lt;/a&gt;. Not only did I lock up the modem but I wasn&amp;#39;t configuring any &amp;quot;iot-nb&amp;quot; because I don&amp;#39;t know how to set auto_startup to 1 in lwm2m_settings.c. It involves a modem key but I have no idea how to create a simple modem key appropriate for the purpose. It seems like this is another complicated topic involving security knowledge. Please help.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;I also tried setting &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;CONFIG_PDN_DEFAULTS_OVERRIDE=y&lt;br /&gt;CONFIG_PDN_DEFAULT_APN=&amp;quot;iot.nb&amp;quot;&lt;br /&gt;CONFIG_PDN_DEFAULT_FAM_IPV4=y&lt;br /&gt;CONFIG_PDN_LOG_LEVEL_DBG=y&lt;br /&gt;CONFIG_NVS=y&lt;br /&gt;CONFIG_MODEM_KEY_MGMT=y&lt;br /&gt;CONFIG_SMS=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;and although that did not break anything, it did not solve the problem whereby Twilio SIMs will not connect to T-Mobile. Can you tell me why they cannot just keep things simple like Soracom and the rest of the world? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;I guess you have people who know all the tricks and I hope you can help me get back on my feet again. Thanks. Oh, yeah, &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;Burt&lt;code class="ch-code-scroll-parent" style="height:57px;overflow:auto;position:relative;width:920px;" data-ch-lang="bash"&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>