<?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>Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81148/correct-way-to-integrate-lwm2m-carrier-library-with-nrf9160-sdk</link><description>Hello, 
 I want to integrate the LwM2M Carrier library for our firmware as we will be certifying our product from Verizon operator. 
 So, I am able to run the sample code of LwM2M carrier library on my nRF9160 DK module. After integrating the LwM2M carrier</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Feb 2022 14:36:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81148/correct-way-to-integrate-lwm2m-carrier-library-with-nrf9160-sdk" /><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/350713?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 14:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55842adc-06b8-4fb4-a767-2229caf3341d</guid><dc:creator>Hakon</dc:creator><description>[quote user="Chetan Kale"]Please correct me if I am wrong that if we are using LWM2M_CARRIER config then we need to disable or no need to use&amp;nbsp;&lt;span&gt;LTE_LINK_CONTOL config right ? &lt;/span&gt;[/quote]
&lt;p&gt;I don&amp;#39;t think so. It is enabled in the lwm2m_carrier sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/350182?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 11:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a642b7b-3947-48e6-97ba-c55bdc720f51</guid><dc:creator>Chetan Kale</dc:creator><description>[quote userid="73166" url="~/f/nordic-q-a/81148/correct-way-to-integrate-lwm2m-carrier-library-with-nrf9160-sdk/348962#348962"]&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;Chetan Kale said:&lt;/div&gt;&lt;div class="quote-content"&gt;Can we use &lt;span&gt;lte_lc_register_handler with LwM2M carrier lib?&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;Yes, this should be possible.&lt;/p&gt;[/quote]
&lt;p&gt;I checked this point in asset tracker application and I think&amp;nbsp;we can not use&amp;nbsp;lte_lc_register_handler() with LwM2M carrier lib as it is used under LTE_LINK_CONTOL configuration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if defined(CONFIG_LTE_LINK_CONTROL)
	lte_lc_register_handler(lte_handler);
#endif /* defined(CONFIG_LTE_LINK_CONTROL) */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please correct me if I am wrong that if we are using LWM2M_CARRIER config then we need to disable or no need to use&amp;nbsp;&lt;span&gt;LTE_LINK_CONTOL config right ? Because LwM2M carrier will take care of LTE link connect, disconnect and etc events of LTE Modem in lwm2m_os.c file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you !&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chetan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/348962?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 14:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4882ca55-43dd-41dd-b198-a40a48405835</guid><dc:creator>Hakon</dc:creator><description>[quote user="Chetan Kale"]Can we use &lt;span&gt;lte_lc_register_handler with LwM2M carrier lib?&lt;/span&gt;[/quote]
&lt;p&gt;Yes, this should be possible.&lt;/p&gt;
[quote user="Chetan Kale"]If yes, please let me know the steps I need to follow.[/quote]
&lt;p&gt;There are several applications in NCS that support the carrier library and make use of the LTE LC-handler. Have you tried a similar approach?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/348032?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 12:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18335618-43cb-41d0-ad39-7857ddd769f7</guid><dc:creator>Chetan Kale</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I request you to&amp;nbsp;please clarify my doubts on LwM2M queries.&lt;/p&gt;
&lt;p&gt;Thank you!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Chetan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/347182?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 13:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b0b7468-44a1-482f-bd41-bb26ee4cff42</guid><dc:creator>Chetan Kale</dc:creator><description>&lt;p&gt;One more doubt / question - Can we use &lt;span&gt;lte_lc_register_handler with LwM2M carrier lib? As we want to use the LTE events in our application. If yes, please let me know the steps I need to follow. Because I searched about it, but could not find any solution for the same.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank You !&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chetan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/347176?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 13:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad616882-4fe3-4d1f-bd6e-5205880c4d8b</guid><dc:creator>Chetan Kale</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;Sorry for the delay in response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Below is the Tera Term log when I run&amp;nbsp;lwm2m_carrier sample project on nRF9160 DK board and there is no&amp;nbsp;&lt;span&gt;LWM2M_CARRIER_EVENT_REGISTERED occurred&amp;nbsp;for me. So, now in what scenario I can see the LWM2M_CARRIER_EVENT_REGISTERED&amp;nbsp;event or what steps I should perform for the same.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, till date in my application I could not see any other event occurred&amp;nbsp;which is mentioned in below logs. Its like same events we will encounter with our application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***
LWM2M Carrier library sample.
*** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***
Flash regions           Domain          Permissions
00 01 0x00000 0x10000   Secure          rwxl
02 31 0x10000 0x100000  Non-Secure      rwxl

