gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS Misc > DSFTP 1.0

#97520 - bjoerngiesler - Thu Aug 10, 2006 7:42 am

Hi everyone,

I've put the initial release of DSFTP, my FTP server for the DS, up for download. It has following features/limitations:

Full-fledged FTP server, configurable by settings file
Additional BOOT command (works only on Supercard CF so far)
Only one simultaneous client connection
Passive FTP only
Rather slow RECV speed

You can download DSFTP and a PDF file containing the nitty-gritty at ftp://www.giesler.biz, using login anonymous and your email. Please, make that a valid email, so I can contact you in case anything goes wrong. I promise not to sell it to the Nigerians.

And yes, DSFTP is hosting itself (as a test phase), so please treat it gently and enjoy the slow trickle of the bytes. If someone manages to crash the server, I've put up an additional zip file at http://giesler.biz/~bjoern/downloads/DSFTP.zip.

Please PM me if you run into any problems.

Have fun!


Last edited by bjoerngiesler on Thu Aug 10, 2006 10:59 am; edited 2 times in total

#97521 - Mrshlee - Thu Aug 10, 2006 8:10 am

Status: Connecting to www.giesler.biz ...
Status: Connected with www.giesler.biz. Waiting for welcome message...
Response: 220-Nintendo DS FTP server module
Response: 220-(c)2006 Bjoern Giesler <bjoern@giesler.de>
Response: 220-
Response: 220-Hi everyone. This is the MOTD for my experimental DS FTP server.
Response: 220-
Response: 220-The following rules apply:
Response: 220-
Response: 220-1. The server only allows ONE simultaneous connection. Please don't
Response: 220- hog it and please disconnect your client after you're done.
Response: 220-2. If you encounter any bugs, please send me all data you have about
Response: 220- it. If you don't, please just let me know what client you tested
Response: 220- with (along with version and OS info).
Response: 220-
Response: 220-That's it. Now have fun!
Response: 220-
Response: 220-Regards,
Response: 220-Bj?rn
Response: 220
Command: USER anonymous
Response: 331 Anonymous login ok, send your complete email address as your password.
Command: PASS *****
Response: 230 Anonymous access granted.
Command: SYST
Response: 215 NintendoDS
Command: FEAT
Response: 501 Unhandled command 'FEAT'
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE A
Response: 200 Type set to A.
Command: PORT 58,84,75,5,5,186
Response: 501 Unhandled command 'PORT 58,84,75,5,5,187'
Error: Could not retrieve directory listing

looks good.
_________________
MrShlee.com
Projects
Dev-Scene
MyTechpedia

#97523 - bjoerngiesler - Thu Aug 10, 2006 8:51 am

Oh yes, I forgot to mention that limitation...

Passive FTP only. That means that PORT commands do not work (yet).

#97530 - Lick - Thu Aug 10, 2006 9:42 am

I will try it out! Do you have screenshots of it?

To be honest, I'm working on an FTP client (perhaps server) myself too. It's still in the progress of setting up WiFi so it will not be finished in short notice, but it's getting there.

Anyway, greaat job!
_________________
http://licklick.wordpress.com

#97536 - kevinc - Thu Aug 10, 2006 10:31 am

You have a bad linky. You put a ',' in ftp://www.giesler.biz,

Other than that, the ftp server seems to be down, and the webpage returns a 404.

EDIT: It would seem to me most devs here speak German o.o

#97539 - bjoerngiesler - Thu Aug 10, 2006 11:02 am

I had not one, but two bad linkies. :-) The addresses are

ftp://www.giesler.biz for FTP access, and
http://giesler.biz/~bjoern/downloads/DSFTP.zip for web access.

Corrected them in the original post too. I can't test the FTP server from work (dang proxies -- what does it return for you?), but the http:// link is working fine.

@Lick: No, I don't have screenshots... this is a server. You can have a log file, though :-)

#97604 - MiL0 - Thu Aug 10, 2006 7:09 pm

this is probably the most needed bit of homebrew that I can think of - THANK YOU so much :D


I assume you can upload to it? Really, all I wanted was an FTP client but an FTP server with upload will do nicely. Thanks once again!

#97607 - Mr. Picklesworth - Thu Aug 10, 2006 7:23 pm

Okay, now I want PHP! :P

I can see a use for this...
_________________
Thanks!
MKDS Friend Code: 511165-679586
MP:H Friend Code: 2105 2377 6896

#97612 - bjoerngiesler - Thu Aug 10, 2006 7:45 pm

OK, I just finished analyzing the logs (and a couple live connections that came in while I was watching) and put in a whole lot of bugfixes, including a couple really stupid ones that were real show-stoppers. Please re-download it, if you already did. Should work with Firefox and IE now, too :-)

MiL0 wrote:
I assume you can upload to it? Really, all I wanted was an FTP client but an FTP server with upload will do nicely.


Well, to answer that, here's what my "build and re-run" command looks like:

make && ftp -n $DSADDR < commands.ftp

...and commands.ftp contains:

quote USER bjoern
quote PASS xxxxxxxx
bin
cd /
put DSFTP.nds
quote BOOT DSFTP.nds


So yes, upload works...

#97630 - Dan2552 - Thu Aug 10, 2006 9:59 pm

is downloading at

1.4kB/s

good work. Can't wait for the download to finish ^^

#97634 - Mr. Picklesworth - Thu Aug 10, 2006 10:02 pm

Hmm... can it create directories on GBAMP?
_________________
Thanks!
MKDS Friend Code: 511165-679586
MP:H Friend Code: 2105 2377 6896

#97637 - Dan2552 - Thu Aug 10, 2006 10:08 pm

Mr. Picklesworth wrote:
Hmm... can it create directories on GBAMP?


I'd tell you if the PDF would download :/

I think I crashed it >< and the zip link isnt working either


Last edited by Dan2552 on Thu Aug 10, 2006 10:10 pm; edited 1 time in total

#97638 - bjoerngiesler - Thu Aug 10, 2006 10:09 pm

Mr. Picklesworth wrote:
Hmm... can it create directories on GBAMP?


Frankly, I have no idea; I only have a SC CF, and creating directories works fine. Why, are you seeing problems?

#97639 - bjoerngiesler - Thu Aug 10, 2006 10:10 pm

Dan2552 wrote:
I'd tell you if the PDF would download :/


Erm. Assuming you're from virgin.net, it just sent you 41639 bytes of PDF... didn't that arrive OK?

Are you still connected? Try disconnecting. ZIP link works from here...

#97643 - Dan2552 - Thu Aug 10, 2006 10:13 pm

can you make a readme or maybe even a doc file? I hate the PDF format.. + I'm having download problems..


edit--
Quote:

Erm. Assuming you're from virgin.net, it just sent you 41639 bytes of PDF... didn't that arrive OK?


