<?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>Serial LTE Modem - IP, UDP, GPS, SLEEP commands documentation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58773/serial-lte-modem---ip-udp-gps-sleep-commands-documentation</link><description>Where can I find documentation of http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.2.0/nrf/samples/nrf9160/serial_lte_modem/README.html#serial-lte-modem IP UDP low power management and GPS commands please ? 
 They are not included in https://infocenter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Mar 2020 11:49:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58773/serial-lte-modem---ip-udp-gps-sleep-commands-documentation" /><item><title>RE: Serial LTE Modem - IP, UDP, GPS, SLEEP commands documentation</title><link>https://devzone.nordicsemi.com/thread/239085?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 11:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d13443-3ae5-434f-98f0-ba6f0d8c4e78</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;
[quote user="michalm"]AT#XSLMVER[/quote]
&lt;p&gt;This gives the version of the serial_lte_modem, which is v1.2 in the time of writing:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/serial_lte_modem/src/slm_at_host.c#L32"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/serial_lte_modem/src/slm_at_host.c#L32&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="michalm"]I can not find there also nothing about&amp;nbsp;AT#XPING=&amp;lt;addr&amp;gt;,&amp;lt;length&amp;gt;,&amp;lt;timeout&amp;gt;[,&amp;lt;count&amp;gt;[,&amp;lt;interval&amp;gt;]] and I am no table to make it working, since e.g.&amp;nbsp;&lt;span&gt;AT#XPING=&amp;quot;192.168.0.1&amp;quot;,100,10 returns just ERROR (I am using APN where 192.168.0.0/16 is valid target).&lt;/span&gt;[/quote]
&lt;p&gt;My apologies, but this isn&amp;#39;t very well documented yet. The best option for now is to read the code to see how it should behave:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/serial_lte_modem/src/slm_at_icmp.c#L348"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/serial_lte_modem/src/slm_at_icmp.c#L348&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;the timeout is in ms, so I would recommend that you try to expand it to see if this has any impact. 192.168.0.1 -&amp;gt; is this the gw? if not :&amp;nbsp;are you certain that the route in your gateway setup allows ICMP, or that the fw doesn&amp;#39;t drop it?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="michalm"]I found sockets operation options and socket types in implementation, but it is confusing to request socket type 2 (UDP) and get response with socket type 17 :-([/quote]
&lt;p&gt;17 is from this enum:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/include/net/net_ip.h#L62"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/include/net/net_ip.h#L62&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure where you get 2 from? The nrf_socket.h defines NRF_IPPROTO_UDP as 2, but this is translated to IPPROTO_UDP in this file:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/lib/bsdlib/nrf91_sockets.c#L303"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/lib/bsdlib/nrf91_sockets.c#L303&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You shouldn&amp;#39;t see a translation like this in the application space.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="michalm"]UDP data sending is delayed ~4s, any hit why please ?[/quote]
&lt;p&gt;&amp;nbsp;Are you using the latest master branch?&lt;/p&gt;
[quote user="michalm"]Can not find also how to send binary data by&amp;nbsp;AT#XUDPSENDTO=&amp;lt;url&amp;gt;,&amp;lt;port&amp;gt;,&amp;lt;data&amp;gt;. I am able to use it with ascii strings.[/quote]
&lt;p&gt;&amp;nbsp;Yes, that is currently a restriction. I&amp;#39;ll forward this to the developers.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="michalm"]How many UDP packets are stored in buffer before executing&amp;nbsp;AT#XUDPRECVFROM please ?[/quote]
&lt;p&gt;&amp;nbsp;This depends on the overall size of the packets and how many you have received, but the limits are in general described in the bsdlib limits file:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nrfxlib/blob/master/bsdlib/include/bsd_limits.h"&gt;https://github.com/NordicPlayground/nrfxlib/blob/master/bsdlib/include/bsd_limits.h&lt;/a&gt;&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: Serial LTE Modem - IP, UDP, GPS, SLEEP commands documentation</title><link>https://devzone.nordicsemi.com/thread/238578?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 15:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1d6f929-4563-4b10-b38a-6989236797fc</guid><dc:creator>Michal M&amp;#252;hlpachr</dc:creator><description>&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;I am still not able to find anything about:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;AT#XSLMVER&lt;/li&gt;
&lt;li&gt;AT#XSLEEP[=&amp;lt;shutdown_mode&amp;gt;]&lt;/li&gt;
&lt;li&gt;AT#XCLAC&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I can not find there also nothing about&amp;nbsp;AT#XPING=&amp;lt;addr&amp;gt;,&amp;lt;length&amp;gt;,&amp;lt;timeout&amp;gt;[,&amp;lt;count&amp;gt;[,&amp;lt;interval&amp;gt;]] and I am no table to make it working, since e.g.&amp;nbsp;&lt;span&gt;AT#XPING=&amp;quot;192.168.0.1&amp;quot;,100,10 returns just ERROR (I am using APN where 192.168.0.0/16 is valid target).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can not find also how to send binary data by&amp;nbsp;AT#XUDPSENDTO=&amp;lt;url&amp;gt;,&amp;lt;port&amp;gt;,&amp;lt;data&amp;gt;. I am able to use it with ascii strings.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I found sockets operation options and socket types in implementation, but it is confusing to request socket type 2 (UDP) and get response with socket type 17 :-(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UDP data sending is delayed ~4s, any hit why please ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How many UDP packets are stored in buffer before executing&amp;nbsp;AT#XUDPRECVFROM please ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any examples would be extremely&amp;nbsp;helpful.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would you be so kind and hint please ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial LTE Modem - IP, UDP, GPS, SLEEP commands documentation</title><link>https://devzone.nordicsemi.com/thread/238555?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 14:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65e12a71-3e90-4557-b56e-918ab61c35e3</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 IP and GNSS parts are provided by bsdlib, which is documented here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.2.0/nrfxlib/bsdlib/README.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.2.0/nrfxlib/bsdlib/README.html#&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for the AT commands that are non-IP and non-GNSS related, they are in the AT commands, which you link to.&lt;/p&gt;
&lt;p&gt;You can choose if you want to control it from a normal UART session on the PC side, or via a&amp;nbsp;client application for nRF5 device, which can be found here:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nrf5_clients_for_nrf91_network_service"&gt;https://github.com/NordicPlayground/nrf5_clients_for_nrf91_network_service&lt;/a&gt;&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>