Non-secure callable region 0 placed in flash region 1 with size 32.

SRAM region             Domain          Permissions
00 07 0x00000 0x10000   Secure          rwxl
08 31 0x10000 0x40000   Non-Secure      rwxl

Peripheral              Domain          Status
00 NRF_P0               Non-Secure      OK
01 NRF_CLOCK            Non-Secure      OK
02 NRF_RTC0             Non-Secure      OK
03 NRF_RTC1             Non-Secure      OK
04 NRF_NVMC             Non-Secure      OK
05 NRF_UARTE1           Non-Secure      OK
06 NRF_UARTE2           Secure          SKIP
07 NRF_TWIM2            Non-Secure      OK
08 NRF_SPIM3            Non-Secure      OK
09 NRF_TIMER0           Non-Secure      OK
10 NRF_TIMER1           Non-Secure      OK
11 NRF_TIMER2           Non-Secure      OK
12 NRF_SAADC            Non-Secure      OK
13 NRF_PWM0             Non-Secure      OK
14 NRF_PWM1             Non-Secure      OK
15 NRF_PWM2             Non-Secure      OK
16 NRF_PWM3             Non-Secure      OK
17 NRF_WDT              Non-Secure      OK
18 NRF_IPC              Non-Secure      OK
19 NRF_VMC              Non-Secure      OK
20 NRF_FPU              Non-Secure      OK
21 NRF_EGU1             Non-Secure      OK
22 NRF_EGU2             Non-Secure      OK
23 NRF_DPPIC            Non-Secure      OK
24 NRF_REGULATORS       Non-Secure      OK
25 NRF_PDM              Non-Secure      OK
26 NRF_I2S              Non-Secure      OK
27 NRF_GPIOTE1          Non-Secure      OK

