Author Topic: NDS APP - DSFTP 1.9  (Read 40534 times)

0 Members and 1 Guest are viewing this topic.

Offline bjoerngiesler

  • Newbie
  • *
  • Posts: 10
NDS APP - DSFTP 1.9
« on: August 19, 2006, 05:02:23 AM »
DSFTP 1.9 by Björn Giesler <bjoern_AT_giesler.de>

Description

DSFTP is a stand-alone program that you can use to run a FTP server on your DS. It enables you to transfer files over the network from and to your flash card.

It is also a software component that makes it easy for you to add an FTP server to your own program with a couple lines of code. With this, you can speed up the build process radically, because you can upload the new version of your program to your own running program, and reboot it immediately. This can even be automated via the command line. No swapping of flash cards ever again!

Supported hardware

DSFTP has been tested on SuperCard, M3 and GBAMP. It uses REIN's FAT library, so it should also work with MagicKey 2/3. Booting is currently only supported on SuperCard.

Download

The zip file at http://giesler.biz/~bjoern/downloads/DSFTP-1.9.zip contains the following:

  • the stand-alone DSFTP program as .ds.gba and .nds
  • the libDSFTP library and headers to integrate an FTP server into your own program
  • full user and developer documentation
  • full sourcecode for the stand-alone DSFTP program, supplied as an example of how to use the library

Usage as stand-alone server

To use DSFTP as a stand-alone server, a configuration file must be created at /data/settings/ftp.conf. Here is an example config file:

Code: [Select]
# Message of the day, displayed on connect
motd /ftp/motd.txt
# Where to store the log file
logfile /data/logs/ftp.log
# Log up to which level? (0-5)
loglevel 4

# Activate screensaver after 30 seconds
screensaver 30
# Wake screensaver up upon log message
wakeonlog false

# Define a new user: password, root/home, whether writing and booting is allowed
user bjoern
pass whatever
root /
home /
write true
boot true
end user

user anonymous
root /ftp/anonymous
write false
end user

Once the config file exists, DSFTP can be started. Now you can connect to your DS with FireFTP, Internet Explorer, command-line FTP, ...

Usage as software component

Using DSFTP in your own software is very simple. The gist is (wrapped into a mainloop() function for simplicity):

Code: [Select]
   
void mainloop(void)
   {
      BFTPServer server;

      // if you want to use a config file...
      BFTPConfigurator configurator(&server);
      configurator.configureFromFile("/data/settings/ftp.conf");

      // or if you want to add users by hand...
      server.addUser("myusername", "mypassword");

      while(true)
      {
         // your own mainloop stuff
         // ...
         server.handle();
         swiWaitForVBlank();
      }
   }

Please refer to the documentation and DSFTP source code for details.

Screenshot

« Last Edit: August 19, 2006, 01:35:10 PM by bjoerngiesler »

Offline retrohead

  • Jr. Member
  • **
  • Posts: 85
    • DS-Scene
Re: NDS APP - DSFTP 1.9
« Reply #1 on: August 19, 2006, 06:52:08 AM »
File needs to be attached to post  ::sm-05::

Does anyone look at the rules hahahaha Nice application btw  ::sm-12.gif::

Online Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
Re: NDS APP - DSFTP 1.9
« Reply #2 on: August 19, 2006, 11:48:42 AM »
hum... very good APP indeed...  ::sm-18.gif::

but you have to upload your file to here. ::sm-03::
In my world,have 0 and 1 only ......Matrix World......

Offline bjoerngiesler

  • Newbie
  • *
  • Posts: 10
Re: NDS APP - DSFTP 1.9
« Reply #3 on: August 19, 2006, 01:36:17 PM »
Sorry for that. Added the files to the original post.

Offline tooonyo

  • Newbie
  • *
  • Posts: 1
Re: NDS APP - DSFTP 1.9
« Reply #4 on: August 19, 2006, 06:01:18 PM »
I think tis is the most useful homebrew app tht has ever been created , with DSorganize, a huge "thank you" for this app  ::sm-18.gif::

Offline Gwoin

  • Newbie
  • *
  • Posts: 28
    • CodeArtex
Re: NDS APP - DSFTP 1.9
« Reply #5 on: August 19, 2006, 07:11:54 PM »
Cool.

It seems to be a very useful component. :)

Offline sumiguchi

  • Jr. Member
  • **
  • Posts: 83
    • sumiguchi
