A new version is available
See message #144
I begun to work to a FTP server on Arduino
The reason is that I have made a mp3 player (see La Rocola – Mes projets pour mieux profiter de mon hamac or Écouter la radio en streaming - Réalisations et Projets Finis - Arduino Forum ) and don't want to remove the SD card each time I need to update his content.
The hardware consist of an Arduino Due and an Ethernet shield or a WIZ820io.
I guess it cant work on an Mega2560 reducing comments or using F() macro.
The software is on GitHub at GitHub - gallegojm/Arduino-Ftp-Server: Ftp server for Arduino Due and Ethernet Shield or WIZ820io
This is a first release: incomplete and may be buggy?
Not all ftp commands are implemented but enough to parse directories and download files.
User is 'arduino' and password is blank
It only accepts clients in active mode
I probe it with the following clients software:
- FTP Rush : looks like it is working without problem
- FileZila : parsing directories is ok. But when trying to download a file, FileZila first reconnect, without deconnecting before. I don't no how to handle that. A trick is to send manually the command QUIT.
I use those external libraries:
- Streaming.h from Mial Hart
- SdFat.h from William Greiman, with some additional functions to handle long names (see How to read full name of a file with SdFat - Storage - Arduino Forum )
I use internal library Ethernet
For using Wiz820io it is necessary to make some changes (see DUE ethernet performance on W5200 with SPI and SPI+DMA - Arduino Due - Arduino Forum and GitHub - jbkim/W5200-Arduino-Ethernet-library )
It is also necessary to add two functions. See my post there: More functions needed in Ethernet library - Libraries - Arduino Forum
I would appreciate remarks, sugestions, testing, ...