<?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>9160 tcp comminication question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63165/9160-tcp-comminication-question</link><description>hi support team, 
 i have one question about 9160 TCP communication, is data re-transmission fulfillment by the modem? how does it work when in psm mode? 
 for example, when in PSM mode, i send one packet to server, and use %XRAI to release connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jul 2020 14:40:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63165/9160-tcp-comminication-question" /><item><title>RE: 9160 tcp comminication question</title><link>https://devzone.nordicsemi.com/thread/260622?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 14:40:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f4117a8-5fae-432a-9abd-60df226f65d3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I will check with team about this, and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160 tcp comminication question</title><link>https://devzone.nordicsemi.com/thread/258553?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 09:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e746dea-3ede-4eb0-bbfe-85666071df14</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;Thank you Sigurd. so maybe because of the bad signal, the 91 may not go to sleep mode because modem need to re-trans the data, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160 tcp comminication question</title><link>https://devzone.nordicsemi.com/thread/258330?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 13:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fa89eee-14b5-445d-811c-efe395f2bb8b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="85273" url="~/f/nordic-q-a/63165/9160-tcp-comminication-question"]i have one question about 9160&amp;nbsp;TCP communication,&amp;nbsp; is data re-transmission fulfillment by the modem?[/quote]
&lt;p&gt;Yes. The modem have internal buffers for handling TCP re-transmissions. Re-transmissions are done when the counterpart does not send an acknowledge.&lt;/p&gt;
[quote userid="85273" url="~/f/nordic-q-a/63165/9160-tcp-comminication-question"]how does it work when in psm mode?[/quote]
&lt;p&gt;If the application needs to transmit data while the modem is in eDRX or PSM mode, it&amp;#39;ll wake up and send the specific data, then go back to eDRX or PSM. PSM and eDRX is for receive &amp;quot;polling&amp;quot; only, you can send data at any time.&lt;/p&gt;
[quote userid="85273" url="~/f/nordic-q-a/63165/9160-tcp-comminication-question"]for example, when in PSM mode, i send one packet to server, and use %XRAI to release connection, will the data be re-transmitted by the modem?[/quote]
&lt;p&gt;Assuming,&amp;nbsp;AT%XRAI=3, and if you are e.g. both downloading an uploading data. As you then only expect a single response before you might get released from the network, this might cause some problems. If the DL data arrives when you expect an ACK, you might get released before the ACK is received. As the modem will believe that the server did not ACK the transmission, it might re-connect in order to re-transmit the data.&lt;/p&gt;
&lt;p&gt;In general, to use XRAI properly,&amp;nbsp;&lt;span&gt;the application will need a very good understanding of the communication between the modem and the server.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>