<?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>LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77347/lpuart-nrf9160---nrf52840</link><description>Related to https://devzone.nordicsemi.com/f/nordic-q-a/76545/lpuart-nrf9160---nrf52840 (I can not add reply there). 
 With ncs v1.6.0 every second AT transaction fails. 
 We appreciate the addition of the native support for LPUART in SLM (without need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Jul 2021 10:15:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77347/lpuart-nrf9160---nrf52840" /><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/321078?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 10:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86c83870-b5b7-4567-8efd-ac239db299c3</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello again Michal,&lt;/p&gt;
&lt;p lang="en-GB"&gt;I have to correct myself here:&lt;/p&gt;
[quote user="Markus Schellenberger"]Hence, its purpose is not to demonstrate energy efficiency. If that is the main focus, you probably wouldn’t use the nRF9160 as a stand-alone modem only. But anyway, the LP UART is of course supposed to work regardless application.[/quote]
&lt;p&gt;The Serial LTE modem application is of course something we are intending that our customers consider if they would like to use the nRF91 as a stand-alone modem only.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;And as I already mentioned, we are working on a solution to make the LP UART more stable as we speak. Additionally, we will look into adding native support for it to the Serial LTE Modem application.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;My very apologies for the confusion!&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/320917?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 13:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96415bb8-fffe-442f-8eae-d195cecb1377</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks a lot for the feedback, Michal!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/320884?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 12:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:728380ac-d6fb-4c7c-86c3-70874b5ac93a</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;SML has #XSLEEP who cares of various sleep modes, LPUART would be nice to handle clock/UART sleeping in automated way. We use BLE in our device, so we need additional nRF52840 where whole application logic is implemented and nRF9160 servers just as modem. Because nRF9160 in sleep mode draws just around 7uA with SLM it is still more then appropriate for low power battery operated device.&lt;/p&gt;
&lt;p&gt;CONFIG_ZERO_LATENCY_IRQS=n is default for SLM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/320859?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 10:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04e38b67-29f8-4f21-83f9-52fad6c58b70</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Michal,&lt;/p&gt;
[quote user="michalm"]What do you think about LPUART native support in SLM ?[/quote]
&lt;p lang="en-GB"&gt;I’m not sure if this is the intention of the Serial LTE modem application. As described in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/applications/serial_lte_modem/doc/slm_description.html#application-description"&gt;application guideline&lt;/a&gt;, &amp;quot;The Serial LTE Modem (SLM) application demonstrates how to use the nRF9160 as a stand-alone LTE modem that can be controlled by AT commands.&amp;quot; Hence, its purpose is not to demonstrate energy efficiency. If that is the main focus, you probably wouldn’t use the nRF9160 as a stand-alone modem only. But anyway, the LP UART is of course supposed to work regardless application.&lt;/p&gt;
&lt;p lang="en-GB"&gt;I haven’t tested this myself yet, but what you could try in the meantime is to disable Zero-latency interrupt extension by setting:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_ZERO_LATENCY_IRQS=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in your prj.conf. This should give better performance to the module.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/320504?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 17:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb45dc33-4772-4ebc-b2c0-c24e08d7968f</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Hi Markus,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thank you for info and confirmation.&lt;/p&gt;
&lt;p&gt;What do you think about LPUART native support in SLM ?&lt;/p&gt;
&lt;p&gt;Ragers,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/319767?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 11:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83909799-a2cc-471c-8162-e05e49472666</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks for the feedback, Michal!&lt;/p&gt;
&lt;p lang="en-GB"&gt;I had to check this internally. It seems to be a known issue and we are working on a more stable solution for the LP UART as we speak. It will be released soon.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/319656?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 15:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d52b17a6-0363-4d33-911e-5f0f82eb8d48</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Yes, we have added LPUART configuration in .dts, we use our board definitions for both&amp;nbsp;&lt;span&gt;nRF9160 and nRF52840 (no overlay needed). Related nRF9160 part:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
	interrupts = &amp;lt;49 NRF_DEFAULT_IRQ_PRIORITY&amp;gt;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart0 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	tx-pin = &amp;lt;21&amp;gt;;
	rx-pin = &amp;lt;22&amp;gt;;
	/delete-property/ hw-flow-control;
	/delete-property/ rts-pin;
	/delete-property/ cts-pin;
	lpuart: nrf-sw-lpuart {
		compatible = &amp;quot;nordic,nrf-sw-lpuart&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		label = &amp;quot;LPUART&amp;quot;;
		req-pin = &amp;lt;23&amp;gt;;
		rdy-pin = &amp;lt;24&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;nRF9160 is interconnected with nRF52840 by 4 wires and&amp;nbsp;&lt;span&gt;nRF52840&amp;nbsp;uses similar .dts for LPUART and&amp;nbsp;&lt;span class="pl-c1"&gt;device_get_binding&lt;/span&gt;(&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;&amp;quot;&lt;/span&gt;LPUART&lt;span class="pl-pds"&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;). Both&amp;nbsp;nRF9160 and nRF52840 are on our custom HW. Our custom HW has different pin wiring than&amp;nbsp;nRF9160 DK, so we can use UART0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_SLM_CONNECT_LPUART config option is also our patch, you do not need to pay attention to that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Core issue is, that 4wire LPUART is not stable, 2wire UART works fine with same code, only related LPUART .dts and &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;span class="pl-c1"&gt;device_get_binding&lt;/span&gt;(&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;&amp;quot;&lt;/span&gt;LPUART&lt;span class="pl-pds"&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&amp;nbsp;have changed.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Both&amp;nbsp;nRF9160 and nRF52840 firmware projects are based on released NCS v1.6.0.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/319597?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 12:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09b77808-ebf0-48ca-b460-c6a8421adead</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Michal,&lt;/p&gt;
[quote user="michalm"]LPUART is not supported in SLM in NCS v1.6.0 unfortunately.[/quote]
&lt;p&gt;I haven’t tried this myself with the Serial LTE modem application, but I’m not quite sure if this actually is the case. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/drivers/uart_nrf_sw_lpuart.html#uart-nrf-sw-lpuart"&gt;Low Power UART&lt;/a&gt; is a module that should be possible to configure individually.&lt;/p&gt;
&lt;p lang="en-GB"&gt;As the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/samples/peripheral/lpuart/README.html#low-power-uart"&gt;Low Power UART example&lt;/a&gt; shows, the module itself has to be added to a UART peripheral using an&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.6-branch/samples/peripheral/lpuart/boards/nrf9160dk_nrf9160.overlay#L9"&gt;overlay file&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user="michalm"]We made some SLM code&amp;nbsp; tweaks (e.g. uart_dev =&amp;nbsp;&lt;span&gt;device_get_binding&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;LPUART&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;) in slm_at_host.c&lt;/span&gt;).[/quote]
&lt;p lang="en-GB"&gt;When connection the nRF9160 with an &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/applications/serial_lte_modem/doc/slm_description.html#connecting-with-an-external-mcu"&gt;external MCU&lt;/a&gt;, the UART2 is designated to be used. Hence, the Low Power UART module has to be added to UART2 in the overlay file.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;lpuart: nrf-sw-lpuart {
compatible = &amp;quot;nordic,nrf-sw-lpuart&amp;quot;;
status = &amp;quot;okay&amp;quot;;
label = &amp;quot;LPUART&amp;quot;;
req-pin = &amp;lt;xy&amp;gt;;
rdy-pin = &amp;lt;xy&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;This is not done be default in the Serial LTE modem application, hence device binding will fail.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regarding the configuration option CONFIG_SLM_CONNECT_LPUART, mentioned in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/76545/lpuart-nrf9160---nrf52840"&gt;ticket&lt;/a&gt;: This is nothing I’m aware of, neither can I find it in the application &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/applications/serial_lte_modem/doc/slm_description.html#configuration"&gt;configuration&lt;/a&gt; description.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/319542?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 09:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39b94263-bf1d-4af6-ab6f-5939f563291a</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;UART .dts definitions are described in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/76545/lpuart-nrf9160---nrf52840"&gt;devzone.nordicsemi.com/.../lpuart-nrf9160---nrf52840&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/319541?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 09:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe06848a-0706-45dc-99db-2c055faeb051</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;LPUART is not supported in SLM in NCS v1.6.0 unfortunately.&lt;br /&gt;We made some SLM code&amp;nbsp; tweaks (e.g. uart_dev =&amp;nbsp;&lt;span class="pl-c1"&gt;device_get_binding&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;&amp;quot;&lt;/span&gt;LPUART&lt;span class="pl-pds"&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;) in slm_at_host.c&lt;/span&gt;).&lt;br /&gt;We would appreciate LPUART support in SLM for reasons described above.&lt;/p&gt;
&lt;p&gt;Simple test case with periodic sending AT+CFUN? every second transaction fails (no response returned from nRF9160)&lt;/p&gt;
&lt;p&gt;Thanks and regards, Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPUART nRF9160 - nRF52840</title><link>https://devzone.nordicsemi.com/thread/319539?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 09:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37766126-832b-4adb-b582-19d6590f3182</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;&lt;span lang="en-GB"&gt;Hello Michal,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;thanks a lot for your feedback! &lt;/span&gt;&lt;/p&gt;
[quote user=""]We appreciate the addition of the native support for LPUART in SLM (without need to modify sources - just using prj.conf option).[/quote]
&lt;p&gt;&amp;nbsp;&lt;span lang="en-GB"&gt;I have to admit that I’m not sure if I can follow you here. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/releases/release-notes-1.6.0.html#changelog"&gt;Changelog&lt;/a&gt; for NCS v1.6.0 does not mention anything about it. Can you elaborate?&lt;/span&gt;&lt;/p&gt;
[quote user=""]With ncs v1.6.0 every second AT transaction fails.[/quote]
&lt;p&gt;&lt;span lang="en-GB"&gt;Would you mind sending me an application log that shows the issue you are facing? I might want to check and report this internally.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;Thanks and regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;Markus&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>