GithubHelp home page GithubHelp logo

Comments (10)

scowell avatar scowell commented on August 15, 2024

OK... an update...
1.) There are several emulation modes in FZ that work with '0:/'... best for me appears to be DOS.
2.) Next problem was 'JAN 00 00:00 ' at the first of each filename in the FZ dir listing... I found each use of 'shortlist' (i.e. send_next_directory(fsd, pcb, 0);) and made the '0' into a '1'... I lost my dir info (size, last mod, perm, owner, etc) but the thing works. Next problem... only 15kiB/sec... so FreeRTOS time.

So I'll have to tease out which 'send_next_directory()' needs shortlist, and which doesn't... definitely screws up the FZ file pull when the last mod date appears at the front of the filename.

from lwip-ftpd.

toelke avatar toelke commented on August 15, 2024

I could not get filezilla to connect at all. It sends a "TYPE I" and when the device answers with 502 FZ just stops the connection.

I have had good success using TotalCommander, the Windows built-in ftp-client and the Linux NetKit ftp-client.

Implementing TYPE I or something other than 0:\ should be rather easy. Correctly displaying the time is a big problem though.

from lwip-ftpd.

scowell avatar scowell commented on August 15, 2024

I forgot to mention that I hacked the 'TYPE' message to respond OK... that would make a difference! I'll try the several different clients when I get to work. The 'JAN 00 00:00' in front of the filename appears to be a header problem... the code doesn't put it in front of the info header, so not sure why FZ has this problem... I could, of course, debug FZ! More later... thanks for your reply.

from lwip-ftpd.

scowell avatar scowell commented on August 15, 2024

OK, most problems resolved... I'm still stuck on slow download, the upload is crazy fast (>300kiB/s)... download still slow (< 16kiB/s). Is this related to the tcp timetics? I seem to have read somewhere that this is expected until you go to RTOS for lwIP... any clue?

from lwip-ftpd.

scowell avatar scowell commented on August 15, 2024

Here's something... you clip the return value from sfifo_space() to 2048...

// ftpd.c line c. 477
if (len > 2048)
len = 2048;

... wondering why this was clipped... certainly causes an exception when I set it higher... we'd much rather be taking data from the disk a cluster at a time. What is the limitation? I've increased the fifo size.

from lwip-ftpd.

toelke avatar toelke commented on August 15, 2024

I would guess the 2048 is just a nice value for a buffer on the stack.
Are you sure you made the buffer bigger when you set the clipping higher? (l. 466)

from lwip-ftpd.

scowell avatar scowell commented on August 15, 2024

Yes, I increased the fifo to 0x7FFF. It was 2048.
I'll check the code when I get in to work. My uP has
128K RAM.

The memory alignment is set to 32bit... I wonder
if this is appropriate... I'll experiment and let you know.
__
Steve
.

On 2/10/2015 1:33 AM, toelke wrote:

I would guess the 2048 is just a nice value for a buffer on the stack.
Are you sure you made the buffer bigger when you set the clipping
higher? (l. 466)


Reply to this email directly or view it on GitHub
#2 (comment).

from lwip-ftpd.

toelke avatar toelke commented on August 15, 2024

I did not mean the fifo but the buffer "buffer" declared in line https://github.com/toelke/lwip-ftpd/blob/master/ftpd.c#L466

from lwip-ftpd.

scowell avatar scowell commented on August 15, 2024

Ah... it's on the stack! I'll check that code later today...
that would do it. Thanks.

On 2/10/2015 7:25 AM, toelke wrote:

I did not mean the fifo but the buffer "buffer" declared in line
https://github.com/toelke/lwip-ftpd/blob/master/ftpd.c#L466


Reply to this email directly or view it on GitHub
#2 (comment).

from lwip-ftpd.

scowell avatar scowell commented on August 15, 2024

Yes, that was the problem... works much better with fifo at 0x8000 and
buffer at 0x4000... 1MiB/s! I'll close the incident... thanks again for
your
help, great set of code.

On 2/10/2015 7:25 AM, toelke wrote:

I did not mean the fifo but the buffer "buffer" declared in line
https://github.com/toelke/lwip-ftpd/blob/master/ftpd.c#L466


Reply to this email directly or view it on GitHub
#2 (comment).

Stephen Cowell
Project Manager/Engineer
Plasmability LLC
Office (512) 267-7087
Cell (512) 632-8593
www.plasmability.com

from lwip-ftpd.

Related Issues (16)

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.