<?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>LwM2M Carrier Library Questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62774/lwm2m-carrier-library-questions</link><description>Hello, 
 
 From my understanding, I should integrate the LwM2M Carrier Library connection as the first step in the boot process and once I have received the LWM2M_CARRIER_EVENT_READY event, I can move along with my application similar to how we are waiting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 15:23:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62774/lwm2m-carrier-library-questions" /><item><title>RE: LwM2M Carrier Library Questions</title><link>https://devzone.nordicsemi.com/thread/256261?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 15:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b757868-61bd-43fa-8146-08a16e0217da</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="AkashPatel"]What will happen if I have the lwm2m carrier library as part of my project and I use an MVNO sim? If it cannot connect to the carrier, then will it hang or timeout? If timeout, after how long?[/quote]
&lt;p&gt;Nothing should happen, as it does not block anything in the application. the event _READY from LWM2M will never come, and the application shall run as normal.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M Carrier Library Questions</title><link>https://devzone.nordicsemi.com/thread/256017?ContentTypeID=1</link><pubDate>Sat, 20 Jun 2020 00:19:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68d661b7-e678-4b6b-aa92-52ad38e27133</guid><dc:creator>Akash Patel</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/62774/lwm2m-carrier-library-questions/255978"]&lt;p&gt; Roaming SIMs will not access a carrier lwm2m server, so then its not needed.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;What will happen if I have the lwm2m carrier library as part of my project and I use an MVNO sim? If it cannot connect to the carrier, then will it hang or timeout? If timeout, after how long?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M Carrier Library Questions</title><link>https://devzone.nordicsemi.com/thread/255978?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 13:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a56dc7ac-6830-4890-8aca-45cd4a4633ae</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Akash,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]If I am in an area with no LTE coverage, what will happen in this case? How long will I have to wait for the Carrier Library to give the semaphore if there is no coverage?&amp;nbsp;When should I run the portion of my application that does not need LTE Connection, e.g. talking to other devices over UART.[/quote]
&lt;p&gt;&amp;nbsp;Most of the abstractions in lwm2m can be found in the lwm2m_os.c file, which in this case will call upon the lte_lc library:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.3.0/lib/bin/lwm2m_carrier/os/lwm2m_os.c#L626-L641"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.3.0/lib/bin/lwm2m_carrier/os/lwm2m_os.c#L626-L641&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So, it depends on how you have configured that to run (see CONFIG_LTE_NETWORK_TIMEOUT).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Given that your own logic is running in an already running thread, it should run as expected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I need to use a different APN in my application. When should I initialize that? Should I put the modem in flight mode (AT+CFUN=4) after getting the&amp;nbsp;&lt;span&gt;LWM2M_CARRIER_EVENT_READY&amp;nbsp;event and then reconfigure the APN and then turn the modem on again? If I do that, do I need to reconnect to the lwm2m operator network?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;You can set the APN using this kconfig:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/lib/lte_link_control/Kconfig#L97"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/lib/lte_link_control/Kconfig#L97&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then lte_lc library will set it on boot up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]If I am planning to use an MVNO SIM in my product (such as iBasis), do I need to include the LwM2M Carrier Library?&amp;nbsp;Let&amp;#39;s say I am deploying my product in the US and it is connecting to either Verizon or AT&amp;amp;T through the MVNO, will the carrier library be able to connect directly to the carrier.[/quote]
&lt;p&gt;&amp;nbsp;Roaming SIMs will not access a carrier lwm2m server, so then its not needed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>