<?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>nRF9160 PPP stability</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112547/nrf9160-ppp-stability</link><description>Hello, 
 we are trying to use the nRF9160 as a serial modem for a Raspberry Pi running on Debian. 
 The application is basically the nRF sample &amp;quot;nrf\samples\cellular\modem_shell&amp;quot; without major changes (compiled without CMUX as described for Linux target</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jul 2024 14:13:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112547/nrf9160-ppp-stability" /><item><title>RE: nRF9160 PPP stability</title><link>https://devzone.nordicsemi.com/thread/491877?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 14:13:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89f60a5c-fc31-48d1-bd12-eb3235807d53</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Bernhard,&lt;br /&gt;&lt;br /&gt;Thank you for additional information.&lt;br /&gt;&lt;br /&gt;I am looking at one of your previous comments.&lt;/p&gt;
[quote user="Bernhard"]&lt;p&gt;1. longer time without an error&lt;/p&gt;
&lt;p&gt;2. a lot of these:&lt;/p&gt;[/quote]
&lt;p&gt;How long does your application work as expected, without errors?&lt;br /&gt;When do the errors&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; ppp_modem_dl_data_thread_handler: recv() from modem failed, -1, errno: -115&lt;/pre&gt;&lt;br /&gt;appear? How often do they appear? How did the device recover when they started appearing?&amp;nbsp;&lt;/p&gt;
[quote user="Bernhard"]3. until:[/quote]
&lt;p&gt;What happens after you receive FATAL ERROR? How did the device recover?&lt;br /&gt;&lt;br /&gt;How often do errors mentioned in 2. and 3. occur? Do you see recurrent behavior?&lt;br /&gt;&lt;br /&gt; Which LTE network do you connect to?&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: nRF9160 PPP stability</title><link>https://devzone.nordicsemi.com/thread/491676?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 18:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26c344c5-88c1-4aa7-b452-4e726ff85a12</guid><dc:creator>Bernhard</dc:creator><description>&lt;p&gt;Hello Dejan,&lt;/p&gt;
&lt;p&gt;output of the tool is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/ncs/v2.6.0/zephyr/lib/os/printk.c:227&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which is the first &amp;#39;if&amp;#39; statement in:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static int str_out(int c, struct str_context *ctx)
{
	if (ctx-&amp;gt;str == NULL || ctx-&amp;gt;count &amp;gt;= ctx-&amp;gt;max) {
		ctx-&amp;gt;count++;
		return c;
	}

	if (ctx-&amp;gt;count == ctx-&amp;gt;max - 1) {
		ctx-&amp;gt;str[ctx-&amp;gt;count++] = &amp;#39;\0&amp;#39;;
	} else {
		ctx-&amp;gt;str[ctx-&amp;gt;count++] = c;
	}

	return c;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 PPP stability</title><link>https://devzone.nordicsemi.com/thread/491575?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 11:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a52a28f4-68e2-4845-a3d4-96c15ffb123d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try to run addr2line tool on the faulting instruction address to get the line in the code which corresponds to the faulting address.&lt;br /&gt;On Linux, addr2line can be run as&lt;br /&gt;&amp;nbsp;&lt;span&gt;/toolchains/&amp;lt;toolchain_version&amp;gt;/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-addr2line -e build/zephyr/zephyr.elf 0x0004e2e2&lt;br /&gt;&lt;br /&gt;&lt;/span&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: nRF9160 PPP stability</title><link>https://devzone.nordicsemi.com/thread/491459?ContentTypeID=1</link><pubDate>Sun, 30 Jun 2024 18:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ec2d88e-c8f9-432c-af96-534241ee5377</guid><dc:creator>Bernhard</dc:creator><description>&lt;p&gt;Hello Dejans,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/112547/nrf9160-ppp-stability/491339"]If you want to use RTT backend instead of UART, you need to enable&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/modem_shell/README.html#segger_rtt_support"&gt;RTT support&lt;/a&gt;&amp;nbsp;by adding overlay-rtt.conf file to your build command.[/quote]
&lt;p&gt;I have done that and RTT logging is working, but only after the &amp;#39;Connect&amp;#39; in RTT Viewer, the application is not starting up on it&amp;#39;s own.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/112547/nrf9160-ppp-stability/491339"]Do you connect to LTE-M or NB-IoT network?[/quote]
&lt;p&gt;LTE-M&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/112547/nrf9160-ppp-stability/491339"]What happens after connection gets lost? Could you describe stability issue in more detail?[/quote]
&lt;p&gt;For example I got following error messages:&lt;/p&gt;
&lt;p&gt;1. longer time without an error&lt;/p&gt;
&lt;p&gt;2. a lot of these:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; ppp_modem_dl_data_thread_handler: recv() from modem failed, -1, errno: -115
00&amp;gt; ppp_modem_dl_data_thread_handler: recv() from modem failed, -1, errno: -115
00&amp;gt; ppp_modem_dl_data_thread_handler: recv() from modem failed, -1, errno: -115&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3. until:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [01:16:49.348,419] &amp;lt;wrn&amp;gt; net_ppp: 66 written to RX buf, but after that only 498 space left. Disabling RX for now.
00&amp;gt; . Disabling RX for now.
00&amp;gt;  leftrtt:~$ [01:47:14.208,435] &amp;lt;wrn&amp;gt; at_monitor: No heap space for incoming notification: %CESQ: 23,1,0,0
00&amp;gt; 
00&amp;gt; rtt:~$ [01:47:14.220,275] &amp;lt;err&amp;gt; os: r0/a1:  0x00000004  r1/a2:  0x0000004f  r2/a3:  0x00000008
00&amp;gt; rtt:~$ [01:47:14.220,306] &amp;lt;err&amp;gt; os: r3/a4:  0x0003187d r12/ip:  0x00000000 r14/lr:  0x000387cf
00&amp;gt; rtt:~$ [01:47:14.220,336] &amp;lt;err&amp;gt; os:  xpsr:  0x4100003a
00&amp;gt; rtt:~$ [01:47:14.220,336] &amp;lt;err&amp;gt; os: s[ 0]:  0x000388b1  s[ 1]:  0x2000dea8  s[ 2]:  0x2000dd74  s[ 3]:  0x2000dd6c
00&amp;gt; rtt:~$ [01:47:14.220,367] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000002  s[ 5]:  0x2001c8a6  s[ 6]:  0x00000000  s[ 7]:  0x00042bc1
00&amp;gt; rtt:~$ [01:47:14.220,367] &amp;lt;err&amp;gt; os: s[ 8]:  0x00042b51  s[ 9]:  0x00000001  s[10]:  0x2000dd74  s[11]:  0x000421e1
00&amp;gt; rtt:~$ [01:47:14.220,397] &amp;lt;err&amp;gt; os: s[12]:  0x2001c41c  s[13]:  0x2001c33c  s[14]:  0x00000001  s[15]:  0x00000000
00&amp;gt; rtt:~$ [01:47:14.220,428] &amp;lt;err&amp;gt; os: fpscr:  0x20011e08
00&amp;gt; rtt:~$ [01:47:14.220,458] &amp;lt;err&amp;gt; os: r4/v1:  0x2000dec0  r5/v2:  0x00000000  r6/v3:  0x20027f28
00&amp;gt; rtt:~$ [01:47:14.220,458] &amp;lt;err&amp;gt; os: r7/v4:  0x20027f28  r8/v5:  0x00000000  r9/v6:  0x20011500
00&amp;gt; rtt:~$ [01:47:14.220,489] &amp;lt;err&amp;gt; os: r10/v7: 0x00000000  r11/v8: 0x00000000    psp:  0x20022588
00&amp;gt; rtt:~$ [01:47:14.220,489] &amp;lt;err&amp;gt; os: EXC_RETURN: 0x0
00&amp;gt; rtt:~$ [01:47:14.220,489] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0004e2e2
00&amp;gt; rtt:~$ [01:47:14.220,550] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
00&amp;gt; rtt:~$ [01:47:14.220,550] &amp;lt;err&amp;gt; os: Fault during interrupt handling
00&amp;gt; 
00&amp;gt; rtt:~$ [01:47:14.220,611] &amp;lt;err&amp;gt; os: Current thread: 0x20011e08 (ppp_modem_dl_data_thread)
00&amp;gt; rtt:~$ [01:47:14.314,971] &amp;lt;err&amp;gt; os: Halting system&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 PPP stability</title><link>https://devzone.nordicsemi.com/thread/491339?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 12:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ade2181a-6de2-467b-af67-a65266f42388</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Also we had the problem that the application is not starting up with RTT logging, only after RTT Viewer was connected.&amp;nbsp; (?)[/quote]
&lt;p&gt;If you want to use RTT backend instead of UART, you need to enable&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/modem_shell/README.html#segger_rtt_support"&gt;RTT support&lt;/a&gt;&amp;nbsp;by adding overlay-rtt.conf file to your build command.&amp;nbsp;&lt;/p&gt;
[quote user=""]This is working in principle, but we are facing problems with long term stability, the main application is running for a while but after a few hours the connection may get lost.[/quote]
&lt;p&gt;What happens after connection gets lost? Could you describe stability issue in more detail?&lt;br /&gt;Do you connect to LTE-M or NB-IoT network?&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>