<?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>Failure to initialize lwm2m carrier library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78810/failure-to-initialize-lwm2m-carrier-library</link><description>While trying to build and run on my nRF9160 DK the project: asset_tracker , that I imported into SES by selecting: File&amp;gt;nRF Connect SDK Project...(in the SES menu), I followed the required steps however, after building this project and after downloading</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Aug 2021 09:12:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78810/failure-to-initialize-lwm2m-carrier-library" /><item><title>RE: Failure to initialize lwm2m carrier library</title><link>https://devzone.nordicsemi.com/thread/326481?ContentTypeID=1</link><pubDate>Wed, 25 Aug 2021 09:12:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a609e35a-df98-4494-a544-ca9a17e4a643</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Jacek,&amp;nbsp;&lt;br /&gt;Glad to hear! &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;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure to initialize lwm2m carrier library</title><link>https://devzone.nordicsemi.com/thread/326405?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 14:29:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a67d0ef-97a5-4f7b-bf65-ff92e5baa31a</guid><dc:creator>Jacek Majda</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;As advised, I built the project, editing the prj.conf of Asset Tracker to the following:&lt;/p&gt;
&lt;p&gt;1. CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=n&lt;br /&gt;2. CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y&lt;/p&gt;
&lt;p&gt;This resulted in a speedy connection of Asset Tracker application to LTE network.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for assistance.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jacek&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: Failure to initialize lwm2m carrier library</title><link>https://devzone.nordicsemi.com/thread/326096?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 07:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5e5c47c-c185-48f9-aaec-b9ec674372f7</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Jacek,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Happy to hear that you found the solution. Note that if you are on a NB-IoT network, then you should use either the procompiled FW i.e.&amp;nbsp;&lt;em&gt;img_app_bl\nrf9160dk_asset_tracker_nbiot_2021-06-25_7a076c22.hex&amp;nbsp;&lt;/em&gt;or build from NCS project, editing the prj.conf of Asset Tracker to the following:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=n
CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/getting_started.html#getting-started"&gt;Getting Started chapter of our nRF Connect SDK documentation&lt;/a&gt; is a good starting point along with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/ug_nrf91.html#working-with-nrf91-series"&gt;Working with nRF91-series&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure to initialize lwm2m carrier library</title><link>https://devzone.nordicsemi.com/thread/326054?ContentTypeID=1</link><pubDate>Sun, 22 Aug 2021 11:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c47a562-c4b7-435f-bd8e-e436252850fb</guid><dc:creator>Jacek Majda</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I did follow your advice to try and build asset tracker leaving out C.Make parameter: -DOVERLAY_CONFIG=lwm_carrier_overlay.conf&amp;nbsp; and it did work. I was able to connect to LTE network, although only after a 10 minutes delay from the time I did reset the board.&lt;/p&gt;
&lt;p&gt;So the problem has been solved, thanks for your advice.&lt;/p&gt;
&lt;p&gt;I did run this asset tracker application (that I built using SES) several times and each time it took 10 minutes after resetting the board, before the connection to LTE network was established. This was in contrast to the prebuilt nRF9160:Asset Tracker application, which did establish connection to LTE network within a few seconds after resetting the board , each time I ran this application.&lt;/p&gt;
&lt;p&gt;After analysis of the log file of the nRF Conect LTE Link Monitor (for the asset tracker application that I built using SES and leaving out the CMake parameter), I noticed that:&lt;/p&gt;
&lt;p&gt;1. After 10 minutes from starting the Asset Tracker, a message: &amp;quot;Network connect attempt timed out&amp;quot; was logged.&lt;/p&gt;
&lt;p&gt;2. The above message was followed by another message: &amp;quot;lte_le:Using fallback network mode&amp;quot;.&lt;/p&gt;
&lt;p&gt;3. And a few seconds later, the message: &amp;quot;asset_tracker:connected to LTE Network&amp;quot; was logged.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. The connection to LTE Network was also confirmed by LED4 turning permanently ON on my nRF9160 DK board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did search for info on the LTE_USE_FALLBACK and I found that:&lt;/p&gt;
&lt;p&gt;1. The fallback network mode will be used when the selected mode fails.&lt;/p&gt;
&lt;p&gt;2. If LTE-M is selected as the network mode, NB-IoT will be the fallback mode and vice versa.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I checked which AT commands could be used to check and set the required network mode (which is the NB-IoT network mode in my case) and I found that:&lt;/p&gt;
&lt;p&gt;1. The AT command:&amp;nbsp; AT%XSYSTEMMODE? can be used to check the selected mode&lt;/p&gt;
&lt;p&gt;2. The AT command:&amp;nbsp; AT%XSYSTEMMODE=0,1,1,0&amp;nbsp; can be used to set the NB-IoT network mode.&lt;/p&gt;
&lt;p&gt;Subsequently, I run the asset tracker application that I built using SES and leaving out the CMake parameter, as advised by you and I used the AT%XSYSTEMMODE?&amp;nbsp; command to check which network mode was used by this application during the first 10 minutes after the reset.&lt;/p&gt;
&lt;p&gt;As expected, I found that this application was using the LTE-M network mode during the first 10 minutes after reset, and only when the fullback network mode (NB-IoT) was activated 10 minutes later, the connection to LTE network was established.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I must say that I have learned a lot from this exercise.&lt;/p&gt;
&lt;p&gt;Thank for your assistance in this regard.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jacek&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&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: Failure to initialize lwm2m carrier library</title><link>https://devzone.nordicsemi.com/thread/326000?ContentTypeID=1</link><pubDate>Fri, 20 Aug 2021 14:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66cc69e2-ef62-44b4-a721-2d35d6e3c0b4</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]2. In the SES, I selected: Tools&amp;gt;Options&amp;gt;nRF Connect and I added the following CMake parameter: -DOVERLAY_CONFIG=lwm2m_carrier_overlay.conf[/quote]
&lt;p&gt;Is there a reason for doing this? Do you need the carrier library?&amp;nbsp; Is this result the same (Stuck after LWM2M_CARRIER_EVENT_CONNECTING) if you try to run the lwm2m_carrier sample? (nrf\samples\nrf9160\lwm2m_carrier) &lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/1.6.1/nrf/samples/nrf9160/lwm2m_carrier/readme.html#lwm2m-carrier" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/samples/nrf9160/lwm2m_carrier/README.html#lwm2m-carrier" rel="noopener noreferrer" target="_blank"&gt;nRF9160: LwM2M carrier — nRF Connect SDK 1.6.1 documentation (nordicsemi.com)&lt;/a&gt;. This is a more light weight sample that can help rule out issues.&lt;/p&gt;
&lt;p&gt;Can you please provide more information on your location? What kind of SIM are you using?&lt;/p&gt;
&lt;p&gt;Are you able to build asset tracker leaving out&amp;nbsp;&lt;span&gt;CMake parameter: -DOVERLAY_CONFIG=lwm2m_carrier_overlay.conf?&lt;br /&gt;&lt;br /&gt;Thank you!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>