Coder Social home page Coder Social logo

khoih-prog / ftp_server_teensy41 Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 2.0 106 KB

FTP Server for Teensy 4.x using SD, LittleFS, etc. with QNEthernet, NativeEthernet, W5x00 with Ethernet_Generic Library or Adafruit Airlift Featherwing using WiFiNINA_Generic Library

License: GNU General Public License v3.0

C++ 86.51% C 13.31% Shell 0.19%
communication ethernet ethernet-generic ftp ftp-server littlefs lwip native-ethernet qn-ethernet qspi-flash sd-card sdfat spi-flash teensy teensy40 teensy41 w5x00 sdfat2 wifinina-generic adafuit-airlift-featherwing

ftp_server_teensy41's Issues

Setting FTP_CRED_SIZE on the fly like with FTP_BUF_SIZE

FTP_CRED_SIZE is defined to 16 (limiting the credentials to 15 characters actually)

What about setting it to 17 by default or...

Being able to set it on the fly like with FTP_BUF_SIZE

#if (!defined(FTP_CRED_SIZE))
  #warning Using default FTP_CRED_SIZE = 17
  #define FTP_CRED_SIZE 17
#endif

Thanks for the library!

client being disconnected immediately after response Listening at 192.168.2.241 : 55600

Hello,

Firstly I want to say thankyou for putting in the effort to make such a cool library, I'm very keen to make use of it in my projects.

I am running your example FTP_Server_SDFAT2 built in the Arduino IDE.

I am attempting to connect with a few different FTP clients that I believe you have shown to work.

The one example I will give of the issue I am seeing is with Classic FTP, but the same issue is happening with WinSCP.

here is the log from the client:


06:40:25 Classic FTP File Transfer Software Run
06:40:26 Click the Connect button to connect to a site
06:40:41 Connecting to server: 192.168.2.241.
06:40:41 Connecting...
06:40:42 Response:  220 -- FTP_Server_Teensy41 v1.1.0 --
06:40:42 Response:  331 Ok. Password required
06:40:42 Command: PASS ********
06:40:42 Response:  230 Ok
06:40:42 Connected OK.
06:40:42 Changing directory to /
06:40:42 Response:  250 Directory changed to /
06:40:43 Response:  257 "/" is your current directory
06:40:43 Response:  200 TYPE is now ASCII
06:40:44 The server has timed out the connection.
06:40:44 Disconnected from server.

and the debug (level4) capture from the server:


Initialize Ethernet using static IP => IP Address = 192.168.2.241
FTP Server Credentials => account = teensy4x, password = ftp_test
[FTP]  Ftp server waiting for connection on port  21
[FTP]  Client connected!
USER teensy4x
PASS ftp_test
[FTP]  Authentication Ok. Waiting for commands.
CWD /
PWD
FEAT
TYPE A
PASV
[FTP]  Connection management set to passive
[FTP]  Listening at  192.168.2.241 : 55600
[FTP]  Ftp server waiting for connection on port  21

So for reasons I cannot determine, the client is reporting that the server is timing out the connection, however the debug does not report a disconnnect, but does say waiting for new connection.

Is there a setting I don't have correct on either end?

Can you recommend something to try?

Many thanks

Craig

file share over FTP

Hi this is not a issue, but I wondering how to share files from the SD card in the Teensy 4.1 over FTP.
From the FTP_Server_SDFAT2.ino example I see it is printing information about file names, sizes etc
is there any way to download an entire file from the Teensy SD card using FTP?
could you provide a short example?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.