![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on PSP-HTTPD v0.3 within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Here's the third release of my basic PSP web server, powered by LuaPlayer 0.15. What this does is basically let ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() Sexy Developer
|
Here's the third release of my basic PSP web server, powered by LuaPlayer 0.15.
What this does is basically let you download files from your PSP using your wireless network connection. You can browse through the memory stick wirelessly, using only the web browser on your computer. HTML pages will even be sent so you could run a website off your PSP. I have to note, though, that this is still a beta. No more than one connection is able to transfer data at one time, so this will work fine so you can transfer stuff within your own network...it won't really do well hosting a site yet. Also, the success of file transfers depends entirely on the quality of your Wi-Fi connection. You may have to see how high yours can get, currently it runs stably on my end at around 20 KB/s with chunksize 1024. I know it's slow, but it will do for now. Please read the Readme file to see the meanings of the dots and bars displayed during a file transfer to see your performance. Otherwise, have fun, and don't hesitate to give comments and suggestions. Changes in v0.3: * New template-based interface for directory listings * Fixed error on exit, server now shuts down cleanly * Config file revamped, now with commented options and two new settings: server port and send retries * If the config file does not exist or options are missing, default variables will be loaded * File sizes now sent in HTTP headers * Added CSS mime type * Changed default number of error-checking repeats from 100 to 80 * File send message in console now shows more detailed info about the file Screenshot: (browsing a directory)
|
|
|
|
|
|
#10 |
![]() ![]() Your Fate is Grim...
|
cool. you and teddy (creator of the tedzero browser) could work together to create one AWSOME app. this app is COOL! i just tried it. the interface owns!! good job!!
P.S. woah, spaz attack
__________________
-------------------------------------------------------------------------------------- ![]() |
|
|
|
|
|
#13 |
![]() ThatSonyGuy/THATPSPGUY
My Mood:
Join Date: Jun 2005
Real First Name: Sooper
Location: All tha way East!!!
Just Played: Battlefield1943 ps3
Posts: 672
Trader Feedback: 0
|
i cant seem to get it to werk the right way. error: index.lua:88: attempt to call field 'creatServerSocket' (a nil value)
Error: no script file found.
__________________
There are only two infinite's, The Universe and Human Stupidity.- Albert Einstein Sony Messed up and had to give me a Brand New 60gig PS3, not a refurb |
|
|
|
|
|
#14 |
|
I got me a problem too. When I load up the program it doesn't display my connections (Available WLAN connections: ).
Does anyone know how to get this thing working?Thanks in advance, Xufar EDIT: Problem fixed! I just resetted my psp to the default settings! Maybe this will help you to, soopergooman Last edited by Xufar; 12-28-2005 at 05:35 AM.. |
|
|
|
|
|
|
#15 |
|
I'm trying out a few different chunk sizes:
1024 - 20 KB/s Works fine 2048 - 40 KB/s Works fine too 4096 - 80 KB/s Awesome, still works fine. No corrupt files yet, you just have to click DOWNLOAD or OPEN fast on your computer (within 5 secs? I just found out this can be helped by setting the send repeats higher ) 8192 - 120 KB/s I guess I just hit top speed, my memstick or WLAN doesn't go any faster (The WLAN function of the PSP is probably limited to 1 Mbit), but no problem at all with the downloads!!! (I just checked it with a file bigger than 600 MB, works just fine) 16384 - 240 KB/s I've made my conclusion too soon, I just got 240 KB/s, still works perfect. ![]() 32768 - 260 KB/s Getting problems with this chunk size, the app sees every chunk as corrupted although they come perfectly in my computer... I can´t find the problem for this in the script, but this is the highest speed anyway, so I'd keep the chunksize at 16384. Maybe Elxx can find a solution for this, because it is plausible that the speed get's higher when the app sees it as a normal/good chunk. THE SPEED MAY VARY Last edited by Xufar; 12-28-2005 at 10:41 AM.. |
|
|
|
|
|
|
#16 |
![]() ![]() Sexy Developer
|
Mmm, very interesting. Thank you for the testing, I'll bump up the speeds even further on the next release. The reason I didn't before is my development location is rather far from the WLAN base station, so the connection gets dropped quite often, not letting me send too much. You've proved that this speed can go much much higher with a good quality signal, and I'll take that into consideration, and will look into the 32kb+ chunk sizes. Let's see what kind of speeds we can pump out.
![]() EDIT: With the higher chunk sizes, it does indeed transfer faster, but I played a music file and it was reeeealllyyyy skippy. :icon_sad: I'm thinking this is because of the error detection, since, if a chunk fails to send, it resends the whole chunk again, not taking into consideration the fact that the receiver will probably process the partial chunk as well, causing some insane skipping in music tracks and probably a lot of corruption in all files. This can be improved, I'm looking into it. Last edited by Elxx; 12-28-2005 at 12:16 PM.. |
|
|
|
|
|
#18 | ||
![]() ![]() Bush Programmer
|
Quote:
The application is hosting my website well among my network PCs. I would like to find out how to host my own web site to the public, assuming that there will never be any more than one connection to the site. Hint: the header file can be changed to give the directory page a different appearance... start with editing the blue colour bars: http://html-color-codes.com/ Quote:
say it's local IP is: 192.168.0.102 (like mine), then you open Firefox or Internet explorer, and connect to the PSP by typing this into the address bar: http://192.168.0.102/ Art. |
||
|
|
|
|
|
#20 |
![]() ![]() Bush Programmer
|
I found a simple method of limiting access to a single folder with web page files in it
so that other network users can't browse your whole memory stick. edit line 233 as follows: -- File must be on the Memory Stick. file = "ms0:/Website" .. file and create a folder called Website in your root directory with the index.htm file in it, and you're away! I noticed a problem from an earlier version where the wlan stops working if left for a few minutes without activity. The wlan light always goes out when something is attempting a connection to it, then the application needs to be restarted. Art. |
|
|
|
|
|
#21 | |
![]() ![]() Sexy Developer
|
Quote:
As for the wlan problem, that's something I haven't really figured out a way to fix...it happens for me too. I'll look into it, maybe there's a way to force the connection to stay alive. |
|
|
|
|
|
|
#23 |
![]() ![]() Bush Programmer
|
I was going to set a timer, and restart the program after a constant period of time
for an attempt at a dodgy fix since pressing start seems to create a new good connection. Maybe the problem is outside of the lua program, and the above solution could be implemented in luaplayer. |
|
|
|
|
|
#25 |
![]() ![]() Bush Programmer
|
Elxx,
I have managed to solve the problem (quick and dirty fix) with the wlan powering off. If you provide your email I will show it to you. I must warn you that your code has been modified to become UGLY. I created a timer called watchdog that will completely close the connection with wlan.term after a period of time (using 60 secs at the moment), and then start it up again from scratch (wlan.init). As ugly as it is, it allows my site to be hosted permanently. Mind you, the PSP unit gets warmer than I'd like it to after running for just 12 hours. Since I've made the start, I will add a counter to report the server uptime to screen, and/or the web page. Art. Last edited by Art; 01-03-2006 at 04:53 PM.. |
|
|
|
|
|
#27 | |
![]() ![]() Bush Programmer
|
I Probably spoke too soon, the server will refuse connections a lot of the time.
In order to load a page, you need to hit the server straght after the wlan's power is toggled. Quote:
some time it does hold the connection open, but I don't think it is a server, and may be using different Sony libraries? |
|
|
|
|
|
|
#28 |
![]() ![]() Sexy Developer
|
Peldet is all fancified C code, so that's out far away from what I can do with Lua. I actually never experienced the bug with the WLAN completely dying, but it does kill itself somehow, after big requests the next request will just make the WLAN light blink, and nothing else happens.
As I said, I'm looking into it though. |
|
|
|
|
|
#29 |
![]() ![]() Sexy Developer
|
Well, I don't know if this is because of LuaPlayer 0.16 or just my new connection code, but I've been running the server for over an hour and it's been responding to requests just fine, even though the PSP screen went to sleep quite a while ago. This is looking pretty good now, expect 0.4 soon.
|
|
|
|
![]() |
| Tags |
| psphttpd , v03 |
| Thread Tools | |
|
|