That's me.. It got to 100% but it didn't do the finishing bit (I'm running firefox..) and now I can't access the FTP at all

#97647 - bjoerngiesler - Thu Aug 10, 2006 10:17 pm

Dan2552 wrote:
can you make a readme or maybe even a doc file? I hate the PDF format.. + I'm having download problems..


You can have a RTF... I wrote this in MacOS TextEdit. Would that help?

Dan2552 wrote:
That's me.. It got to 100% but it didn't do the finishing bit (I'm running firefox..) and now I can't access the FTP at all


Can you quickly restart FF altogether, just so I see if the connection gets closed? Since only one connection is allowed, I can't check myself...

#97650 - Dan2552 - Thu Aug 10, 2006 10:23 pm

bjoerngiesler wrote:


You can have a RTF... I wrote this in MacOS TextEdit. Would that help?

--

Can you quickly restart FF altogether, just so I see if the connection gets closed? Since only one connection is allowed, I can't check myself...



yes

yes -- [The connection was reset // The connection to the server was reset while the page was loading.]
(no change)

#97651 - ackix - Thu Aug 10, 2006 10:23 pm

I uploaded it here with faster download speed and documentation in the zip : removed

maybe you don't want it to be hosted on another site? tell if you don't want to.


Last edited by ackix on Thu Aug 10, 2006 10:34 pm; edited 1 time in total

#97652 - bjoerngiesler - Thu Aug 10, 2006 10:25 pm

OK thanks, I rebooted. There's a RTF file now... please give it another shot.

#97654 - bjoerngiesler - Thu Aug 10, 2006 10:28 pm

ackix wrote:
I uploaded it here with faster download speed and documentation in the zip : http://www.filefactory.com/file/954e2e/

maybe you don't want it to be hosted on another site? tell if you don't want to.


Hmm. Basically great, but could you take it down again just temporarily and give me one or two more days? This thing is too much of a moving target right now, and I'd rather switch to a proper versioning scheme before this gets re-distributed by other places.

#97658 - Dan2552 - Thu Aug 10, 2006 10:32 pm

bjoerngiesler wrote:
OK thanks, I rebooted. There's a RTF file now... please give it another shot.


you rebooting fixed it, i got the RTF ok :D

#97661 - ackix - Thu Aug 10, 2006 10:38 pm

ok, I remove it.

on 4shared.com, there's a service where you can create your own folders (and even add passwords on files...). It might be interesting to save your bandwidth?

#97663 - bjoerngiesler - Thu Aug 10, 2006 10:41 pm

ackix wrote:
on 4shared.com, there's a service where you can create your own folders (and even add passwords on files...). It might be interesting to save your bandwidth?


The bandwidth thing isn't that bad... at least not bad enough to justify not putting the stuff on my home server. The extreme slowness you're seeing on the ftp link is not my uplink, it's my DS... :D

#97667 - kevinc - Thu Aug 10, 2006 10:54 pm

Cool! Everybody seems to be publishing their FTP servers. I think I'll go publish mine!... ok, maybe not.
[EDIT: Ok, Lick's is a client. Never mind]

I'm probably the only person who hasn't been able to enter the FTP site. The wifi lib supports up to 10 connections, the FAT lib up to 4 files open, why not enable multiple sessions? If you're programming in C++, you can easily set each session as an object and instantiate the lot of them.
_________________
http://akzeac.blogspot.com

#97668 - bjoerngiesler - Thu Aug 10, 2006 11:00 pm

kevinc wrote:
I'm probably the only person who hasn't been able to enter the FTP site. The wifi lib supports up to 10 connections, the FAT lib up to 4 files open, why not enable multiple sessions? If you're programming in C++, you can easily set each session as an object and instantiate the lot of them.


Yeah yeah. I can see it's necessary. :-) Actually, this thing was intended to be a tiny C++ class that you could link to your own code so you could upload freshly-compiled .nds files and boot them. Sort of like the other upload/run tools, but standards-compliant. I didn't want to write an industry-strength internet server...

#97670 - Dan2552 - Thu Aug 10, 2006 11:04 pm

OK.

Code:

-> USER user1
<- 331 Password required for axek1.
-> PASS pass1
<- 230 User user1 logged in.
User user1 logged in (root=/, home=/, write=yes)
-> SYST
<- 215 UNIX (actually NintendoDS)
-> PWD
<- 257 "/"
-> TYPE I
<- 200 Type set to I.
-> PASV
Looking up localhost.
Success.
<- 227 Entering Passive Mode (127,0,0,1,39,15).
-> SIZE /
<- 530 File / does not exist.
-> MDTM /
Unhandled cmd: 'MDTM' rest: '/'
<- 501 Unhandled command 'MDTM /'
-> RETR /


Code:
motd /data/settings/motd.txt
logfile /data/settings/ftplog.txt
loglevel 5
hostname localhost

user user1
   pass pass1
   root /
   home /
   write true
   boot true
end user


What have I done wrong?

#97672 - kevinc - Thu Aug 10, 2006 11:09 pm

Um... why are you trying to download root?

bjoerngiesler wrote:
Actually, this thing was intended to be a tiny C++ class that you could link to your own code so you could upload freshly-compiled .nds files and boot them. Sort of like the other upload/run tools, but standards-compliant. I didn't want to write an industry-strength internet server...


Why not? It's just a little more effort. If you don't want to, you can release the code, I'm sure other people will help you with that.
_________________
http://akzeac.blogspot.com

#97675 - Dan2552 - Thu Aug 10, 2006 11:12 pm

kevinc wrote:
Um... why are you trying to download root?


Um... How do I tell it not to :D ?

hang on.. do I put root as / and home as /ftp --- i'll try that...
edit--

nope..

What do I put root and home as????

all i want is the folder

/ftp

accessable to clients

#97709 - ssj4android - Fri Aug 11, 2006 4:52 am

Does this work with the Supercard SD?

#97713 - bjoerngiesler - Fri Aug 11, 2006 6:02 am

Dan2552 wrote:
OK.

Code:

-> SIZE /
<- 530 File / does not exist.
-> MDTM /
Unhandled cmd: 'MDTM' rest: '/'
<- 501 Unhandled command 'MDTM /'
-> RETR /


What have I done wrong?


Your config is peachy. But your client is, indeed, trying to download "/" as if it were a file. (What client is that?) The attempt should generate a "553 No such file.". If it doesn't, you have a version that I didn't fix this in yet... please download again. Sorry for the inconvenience.

ssj4android wrote:
Does this work with the Supercard SD?


No idea, I only have a SuperCard CF. Why don't you try and report your results? :-)

#97726 - Waffle - Fri Aug 11, 2006 9:10 am

I've always been wanting something like this. I had no success with an early version I tried before. However, just got the latest version and it seems I could connect and retrieve a directory listing! So I proceeded to upload a couple of files and things seemed to work fine. But there seems to be problem when uploading lots of files.

I seem to be getting this error message:
/Users/bjoern/Source/NintendoDS/DSFTP/arm9/source/BTCPServer.cpp[160]: accept(-1) failed (errno 22)

That message seems to always come up after:
** Closing socket 32.

A log from the DS is available here:
http://www.box.net/public/static/b45frkll49.LOG

I'm using the .ds.gba on my M3 CF. Look at this screenshot:
http://www.box.net/public/static/lqof8ixudc.jpg
You can see that the bottom screen is not cleared and continues to show the M3 Menu. It's nothing major at all and I can live with it.

#97729 - bjoerngiesler - Fri Aug 11, 2006 9:41 am

Hi,

Waffle wrote:
I seem to be getting this error message:
/Users/bjoern/Source/NintendoDS/DSFTP/arm9/source/BTCPServer.cpp[160]: accept(-1) failed (errno 22)

That message seems to always come up after:
** Closing socket 32.


Ahaaa! Thanks; I'd come across that one before, but couldn't reproduce it. I'll look into it when I get home (in about 8 hours). However it manages to make the master socket (absolutely always > 0) into the -1 it's reporting is beyond me right now.

#97747 - Dan2552 - Fri Aug 11, 2006 11:48 am

bjoerngiesler wrote:

Your config is peachy. But your client is, indeed, trying to download "/" as if it were a file. (What client is that?) The attempt should generate a "553 No such file.". If it doesn't, you have a version that I didn't fix this in yet... please download again. Sorry for the inconvenience.


Firefox, just the same as I accessed yours.

( ftp://192.168.0.110 )

Everyone makes mistakes with versions sometime or another ;)

edit-

I redownloaded the zip - tried it with the same config etc, and still the same error..

#97804 - ratx - Fri Aug 11, 2006 5:34 pm

I don't know if its something funky in my lan setup but I had to add a static arp entry for the DS to get it work... I can confirm mkdir "works" with GBAMP. BOOT appears to work in so much as it resets the DS but it still boots whatever multi loader you have. The uploaded files seem to be corrupt however....

#97809 - bjoerngiesler - Fri Aug 11, 2006 6:30 pm

ratx wrote:
I don't know if its something funky in my lan setup but I had to add a static arp entry for the DS to get it work...


Huh. OK... never heard that one before; do you have that with all dswifi apps? You may want to check that at the dswifi forum...

ratx wrote:
I can confirm mkdir "works" with GBAMP.


As expected, but still very good. Thanks.

ratx wrote:
BOOT appears to work in so much as it resets the DS but it still boots whatever multi loader you have.


Also as expected; SC booting is a bit different from GBAMP booting. Maybe I'll switch to Mighty Max's exec() implementation.

ratx wrote:
The uploaded files seem to be corrupt however....


That's strange. Did you upload them in binary mode? What client did you use?

Spelling Fairy was here

#97820 - ratx - Fri Aug 11, 2006 7:56 pm

Re: "arping" No everything else works ok...

Re: corruption I started afresh with a clean CF and couldn't replicate the problem at all :) ( using ncftp ) so maybe something I did in my first few tests triggered it. Certainly after creating directories a chkdsk /F reveals for eg:

Removing trailing folder entries from \DOOM
Removing trailing folder entries from \TEST

Also sorry I was also mistaken about "BOOT" on GBAMP it reloads dsftp rather than the _BOOT_MP.NDS.

#97822 - bjoerngiesler - Fri Aug 11, 2006 8:10 pm

Hi everyone,

I'm taking the FTP server off the net for now (http access still works). The problem reported by Waffle causes the thing to hang after 31 connections, i.e. after SGIP_SOCKET_MAXSOCKETS gets exceeded. It looks like there's a bug in DSWifi which causes sockets to never get closed. Therefore, the server dies after 31 connections, which doesn't make it very useful as an internet server... :-)

Watch this space.

#97836 - MaHe - Fri Aug 11, 2006 8:58 pm

Awww, not compatible with SCSD :(
Could you compile it with the REIN library?
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97872 - sgstair - Sat Aug 12, 2006 2:15 am

bjoern: *poke poke* it does help if you close the sockets when you're done with them ;)
</teasing>

-Stephen
_________________
http://blog.akkit.org/ - http://www.akkit.org/dswifi/

#97878 - vb_master - Sat Aug 12, 2006 2:43 am

I can't seem to download it from his FTP. Guessing it's down or something?
_________________
Back.

#97880 - brennan - Sat Aug 12, 2006 2:48 am

vb_master wrote:
I can't seem to download it from his FTP. Guessing it's down or something?


Yeah, it is.

Here you go:
http://brennan.amidal.com/~bren/slurp/DSFTP.nds
_________________
Hardware: GBAMP v2, Datel MML, NDS phat (Flashme v7)

#97881 - vb_master - Sat Aug 12, 2006 2:50 am

brennan wrote:
vb_master wrote:
I can't seem to download it from his FTP. Guessing it's down or something?


Yeah, it is.

Here you go:
http://brennan.amidal.com/~bren/slurp/DSFTP.nds
Already grabbed it from his HTTP backup. Thanks for the mirror though!
_________________
Back.

#97904 - bjoerngiesler - Sat Aug 12, 2006 8:29 am

sgstair wrote:
bjoern: *poke poke* it does help if you close the sockets when you're done with them ;)
</teasing>


Yeah yeah. So it wasn't a bug in your code, it was in mine. I apologize. ;-)

I still have one weirdness to fix, then I'll put 2.0 up. Features: Multiple connections, proper handling of passive mode, and much more robust.

#97905 - Waffle - Sat Aug 12, 2006 8:34 am

I'm looking forward to it!

I was doing some transfer rate tests today. For the two files I sent to the DS I got 50 KB/s and 100 KB/s. Downloading to the PC from the DS was only 8 KB/s.

#97912 - MaHe - Sat Aug 12, 2006 9:23 am

What FAT library are you using?
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97914 - bjoerngiesler - Sat Aug 12, 2006 9:25 am

MaHe wrote:
What FAT library are you using?


chishm's gba_nds_fat.

#97917 - MaHe - Sat Aug 12, 2006 9:56 am

That's pretty outdated. Could you compile it with REIN's FAT library?
It's in the sources: http://www.pat.hi-ho.ne.jp/~sata68/nds/rein16.lzh
Thanks in advance, I love the app (on GBAmp at least) :)
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97934 - bjoerngiesler - Sat Aug 12, 2006 12:22 pm

Hi,

I'm releasing DSFTP 1.5. The following changes have been made:

    Multiple connections now allowed. Sending/receiving files is still handled via busy-loop, so while someone's sending/receiving, it's a no-go for the other users... but we're getting there. Sending is still very slow.

    No socket starvation any more (i.e. no hang after connection 32)

    Timeout for inactive connections

    Port range for passive-mode connections (good for firewall admins)

    Uses REIN's FAT library now, should work with SC SD? Please test.

    Lots more robustness changes.


Again, I'm letting it serve itself (at ftp://giesler.biz), which may crash or be very slow, so there's still the backup copy at http://giesler.biz/~bjoern/downloads/DSFTP-1.5.zip.

Have fun & report any bugs!

#97937 - MaHe - Sat Aug 12, 2006 1:03 pm

Ahhh ... SCSD works wonderfully!
Thanks a lot, this is now on my top-5 application list!

BTW, have you considered entering the NeoFlash compo?
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97938 - bjoerngiesler - Sat Aug 12, 2006 1:14 pm

MaHe wrote:
Ahhh ... SCSD works wonderfully!


Great. Does booting work?

#97940 - MaHe - Sat Aug 12, 2006 1:24 pm

Hmm ... will try, hang on.
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97941 - doxtur - Sat Aug 12, 2006 1:24 pm

please, write on DS it's IP - i use DHCP :)

#97944 - MaHe - Sat Aug 12, 2006 1:33 pm

Booting works. Perfectly. Well.
Thanks! ^_^

P.S.: Just a minor request: maybe a command to power off the DS wouldn't hurt. Yes, I'm THAT lazy :P
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97948 - bjoerngiesler - Sat Aug 12, 2006 2:26 pm

doxtur wrote:
please, write on DS it's IP - i use DHCP :)


Good point. :-)

MaHe wrote:
P.S.: Just a minor request: maybe a command to power off the DS wouldn't hurt. Yes, I'm THAT lazy :P


Is that possible in software?

#97950 - Dan2552 - Sat Aug 12, 2006 2:37 pm

bjoerngiesler wrote:


MaHe wrote:
P.S.: Just a minor request: maybe a command to power off the DS wouldn't hurt. Yes, I'm THAT lazy :P


Is that possible in software?


Moonshell has an option to poweroff after a song finishes

#97959 - hogg - Sat Aug 12, 2006 3:53 pm

First Thank you for this cool app..
I keep getting a error saying "config file cant be found."
I made a text file pasted all info from your help file but i keep getting this error.
I know im doing something wrong.
Also whats a good ftp progam to use with this?
TIA

#97964 - MaHe - Sat Aug 12, 2006 4:23 pm

bjoerngiesler wrote:
Is that possible in software?

Sure, but I can't find the code ... I'm sure one of the developers will help you out. :)
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97970 - bjoerngiesler - Sat Aug 12, 2006 4:58 pm

hogg wrote:
First Thank you for this cool app..
I keep getting a error saying "config file cant be found."
I made a text file pasted all info from your help file but i keep getting this error.
I know im doing something wrong.
Also whats a good ftp progam to use with this?
TIA


Where did you put the text file? (full path on the flash card) It should be /data/settings/ftp.conf. As a client, I'm using the command line ftp client that came with MacOS X. I'm sure such a thing exists for Windows as well.

#97978 - hogg - Sat Aug 12, 2006 5:29 pm

bjoerngiesler wrote:
hogg wrote:
First Thank you for this cool app..
I keep getting a error saying "config file cant be found."
I made a text file pasted all info from your help file but i keep getting this error.
I know im doing something wrong.
Also whats a good ftp progam to use with this?
TIA


Where did you put the text file? (full path on the flash card) It should be /data/settings/ftp.conf. As a client, I'm using the command line ftp client that came with MacOS X. I'm sure such a thing exists for Windows as well.



I put the text file on my scsd.What do you mean by full path?
Also I just pasted the info do I need to change anything there?
How do I make the text file into a config file?
Sorry for all the questions but I really want to get this working.
Thanks for your help and time.

#97980 - MaHe - Sat Aug 12, 2006 5:44 pm

For Windows, I recommend CuteFTP. :)
Also has a nifty option 'send FTP command'.
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97982 - kevinc - Sat Aug 12, 2006 5:52 pm

Why not the "ftp" command?
OK, it's console only, but you can find it in any Windows computer.
_________________
http://akzeac.blogspot.com

#97985 - MaHe - Sat Aug 12, 2006 6:11 pm

Wow, I wasn't aware of that.
Thanks!
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#97990 - ackix - Sat Aug 12, 2006 6:33 pm

Works great :)

