<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>RL-TcpNet - client application receiving same data bytes that was sent previously</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28272/rl-tcpnet---client-application-receiving-same-data-bytes-that-was-sent-previously</link><description> 
Hi, 

 
I am using my MCU as a client application (i.e. active open). 
The problem is, each time I attempt to send data, the callback
function always return TCP_EVT_DATA event and I received the same
data that I sent previously (or you can say, loopback</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: RL-TcpNet - client application receiving same data bytes that was sent previously</title><link>https://community.arm.com/thread/80047?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2012 23:58:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ef73e560-89fa-4105-be29-3dd882fa86cb</guid><dc:creator>Low SH</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thank you for the prompt response!&lt;/p&gt;

&lt;p&gt;
Yes, each time I send data, the client callback function will
return TCP_EVT_ACK first. This is correct.&lt;br /&gt;
Therafter, the callback function will return TCP_EVT_DATA, which
shouldn&amp;#39;t be the case, in my honest opinion.&lt;/p&gt;

&lt;p&gt;
On the Keil debugger, I set a breakpoint after &amp;quot;case
TCP_EVT_DATA:&amp;quot;. The debugger will always stop at this breakpoint each
time the client application sent a byte.&lt;/p&gt;

&lt;p&gt;
My client application is sending the data to Hyperterminal and I
am quite sure the terminal itself does not echo the data back.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RL-TcpNet - client application receiving same data bytes that was sent previously</title><link>https://community.arm.com/thread/60458?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2012 23:33:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c81b51b2-466e-4b23-b43d-0e6b425550c2</guid><dc:creator>IB Shy</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;Will like to know if anybody has similar experience?&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
No, you should get (and I do get) TCP_EVT_ACK when the sent data
has been acknowledged by the other end.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>