<?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>What are the API&amp;#39;s can be used to send and receive packets on NIDD in NRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85801/what-are-the-api-s-can-be-used-to-send-and-receive-packets-on-nidd-in-nrf9160</link><description>Hi. 
 I&amp;#39;m using PDN example code on zephyr nrf sdk. Please take a look on below log. 
 Can somebody help me to figure out what are the API can be used to send and receive packets on NIDD.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Mar 2022 13:03:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85801/what-are-the-api-s-can-be-used-to-send-and-receive-packets-on-nidd-in-nrf9160" /><item><title>RE: What are the API's can be used to send and receive packets on NIDD in NRF9160</title><link>https://devzone.nordicsemi.com/thread/358874?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 13:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3423f4fa-3ad2-4994-8ab6-6d2ea3b441c7</guid><dc:creator>Manu_Devappa</dc:creator><description>&lt;p&gt;I followed Modem Shell example and this is my log,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;17:47:20.519 -&amp;gt; Functional mode set successfully: power off
17:47:20.519 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[mlink defcont -e -a &amp;quot;SimAPI&amp;quot; -f &amp;quot;non-ip&amp;quot;
17:47:57.960 -&amp;gt; link defcont enabled
17:47:57.960 -&amp;gt; link_sett_save_defcont_apn: key mosh_link_settings/defcont_apn with value SimAPI saved
17:47:57.960 -&amp;gt; Key &amp;quot;mosh_link_settings/defcont_ip_family&amp;quot; with value &amp;quot;3&amp;quot; / &amp;quot;non-ip&amp;quot; saved
17:47:57.960 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[mlink funmode --normal
17:48:20.462 -&amp;gt; Functional mode set successfully: normal
17:48:20.462 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[m&#x1B;[8D&#x1B;[JNetwork registration status: searching
17:48:23.256 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[m&#x1B;[8D&#x1B;[JLTE cell changed: Cell ID: 4158866, Tracking area: 49284
17:48:23.256 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[m&#x1B;[8D&#x1B;[JCurrently active system mode: NB-IoT
17:48:23.256 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[m&#x1B;[8D&#x1B;[JRRC mode: Connected
17:48:23.489 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[m&#x1B;[8D&#x1B;[JRRC mode: Idle
17:48:24.785 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[msock connect -f packet -t raw
17:49:07.080 -&amp;gt; Socket open and connect family=3, type=3, port=0, bind_port=0, pdn_cid=0, address=
17:49:07.080 -&amp;gt; Socket created socket_id=0, fd=4
17:49:07.080 -&amp;gt; &#x1B;[1;32mmosh:~$ &#x1B;[msock send -d foodata2 -i 0
17:49:17.914 -&amp;gt; Socket data send:
17:49:17.914 -&amp;gt; 	foodata2
17:49:17.914 -&amp;gt; Error from socket id=0 (fd=4), closing
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the API's can be used to send and receive packets on NIDD in NRF9160</title><link>https://devzone.nordicsemi.com/thread/358865?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 12:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab048bd1-5acd-416d-b84f-ad389de4ca48</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;pdn_activate() returns -8 (ENOEXEC), which seems to indicate that enabling the specific APN is not successful:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/lib/pdn/pdn.c#L345-L348"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/lib/pdn/pdn.c#L345-L348&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Manu_Devappa"]When I configure the PDN example to&amp;nbsp;Non-IP it shows &amp;quot;PDN type IPv6 only allowed&amp;quot;. Is it mean that my SIM does not support NIDD?&amp;nbsp;[/quote]
&lt;p&gt;The ESM cause code indicates that your APN only support ipv6.&lt;/p&gt;
&lt;p&gt;The activation of the other APN fails, indicating that you are having issues enabling the APN/PDN for NIDD. This could be due to wrong settings, or incorrect authentication (for instance SIM issues).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the API's can be used to send and receive packets on NIDD in NRF9160</title><link>https://devzone.nordicsemi.com/thread/358833?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 11:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e14c2ca9-7ee8-49cb-b8ca-5adffc5cbb24</guid><dc:creator>Manu_Devappa</dc:creator><description>&lt;p&gt;I have one doubt.&lt;br /&gt;When I configure the PDN example to&amp;nbsp;Non-IP it shows &amp;quot;PDN type IPv6 only allowed&amp;quot;. Is it mean that my SIM does not support NIDD?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;17:07:32.696 -&amp;gt; Created new PDP context 1
17:07:32.729 -&amp;gt; PDP context 1 configured: APN ****, Family Non-IP
17:07:32.729 -&amp;gt; Event: PDP context 1, PDN type IPv6 only allowed
17:07:32.729 -&amp;gt; notify +CGEV: RESTR 3,1
17:07:32.729 -&amp;gt; pdn_activate() failed, err -8 esm 51 PDN type IPv6 only allowed
17:07:32.862 -&amp;gt; notify +CGEV: IPV6 0
17:07:32.862 -&amp;gt; Event: PDP context 0 IPv6 up&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the API's can be used to send and receive packets on NIDD in NRF9160</title><link>https://devzone.nordicsemi.com/thread/357951?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 13:00:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34cfcd8e-2fc2-4e8b-8a76-8a544ddc8ea3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The PDN example, which it looks like you&amp;#39;re running, will showcase how to setup a specific PDN. This seems to be successful at your end, which is a good starting point. However, it does not do anything wrt. NIDD.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the modem_shell can do NIDD. Please see this thread on how to use&amp;nbsp;NIDD with the modem shell:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/76364/nidd-testing-with-modem-shell---nrf9160-nb-iot"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/76364/nidd-testing-with-modem-shell---nrf9160-nb-iot&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above thread refers to the raw socket, as also&amp;nbsp;listed with examples in the modem shell documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/modem_shell/README.html#id5"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/modem_shell/README.html#id5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if that works at your end?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>