| View previous topic :: View next topic |
| Author |
Message |
pspkrazy
Joined: 04 Jul 2005 Posts: 49
|
Posted: Tue Jul 05, 2005 8:22 am Post subject: ftp server |
|
|
I've done a little ftp server for the psp to upload files without any cable.
You can find it here (with sources): http://www.amoks.com/?rep=extra
Hope it can be usefull. |
|
| Back to top |
|
 |
Guyfawkes
Joined: 10 May 2005 Posts: 9
|
|
| Back to top |
|
 |
wyrmwood
Joined: 05 Jul 2005 Posts: 1
|
Posted: Tue Jul 05, 2005 10:23 am Post subject: |
|
|
It stays at "looking at DHCP server" for me. I've left it for about 20 minutes, the wireless indicator is still blinking though. How long does it take?
Great release, though! I've been looking for something like this. |
|
| Back to top |
|
 |
heinrich
Joined: 27 Mar 2005 Posts: 1
|
Posted: Tue Jul 05, 2005 10:44 am Post subject: |
|
|
Great job on this pspkrazy.
@wyrmwood, the readme states: "IP adresses must be static." |
|
| Back to top |
|
 |
RATiX
Joined: 30 Apr 2005 Posts: 48
|
Posted: Tue Jul 05, 2005 10:59 am Post subject: |
|
|
| wyrmwood, set the PSP's IP address manually. |
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Tue Jul 05, 2005 12:31 pm Post subject: |
|
|
Hi, thks for your work .
Is it normal that i dont see file's weight and that i can download any file ? |
|
| Back to top |
|
 |
Pacote
Joined: 05 Jul 2005 Posts: 3
|
Posted: Tue Jul 05, 2005 12:48 pm Post subject: |
|
|
Well on the psp it works fine... i get the CONNECTED screen with the url and all...
But when i try to use the IP with Flashfxp (user and login and port 21) i got connection timed out
There is something i need to config on the router first?
Using a WRT54G |
|
| Back to top |
|
 |
pspkrazy
Joined: 04 Jul 2005 Posts: 49
|
Posted: Tue Jul 05, 2005 5:43 pm Post subject: DHCP |
|
|
It must not say "DHCP connection".
You have to configure your network with static IPs.
(Somewhere in the connection configuration of the PSP it says "advanced".)
If it is stalled, reboot your PSP (long pression on power button).
Pacote, i don't know. I got a friend who owns a WRT54G. I will try (this evening).
Maybe it is a network problem (misconfiguration of IP's, firewall or NAT).
Maybe the WRT54G is sending commands to the PSP ftp and some are not understood.
You can try to use ethereal, recording the connection.
Send me the ethereal log if you want me to help. |
|
| Back to top |
|
 |
Pacote
Joined: 05 Jul 2005 Posts: 3
|
Posted: Tue Jul 05, 2005 6:13 pm Post subject: Re: DHCP |
|
|
| pspkrazy wrote: | It must not say "DHCP connection".
You have to configure your network with static IPs.
(Somewhere in the connection configuration of the PSP it says "advanced".)
If it is stalled, reboot your PSP (long pression on power button).
Pacote, i don't know. I got a friend who owns a WRT54G. I will try (this evening).
Maybe it is a network problem (misconfiguration of IP's, firewall or NAT).
Maybe the WRT54G is sending commands to the PSP ftp and some are not understood.
You can try to use ethereal, recording the connection.
Send me the ethereal log if you want me to help. |
if you explain to me how to use ethereal i will be more then glad to record it...
Its strange that i got connected one time with cuteftp but then when i tried to enter a folder it got disconnected and then never again...
With the psp configuration i can download the update and the program works fine too... the connected screen with the ftp://psp.... adress and all...
but my computer just doesnt find the adress... |
|
| Back to top |
|
 |
pspkrazy
Joined: 04 Jul 2005 Posts: 49
|
Posted: Tue Jul 05, 2005 7:51 pm Post subject: cuteftp ? |
|
|
It seems to be a problem most related to cuteftp.
The ethereal log will help me a lot.
So to use ethereal :
- download it (with winpcap driver 3.0)
- install it! :)
- click on the "Capture" menu. Choose "Interfaces..."
- click on "Prepare" for your ethernet card.
- in "Capture Filter" type: host <ip of your PSP>
- click on the "Capture" button
- power on the psp and launch ftp server
- use your ftp client to connect to the psp
- in ethereal click on "Stop" when your done
- finally, save your capture "Save as..." with default options.
Thanks in advance |
|
| Back to top |
|
 |
Pacote
Joined: 05 Jul 2005 Posts: 3
|
Posted: Tue Jul 05, 2005 8:04 pm Post subject: Re: cuteftp ? |
|
|
Really dude... WTF?!
Just did that and when i used flashfxp to connect... IT CONNECTED!!!
What the hell ahuauau
working fine now :)
Transfer queue completed
Transferred 1 file totaling 1,19 MB in 3,91 seconds (338,6 KB/s) |
|
| Back to top |
|
 |