Except i got the /Users/bjoern/Source/NintendoDS/DSFTP/arm9/source/BTCPServer.cpp[160]: accept(-1) failed (errno 22) error while transfering some files (MoonShell and its plugins).

Using it on a SuperCard SD.

#98009 - tekknosk8er - Sat Aug 12, 2006 7:23 pm

bjoerngiesler wrote:
Hi,

I'm releasing DSFTP 1.5. The following changes have been made:

    Multiple connections now allowed. Sending/receiving files is still handled via busy-loop, so while someone's sending/receiving, it's a no-go for the other users... but we're getting there. Sending is still very slow.


    No socket starvation any more (i.e. no hang after connection 32)

    Timeout for inactive connections

    Port range for passive-mode connections (good for firewall admins)

    Uses REIN's FAT library now, should work with SC SD? Please test.

    Lots more robustness changes.


Again, I'm letting it serve itself (at ftp://giesler.biz), which may crash or be very slow, so there's still the backup copy at http://giesler.biz/~bjoern/downloads/DSFTP-1.5.zip.

Have fun & report any bugs!



OK I am using a M3 Mini-SD 1gb sandisk, appears to be loading correctly

EController ready
Connection via WFC data
Searching. . .
Associating. . .
Unknown status 0!
Authenticating. . .
Associating. . .
Connected successfully!