SPM: NS image at 0x10000
SPM: NS MSP at 0x2001f250
SPM: NS reset vector at 0x1d4ed
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***
LWM2M Carrier library sample.
LWM2M_CARRIER_EVENT_MODEM_INIT
Certificate found, tag 411: match
Certificate found, tag 412: match
LWM2M_CARRIER_EVENT_CONNECTING
LWM2M_CARRIER_EVENT_LTE_READY
LWM2M_CARRIER_EVENT_CONNECTED&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Chetan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/339221?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 12:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fed776e1-e7d1-400d-9dd1-e955d0211d83</guid><dc:creator>Hakon</dc:creator><description>[quote user=""]I want to integrate the LwM2M Carrier library for our firmware as we will be&amp;nbsp;certifying&amp;nbsp;our product from Verizon operator.[/quote]
&lt;p&gt;You need to follow the requirements in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcomp_matrix_nrf9160%2FCOMP%2Fnrf9160%2Fnrf9160_operator_certifications.html"&gt;Mobile network operator certifications&lt;/a&gt;. This means that the combination of NCS 1.6.0 and mfw 1.2.3 will not be certified with Verizon. You also need to let the carrier lib handle the initial communication with Verizon, before running anything else in the application.&lt;/p&gt;
&lt;p&gt;Some words from the carrier lib team;&lt;/p&gt;
&lt;p&gt;In the Tera Term log you have shared, I do not see the LWM2M_CARRIER_EVENT_REGISTERED (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/lib/bin/lwm2m_carrier/lwm2m_carrier.html#c.LWM2M_CARRIER_EVENT_REGISTERED"&gt;LwM2M carrier — nRF Connect SDK 1.5.1 documentation (nordicsemi.com&lt;/a&gt;)). Are you receiving it? If you are operating in the verizon network, this event is expected once your device has registered to the carriers device management servers.&lt;/p&gt;
&lt;p&gt;To run a simpler test, you can build and run the lwm2m_carrier sample (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/samples/nrf9160/lwm2m_carrier/README.html#lwm2m-carrier"&gt;nRF9160: LwM2M carrier — nRF Connect SDK 1.5.1 documentation (nordicsemi.com)&lt;/a&gt;), and see it that one print the REGISTERED event.&lt;/p&gt;
&lt;p&gt;If the device is erased before programming (so that previous bootstrap is cleared) the sequence should look like the &amp;quot;The following message sequence chart shows the bootstrap process:&amp;quot; under MCSs.&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/lib/bin/lwm2m_carrier/doc/msc.html#message-sequence-charts"&gt; Message sequence charts — nRF Connect SDK 1.5.1 documentation (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Disconnecting will happen when during bootstrap because the nRF9160 can not write keys to modem while the LTE link is up.&lt;/p&gt;
&lt;p&gt;Once the LTE_READY event has been received, the LwM2M carrier library is done with the LTE link. It should now be ok for the app to disconnect and connect at will.&lt;/p&gt;
&lt;p&gt;Do you have any more info regarding PSM not working? What does the &amp;quot;AT+CPSMS?&amp;quot; respond?&lt;/p&gt;
&lt;p&gt;Requirements on the device (that is followed in the Asset Tracker application, and LwM2M Carrier sample) are listed here &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/lib/bin/lwm2m_carrier/doc/requirements.html"&gt;Requirements and application limitations — nRF Connect SDK 1.5.1 documentation (nordicsemi.com)&lt;/a&gt;. Common mistakes that we see is that the app calls nrf_modem_lib_init(), when it should instead be called from the LwM2M carrier library. Another one is that your application must wait for &lt;span style="background-color:rgba(255, 255, 255, 1);color:rgba(36, 36, 36, 1);float:none;font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0;text-transform:none;white-space:normal;"&gt;LWM2M_CARRIER_EVENT_LTE_READY before using the LTE link&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Edit; links&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/338176?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 13:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b378d87-5e59-4bcd-881c-857192284e96</guid><dc:creator>Chetan Kale</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;I have below questions which I encountered&amp;nbsp;after integrating&amp;nbsp;LwM2M Carrier library with our application code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Que: 1:- In what scenario&amp;nbsp;event &amp;quot; LWM2M_CARRIER_EVENT_DISCONNECTING &amp;quot; will occur ?&lt;/p&gt;
&lt;p&gt;Que: 2:- Can we&amp;nbsp;make it possible to execute event&amp;nbsp;&lt;span&gt;&amp;quot; LWM2M_CARRIER_EVENT_DISCONNECTING &amp;quot;&amp;nbsp;&lt;/span&gt;from our application side ?&lt;/p&gt;
&lt;p&gt;- Because we will be performing connection and disconnection of LTE modem multiple times and will be using a battery as a&amp;nbsp;power supply. So, we want to keep everything disconnected at some point of time and want to wake up the device fully functional.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Que: 3:-&amp;nbsp; Why PSM mode is not working after integrating LwM2M carrier library with our application code ?&lt;/p&gt;
&lt;p&gt;Thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/338043?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 04:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f1308e7-9619-4a60-93a0-0e8afe9ee859</guid><dc:creator>Chetan Kale</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have fixed the issue of Bus Fault and I hope LwM2M carrier library is integrated properly because I could see below EVENTS are running once device is flashed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/LwM2M_5F00_Carrier_5F00_Ticket.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please confirm is it working or let me know is there any way to check the LwM2M carrier library integrated with the code successfully ?&lt;/p&gt;
&lt;p&gt;Thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/337698?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 12:59:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d63ee8f-f47d-47bd-9faa-fe8b004349ae</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;It would be nice if you could share the code, or a sample that I can use the reproduce the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/337597?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 05:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3084a522-e383-44b1-b0e6-a8fddb202135</guid><dc:creator>Chetan Kale</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have commented &lt;span&gt;modem_configure() in code, but still I am facing&amp;nbsp;Hard&amp;nbsp;Fault. Also, I am not sure why there is fs_nvs debug info repeated two times on console.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1636089743820v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chetan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Correct way to integrate LwM2M Carrier library with nRF9160 SDK.</title><link>https://devzone.nordicsemi.com/thread/336906?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 14:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:483b8d50-4d0e-46a3-973d-bb5451032f30</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]So after after if I trigger&amp;nbsp;modem_configure(); to connect to LTE then error&amp;nbsp;was thrown which is given below:&amp;nbsp;[/quote]
&lt;p&gt;The modem is already connected, so there is no need to run modem_configure(). Just let the carrier_lib take care of the connection till it&amp;#39;s done, no need to handle it separately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>