Re: NDS APP - DSFTP 1.9
« Reply #6 on: August 21, 2006, 01:06:48 PM »
For sure this is a killer app!! Thanks!  ::sm-29.gif::

Offline MacGyver

  • Newbie
  • *
  • Posts: 1
Re: NDS APP - DSFTP 1.9
« Reply #7 on: August 21, 2006, 04:13:38 PM »
Very promising app!

What are the requirements on the PC side?
Does one need a Ralink RT2560 Device and the modified drivers,
or is every Wlan-Card good for it?

What settings are needed, WEP-WPA AdHoch ect. ?

I ask, because I don't get a connection from the NDS side.

Thanx
  MacGyver


Offline bjoerngiesler

  • Newbie
  • *
  • Posts: 10
Re: NDS APP - DSFTP 1.9
« Reply #8 on: August 22, 2006, 12:57:10 AM »
What are the requirements on the PC side?
Does one need a Ralink RT2560 Device and the modified drivers,
or is every Wlan-Card good for it?

What settings are needed, WEP-WPA AdHoch ect. ?

I ask, because I don't get a connection from the NDS side.

You don't need anything special, just a regular WLAN access point that your DS can connect with. DSFTP uses the current default settings for the DS Wifi connection (meaning the ones you last selected when playing a commercial game online). If you can play online, you should be able to use DSFTP.


Please send me an email (the address is on the DSFTP screen) containing:

  • what you see on your screen (photo is best!)
  • what exactly you're doing to connect (i.e. FTP client and version, operating system, etc.)
  • the contents of your ftp.conf
  • the contents of your ftp.log

Offline crowba

  • Newbie
  • *
  • Posts: 6
Re: NDS APP - DSFTP 1.9
« Reply #9 on: August 22, 2006, 08:50:19 AM »
i just get like 20k/s is that a normal speed ? NDS is laying directly infront of the wifi router

Offline sumiguchi

  • Jr. Member
  • **
  • Posts: 83
    • sumiguchi
Re: NDS APP - DSFTP 1.9
« Reply #10 on: August 22, 2006, 09:49:24 AM »
 I am geting about 37KB/s ...this is a terrific app!! ::sm-29.gif::

I am using FireFTP plugin for firefox.

Offline actjay

  • Newbie
  • *
  • Posts: 1
Re: NDS APP - DSFTP 1.9
« Reply #11 on: August 23, 2006, 12:30:55 AM »
Hello, maybe i missed something but i uncompressed evrything, put all fader and files on the MSD card, set the conf file, lauched and it says i can't connect. (it put the whole folder on the root of the MicroSD.
i played on network with orginial card and no problem. Can you help me ?

Offline bjoerngiesler

  • Newbie
  • *
  • Posts: 10
Re: NDS APP - DSFTP 1.9
« Reply #12 on: August 23, 2006, 12:43:47 AM »
Can you help me ?

If you send me an email (the address is on the DSFTP screen) containing:

  • what you see on your screen (photo is best!)
  • what exactly you're doing to connect (i.e. FTP client and version, operating system, etc.)
  • the contents of your ftp.conf
  • the contents of your ftp.log

maybe I can. Otherwise, probably not.

Offline Snuk the Great

  • Newbie
  • *
  • Posts: 19
Re: NDS APP - DSFTP 1.9
« Reply #13 on: August 23, 2006, 07:37:46 PM »
I think I found a bug. I am not sure why, but when I trie to connect with an FTP app and it asks for the directorys on root, it gives all dirs and files, but it forgets the first letter. The case of that letter does not seem to make a difference.

[EDIT]
Oke, this is not your fault, but the FTP clients fault.
[/EDIT]
« Last Edit: August 23, 2006, 07:45:26 PM by Snuk the Great »

Offline zanysmash

  • Newbie
  • *
  • Posts: 6
Re: NDS APP - DSFTP 1.9
« Reply #14 on: August 23, 2006, 11:17:39 PM »
Hey!

First I'd like to thank bjoerngiesler for his great app!

Just to know, anyone has been able to successfully run this app on Supercard Lite ?

Got a problem if i want to upload/download a file (file dissapearing at end of transfert, both client and server side) + can't change directory (only root directory is showing correctly, while trying to change, ftp client is telling me that it has not been able to open a passive port).

By the way, my ftp client (filezilla) is correctly configured as i can connect to another ftp that's only working with PASV ports.

ftp.conf is same as original

Thanks by advance