sch3rz0
Joined: 21 Jun 2005 Posts: 2 Location: Chicago, IL
|
Posted: Wed Jul 06, 2005 1:07 pm Post subject: |
|
|
I tried to connect through WebDrive since I thought that would be really cool. You know, like a total USB replacement. It got hung up while trying to get the directory listing of PSP directory. Here's a link to an Ethereal capture. When I saved it, it didn't give an extention and since I never used ethereal before, I don't know what the default ethereal extension is.
http://www.sch3rz0.com/PSPFTPwithWebDrive_2005-07-05 _________________ It's time to chew ass and kick bubble gum... and I'm all out of ass! |
|
| Back to top |
|
 |
theno23
Joined: 01 Jul 2005 Posts: 11 Location: Southampton, UK
|
Posted: Wed Jul 06, 2005 5:18 pm Post subject: |
|
|
To the author,
Nice work!
Are you interested in integrating the httpd code with your ftpd? I was hoping to find time to add an FTP thread and HTTP PUT, but I'm very busy.
Having both servers in one program would probably be more useful.
The httpd code is a real mess, sorry. You can catch me on the IRC channel during european office hours, username swh.
- Steve |
|
| Back to top |
|
 |
pspkrazy
Joined: 04 Jul 2005 Posts: 49
|
Posted: Wed Jul 06, 2005 7:45 pm Post subject: time... |
|
|
I do not have much time too.
But PSP is a great programming challenge.
I do not know how long i will pass playing with this little computer.
My priorities on this project are:
* finding why some clients like cuteftp and webdrive do not work
* cleaning up the code a little bit (see pspvnc it's clean!)
* adding threads
* making a working exit button
* real time status on psp screen
* logging/options...
* when finished, do another project => ideas: port of a real ftp server, ftp client, virtual keyboard library...
Questions...
1) Are you interrested in co-working ? I mean: I can put the code in a cvs/svn server.
2 ) Can you explain why, in your idea, it's better to have one program only ?
3) What is the problem with "exit button" ?
Anyways, thanks for your httpd, it helped me a lot. |
|
| Back to top |
|
 |
theno23
Joined: 01 Jul 2005 Posts: 11 Location: Southampton, UK
|
Posted: Wed Jul 06, 2005 8:05 pm Post subject: |
|
|
Sure, co-working would be great.
I have a CVS server at work we can use, but another one would be better.
I've some plans for the http implementation, including making it properly complaint with the rec., but I wont have time in the near future.
Mail me on steve at totl.net if you want to sort things out.
- Steve |
|
| Back to top |
|
 |
placasoft
Joined: 28 Mar 2005 Posts: 53
|
Posted: Wed Jul 06, 2005 9:32 pm Post subject: |
|
|
At first PSPKRAZY, NICE work!!!
Iīm a noob in programin, so I just played around with the src!
Now you can access "flash0:"
Grab it here :
http://www.psp-arena.de/files/ftp.zip
... but when change the host too "umd0:"( or disc0: umd1: .... ) this didnīt work, do you know why?
cYa
placa |
|
| Back to top |
|
 |
pspkrazy
Joined: 04 Jul 2005 Posts: 49
|
Posted: Wed Jul 06, 2005 10:08 pm Post subject: sources |
|
|
Please placasoft,
can you redistribute the sources with your program ?
For 2 reasons:
* it is a sample from 3 developpers now
* i do not have my psp here at work and i am interrested in your source code modification.
Thanx and good job anyway. |
|
| Back to top |
|
 |
Nick Fury
Joined: 22 Jun 2005 Posts: 45
|
Posted: Wed Jul 06, 2005 11:48 pm Post subject: |
|
|
| placasoft wrote: | At first PSPKRAZY, NICE work!!!
Iīm a noob in programin, so I just played around with the src!
Now you can access "flash0:"
Grab it here :
http://www.psp-arena.de/files/ftp.zip
... but when change the host too "umd0:"( or disc0: umd1: .... ) this didnīt work, do you know why?
cYa
placa |
I was curious about doing something like this myself. Pretty cool but please release the source. |
|
| Back to top |
|
 |
placasoft
Joined: 28 Mar 2005 Posts: 53
|
Posted: Thu Jul 07, 2005 12:32 am Post subject: Re: sources |
|
|
| pspkrazy wrote: | Please placasoft,
can you redistribute the sources with your program ?
For 2 reasons:
* it is a sample from 3 developpers now
* i do not have my psp here at work and i am interrested in your source code modification.
Thanx and good job anyway. |
Kay, give me just a hour, i will change a bit ;)
cYa
placa |
|
| Back to top |
|
 |