but after the Connected successfully! it sits and waits for a connection. I added all the files mentioned in the pdf and I tried also changing the hostname to an valid IP range on my network.. I could not ping either, and tried connecting via CuteFTP could not connect to either.

What am I doing wrong? or is M3-mini SD buggy?

#98024 - KeitaroBaka - Sat Aug 12, 2006 8:32 pm

I suggest you to use a "DSFTP" folder because it messes with DSOrganize who search for a "data" folder before the "DSOrganize" folder.
But it's working great : just tested it with filezilla :D

#98028 - tekknosk8er - Sat Aug 12, 2006 8:49 pm

KeitaroBaka wrote:
I suggest you to use a "DSFTP" folder because it messes with DSOrganize who search for a "data" folder before the "DSOrganize" folder.
But it's working great : just tested it with filezilla :D


I am not using DSorganize just the M3's menu, and I cannot use a different directory because by default it looks for /data/settings/ftp.conf

#98031 - KeitaroBaka - Sat Aug 12, 2006 9:00 pm

Maybe you're not using DSOrganize, but think about those who are using it.

Last edited by KeitaroBaka on Sat Aug 12, 2006 10:19 pm; edited 1 time in total

#98035 - hogg - Sat Aug 12, 2006 9:13 pm

KeitaroBaka wrote:
Maybe you're not using DSOrganize, but think about those who are using it.



Care to give me a step-by-step?
I have tried all morning but it keeps saying config cant be found.
Right now this is how my sc dir is setup
\DATA\SETTINGS\ftp.conf.
I also placed the config file in the root dir.
Thanks for any help.

#98038 - bjoerngiesler - Sat Aug 12, 2006 9:49 pm

tekknosk8er wrote:
but after the Connected successfully! it sits and waits for a connection. I added all the files mentioned in the pdf and I tried also changing the hostname to an valid IP range on my network.. I could not ping either, and tried connecting via CuteFTP could not connect to either.


Sounds like your DS is at a different IP than you think it's at. You may want to try http://giesler.biz/~bjoern/downloads/DSFTP-1.6pre.zip, which displays the IP the DS is using at startup (thanks for the suggestion, dextor!).

#98039 - bjoerngiesler - Sat Aug 12, 2006 9:52 pm

hogg wrote:
I put the text file on my scsd.What do you mean by full path?


I mean that on the SD card there should be a directory called "data", in that directory there should be one called "settings", and that directory should contain the ftp.conf file. You should be OK with copying the example from the PDF file, but should probably change the user name / password :-)

EDIT: OK, just saw your last post. That's the way it should be... strange. Can you try to make the directory names lowercase (i.e. "data" instead of "DATA")? Not that it should matter on the non-case-sensitive FAT filesystem, but whatever...

#98040 - bjoerngiesler - Sat Aug 12, 2006 9:57 pm

MaHe wrote:
BTW, have you considered entering the NeoFlash compo?


With an almost-not-DS-specific-at-all mini app like this? I don't think so. Maybe when the client around it is done... where would I sign up?

#98044 - KeitaroBaka - Sat Aug 12, 2006 10:07 pm

lower or upper case doesn't change anything...

#98045 - MaHe - Sat Aug 12, 2006 10:09 pm

Well, it's worth a shot (on the Spring competition there was a reaction tester - press the A button as quickly as possible, I'd say it's was an hour of work ... -.-'). Even if you don't win anything, the Neo team usually gives out free stuff to all contestants (it was MK2 the last time). And this application is a lot better than these, IMO:
http://www.neoflash.com/forum/index.php/board,72.0.html

Just sign in, and post yours. Since you're using the REIN library, it supports MagicKey 2/3 by Neo, thus giving you extra points. You have to provide a screenshot (even a "cannot connect" message from emulator will do), the .nds file and a description. And you can update your entry until the 31st of August.

I wish you the best of luck! ;)

P.S.: You'll have to load this picture into your application or else, you'll be disqualified. Don't worry, you can remove it when the competition is over:
[Images not permitted - Click here to view it]

I suggest loading it onto the lower screen ...
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#98047 - doxtur - Sat Aug 12, 2006 10:21 pm

bjoerngiesler not at all :) i set now static IP, but anyway this can be usefull for other users )

i have troubles connecting DS from PC, using Far Manager, Total Commander, Internet Explorer, CuteFTP, WS_FTP, like this:

Quote:
STATUS:> Login successful.
COMMAND:> PWD
257 "/"
STATUS:> Home directory: /
COMMAND:> FEAT
501 Unhandled command 'FEAT'
STATUS:> This site doesn't support the 'features' command.
COMMAND:> REST 100
501 Unhandled command 'REST 100'
STATUS:> This site cannot resume broken downloads.
COMMAND:> TYPE A
200 Type set to A.
COMMAND:> PASV
227 Entering Passive Mode (1,51,160,227,35,40).
COMMAND:> NLST
STATUS:> Connecting ftp data socket 1.51.160.227:9000...
ERROR:> Can't connect to remote server. Socket error = #10060.


what settings should i use exactly?

Opera working just fine, but it doesn't support upload at all, download at 5 kb/s

i dream also about DS-specific simple Windows FTP-client, with drag&drop, BOOT and POWEROFF ) and so on

#98050 - tekknosk8er - Sat Aug 12, 2006 10:32 pm

bjoerngiesler wrote:
tekknosk8er wrote:
but after the Connected successfully! it sits and waits for a connection. I added all the files mentioned in the pdf and I tried also changing the hostname to an valid IP range on my network.. I could not ping either, and tried connecting via CuteFTP could not connect to either.


Sounds like your DS is at a different IP than you think it's at. You may want to try http://giesler.biz/~bjoern/downloads/DSFTP-1.6pre.zip, which displays the IP the DS is using at startup (thanks for the suggestion, dextor!).


Thanks bjoerngiesler!
The link you gave me....
http://giesler.biz/~bjoern/downloads/DSFTP-1.6pre.zip
Is totally working now! The IP address it gave me on startup I added as my HOSTNAME in the FTP.Conf file and is working nicely. Not sure why I was having trouble with it before.
Download speeds are slow as others mentioned 100kbs on avg. and about 145kbs peak speed. Let me know if you need something tested on a M3 mini-sd in the future.
I love this app and I cannot wait to see further developments!!! :)

M3 mini-SD
M3 NDS movie player
DSFTP 1.6pre
Latest Flashme Firmware

#98055 - hogg - Sat Aug 12, 2006 10:58 pm

