<?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>NIDD testing with Modem Shell - nRF9160 (NB-IoT)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76364/nidd-testing-with-modem-shell---nrf9160-nb-iot</link><description>Hi 
 the new nRF9160 Modem FW 1.3 supports Non Ip Data Delivery (NIDD) on NB-IoT In nRF Connect SDK, there is a new example that can be used to test some modem functionalities from a PC: Modem Shell (MoSh) 
 https://developer.nordicsemi.com/nRF_Connect_SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Jun 2021 12:43:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76364/nidd-testing-with-modem-shell---nrf9160-nb-iot" /><item><title>RE: NIDD testing with Modem Shell - nRF9160 (NB-IoT)</title><link>https://devzone.nordicsemi.com/thread/316264?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 12:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:478203dd-76b9-444b-b88e-70f561a1e5ec</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Lorenzo,&amp;nbsp;&lt;/p&gt;
[quote user="nLorami"]What is the difference between the two?&amp;nbsp;[/quote]
&lt;p&gt;I&amp;#39;m not sure, as this is fairly new and not tested extensively &lt;strong&gt;yet&lt;/strong&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Without having tested this myself, I see that the first block connects to a given apn by creating and activating a new PDP context, then it connects a socket and send data on this socket.&lt;br /&gt;&lt;br /&gt;The last one powers of the device to set custom PDP context&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;defcont:      Set custom default PDP context config.
                Persistent between the sessions.
                Effective when going to normal mode.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the Modem Shell sample, you can type help to view available commands.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NIDD testing with Modem Shell - nRF9160 (NB-IoT)</title><link>https://devzone.nordicsemi.com/thread/316207?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 09:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30434007-0dac-4a48-852c-82b4e49c9c3a</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;you sent two block of commands. What is the difference between the two?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NIDD testing with Modem Shell - nRF9160 (NB-IoT)</title><link>https://devzone.nordicsemi.com/thread/315432?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 13:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16120b28-d4ba-4953-9e68-8e59cb73311f</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Lorenzo,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Unfortunately, the NIDD functionality has not been tested in the current version of NCS due to HW issues in the developer team. But from earlier testing the team provides the following example which requires network support:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#create and activate context (note: activation fails if not supported by the network)
mosh:~$ link connect -a &amp;quot;nonip.apn&amp;quot; -f &amp;quot;non-ip&amp;quot;
PDN event: PDP context 1 activated
Created and activated a new PDP context: CID 1, PDN ID 1

#create a packet/raw socket and bind to created PDN context
mosh:~$ sock connect -f packet -t raw --cid 1
Socket open and connect family=3, type=3, port=0, bind_port=0, pdn_cid=1, address=
Socket created socket_id=0, fd=4
#send data to a created socket

mosh:~$ sock send -d foodata -i 0
Socket data send:
        foodata
RRC mode: Connected
mosh:~$
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mosh:~$ link funmode --pwroff
Network registration status: not registered

mosh:~$ link defcont -e -a &amp;quot;non-ip.apn&amp;quot; -f &amp;quot;non-ip&amp;quot;
link defcont enabled

mosh:~$ link funmode --normal
Functional mode set successfully: normal
Network registration status: Connected - home network
etc etc

mosh:~$ sock connect -f packet -t raw
Socket open and connect family=3, type=3, port=0, bind_port=0, pdn_cid=0, address=
Socket created socket_id=0, fd=4

mosh:~$ sock send -d foodata2 -i 0
Socket data send:
        foodata2
RRC mode: Connected
RRC mode: Idle

mosh:~$
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&amp;nbsp;&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NIDD testing with Modem Shell - nRF9160 (NB-IoT)</title><link>https://devzone.nordicsemi.com/thread/315370?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 11:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f15bee9f-0cfb-4c19-8b2d-3e2715be9dc4</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;Thanks. Yes, when more info available from developers on using it with Modem Shell, please share it here.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Lorenzo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NIDD testing with Modem Shell - nRF9160 (NB-IoT)</title><link>https://devzone.nordicsemi.com/thread/315368?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 11:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:172f15a1-917d-4078-ac81-32bb4739412b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Lorenzo,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;As the Modem Shell is new to NCS in v1.6.0-rc2, I will need to talk to the developers on the usage.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In regards to NIDD, there was a question on this about a month ago. Please see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75436/non-ip-data-delivery-support-in-the-nrf9160-module/312280#312280"&gt;more information&amp;nbsp;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>