<?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>lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106573/lte_connectivity-unexpected-pdn-event-6</link><description>I&amp;#39;m working with a modified version of the aws IoT sample, and I&amp;#39;m occasionally getting the following error: 
 
 This error appears to be printed out in an internal library (there&amp;#39;s no error output in the source file for this example that has this text</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Dec 2023 15:12:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106573/lte_connectivity-unexpected-pdn-event-6" /><item><title>RE: lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/thread/461475?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 15:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ba6f959-812e-4b8f-9d90-f279686554f6</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Jordan, sorry for the delay. You could check out &lt;code&gt;&lt;span&gt;&lt;span dir="ltr"&gt;nrf\samples\cellular\at_monitor.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/thread/460632?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 18:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:660e043d-2144-4d9a-94c9-253d53677897</guid><dc:creator>Kyle</dc:creator><description>&lt;p&gt;Thanks Helsing. In the link you provided though, it doesn&amp;#39;t mention URC or &amp;quot;unsolicited&amp;quot;. Would you be able to provide a code example of how to register a handler to catch this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/thread/460608?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 15:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1bac01c-df05-46e6-8afd-0836c9d57359</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Jordan,&lt;/p&gt;
&lt;p&gt;There is a missing &lt;code&gt;case&lt;/code&gt; in &lt;code&gt;lte_net_if&lt;/code&gt; that causes this.&lt;/p&gt;
&lt;p&gt;You may in any case register your own URC(Unsolicited Result Code) so that you get a notification from the modem.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/modem/at_monitor.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/modem/at_monitor.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you, Achim, for your contribution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/thread/460477?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 07:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4644cc0c-e59f-49d5-9865-b90b24695498</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;just a community answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/thread/460437?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 19:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:750a09c6-4787-40d6-a620-d045ef51b3d9</guid><dc:creator>Kyle</dc:creator><description>&lt;p&gt;Thank you. For clarity (since I&amp;#39;m not clear on your role), are you providing an official answer on behalf of Nordic, or just a community answer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/thread/460282?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 07:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56ea8e0a-945e-42a2-8466-8df929948316</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; Any idea&lt;/p&gt;
&lt;p&gt;Some information has been given later in the referenced ticket,&lt;/p&gt;
&lt;p&gt;&amp;quot;the APN rate control feature is controlled by the network and not the device itself.&lt;br /&gt;It is the network that toggles this feature to control how much data the device is allowed to send.&amp;quot;&lt;/p&gt;
&lt;p&gt;And there is some GSMA spec &lt;a href="https://www.etsi.org/deliver/etsi_ts/123400_123499/123401/15.04.00_60/ts_123401v150400p.pdf"&gt;4.7.7 Support of rate control of user data using CIoT EPS Optimisation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In my case it is only triggered during FOTA, not for normal operation. FOTA is only required pretty rare, so It should not harm to restart the modem once during such a download. If in your case normal-operation already triggers the rate-limit, I guess you need to contact the SIM card provider. &lt;/p&gt;
&lt;p&gt;&amp;gt; Any thoughts&lt;/p&gt;
&lt;p&gt;My app doesn&amp;#39;t use the events directly, it rather &lt;a href="https://github.com/boaks/zephyr-coaps-client/blob/main/src/dtls_client.c#L700-L705"&gt;checks the rate limit&lt;/a&gt; with at cmds and tries to restart the modem &lt;a href="https://github.com/boaks/zephyr-coaps-client/blob/main/src/dtls_client.c#L1264-L1292"&gt;restart the modem&lt;/a&gt; by &lt;a href="https://github.com/boaks/zephyr-coaps-client/blob/main/src/dtls_client.c#L289-L322"&gt;switching lte_lc_power_off() and lte_lc_normal()&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;I used that at-cmds, because the event wasn&amp;#39;t fired with the NCS version I was using when I stumbled over it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How to do that best in your/Nordic&amp;#39;s app is unfortunately out of my scope.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/thread/460227?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 20:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f313669e-bfce-4c67-b737-6fea05960f93</guid><dc:creator>Kyle</dc:creator><description>&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;I guess, there is a switch, which doesn&amp;#39;t handle these two new pdn_events.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Any thoughts on where I could find some sample code that shows how to handle these pdn events? I need to be able to detect it to restart the modem.&lt;/p&gt;
&lt;p&gt;Also, are there API functions that correspond to restarting the modem (would that be&amp;nbsp;&lt;em&gt;conn_mgr_all_if_down&lt;/em&gt; followed by&amp;nbsp;&lt;em&gt;conn_mgr_all_if_up&lt;/em&gt;)?&lt;/p&gt;
&lt;p&gt;Regarding PDN rate control, looking at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/modem/pdn.html"&gt;nRF PDN page&lt;/a&gt;, it shows the config options but I can&amp;#39;t find any details that explain what PDN rate control is actually doing, why it&amp;#39;s necessary (or when to use it), or what the rate limit actually is. Any idea where I could find more info on this?&lt;/p&gt;
&lt;p&gt;And finally, to disable this rate control, I would have thought it would just be a `CONFIG_&lt;span&gt;PDN_EVENT_APN_RATE_CONTROL_OFF=y` in the prj.conf file, but it&amp;#39;s throwing an error saying &amp;quot;unknown symbol&amp;quot;. How do I actually disable rate control?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte_connectivity: Unexpected PDN event: 6</title><link>https://devzone.nordicsemi.com/thread/460067?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 08:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fe1245e-8997-44c4-b908-f762b6fe1725</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;You&amp;#39;re using NCS 2.5.0?&lt;/p&gt;
&lt;p&gt;&amp;quot;PDN event: 6&amp;quot;&lt;/p&gt;
&lt;p&gt;That is one of the new pdn_event types for rate-limit-management, PDN_EVENT_APN_RATE_CONTROL_ON and PDN_EVENT_APN_RATE_CONTROL_OFF.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/103520/cgev-apnratectrl-stat---not-reported-with-pdn_event_handler_t"&gt;+CGEV: APNRATECTRL STAT - Not reported with pdn_event_handler_t&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I guess, there is a switch, which doesn&amp;#39;t handle these two new pdn_events.&lt;/p&gt;
&lt;p&gt;&amp;gt; so the sample doesn&amp;#39;t detect the error to reset the connection. ... so it requires a hard reset to fix the issue.&lt;/p&gt;
&lt;p&gt;&amp;quot;reset the connection&amp;quot; will not be enough, but restarting the modem (off/on) with NCS 2.5.0 will do the job without &amp;quot;hard reset&amp;quot;.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/packet_domain/apnratectrl.html"&gt;AT%APNRATECTRL&lt;/a&gt; for more details.&lt;/p&gt;
&lt;p&gt;In my case the limit was 256 messages in 24h. Well enough for usual traffic using CoAP/DTLS 1.2 CID, but blocking FOTA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>