<?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 TCP/IP Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91493/serial-lte-modem-tcp-ip-example</link><description>I have programmed the NRF9160 with the Serial LTE Modem example and am following along with the example here - Testing scenarios — nRF Connect SDK 2.0.99 documentation (nordicsemi.com) 
 First thing I notice is AT#XSLMVER returns 2.0.2 instead of 1.5</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Sep 2022 08:20:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91493/serial-lte-modem-tcp-ip-example" /><item><title>RE: Serial LTE Modem TCP/IP Example</title><link>https://devzone.nordicsemi.com/thread/384272?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 08:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2123318-950c-4f05-9f6f-9dca75eccf24</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;Thanks for the update. I tested data mode and it seems work on LTE Link Monitor. Just ignore the timed-out reminder since it does not give a response on data mode before end with +++&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2022-09-01T08:26:41.488Z DEBUG modem &amp;gt;&amp;gt; AT#XSOCKET=1,1,0
2022-09-01T08:26:41.506Z DEBUG modem &amp;lt;&amp;lt; #XSOCKET: 0,1,6
2022-09-01T08:26:41.507Z DEBUG modem &amp;lt;&amp;lt; OK
2022-09-01T08:26:49.579Z DEBUG modem &amp;gt;&amp;gt; AT#XSOCKETOPT=1,20,30
2022-09-01T08:26:49.588Z DEBUG modem &amp;lt;&amp;lt; OK
2022-09-01T08:26:56.219Z DEBUG modem &amp;gt;&amp;gt; AT#XCONNECT=&amp;quot;google.com&amp;quot;,80
2022-09-01T08:26:56.956Z DEBUG modem &amp;lt;&amp;lt; #XCONNECT: 1
2022-09-01T08:26:56.957Z DEBUG modem &amp;lt;&amp;lt; OK
2022-09-01T08:26:56.961Z DEBUG modem &amp;lt;&amp;lt; %CESQ: 49,2,17,2
2022-09-01T08:27:04.954Z DEBUG modem &amp;gt;&amp;gt; AT#XCONNECT=&amp;quot;google.com&amp;quot;,80
2022-09-01T08:27:04.972Z DEBUG modem &amp;lt;&amp;lt; ERROR
2022-09-01T08:27:04.973Z ERROR Error: AT#XCONNECT=&amp;quot;google.com&amp;quot;,80
 failed
2022-09-01T08:27:23.565Z DEBUG modem &amp;lt;&amp;lt; %CESQ: 255,0,255,0
2022-09-01T08:27:25.172Z DEBUG modem &amp;gt;&amp;gt; AT#XSEND
2022-09-01T08:27:26.173Z ERROR Error: &amp;#39;AT#XSEND
&amp;#39; timed out
2022-09-01T08:27:28.828Z DEBUG modem &amp;gt;&amp;gt; xdasfa
2022-09-01T08:27:29.841Z ERROR Error: &amp;#39;xdasfa
&amp;#39; timed out
2022-09-01T08:27:34.515Z DEBUG modem &amp;gt;&amp;gt; xdasfafdafdsaf+++
2022-09-01T08:27:34.566Z DEBUG modem &amp;lt;&amp;lt; OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;We do not provide such a server for test. You need to build your own with python or other script languages. There are also TCP server apps that can directly run on your PC.&amp;nbsp;You need to make sure the server is exposed to the internet with a Public IP and stop the server when you do not use it for security reasons.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial LTE Modem TCP/IP Example</title><link>https://devzone.nordicsemi.com/thread/384216?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 20:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6966a762-11fa-4d01-8cbf-19e2879b32a0</guid><dc:creator>edahlke</dc:creator><description>&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;My local FAE suggested I try using a standard terminal program instead of LTE Link Monitor to send the AT Commands, and this worked. Link Monitor would get hung up after I would send AT#XSEND, and the +++ command could not get it out of of data mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now that it is functioning properly, does Nordic have a TCP server that echos data sent to it, or is there a public one that you know of?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial LTE Modem TCP/IP Example</title><link>https://devzone.nordicsemi.com/thread/384106?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 11:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:915c83e3-77fa-42da-8627-c9158f34f635</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;I suggest you use the latest release version like the current&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/index.html"&gt;Welcome to the nRF Connect SDK! — nRF Connect SDK 2.0.2 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;instead of 2.0.99, which is the main branch still under development and maybe not very stale until it is well tested before formal release.&lt;/p&gt;
[quote user=""]First thing I notice is AT#XSLMVER returns 2.0.2 instead of 1.5 in the example.&amp;nbsp;[/quote]
&lt;p&gt;It is just a demonstration to show how this command will work. You can find its implementation in&amp;nbsp;nrf\applications\serial_lte_modem\src\slm_at_commands.c. It will actually use the NCS version, which is the latest released NCS v2.0.2 in your case.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sprintf(rsp_buf, &amp;quot;\r\n#XSLMVER: %s\r\n&amp;quot;,
	STRINGIFY(NCS_VERSION_STRING));&lt;/pre&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;When I try AT#XSOCKET=1,1,0 it returns XSOCKET: 0,1,6 instead of 1,1,0,6 in the example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;AT#XSSOCKET? returns 0,1,0 instead of 1,6,0.&lt;/p&gt;[/quote]
