Pages: [1]   Go Down
Author Topic: FTP Client on Ethernet shield  (Read 6279 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to create a logging device of my solar panels. So the idea is to log 1Wh pulses of the power meter with a Duemilanove and send every x min the results to a FTP-server on my NAS.
So I am looking for a (very simple) "FTPclient" on the "2009" ethernet shield. Anybody any ideas?
Logged

Wigan, UK
Offline Offline
God Member
*****
Karma: 18
Posts: 814
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've just googled arduino FTP and come across this, it's slightly disappointing that nobody has replied.

FTP is a pretty basic protocol which involves two connections to the FTP server - one for commands (usually port 21) and one for data.  I've read that the ethernet shield supports up to four connections, so it should be possible.

I don't know if you've got this thread on watch, or if you still care, but I intend trying to get FTP working for a project I'm doing.

An easier solution for you would be PHP.  If your NAS supports FTP it probably has a web server and hopefully that'll have PHP too.  You can pass variables to a PHP page using index.php?variableName=foo&secondVariable=bar, then you can have your PHP web page write that to a file, or to a database (if your NAS supports it, I know mine does but I guess there's hundreds of different types).

The amount of data you can pass using that method is pretty big. You can pass whole pictures using it, but certain browsers limit the URL length (IE) so it isn't good practice. However, you could pass lots of data inside a URL using an arduino, which makes the arduino programming very simple.
Logged

CH
Offline Offline
God Member
*****
Karma: 19
Posts: 703
Book Writer "Arduino Praxiseinstieg"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

see this Thread with the same solution that cowjam mentioned:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1268332355

Instead of saving to a database you can also save the data to a textfile. Pretty easy with php.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank you for your reply.
@cowjam: I used your approach: PHP + MySQL on a free webhost. My solarlogger is yet two months online. You can see the result on
(link that redirects to a bad side removed by moderator) smiley
« Last Edit: April 04, 2013, 03:26:17 am by Coding Badly » Logged

Wigan, UK
Offline Offline
God Member
*****
Karma: 18
Posts: 814
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool, well done smiley
Logged

Pages: [1]   Go Up
Jump to: