<?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>In SLM Example datamode can not receive data from server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104594/in-slm-example-datamode-can-not-receive-data-from-server</link><description>Hii There, 
 Board : nRF9160 Custom board (same as feather circuitdojo) example : Serial LTE modem IDE : VS code 
 I put SLM in data mode operation but it does not send data to UART that comes from server, only data send to server from UART is working</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 16 Dec 2023 17:38:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104594/in-slm-example-datamode-can-not-receive-data-from-server" /><item><title>RE: In SLM Example datamode can not receive data from server</title><link>https://devzone.nordicsemi.com/thread/460655?ContentTypeID=1</link><pubDate>Sat, 16 Dec 2023 17:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2391e817-6bc3-4ce0-80a8-fe816cab270d</guid><dc:creator>Dvls</dc:creator><description>&lt;p&gt;Hi Yes i can give you steps&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. compile Serial_LTE_mode sample code. sample code is available at following location of nRF toolchain&lt;/p&gt;
&lt;p&gt;Loc :&amp;nbsp;C:\ncs\v2.4.2\nrf\applications\serial_lte_modem&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. After successfully compile and flashed into nRF9160&lt;/p&gt;
&lt;p&gt;3. Now connect nRF9160 AT command UART using external USB to serial adapter.&lt;/p&gt;
&lt;p&gt;4. T&lt;span&gt;o connect the TCP server use below commands (Use TCP server if you have one or you can create server using Hercules PC app. it requires static IP or you can do port forwarding into your router).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&lt;/span&gt;. AT&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; b&lt;/span&gt;.&amp;nbsp;AT+CFUN=1&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; c&lt;/span&gt;. AT#XSOCKET=&amp;lt;op&amp;gt;[,&amp;lt;type&amp;gt;,&amp;lt;role&amp;gt;[,&amp;lt;cid&amp;gt;]]&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; d&lt;/span&gt;. AT#XCONNECT=&amp;lt;url&amp;gt;,&amp;lt;port&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; e&lt;/span&gt;.&amp;nbsp;AT#XSEND&amp;nbsp; &amp;nbsp;(Here, To switch into datamode, do not use data to send)&lt;/p&gt;
&lt;p&gt;Refer this link for AT command information :&amp;nbsp;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/SOCKET_AT_commands.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/SOCKET_AT_commands.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. SO now in data mode&amp;nbsp;we can not use AT commands, so&amp;nbsp;&lt;/span&gt;&lt;strong&gt;AT#XRECV=0&lt;/strong&gt;&amp;nbsp;will not&amp;nbsp;work here for now. this command will&amp;nbsp;treated as an ordinary data.&lt;/p&gt;
&lt;p&gt;6. Now if we send data from TCP server to modem then it should work as mention in below snap, But its not working. so this is the issue.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DataMode-Receive-issue.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Dvl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In SLM Example datamode can not receive data from server</title><link>https://devzone.nordicsemi.com/thread/460013?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 19:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07e542a4-e533-4bda-96dd-1a7300eefd5d</guid><dc:creator>Dvls</dc:creator><description>&lt;p&gt;1. I have created one TCP server&amp;nbsp;in my PC with static IP using Hercules&lt;/p&gt;
&lt;p&gt;2. I Just compile and flahsed SLM example code&lt;/p&gt;
&lt;p&gt;3. Now i am us terminal&amp;nbsp;as to send AT command to nRF9160&lt;/p&gt;
&lt;p&gt;4. to connect the server i am&amp;nbsp;using below commands&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1. AT&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;2.&amp;nbsp;AT+CFUN=1&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;3. AT#XSOCKET=&amp;lt;op&amp;gt;[,&amp;lt;type&amp;gt;,&amp;lt;role&amp;gt;[,&amp;lt;cid&amp;gt;]]&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;4. AT#XCONNECT=&amp;lt;url&amp;gt;,&amp;lt;port&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;5.&amp;nbsp;AT#XSEND&amp;nbsp; &amp;nbsp;(Here No data, To active datamode)&lt;/p&gt;
&lt;p&gt;5 Then sending data to server as arbitrary data from terminal&amp;nbsp;&lt;/p&gt;
&lt;p&gt;6. Then i am try to send data from server to nRF9160 but i did not get anything&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you have working slm(&lt;span&gt;Serial LTE modem&lt;/span&gt;) sample then please share with me and please let me know the version of toolchain.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dvl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In SLM Example datamode can not receive data from server</title><link>https://devzone.nordicsemi.com/thread/459762?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 17:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b669840b-ae50-4f5d-820e-ca1ef1440a06</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How are you testing this ? Could you provide some instructions on how to recreate this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In SLM Example datamode can not receive data from server</title><link>https://devzone.nordicsemi.com/thread/459596?ContentTypeID=1</link><pubDate>Sat, 09 Dec 2023 19:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:390d42e8-bb7c-4264-8080-d86ad12d7991</guid><dc:creator>Dvls</dc:creator><description>&lt;p&gt;1. AT commands does not work in data mode.&lt;/p&gt;
&lt;p&gt;2. My Question is that in data mode,&amp;nbsp;&lt;span&gt;data streamed from a remote service as arbitrary data to be sent to the MCU over the UART bus. is not working in Serial_LTE_modem sample code. Please help to make it work,&amp;nbsp;&lt;/span&gt;Please refer below detail about my Question.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;From this link :&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/slm_data_mode.html#running-in-data-mode"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/slm_data_mode.html#running-in-data-mode&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&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/DataMode-Receive-issue.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here, &lt;/strong&gt;the highlighted things is not working in my case.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Dvl&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In SLM Example datamode can not receive data from server</title><link>https://devzone.nordicsemi.com/thread/453027?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 12:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7844d283-b1ec-4482-bc5e-9265ee94b5f6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Could you try this command?&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;AT#XRECV=0&lt;/strong&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>