W6100 khoih-prog / FTPClient_Generic
FTP application for Wiznet W6100
7
Project description
15. FTPClient_DownloadFile on ESP32_DEV with W5x00/W6100 using Ethernet_Generic Library
The following is debug terminal output when running example 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
