---
title: "W6100 khoih-prog / FTPClient_Generic"
url: "https://maker.wiznet.io/eric_g/projects/khoih-prog-ftpclient-generic-for-wiznet-w6100/"
markdown_url: "https://maker.wiznet.io/eric_g/projects/khoih-prog-ftpclient-generic-for-wiznet-w6100/md"
type: "UCC: User Created Content"
author: "@khoih-prog khoih-prog"
author_url: "https://github.com/khoih-prog/FTPClient_Generic/tree/main/src"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "@khoih-prog khoih-prog"
original_url: "https://github.com/khoih-prog/FTPClient_Generic/tree/main/src"
published: "2023-01-31"
language: "en"
hardware: ["WIZnet W6100"]
likes: 7
views: 543
comments: 2
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# W6100 khoih-prog / FTPClient_Generic

> FTP application for Wiznet W6100

Original author: @khoih-prog khoih-prog (source: https://github.com/khoih-prog/FTPClient_Generic/tree/main/src)

## Components

- **WIZnet W6100** x 1 ([docs](https://docs.wiznet.io/Product/iEthernet/W6100/))

## Documents and links

- [FTPClient_Generic](https://github.com/khoih-prog/FTPClient_Generic/tree/main/src) (code): W6100 TFP Generic

## Article

#### 15. FTPClient_DownloadFile on ESP32_DEV with W5x00/W6100 using Ethernet_Generic Library

The following is debug terminal output when running example [FTPClient_DownloadFile](https://github.com/khoih-prog/FTPClient_Generic/blob/main/examples/WiFi/FTPClient_DownloadFile) on `ESP32_DEV` with W6100 using `Ethernet_Generic`

```
Starting FTPClient_DownloadFile on ESP32_DEV with W5x00/W6100 using Ethernet_Generic Library on SPI0/SPI
FTPCLIENT_GENERIC v1.6.0
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 23
[EWS] MISO: 19
[EWS] SCK: 18
[EWS] SS: 5
[EWS] =========================
[EWS] ESP32 setCsPin: 5
[ETG] W5100 init, using W5100Class::ss_pin =  5 , whereas new ss_pin =  10 , SS_PIN_DEFAULT = 22
[ETG] Chip is W6100
[EWS] =========================
[EWS] Currently Used SPI pinout:
[EWS] MOSI: 23
[EWS] MISO: 19
[EWS] SCK: 18
[EWS] SS: 5
[EWS] =========================
Using mac index = 18
Connected! IP address: 192.168.2.77
Max Free Heap: 110580
[FTP] Connecting to:  192.168.2.112
[FTP] Command connected
[FTP] Send USER =  ftp_test
[FTP] Send PASSWORD =  ftp_test
[FTP] Send CWD
Creating new file helloworld.txt
[FTP] Send TYPE Type A
[FTP] Send PASV
[FTP] outBuf = 227 Entering Passive Mode (192,168,2,112,197,251).
[FTP] Data port:  50683
[FTP] _dataAddress:  192.168.2.112 , Data port:  50683
[FTP] Data connection established
[FTP] Send STOR
[FTP] Write File
[FTP] Close File
[FTP] Send TYPE Type A
[FTP] Send PASV
[FTP] outBuf = 227 Entering Passive Mode (192,168,2,112,93,240).
[FTP] Data port:  24048
[FTP] _dataAddress:  192.168.2.112 , Data port:  24048
[FTP] Data connection established
[FTP] Send APPE
[FTP] Write File
[FTP] Close File
[FTP] Send TYPE Type A
[FTP] Send PASV
[FTP] outBuf = 227 Entering Passive Mode (192,168,2,112,43,142).
[FTP] Data port:  11150
[FTP] _dataAddress:  192.168.2.112 , Data port:  11150
[FTP] Data connection established
[FTP] Send RETR
[FTP] Result:  150 Opening ASCII mode data connection for helloworld.txt (75 bytes).
226 Transfer complete.
The file content is: Hi, I'm a new ASCII file created @ millis = 6112
Added text @ millis = 6429
[FTP] Send TYPE Type A
[FTP] Send PASV
[FTP] outBuf = 227 Entering Passive Mode (192,168,2,112,72,197).
[FTP] Data port:  18629
[FTP] _dataAddress:  192.168.2.112 , Data port:  18629
[FTP] Data connection established
[FTP] Send LIST
[FTP] Result:  150 Here comes the directory listing.
226 Directory send OK.
hello_world.txt
helloworld.txt
octocat.jpg
CloseConnection
[FTP] Connection closed
```

---

Source: https://maker.wiznet.io/eric_g/projects/khoih-prog-ftpclient-generic-for-wiznet-w6100/