Dont know what Im doing wrong:(
It keeps saying cant find config file after i paste from the pdf what should i name the file?
Should it be text file or config file? If config how do i make a text file into a config file?
Hope it make sense:(
Thanks

#98058 - TheRain - Sat Aug 12, 2006 11:13 pm

Does this support WEP?? I couldn't find any info on whether it did or not... i also can't seem to find out how to configure what access point it's using...

Thanks,

collin

#98060 - tekknosk8er - Sat Aug 12, 2006 11:20 pm

hogg wrote:
Dont know what Im doing wrong:(
It keeps saying cant find config file after i paste from the pdf what should i name the file?
Should it be text file or config file? If config how do i make a text file into a config file?
Hope it make sense:(
Thanks


What Card/Flash card are you using? These instructions should would with M3 SD, mini-SD and CF (i think)
Also I recommend using this version DSFTP If your using SD or mini-sd or flash. http://giesler.biz/~bjoern/downloads/DSFTP-1.6pre.zip


ok here is what ya need to do step by step.
make sure you have the following files/directories in the root of your card
These files and directories do not exist so you must create them yourself

/data/logs/ftp.txt
/data/settings/ftp.conf
/ftp/motd.txt

put the DSFTP.ds.gba or DSFTP.nds in the root.

Your /data/settings/FTP.conf file should contain the following
***********************************
motd /ftp/motd.txt
logfile /data/logs/ftp.log
loglevel 4
hostname "your IP address your DS is using"
timeout 60
portrangestart 1
portrangeend 9999

user "your username"
pass "your password"
root /
home /
write true
boot true
end user

user anonymous
root /ftp/anonymous
write false
end user
**************************************
I am using CuteFTP with no problems.
These are the settings I am using which is almost identical to the PDF... cannot make it simpler than that. :)

#98062 - tekknosk8er - Sat Aug 12, 2006 11:22 pm

TheRain wrote:
Does this support WEP?? I couldn't find any info on whether it did or not... i also can't seem to find out how to configure what access point it's using...

Thanks,

collin


I am using DHCP, 128bit WEP, and no SSID broadcast.
Works like a charm, just go into the DS's WIFI settings by using a game like Tetris DS and change you settings, this is where it draws info from I believe.

#98064 - TheRain - Sat Aug 12, 2006 11:37 pm

tekknosk8er wrote:
TheRain wrote:
Does this support WEP?? I couldn't find any info on whether it did or not... i also can't seem to find out how to configure what access point it's using...

Thanks,

collin


I am using DHCP, 128bit WEP, and no SSID broadcast.
Works like a charm, just go into the DS's WIFI settings by using a game like Tetris DS and change you settings, this is where it draws info from I believe.


Great! Working now. Thanks so much!

Oh and thanks to bjoern who made it ! ;)

#98104 - doxtur - Sun Aug 13, 2006 7:58 am

i solve my problem, just use

Quote:
portrangestart 9999
portrangeend 9999


and it's working now

now we need auto-sleep mode with both screens turned off, and that is all :)

#98112 - doxtur - Sun Aug 13, 2006 9:36 am

well, my SD (Supercard SD) seems dead now - after almost finished upload of 120 mbytes .dpg to DSFTP it stops, i cancel upload after 2-3 minutes - and turn off DS, now i can't read SD at all, and can't format it too - i wonder that should i do now to fix it?

#98120 - bjoerngiesler - Sun Aug 13, 2006 10:21 am

OK. Whoever just stored NG4072.MP3 with my user account and my password on my DSFTP server, coming from 24.238.76.148.res-cmts.sth.ptd.net at about 11:10h CET:

Admirable feat. I just checked my logs and found that they claim that no-one but me coming from my own machine has ever accessed the ftp.conf file. Please PM or email me and inform me how you obtained my password, so that I can fix that leak. If you do so, I promise forget all about this matter and purge all records of it happening. I give you until this evening at 8:00pm CET (that is in 8:45h) to contact me before I take further steps (with which I'm sure both PenTeleData, Inc and Tucows will prove very cooperative).

For everyone else: This means the FTP server goes off the net until the leak is fixed and crypted passwords are implemented.

#98122 - kevinc - Sun Aug 13, 2006 11:21 am

bjoerngiesler wrote:
(with which I'm sure both PenTeleData, Inc and Tucows will prove very cooperative).


Somehow I doubt it. You're gonna call, give an IP and ask for the real name? Send a strongly worded letter?
_________________
http://akzeac.blogspot.com

#98123 - MaHe - Sun Aug 13, 2006 11:36 am

It's apparently coming from the USA?
Anyways - ask the admins here - they have a list of all IPs.
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#98125 - bjoerngiesler - Sun Aug 13, 2006 11:46 am

kevinc wrote:
Somehow I doubt it. You're gonna call, give an IP and ask for the real name? Send a strongly worded letter?


Well, we had a hack (rootkit) attempt at my institute a couple of years ago. (At the Univ of Karlsruhe, BTW :-)) We contacted the guy's ISP, and he ended up getting arrested.

We dropped the charges after that, he was a complete newbie who had downladed a root kit script from somewhere, and the thing didn't even work because our box had the wrong libc. :-) But yes, hacking is seen as a rather serious crime both in the US and here, and many ISPs are very eager to keep a clean shop.

#98131 - kevinc - Sun Aug 13, 2006 1:22 pm

bjoerngiesler wrote:
kevinc wrote:
Somehow I doubt it. You're gonna call, give an IP and ask for the real name? Send a strongly worded letter?


Well, we had a hack (rootkit) attempt at my institute a couple of years ago. (At the Univ of Karlsruhe, BTW :-)) We contacted the guy's ISP, and he ended up getting arrested.


You worked at the Fridericiana? Cool! Which institute? A friend of mine works for the CIP-Pool, he tells me guys are pretty much clueless there.
_________________
http://akzeac.blogspot.com

#98132 - bjoerngiesler - Sun Aug 13, 2006 1:23 pm

kevinc wrote:
You worked at the Fridericiana? Cool! Which institute? A friend of mine works for the CIP-Pool, he tells me guys are pretty much clueless there.


At the ITEC, chair of Prof. Dillmann (IAIM).

#98133 - bjoerngiesler - Sun Aug 13, 2006 1:32 pm

OK, crypted passwords aren't in yet... but I've made some small improvements which merit a small release bump:

o IP address now displayed upon startup
o Screensaver with wake-on-log and lid-closing functions (press any key to wake up)
o POWR command added to power the DS off (hi MaHe :-))
o Bottom display disabled
o Version display and other cosmetics
o Some more bugs fixed

Due to the hack attempt described above, download is temporarily only at http://giesler.biz/~bjoern/downloads/DSFTP-1.6.zip.

Have fun & report bugs!

#98161 - A2hok - Sun Aug 13, 2006 7:38 pm

it notes that is has an FTP connection on the DS but on cuteFTP it is stuck on connecting... any ideas

