<?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>RTX+HTTP+FTP+Telnet+SNMP. problem with uploading via FTP</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/26777/rtx-http-ftp-telnet-snmp-problem-with-uploading-via-ftp</link><description> 
Good day. 

 
board: MCB1700 

 
I&amp;#39;ve tried all services from SUBJ separatelly. All of them works
fine including FTP uploading to the SD-based file system. Then I&amp;#39;ve
joined all of them into the single project. 
Now FTP&amp;#39;s work has some limits: I can</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: RTX+HTTP+FTP+Telnet+SNMP. problem with uploading via FTP</title><link>https://community.arm.com/thread/102267?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2010 07:00:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3e1c5128-a03e-4014-a018-b161927c146c</guid><dc:creator>Serge Smith</dc:creator><description>&lt;p&gt;&lt;p&gt;
Net_debug showed:&lt;/p&gt;

&lt;pre&gt;
TCP: *** Processing TCP frame ***
TCP:  Src. Port: 4700
TCP:  Dest.Port: 1033
TCP:  Seq. Num.: 412607758
TCP:  Ack. Num.: 305135616
TCP:  Flags    : PSH,ACK
TCP:  Win. Size: 65535
TCP:  Checksum : 9577
TCP:  Frame len: 25 bytes
TCP:  Mapped to Active Socket 6
TCP:  Socket 6, State CONNECT...

11111

TCP: Socket 6, Sending Control
TCP:  Src. Port: 1033
TCP:  Dest.Port: 4700
TCP:  Seq. Num.: 305135616
TCP:  Ack. Num.: 412607763
TCP:  Flags    : ACK
TCP:  Win. Size: 4380
TCP:  Checksum : 17C6
TCP:  Frame len: 20 bytes
&lt;/pre&gt;

&lt;p&gt;
where 11111 is a content of file which uploaded to FTP.&lt;br /&gt;
In FTP_demo project content of file do not showed during uploading
with Net_debug option.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTX+HTTP+FTP+Telnet+SNMP. problem with uploading via FTP</title><link>https://community.arm.com/thread/78603?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2010 00:39:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7d08cd27-2767-4a00-a58c-1711eed58c69</guid><dc:creator>Serge Smith</dc:creator><description>&lt;p&gt;&lt;p&gt;
same problem with RTX+HTTP+TFTP+Telnet+SNMP:&lt;br /&gt;
TFTP clent&amp;#39;s progress bar of uploading shows process as well. After
finishing - reports &amp;quot;Uploaded xxxx blocks. MD sum = yyy&amp;quot;.&lt;br /&gt;
When I&amp;#39;m checking SD card - file&amp;#39;s length = 0&lt;/p&gt;

&lt;p&gt;
PS. Telnet and SNMP are not effecting to HTTP+FTP or TFTP
combination. If I&amp;#39;m using empty SD (so HTTP will not work) - same 0
length of uploaded files.&lt;/p&gt;

&lt;p&gt;
The project was assembled from Http_demo project by joining files
from FTP_demo, TFTP_demo.... projects&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTX+HTTP+FTP+Telnet+SNMP. problem with uploading via FTP</title><link>https://community.arm.com/thread/58609?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2010 23:16:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3da08813-8754-490e-a0d5-a406b3b87eaa</guid><dc:creator>Serge Smith</dc:creator><description>&lt;p&gt;&lt;p&gt;
No errors indicates in ftp_fclose and ftp_fwrite procedures:&lt;/p&gt;

&lt;pre&gt;
/*--------- ftp_fclose -------------------------*/

void ftp_fclose (void *file) {
  /* Close the file opened for reading or writing. */
  if (fclose (file)==0){
          GLCD_ClearLn (6);
          GLCD_DisplayString(6, 0, &amp;quot;File closed&amp;quot;);
  }
  else{
          GLCD_ClearLn (6);
          GLCD_DisplayString(6, 0, &amp;quot;Error in file closing&amp;quot;);
  }
}
/*--------------- ftp_fwrite ---------------------*/

U16 ftp_fwrite (void *file, U8 *buf, U16 len) {
  /* Write &amp;#39;len&amp;#39; bytes from buffer &amp;#39;buf&amp;#39; to a file. */
  U16 x;
  x=fwrite (buf, 1, len, file);
  if (x&amp;lt;len){
          GLCD_ClearLn (5);
          GLCD_DisplayString(5, 0, &amp;quot;Error in write&amp;quot;);
  }
  else{
          GLCD_ClearLn (5);
          GLCD_DisplayString(5, 0, &amp;quot;Write done&amp;quot;);
  }

  //return (fwrite (buf, 1, len, file));
  return x;
}
&lt;/pre&gt;

&lt;p&gt;
What else could be checked for debugging?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>