<?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>Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98386/thingy91-lwm2m-registration-updates</link><description>Good day 
 I am working with the lwm2m_client sample and am working on making it as low power as possible. Whenever I do a send operation and wake the device from sleeping, a registration update is triggered: 
 
 
 This unfortunately causes way too much</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Apr 2023 09:29:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98386/thingy91-lwm2m-registration-updates" /><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/420441?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 09:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e138c9-1fa6-4409-9451-0463a41d5480</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;This is expected behavior. LwM2M queue mode needs to send the update by default. LwM2M specification says that the client needs to update its registration state in queue mode when going from sleep to wake-up state. This update is smaller than initial registration. The only way to preserve energy is to send less frequently.&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: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/420219?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 11:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4259da5-eac3-4e09-b070-619896f04c7f</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;I am trying to understand why is happens and if I can stop it from happening.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/420218?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 11:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb74caa7-7d2f-44be-90f0-ae0d46db6a23</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi Dejan&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am aware of these configurations as show in this image:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&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/pastedimage1681385863271v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The registration update happens&amp;nbsp;after I use the lwm2m_send() function and I can&amp;#39;t understand why.&lt;/p&gt;
&lt;p&gt;Please assist if possible.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/420139?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 08:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdb10da0-5d2a-4a22-ba8b-6edd8f405d0a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There are 2 configuration options which you could consider using:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LWM2M_ENGINE_DEFAULT_LIFETIME"&gt;CONFIG_LWM2M_ENGINE_DEFAULT_LIFETIME&lt;/a&gt;&amp;nbsp;- defines registration (server connection) lifetime.&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LWM2M_SECONDS_TO_UPDATE_EARLY"&gt;CONFIG_LWM2M_SECONDS_TO_UPDATE_EARLY&lt;/a&gt;&amp;nbsp;- specifies time in seconds before lifetime is over when the registration is triggered.&lt;br /&gt;&lt;br /&gt;Registration is triggered automatically when client needs to send data to the server. lwm2m_client sample from the latest NCS version uses queue mode and power optimized configurations by default. You could have a look at the relevant&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf9160/lwm2m_client/prj.conf"&gt;prj.conf&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419972?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 13:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa11bdbd-1fa8-45f2-a199-e7da248a4741</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Attached is the modem trace.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Modem_5F00_trace_5F00_5min_5F00_interval.bin"&gt;devzone.nordicsemi.com/.../Modem_5F00_trace_5F00_5min_5F00_interval.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419898?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 09:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d1f1ac9-50fa-46e0-8fbd-4c74bd7ab813</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am not able to open your provided modem trace file. It seems to be empty. Could you take the modem trace again?&lt;br /&gt;You can find a guide on how to&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/capture_modem_trace_thingy.html"&gt;capture modem trace on Thingy91&lt;/a&gt;&amp;nbsp;in the documentation.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419885?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 08:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b90e3db-7e6c-42b5-ad8e-6ad719e21665</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am currently developing on the thingy91.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think I&amp;nbsp;am using&amp;nbsp;mfw_nrf9160_1.3.4 but I&amp;nbsp;may be wrong.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hassan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419879?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 08:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e585f32-1896-4445-8deb-b2be7dc8d576</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which board do you use?&lt;br /&gt;&lt;br /&gt;Which modem firmware version do you use?&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: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419657?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 11:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31c9a8ec-fbe0-4fec-97fb-7cc6dafee1fc</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;To enable tracing I changed&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRF_MODEM_LIB_TRACE&lt;/span&gt;&lt;span&gt;=y as well as switched on UART1.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419648?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 11:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4087a1a7-60ed-4bee-b5cc-c071d19bc517</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;&amp;nbsp;Multiple_Value_collect() function collects a sensor value from the bme680 and a&amp;nbsp;&lt;/span&gt;timestamp from the modem, sleeps and goes into PSM mode.&amp;nbsp; It when wakes up, collects a sensor value and and calculates a timestamp&amp;nbsp; using a timer(Not using modem) before goin to sleep again.&amp;nbsp; After multiple loops, the device sends all the information it collected to&amp;nbsp;our lwm2m server.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Attached is the application log and modem trace.&amp;nbsp; Please let me know if the modem trace is correct.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/lwm2m_5F00_client_5F00_app_5F00_log.txt"&gt;devzone.nordicsemi.com/.../lwm2m_5F00_client_5F00_app_5F00_log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/modem_5F00_trace1.bin"&gt;devzone.nordicsemi.com/.../modem_5F00_trace1.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419586?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 09:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fffd3bb-da8a-4932-9e3b-67d95847b488</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you provide more information about your&amp;nbsp;Multiple_Value_collect() function?&lt;br /&gt;&lt;br /&gt;Could you send full application log and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/capture_modem_trace.html"&gt;modem trace&lt;/a&gt;?&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: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419351?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 06:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02f34f31-7c6e-44bc-82d8-d1bb568ee3e7</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419308?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 15:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98ba8c0c-98c7-49b0-9a1c-778ab934ee7d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I will look into it during next week.&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: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419025?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 10:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f175171b-b5fe-4d39-8611-a5df4830670d</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Apologies I realize now I may have provided not enough information.&amp;nbsp; When the device is in the connected state, a while loop starts to collect and send data using lwm2m_send .&amp;nbsp; In the process and from my understanding, it is almost as though the connection times out? Which results in the client deregistering and registering again unfortunately meaning a lot of power being wasted.&amp;nbsp; Here is what is what the connected state looks like now:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	case CONNECTED: // TO LWM2M server

			LOG_WRN(&amp;quot;CONNECTED&amp;quot;);
		    connect_count++;
			LOG_WRN(&amp;quot;Connected  count : %d&amp;quot;, connect_count);
			if (!modem_connected_to_network) {
				/* LTE connection down suspend LwM2M engine */
				suspend_lwm2m_engine();
			} else {
				k_mutex_unlock(&amp;amp;lte_mutex);
				LOG_INF(&amp;quot;LwM2M is connected to server&amp;quot;);
				Connected_to_lwm2m_server=true;
				if (update_session_lifetime) {
					/* Read a current server  lifetime value */
					rd_client_update_lifetime(client.srv_obj_inst);
				}
				    	
				    
					while(client_state == CONNECTED )
					{
					

						k_sleep(K_MSEC(1000));

						Multiple_Value_collect(temporary_temp_r,temporary_humidity_r,temporary_timestamps_r);

					}
				
				
			}
			break;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 lwm2m registration updates</title><link>https://devzone.nordicsemi.com/thread/419005?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 09:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd7bd59a-b7c4-47d5-b0ff-361383abd752</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you provide more information about your application?&lt;br /&gt;&lt;br /&gt;Could you specify changes that you made to lwm2m_client sample?&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></channel></rss>