EDIT: sorted (made a directory anonymous in ftp dir) Although now I get a problem saying
Quote:
/Users/bjoern/Source/NintendoDS/DSFTP/arm9/source/BTCPServer.cpp[160]: accept(-1) failed (errno 22

_________________
White DS --- Supercard SD --- Passcard ---
-------www.ugames.tk--------
[url="http://www.oxado.com/?origin=pub88742"]Webmasters, make money displaying Oxado contextual ads![/url]

#98175 - bjoerngiesler - Sun Aug 13, 2006 8:32 pm

A2hok wrote:
Although now I get a problem saying
Quote:
/Users/bjoern/Source/NintendoDS/DSFTP/arm9/source/BTCPServer.cpp[160]: accept(-1) failed (errno 22


What version are you using? That one should be fixed...

#98192 - m2pt5 - Sun Aug 13, 2006 11:56 pm

On Supercard SD, DSFTP is reporting every folder to have the same contents as the root folder.
_________________
Don't sign your posts, it's dumb.

#98199 - Joshtek - Mon Aug 14, 2006 1:12 am

m2pt5 wrote:
On Supercard SD, DSFTP is reporting every folder to have the same contents as the root folder.

Indeed. I can confirm with the latest version and Supercard SD (not mini).

#98200 - MasterMan - Mon Aug 14, 2006 1:14 am

Hi, firstly, thanks for this app.

But, are you telling me i can boot DSFTP.NDS on my DS, and using a FTP client on my windows xp machine i can access it, send and retrieve files from the CF/SD media via wi-fi?

Sorry, i don't get it right. So what's you FTP adress for?

#98201 - Dan2552 - Mon Aug 14, 2006 1:21 am

MasterMan wrote:
Hi, firstly, thanks for this app.

But, are you telling me i can boot DSFTP.NDS on my DS, and using a FTP client on my windows xp machine i can access it, send and retrieve files from the CF/SD media via wi-fi?
yes

Quote:
Sorry, i don't get it right. So what's you FTP adress for?

It was an example (it was being hosted by the creator's own DS)

#98216 - MasterMan - Mon Aug 14, 2006 4:41 am

Dan2552 wrote:
MasterMan wrote:
Hi, firstly, thanks for this app.

But, are you telling me i can boot DSFTP.NDS on my DS, and using a FTP client on my windows xp machine i can access it, send and retrieve files from the CF/SD media via wi-fi?
yes

Quote:
Sorry, i don't get it right. So what's you FTP adress for?

It was an example (it was being hosted by the creator's own DS)

Oh, i see. Thanks mate.

#98218 - tekknosk8er - Mon Aug 14, 2006 5:22 am

doxtur wrote:
well, my SD (Supercard SD) seems dead now - after almost finished upload of 120 mbytes .dpg to DSFTP it stops, i cancel upload after 2-3 minutes - and turn off DS, now i can't read SD at all, and can't format it too - i wonder that should i do now to fix it?


There is software out there that can recover cards.

#98226 - doxtur - Mon Aug 14, 2006 6:58 am

tekknosk8er wrote:
doxtur wrote:
well, my SD (Supercard SD) seems dead now - after almost finished upload of 120 mbytes .dpg to DSFTP it stops, i cancel upload after 2-3 minutes - and turn off DS, now i can't read SD at all, and can't format it too - i wonder that should i do now to fix it?


There is software out there that can recover cards.


what software? it's not reading at all in cardreaders, my PPC, even my camera can't format it :/ Kingmax suxx

#98229 - bjoerngiesler - Mon Aug 14, 2006 7:23 am

Joshtek wrote:
Indeed. I can confirm with the latest version and Supercard SD (not mini).


Strange -- MaHe confirmed (a bit further up this thread) that it worked perfectly with SCSD. MaHe, can you please try V1.6 and check if I broke something?

#98231 - A2hok - Mon Aug 14, 2006 7:33 am

bjoerngiesler wrote:
A2hok wrote:
Although now I get a problem saying
Quote:
/Users/bjoern/Source/NintendoDS/DSFTP/arm9/source/BTCPServer.cpp[160]: accept(-1) failed (errno 22


What version are you using? That one should be fixed...


I'm using version 1.6 on a Supercard SD
_________________
White DS --- Supercard SD --- Passcard ---
-------www.ugames.tk--------
[url="http://www.oxado.com/?origin=pub88742"]Webmasters, make money displaying Oxado contextual ads![/url]

#98233 - bjoerngiesler - Mon Aug 14, 2006 7:52 am

Please, can everyone who finds bugs in DSFTP get in touch with me via email? My address is on the DSFTP start screen. This thread is getting confusing. When you contact me, please include your hardware and version of DSFTP. Thanks!

#98242 - MaHe - Mon Aug 14, 2006 9:26 am

1.6 works flawlessly with my SuperCard miniSD ... :)
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#98319 - tekknosk8er - Mon Aug 14, 2006 5:41 pm

doxtur wrote:
tekknosk8er wrote:
doxtur wrote:
well, my SD (Supercard SD) seems dead now - after almost finished upload of 120 mbytes .dpg to DSFTP it stops, i cancel upload after 2-3 minutes - and turn off DS, now i can't read SD at all, and can't format it too - i wonder that should i do now to fix it?


There is software out there that can recover cards.


what software? it's not reading at all in cardreaders, my PPC, even my camera can't format it :/ Kingmax suxx


Is it reading it at all, does it give you any error message? Sometimes it will say something like drive not formatted and there are a couple other werid error messages... I will talk to my buddy that fixed his with a similar problem.

#98335 - tekknosk8er - Mon Aug 14, 2006 7:15 pm

doxtur wrote:
tekknosk8er wrote:
doxtur wrote:
well, my SD (Supercard SD) seems dead now - after almost finished upload of 120 mbytes .dpg to DSFTP it stops, i cancel upload after 2-3 minutes - and turn off DS, now i can't read SD at all, and can't format it too - i wonder that should i do now to fix it?


There is software out there that can recover cards.


what software? it's not reading at all in cardreaders, my PPC, even my camera can't format it :/ Kingmax suxx


I cannot remember the name of the software but here are a few "data recovery" programs that also work with damaged or fragmented cards. Hopefully this helps.

http://www.datarescue.com/photorescue/

http://www.lc-tech.com/software/rprowindetail.html

http://www.photo96.com/tr/dp/dir_01.htm

#98490 - bjoerngiesler - Tue Aug 15, 2006 4:21 pm

I've put up DSFTP 1.7 at http://giesler.biz/~bjoern/downloads/DSFTP-1.7.zip. Notable changes:

o Data connection handling now done from main loop. That means:
o (Slightly) faster RECV speed
o Receives and stores can now be interleaved with other client access
o ...and aborted, too.
o Some more bugfixes.

Please, as always, report any bugs here or (preferably) via email, and please include what client you're using, what your config is, and what the logfile says with loglevel set to 5! A simple "It doesn't work" is not enough information for me to help you...

Have fun!

#98504 - Dan2552 - Tue Aug 15, 2006 6:12 pm

using GBAMP

my settings are the same as the ones in the rtf

- works in windows explorer (uses MS Internet explorer i think)
- can browse with firefox (not write, this is normal)
- doesn't work in Fireftp (firefox addon), I get the message of the day, and thats about it


Last edited by Dan2552 on Tue Aug 15, 2006 6:28 pm; edited 1 time in total

#98506 - alecss - Tue Aug 15, 2006 6:19 pm

Nice app, good work. I can confirm it is working on my ds lite, with superkey, supercard lite (microsd version). I did put it through the homebrew patcher app, not sure if this was required, I just did it anyway.

#98509 - bjoerngiesler - Tue Aug 15, 2006 6:35 pm

Dan2552 wrote:
- doesn't work in Fireftp (firefox addon), I get the message of the day, and thats about it


All right. I just installed FireFTP (on MacOS X), and everything seems to work well. Could you:

o try the FireFTP connection with DSFTP 1.7, loglevel on 5 (if it isn't already),
o send it a POWR command (using the "Advanced" button),
o and mail me the log file?

Thanks a lot.

#98514 - Dan2552 - Tue Aug 15, 2006 7:08 pm

I can't used advanced command, its greyed out, because it disconnects after recieving the motd.

Quote:
accept() returned 2
** New FTP control connection 2

** FTP conn 2 from 192.168.0.5.
<- 220-Nintendo DS FTP server module V1.7
<- 220-(c)2006 Bjoern Giesler <bjoern@giesler.de>
<- 220-hi
<- 220
-> QUIT
<- 530 Not logged in.
Nothing to read -- close
** Closing control connection 2.
Closing conn.
Deleting 1 connections
Done deleting connections
Reaping 2.


note:the deleting connections thing only appeared AFTER closing fireftp...

#98516 - bjoerngiesler - Tue Aug 15, 2006 7:18 pm

Dan2552 wrote:
I can't used advanced command, its greyed out, because it disconnects after recieving the motd.

Quote:
accept() returned 2
** New FTP control connection 2

** FTP conn 2 from 192.168.0.5.
<- 220-Nintendo DS FTP server module V1.7
<- 220-(c)2006 Bjoern Giesler <bjoern@giesler.de>
<- 220-hi
<- 220
-> QUIT
<- 530 Not logged in.
Nothing to read -- close
** Closing control connection 2.
Closing conn.
Deleting 1 connections
Done deleting connections
Reaping 2.


note:the deleting connections thing only appeared AFTER closing fireftp...


Now lookahere. It's not letting you quit without being logged in. That's obviously a bug. No idea why FireFTP wants to quit in the first place, having just gotten cozy, but whatever. Please try out http://giesler.biz/~bjoern/downloads/DSFTP-1.8pre.zip and check again with that.

The deleting connections stuff is correct. Deletions are made from the main loop after a timeout to make sure the IP stack has done its magic.

#98518 - ArjanDotOrg - Tue Aug 15, 2006 7:23 pm

I know you don't want to hear this, but it doesn't work for me.
Also, there is not a logfile entry created, so I just can tell you exactly what I did.

Hardware used:

Supercard Lite
Sandisk MicroSD Ultra II
Passcard 3


Procedure:

Copied the DSFTP.nds file to the root of the microsd card
Created a folder called ftp and a folder called data in the root.
Created a txt-file called motd.txt in the folder called ftp.
In the folder data, created two folders: settings & logs.
Created a txt-file called ftp.log and put it in the logs-folder.
Created a txt-file called ftp.conf and put in in the settings-folder.

I copied the example configuration from the pdf/rtf to the ftp.conf file and changed:

Hostname 192.168.0.123
(Used Tetris DS and checked my router for the IP.)
User arjan
pass nds

That's it.

Now after powering on the DS, when I start DSFTP.nds from the Supercard menu, the bottom screen goes black, and the upper screen shows this text:

+-------------------------------------------------+
| Nintendo DS FTP server 1.7 |
| (c) 2006 Bjoern Giesler |
| <bjoernEMAIL@ADRESSgiesler.de> |
+-------------------------------------------------+


And that's it.
No flashing light showing WIFI is switched on, no further messages.
And the log isn't updated, so I can't figure out what's wrong.

I'd really like this server to work, because I hate to pull the microsd out every time (afraid it'll fall out after doing this often).


What to do?

Thank you very much for your help!

#98519 - bjoerngiesler - Tue Aug 15, 2006 7:52 pm

ArjanDotOrg wrote:
I know you don't want to hear this, but it doesn't work for me.


OK, for you it's hanging even before the Wifi init stage. To narrow things down, can you please also download the 1.8pre zip (just put up a new one), see at what stage it hangs exactly, and please send me an email after that?

Folks, I have a really hard time sorting out who reported what, for who it worked and who's having what kind of trouble on what kind of hard-/software combo. Please take it to email so I can archive the stuff! Thanks.

#98520 - MaHe - Tue Aug 15, 2006 7:56 pm

Have you patched the DSFTP.nds before putting it on the microSD?
I thought not.

http://scdev.org/files/patch_moomshell_for_sc.rar
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#98521 - bjoerngiesler - Tue Aug 15, 2006 7:58 pm

MaHe wrote:
Have you patched the DSFTP.nds before putting it on the microSD?
I thought not.


What does that patch do? Wouldn't it be better to write homebrew so it works without needing a patch?

#98525 - MaHe - Tue Aug 15, 2006 8:07 pm

Tell that to ROMMAN, the creator of SuperCard (Lite). SC Lite requires it's own FAT driver, though it only slighty different for the one for SD / miniSD, therefore they just released a patcher callec Moomshell ...

P.S.: I was talking to the guy having a problem - I'm not telling you to use it for every single release :)
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#98528 - ArjanDotOrg - Tue Aug 15, 2006 8:18 pm

Also tried the patched version (restart enabled), but then the file won't load (the loading counter keeps rolling digits).
I'll now try the 1.8pre, and will tell you in a few moments...

EDIT:

Bjoern, when I try to connect to your FTP (with Filezilla) it says:

Status: Connecting to www.giesler.biz ...
Error: Unable to connect!

#98529 - bjoerngiesler - Tue Aug 15, 2006 8:23 pm

MaHe wrote:
Tell that to ROMMAN, the creator of SuperCard (Lite). SC Lite requires it's own FAT driver, though it only slighty different for the one for SD / miniSD, therefore they just released a patcher callec Moomshell ...


Ah OK. That would explain the hang -- it'll probably die at the FAT initialization.

Quote:
P.S.: I was talking to the guy having a problem - I'm not telling you to use it for every single release :)


I know :-) Just wondering. Can't they just release the patch to the FAT lib in source, so it can be worked into REIN? Those SuperCard folks are weird.

#98530 - bjoerngiesler - Tue Aug 15, 2006 8:24 pm

ArjanDotOrg wrote:
I'll now try the 1.8pre, and will tell you in a few moments...


Do so, but do so via Email. Pretty please?

Quote:
Bjoern, when I try to connect to your FTP (with Filezilla) it says:

Status: Connecting to www.giesler.biz ...
Error: Unable to connect!


Sigh. Yes. If you follow this thread, you'll see that I took that down, and why.

#98532 - ArjanDotOrg - Tue Aug 15, 2006 8:25 pm

Found it, just edited the http link for v1.6pre....
I'll try it, and send you an email...


EDIT: Some more on screen data (initialising wifi/initialising filesystem), but that's it. I've send you a mail.

MaHe: Patching with the supercard 2,55c software without any options selected results in the same rolling digits at startup.

#98536 - ArjanDotOrg - Tue Aug 15, 2006 8:51 pm

alecss wrote:
Nice app, good work. I can confirm it is working on my ds lite, with superkey, supercard lite (microsd version). I did put it through the homebrew patcher app, not sure if this was required, I just did it anyway.


alecss, how dit you put it through the SC-patcher? I can't get the same hardware to work with DSFTP here!

What version of the patcher dit you use, and which options?

Thnx!

#98551 - Dan2552 - Tue Aug 15, 2006 10:52 pm

bjoerngiesler wrote:

Now lookahere. It's not letting you quit without being logged in. That's obviously a bug. No idea why FireFTP wants to quit in the first place, having just gotten cozy, but whatever. Please try out http://giesler.biz/~bjoern/downloads/DSFTP-1.8pre.zip and check again with that.


Same results :(

#98552 - bjoerngiesler - Tue Aug 15, 2006 11:02 pm

Dan2552 wrote:
Same results :(


It's still saying "530 Not logged in" in response to the QUIT? I don't believe that... could you mail me your new log?

#98554 - MaHe - Tue Aug 15, 2006 11:18 pm

ArjanDotOrg wrote:
alecss wrote:
Nice app, good work. I can confirm it is working on my ds lite, with superkey, supercard lite (microsd version). I did put it through the homebrew patcher app, not sure if this was required, I just did it anyway.
alecss, how dit you put it through the SC-patcher? I can't get the same hardware to work with DSFTP here! What version of the patcher dit you use, and which options? Thnx!
D'oh! You have to use Moomshell homebrew patcher. I even provided an URL on the 8th page ...
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#98559 - Dan2552 - Tue Aug 15, 2006 11:52 pm

bjoerngiesler wrote:
Dan2552 wrote:
Same results :(


It's still saying "530 Not logged in" in response to the QUIT? I don't believe that... could you mail me your new log?


I don't recall it saying that the 1st time..

[edit]
I see it now, let me check if the 530 is gone..

#98567 - ArjanDotOrg - Wed Aug 16, 2006 1:58 am

MaHe wrote:
D'oh! You have to use Moomshell homebrew patcher. I even provided an URL on the 8th page ...


While it's late, I've finally got it working.
It seems - and I didn't know that before - that a homebrew application like DSFTP.nds needs a special Supercard program called 'Moonshell Patcher', to make it work.

After I ran the file through this patcher, everything worked great!
Although I read the forum more than once to see if I'd missed something, I didn't see anyone mentioning Moonshell Patcher before.
I kept looking and reading and all of a sudden I read MaHe's message again:

//// Have you patched the DSFTP.nds before putting it on the microSD?
//// I thought not.
//// http://scdev.org/files/patch_moomshell_for_sc.rar

First I was thinking he meant the Supercard Patcher Software v2,55c, but he actually was pointing me at the moonshell patcher. He even provided the link (already had the software though, bundled with the latest 2.55c drivers).
Too bad (not to mention stupid :]) I oversaw that, would have saved a lot of reading and surfing.

But anyway thank you all very much for your help !!!

#98668 - doedill - Wed Aug 16, 2006 9:48 pm

A suggestion?

Could you make the Data folder reside in another folder or rename it?

Cause it causes conflict with DSOrganizer. DSOrganizer views it as it's own Data folder and then recreates all necessary folders/files onto /root and Data folder.

#98673 - bjoerngiesler - Wed Aug 16, 2006 10:14 pm

doedill wrote:
Could you make the Data folder reside in another folder or rename it?

Cause it causes conflict with DSOrganizer.


Well, we had the discussion about the name of a top-level data folder on here a week or so past, and everyone settled on "/data". Besides, DSOrganize on my DS put its "DSOrganize" folder inside /data, which works quite nicely.

#98694 - Rion - Thu Aug 17, 2006 12:17 am

Im getting a max transfer speed of 35kb/s using FlashFXP

The Nintendo DS has 2mbit support.

Can't wait to break the 200kb/s+ mark

#98712 - Lick - Thu Aug 17, 2006 12:57 am

Dswifi is pretty limited still, but it's going to get better with the next release. (I expect it to arrive within 3 weeks)
_________________
http://licklick.wordpress.com

#101803 - Teddy - Fri Sep 08, 2006 4:21 am

I'm having trouble compiling this using DSFTP v2.0 and the latest devkitpro (using 1.3.5 updater). It's missing alot of functions in the .a files, anyone else get this problem?

I wanted to recompile it to work with chishm's latest (pre-release) libfat, as it works with my M3 SD card quite well.. but I take it these changes would need to be applied to the ftp core files in that .a?

Looks like a great app btw :-)

#101827 - bjoerngiesler - Fri Sep 08, 2006 8:02 am

[quote="Teddy"]I'm having trouble compiling this using DSFTP v2.0 and the latest devkitpro (using 1.3.5 updater). It's missing alot of functions in the .a files, anyone else get this problem?[quote]

What is it missing exactly? Could you contact me via e-mail?

Quote:
I wanted to recompile it to work with chishm's latest (pre-release) libfat, as it works with my M3 SD card quite well.. but I take it these changes would need to be applied to the ftp core files in that .a?


Not if the interface hasn't changed... i.e. if the FAT_fopen etc. are still there.
_________________
DSFTP homepage

#101829 - Teddy - Fri Sep 08, 2006 8:27 am

bjoerngiesler wrote:
Not if the interface hasn't changed... i.e. if the FAT_fopen etc. are still there.
Ah, i think that's the problem. The new libfat uses standard i/o commands (eg. fopen instead of FAT_fopen). I'll email you the details

#101842 - MaHe - Fri Sep 08, 2006 10:15 am

bjoern: Have you picked your prize for NeoFlash? Told ya it was worth it ^_^
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#101853 - bjoerngiesler - Fri Sep 08, 2006 12:24 pm

MaHe wrote:
bjoern: Have you picked your prize for NeoFlash? Told ya it was worth it ^_^


Yup, thanks for the advice. No, I haven't been contacted by the Neoflash people yet; not sure what to pick, either. I won't participate there again, though. Their refereeing process is seriously broken.
_________________
DSFTP homepage

#101865 - Teddy - Fri Sep 08, 2006 2:15 pm

call off the hunt, DSFTP v2.0 works on my M3 SD! I was (stupidly) using the wrong version, it's working and it's awesome!

#101871 - bjoerngiesler - Fri Sep 08, 2006 3:23 pm

Teddy wrote:
call off the hunt, DSFTP v2.0 works on my M3 SD! I was (stupidly) using the wrong version, it's working and it's awesome!


Alright! Good to hear that. Consider donating? (nudge nudge :-))
_________________
DSFTP homepage

#102100 - okidokiss - Sun Sep 10, 2006 9:24 pm

Hi PPL,

I've read all this topic, but still can't connect my DS

I'm using
Max Media Launcher + Supercar SD 2.55c with latest firm.
I launch the program as I get a nice picture in top screen and I see the FTP screen in below. At the bottom of the screen the message "Searching access point"

Seems that DSFTP can't find my wireless router. I've tried with tetris and my wireless connection works great (Wep 128bit, no SSID).

Se ... here I am, looking for some help from you guys.

Thank you
Okidokiss!

#102111 - MaHe - Sun Sep 10, 2006 11:16 pm

bjoerngiesler wrote:
Yup, thanks for the advice. No, I haven't been contacted by the Neoflash people yet; not sure what to pick, either. I won't participate there again, though. Their refereeing process is seriously broken.
http://www.neoflash.com/forum/index.php/topic,3149.0.html

You have to send them an email ... BTW, that's the list of choices you have:
Quote:
NEO CF/MD/HD 3in1 USB reader [US$39.00]
NEO2-TF Flash Cart [US$69.00]
NEO2-SD Flash Cart [US$69.00]
NEO2 Lite 256M Flash Cart [US$59.00]
NEO MK4-mini for nds & nds lite [US$49.00]
Neo mini 2in1 convertor [US$79.00]
Neo 4in1 Mini PSP convertor (support SD/MMC/CF/MicroDrive) [US$89.00]
NEO 8in1 PSP pad (support SD/MMC/CF/MicroDrive) [US$99.00]
NEO Super SNK MVS convertor [US$299.00]
Super SNK AC adaptor [US$39.00]
Neo PC-Engin 64M Flash [US$109.00]
MagicKey3 512M+128M [US$89.00]
MagicKey3 256M+64M [US$69.00]
Magic Key 2 [US$39.00]
Magic Key 1 [US$39.00]
NEO FLash cart 512M [US$69.00]

_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#102156 - bjoerngiesler - Mon Sep 11, 2006 9:12 am

okidokiss wrote:
Hi,I launch the program as I get a nice picture in top screen and I see the FTP screen in below. At the bottom of the screen the message "Searching access point"


Strange, never seen that one before. Do you have trouble connecting with other homebrew Wifi software (beup, DSIRC, DSOrganize)?
_________________
DSFTP homepage

#102195 - okidokiss - Mon Sep 11, 2006 6:52 pm

bjoerngiesler wrote:
okidokiss wrote:
Hi,I launch the program as I get a nice picture in top screen and I see the FTP screen in below. At the bottom of the screen the message "Searching access point"


Strange, never seen that one before. Do you have trouble connecting with other homebrew Wifi software (beup, DSIRC, DSOrganize)?


Never tried, games work fine.
Don't know what else to do :(

#102201 - bjoerngiesler - Mon Sep 11, 2006 7:20 pm

okidokiss wrote:
Never tried, games work fine.
Don't know what else to do :(


1. try a different wifi-enabled homebrew app & see if that works.
2a. if it does, contact me via email, I'll mail you a release with more debug output so we can see what's going wrong.
2b. if it doesn't, we'll ask sgstair :-)
_________________
DSFTP homepage

#102202 - Lick - Mon Sep 11, 2006 7:24 pm

A general solution: Make sure WiFi profile #1 (the leftmost one in commercial games) works. If it doesn't, configure a working connection on that profile.

If nothing works, go here!
_________________
http://licklick.wordpress.com

#102203 - okidokiss - Mon Sep 11, 2006 7:30 pm

bjoerngiesler wrote:
okidokiss wrote:
Never tried, games work fine.
Don't know what else to do :(


1. try a different wifi-enabled homebrew app & see if that works.
2a. if it does, contact me via email, I'll mail you a release with more debug output so we can see what's going wrong.
2b. if it doesn't, we'll ask sgstair :-)


Can you advice some of the homebrew app ? maybe some links?

#102204 - bjoerngiesler - Mon Sep 11, 2006 7:36 pm

okidokiss wrote:
Can you advice some of the homebrew app ? maybe some links?


Erm. DSOrganize, for example, at http://www.dragonminded.com/?loc=ndsdev/DSOrganize, or just the Wifi lib test at http://akkit.org/dswifi/. Or use Google, or this very forum. Sheesh.
_________________
DSFTP homepage

#102205 - MaHe - Mon Sep 11, 2006 8:03 pm

okidokiss: Suppose you're using the Nintendo WiFi USB adapter?
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]

#102213 - okidokiss - Mon Sep 11, 2006 9:06 pm

MaHe wrote:
okidokiss: Suppose you're using the Nintendo WiFi USB adapter?


No. This DS does not need that.

#102626 - okidokiss - Fri Sep 15, 2006 7:46 pm

bjoerngiesler wrote:
okidokiss wrote:
Can you advice some of the homebrew app ? maybe some links?


Erm. DSOrganize, for example, at http://www.dragonminded.com/?loc=ndsdev/DSOrganize, or just the Wifi lib test at http://akkit.org/dswifi/. Or use Google, or this very forum. Sheesh.


I've tried DSorganize, but ... can't run this program also :(
Just got a green screen with something about initializing, nothing more.

:(