&lt;p&gt;I agree with you it is a bit misleading. I will inquire with the developer if they forget to update it or due to something else. You can refer directly to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/applications/serial_lte_modem/doc/SOCKET_AT_commands.html#socket-at-commands"&gt;Socket AT commands — nRF Connect SDK 2.0.2 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;and the replies you got look well.&lt;/p&gt;
[quote user=""]&lt;p&gt;I do get the expected OK response from AT#XSOCKETOPT=1,20,60&lt;/p&gt;
&lt;p&gt;The rest of the example trying to connect to port 80 of google.com does not seem to work.&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;Can you descript how did you do your test? is there any information returned back?&lt;br /&gt;I did a quick test based on the SLM application NCS2.0.0(NCS2.0.2 has no update on this sample according to the release note) and everything seems fine. Please see the log file from my LTE Link Monitor.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2022-08-31T11:00:05.792Z DEBUG Application data folder: C:\Users\chs1\AppData\Roaming\nrfconnect\pc-nrfconnect-linkmonitor
2022-08-31T11:00:05.852Z INFO Using nrf-device-lib-js version: 0.4.11
2022-08-31T11:00:05.852Z INFO Using nrf-device-lib version: 0.11.8
2022-08-31T11:00:05.852Z INFO Using nrfjprog DLL version: 10.15.4
2022-08-31T11:00:05.852Z INFO Using JLink version: JLink_V7.58b
2022-08-31T11:00:05.859Z DEBUG App pc-nrfconnect-linkmonitor v2.0.1 official
2022-08-31T11:00:05.860Z DEBUG App path: C:\Users\chs1\.nrfconnect-apps\node_modules\pc-nrfconnect-linkmonitor
2022-08-31T11:00:05.860Z DEBUG nRFConnect 3.11.1, required by the app is (^3.8.0)
2022-08-31T11:00:05.860Z DEBUG nRFConnect path: C:\Users\chs1\AppData\Local\Programs\nrfconnect\resources\app.asar
2022-08-31T11:00:05.860Z DEBUG HomeDir: C:\Users\chs1
2022-08-31T11:00:05.860Z DEBUG TmpDir: C:\Users\chs1\AppData\Local\Temp
2022-08-31T11:00:29.204Z INFO Modem port is opened
2022-08-31T11:00:29.213Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN?
2022-08-31T11:00:29.258Z DEBUG modem &amp;lt;&amp;lt; +CFUN: 0
2022-08-31T11:00:29.260Z DEBUG modem &amp;lt;&amp;lt; OK
2022-08-31T11:00:40.032Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN=1
2022-08-31T11:00:40.079Z DEBUG modem &amp;lt;&amp;lt; OK
2022-08-31T11:00:41.718Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN?
2022-08-31T11:00:41.727Z DEBUG modem &amp;lt;&amp;lt; +CFUN: 1
2022-08-31T11:00:41.740Z DEBUG modem &amp;lt;&amp;lt; OK
2022-08-31T11:00:56.758Z DEBUG modem &amp;gt;&amp;gt; AT#XSOCKET=?
2022-08-31T11:00:56.769Z DEBUG modem &amp;lt;&amp;lt; #XSOCKET: (0,1,2),(1,2,3),(0,1)
2022-08-31T11:00:56.770Z DEBUG modem &amp;lt;&amp;lt; OK
2022-08-31T11:01:07.485Z DEBUG modem &amp;gt;&amp;gt; AT#XSOCKET=1,1,0
2022-08-31T11:01:07.504Z DEBUG modem &amp;lt;&amp;lt; #XSOCKET: 0,1,6
2022-08-31T11:01:07.509Z DEBUG modem &amp;lt;&amp;lt; OK
2022-08-31T11:01:16.445Z DEBUG modem &amp;gt;&amp;gt; AT#XSOCKETOPT=1,20,30
2022-08-31T11:01:16.453Z DEBUG modem &amp;lt;&amp;lt; OK
2022-08-31T11:01:37.756Z DEBUG modem &amp;gt;&amp;gt; AT#XCONNECT=&amp;quot;google.com&amp;quot;,80
2022-08-31T11:01:38.533Z DEBUG modem &amp;lt;&amp;lt; #XCONNECT: 1
2022-08-31T11:01:38.535Z DEBUG modem &amp;lt;&amp;lt; OK
2022-08-31T11:02:46.892Z DEBUG modem &amp;gt;&amp;gt; AT#XSEND=&amp;quot;Test TCP&amp;quot;
2022-08-31T11:02:46.943Z DEBUG modem &amp;lt;&amp;lt; OK
2022-08-31T11:03:08.542Z DEBUG modem &amp;gt;&amp;gt; AT#XRECV=0
2022-08-31T11:03:08.550Z DEBUG modem &amp;lt;&amp;lt; #XRECV: 1240
2022-08-31T11:03:08.552Z DEBUG modem &amp;lt;&amp;lt; HTTP/1.0 400 Bad Request
2022-08-31T11:03:08.555Z DEBUG modem &amp;lt;&amp;lt; Content-Type: text/html; charset=UTF-8
2022-08-31T11:03:08.558Z DEBUG modem &amp;lt;&amp;lt; Referrer-Policy: no-referrer
2022-08-31T11:03:08.564Z DEBUG modem &amp;lt;&amp;lt; Content-Length: 1555
2022-08-31T11:03:08.565Z DEBUG modem &amp;lt;&amp;lt; Date: Wed, 31 Aug 2022 11:02:21 GMT
2022-08-31T11:03:08.567Z DEBUG modem &amp;lt;&amp;lt; &amp;lt;!DOCTYPE html&amp;gt;
2022-08-31T11:03:08.567Z DEBUG modem &amp;lt;&amp;lt; &amp;lt;html lang=en&amp;gt;
2022-08-31T11:03:08.568Z DEBUG modem &amp;lt;&amp;lt;   &amp;lt;meta charset=utf-8&amp;gt;
2022-08-31T11:03:08.576Z DEBUG modem &amp;lt;&amp;lt;   &amp;lt;meta name=viewport content=&amp;quot;initial-scale=1, minimum-scale=1, width=device-width&amp;quot;&amp;gt;
2022-08-31T11:03:08.581Z DEBUG modem &amp;lt;&amp;lt;   &amp;lt;title&amp;gt;Error 400 (Bad Request)!!1&amp;lt;/title&amp;gt;
2022-08-31T11:03:08.582Z DEBUG modem &amp;lt;&amp;lt;   &amp;lt;style&amp;gt;
2022-08-31T11:03:08.658Z DEBUG modem &amp;lt;&amp;lt;     *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* &amp;gt; body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media
2022-08-31T11:03:08.659Z DEBUG modem &amp;lt;&amp;lt; OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>