placasoft
Joined: 28 Mar 2005 Posts: 53
|
Posted: Thu Jul 07, 2005 2:41 am Post subject: |
|
|
Ok, the programm with src :
http://www.psp-arena.de/files/ftpf.zip
What I change is really simple!
In main.c I add :
| Code: |
int main(void)
{
sceIoUnassign("flash0:");
sceIoAssign("flash0:", "lflash0:0,0", "flashfat0:", 0, NULL, 0);
|
in ftp.c i add:
| Code: |
char root[]="flash0:";
|
in startup.s i add
| Code: |
STUB_FUNC 0xb2a628c1 sceIoAssign
STUB_FUNC 0x6d08a871 sceIoUnassign
|
Thats all!
But why it didnīt work when i just set
| Code: | | char root[]="umd0:" |
... but I will get it work! And Pspkrazy, can you add that I copy things from psp to PC ? Would be nice ;)
and last, a pic!
 |
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
|
| Back to top |
|
 |
mrdelayer
Joined: 10 Jul 2005 Posts: 16
|
Posted: Sun Jul 10, 2005 4:36 pm Post subject: |
|
|
hey pspkrazy...
i'm trying to use your LogPrintf() function for a program i am writing... didn't make that much of a modification to the code (just edited a var name to fit in with the rest of my crappy coding [that is, ambiguous and confusing])
| Code: | int LogPrintf(char *fmt, ...) {
va_list opt;
char buff[2048];
int bufsz;
va_start(opt, fmt);
bufsz = vsnprintf( buff, (size_t) sizeof(buff), fmt, opt);
sceIoWrite(file, buff, bufsz);
return 0;
} |
however, when i try to make, i get:
| Code: | | main.c:18: error: initializer element is not constant |
any ideas? :|
EDIT: oops. turns out your code wasn't the problem. disregard this entire post please :D |
|
| Back to top |
|
 |
squiggle
Joined: 26 Jun 2005 Posts: 9
|
Posted: Sun Jul 10, 2005 9:00 pm Post subject: |
|
|
| ' cute ftp 7.1 home ' worked for me.. So did FlashFXP. |
|
| Back to top |
|
 |
placasoft
Joined: 28 Mar 2005 Posts: 53
|
Posted: Tue Jul 12, 2005 12:12 am Post subject: |
|
|
@ PSPKRAZY!
I just download your new Version. Good Job, but with what Sdk do you make this? I canīt compile it :(
Cya
Placa |
|
| Back to top |
|
 |
pspkrazy
Joined: 04 Jul 2005 Posts: 49
|
Posted: Wed Jul 13, 2005 5:51 am Post subject: With the last subversion one ? |
|
|
With the last subversion one ?
Maybe i have a special configuration ?
I will ask a friend to try.
Tomorrow.
Bye. |
|
| Back to top |
|
 |
fantomasfr
Joined: 08 Jul 2005 Posts: 11
|
Posted: Wed Jul 13, 2005 5:57 am Post subject: |
|
|
Hi,
im working on UMD access for ur ftpserver.
I have full access on all directory, but i have some prob with size of file...
i m fixing it now ..
I have made full real time status on psp screen..
fixed some copy problem..
but i have to work harder :)
++
Fantomas
Ps:
| Code: | CWD movie
250 CWD command successful.
PWD
257 "/PSP_GAME/USRDIR/data/movie/" is current directory.
List Complete.
|
| Code: | RETR 989logo.pmf
150 Opening ASCII mode data connection for 989logo.pmf.
226 Transfer complete.
Transferred: 989logo.pmf 647 168 bytes in 4,67 (135,30 KB/Sec)
Transfer queue completed
Transferred 1 file totaling 647 168 bytes in 4,72 (135,30 KB/Sec) |
|
|
| Back to top |
|
 |
pspkrazy
Joined: 04 Jul 2005 Posts: 49
|
Posted: Fri Jul 15, 2005 8:37 am Post subject: file size |
|
|
Strange file size problem was introduced in v0.2.
v0.21 (you can download it on my site) does not have this bug.
Will you release your version in the next future ? ;) |
|
| Back to top |
|
 |
mrdelayer
Joined: 10 Jul 2005 Posts: 16
|
Posted: Fri Jul 15, 2005 7:36 pm Post subject: |
|
|
| hm. is downloading files from the PSP to the PC supposed to not work? :( |
|
| Back to top |
|
 |
fantomasfr
Joined: 08 Jul 2005 Posts: 11
|
Posted: Fri Jul 15, 2005 9:28 pm Post subject: |
|
|
hi pspkrazy, do u have msn?
pm ur addy please
++
Fantomas |
|
| Back to top |
|
 |
pspboy88
Joined: 16 Jul 2005 Posts: 3
|
Posted: Sat Jul 16, 2005 12:53 am Post subject: |
|
|
ok i have a problem i am trying to do this i have 1.5 firmware and i installed it using KXploit Tool 0.3.and go and run it it say this (i put pics each time it changes text.
first it says this:
connecting...
associting
then it says this and does not go anymore past this
this my network it is at top like the read me says to do
if you can read it is says:
Ip address 192.168.168.102(which is static so it does not change)
subnet mask 255.255.255.0
default router 192.168.168.1
primary dns 63.240.76.198
secondary dns 204.127.199.8
and the proxy server is (do not use)
now it also at the dhcp part when i try to go home it stops on the please wait and i don know what to to so can i get some help. thanks[/img] |
|
| Back to top |
|
 |
|