knowhow

Hi I'm a newbie looking for help with a school project: I need to automatically download a file from the internet (FTP server) and save it onto a USB drive with the use of an Arduino (and an Ethernet Shield I suppose). Can this be done and if so, can anyone point me in the right direction? Any help would be much appreciated as this project is of great importance to me. Thank you for your time.

With an Ethernet shield I presume it could be done. A quick search didn't reveal any existing examples for the Arduino, so it sounds like your school project won't be "cut and paste" <grin>.

The TelnetClient example sketch shows how a TCP client can be made to work. Now on top of that I would browse for "how ftp works" or something similar and get the basic protocol.

For example: http://cr.yp.to/ftp/request.html

You will basically have to send/receive various lines of stuff. Maybe connecting with telnet to an existing ftp server would show the idea.

The broad idea is this:

telnet to (someserver) port 21

The responses are lines with numbers in front, the protocol tells you the difference between success and failure. The numbers give you the machine-readable results, and they are usually followed by human-readable text, like below:

Oh, good point. I skimmed that bit. I read it as "save to an SD card", probably because the Ethernet shield has an SD card reader/writer on it (or one of them does anyway).

I would think that if you download the file, and put it onto an SD card, whilst not strictly a USB drive, you would still get reasonably high marks. If they really mean a USB drive, then this sounds advanced to me for a school project.

Please post technical questions on the forum, not by personal message. Thanks!