<?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>nRF9151 SLM app + socket (open/send/receive/close)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115925/nrf9151-slm-app-socket-open-send-receive-close</link><description>Hello, guys 
 I have nRF9151-dk running Serial LTE Modem (SLM) app on it and want to test the ability of working with sockets (open socket, send/receive data, close the socket...). 
 I&amp;#39;m following the flow of AT commands from here , but when it comes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Oct 2024 08:35:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115925/nrf9151-slm-app-socket-open-send-receive-close" /><item><title>RE: nRF9151 SLM app + socket (open/send/receive/close)</title><link>https://devzone.nordicsemi.com/thread/508618?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 08:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30afc1f5-448e-41e0-9257-881b9f5f57c7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear you got it working. Happy to help!&lt;/p&gt;
&lt;p&gt;As mentioned, I reported this internally as a bug.&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: nRF9151 SLM app + socket (open/send/receive/close)</title><link>https://devzone.nordicsemi.com/thread/508563?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 15:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6c0655f-e0a1-4905-83d0-c10e2436cdbb</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;It works after&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT#XPPP=0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;command, &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;. Thanks for the support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151 SLM app + socket (open/send/receive/close)</title><link>https://devzone.nordicsemi.com/thread/508549?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 14:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10743e61-8280-4e46-bd49-1edadcc1b113</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;Thank you for sharing these details.&lt;/p&gt;
&lt;p&gt;I see that you have PPP enabled, and I initially tested without. Sorry for this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When adding PPP, I see the same problem. If you issue AT#XPPP=0, the socket connection will work. I will report this internally as a bug.&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: nRF9151 SLM app + socket (open/send/receive/close)</title><link>https://devzone.nordicsemi.com/thread/508496?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 11:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a17be341-120b-4d8f-a627-aa03b18c7349</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello, &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I forgot to add this socket opening step in my log, but it is not about it. Here is the log with the opening socket step included. Again, I&amp;#39;m unable to connect to HTTP server.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730286000571v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151 SLM app + socket (open/send/receive/close)</title><link>https://devzone.nordicsemi.com/thread/508494?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 10:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09bed44d-4c1e-46d2-903e-9e1d3c102b6d</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;You are getting an error as the socket does not exist. You should create the socket first, as shown in the documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/serial_lte_modem/doc/slm_testing.html#tcp-ip-at-commands"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/serial_lte_modem/doc/slm_testing.html#tcp-ip-at-commands&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are connecting to a website, it might be beneficial to use the http specific at commands:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/serial_lte_modem/doc/HTTPC_AT_commands.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/serial_lte_modem/doc/HTTPC_AT_commands.html&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: nRF9151 SLM app + socket (open/send/receive/close)</title><link>https://devzone.nordicsemi.com/thread/508417?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 17:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7826f222-71d9-442e-80ad-a3acd60c73ed</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;What I meant by&amp;nbsp;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/115925/nrf9151-slm-app-socket-open-send-receive-close/508407"]modem responds with &lt;span style="background-color:rgba(255, 153, 204, 1);"&gt;&lt;em&gt;&lt;strong&gt;ERROR&lt;/strong&gt; &lt;/em&gt;&lt;/span&gt;after some time.&amp;nbsp;[/quote]
&lt;p&gt;is that I&amp;#39;m unable to establish a connection with the server. The connection is not broken due to the inactivity, it seems that the connection is not established at all. Here is the log:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730221289535v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151 SLM app + socket (open/send/receive/close)</title><link>https://devzone.nordicsemi.com/thread/508407?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 15:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7c5895a-7594-47c8-9ef3-ec105c02078a</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=""]modem responds with &lt;span style="background-color:rgba(255, 153, 204, 1);"&gt;&lt;em&gt;&lt;strong&gt;ERROR&lt;/strong&gt; &lt;/em&gt;&lt;/span&gt;after some time.&amp;nbsp;[/quote]
&lt;p&gt;After a while (depending on the server you&amp;#39;re connecting to), it is common that the peer disconnects due to a timeout if no communication is exchanged.&lt;/p&gt;
&lt;p&gt;Is that what is happening here? Can you share a full log?&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>