forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IP over USB

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
nergal



Joined: 02 Apr 2008
Posts: 8

PostPosted: Tue Apr 29, 2008 7:33 am    Post subject: IP over USB Reply with quote

So, I got to thinking about getting my hands on a new project for my psp. Due to restricted wifi access at some places, and only access to wired ethernet. I come to think about getting TCP/IP over USB for the psp.

Is this idea totally madness or is it possible? Could be good to get some hints before I hit the wall while trying.

Regards
Back to top
View user's profile Send private message
Shapyi



Joined: 25 Apr 2005
Posts: 95

PostPosted: Tue Apr 29, 2008 1:07 pm    Post subject: Reply with quote

If you can get that coded it would be amazing since I don't really have access to WiFi either.

You would need to write prx that replaces the wifi modules in kernel memory. Your functions would emulate the wifi protocol and send information to a PC client that communicates back and forth. I'm sure it could be done.
Back to top
View user's profile Send private message
folklord904



Joined: 26 Apr 2008
Posts: 12

PostPosted: Tue Apr 29, 2008 2:39 pm    Post subject: Reply with quote

hmm hardware aproach maybe if u get an adapter u can just do this http://www.psp-hacks.com/forums/viewtopic.php?id=134203 but if u want to just wire a ethernet cable to the usb and some how make psp use it idk.
Back to top
View user's profile Send private message
nergal



Joined: 02 Apr 2008
Posts: 8

PostPosted: Tue Apr 29, 2008 5:06 pm    Post subject: Reply with quote

Good to hear, I guess the prx module could be loaded as a plugin with 3.90 at startup.

Using wifi through a PC is not an solution since wifi is prohibited at some places due to security reasons and that would ruin the fun of a new project ;)

Time to start gathering knowledge about IP over USB, I know there are some projects for Linux to check out.
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Tue Apr 29, 2008 10:33 pm    Post subject: Reply with quote

A thing i didn't understand: there's a pc in your equation or not? I mean: i don't know much of USB internals, but as long as there's a ready made example it should be a piece of cake to mod it to carry IP data... only difficult thing is emulation layer...maybe it's easier to rewrite the whole prx and substitute it instead of hook tens of functions. If your plans are to make PSP cable-connectable without a pc, there are modules that performs serial-to-ethernet conversion on the fly (don't expect extreme speed in that case...)
Back to top
View user's profile Send private message
nergal



Joined: 02 Apr 2008
Posts: 8

PostPosted: Tue Apr 29, 2008 10:58 pm    Post subject: Reply with quote

No, I'm not after USB to ethernet directly, only through a PC. But there should be no wifi involved. My first approach is to use wifi substitute (module) on the psp and some application that acts as a proxy/gateway on the computer.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Apr 30, 2008 5:29 am    Post subject: Reply with quote

You could base it off USBHOSTFS, but instead of sending filesystem requests and data, send network packets.
Back to top
View user's profile Send private message AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Apr 30, 2008 6:44 am    Post subject: Reply with quote

You could probably write a real dirty async provider to do it with usbhostfs without having to play with the USB side of things. You could do something like:

usbhostfs.prx -> USB -> usbhostfs_pc -> custom app -> TCP/IP connection.

Doing the connections would be more of a pain but it wouldn't be impossible For example you could devise a protocol specific to the system which implemented the connect/read/write etc. fairly easily.

However I guess what you are really wanting would be to allow you to use wifi capable software instead over ethernet good luck on that :P
Back to top
View user's profile Send private message
SANiK



Joined: 05 Jul 2005
Posts: 29

PostPosted: Wed Jul 09, 2008 12:34 pm    Post subject: Reply with quote

Warning: This topic has been bumped for the sake of information

I tried to do something like this earlier.
The way I did it was:

The user sets their browser's proxy to 127.0.0.1:somePort

Then a PC app listens in on that port and sends signals to the PSP through the USB.

The PSP carrys out the commands and fetches the page.

I failed in that, for some reason, if the user hit "Stop" and went to another site, the new site would have parts of the old site prepended.

Might this be an error in how I handled the USB data packets? Maybe, but I didn't look into it much after that

Anyhows, you can find info about my failed attempt here with the sources:
http://sanik.imk.cx/PSPRoxy/index.htm

(There's like two different attempts in there)
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Thu Jul 10, 2008 7:10 am    Post subject: Reply with quote

The PSP's network module architecture has been copied from an ancient system which - by luck - was made to have several interfaces. You just have to attach your network interface through the sceNet commands, but first after having completely understood the custom structures used as parameters. (They should consist of a few options and callbacks, check how the wlan.prx registers to sceNet)
Back to top
View user's profile Send private message
byzb3atz



Joined: 10 Jul 2008
Posts: 1

PostPosted: Thu Jul 10, 2008 9:59 am    Post subject: Reply with quote

I had this idea too.. I wanted to ask someone if they could do it, and too bad I don't know c/c++ :(
if someone could get this done... even in a proxy form, I'd be really, really, really glad...
Back to top
View user's profile Send private message
Jossie90



Joined: 11 Jul 2008
Posts: 1

PostPosted: Fri Jul 11, 2008 6:06 pm    Post subject: Reply with quote

You could also use some USB-to-serial driver (probably not written yet for the psp) and do IP over serial.
That would cost nearly no extra work at the PC-side, and work on both windows and linux.

That is, assuming the PSP can handle multiple interfaces.

http://en.wikipedia.org/wiki/Serial_Line_Internet_Protocol
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sat Jul 12, 2008 2:37 am    Post subject: Reply with quote

adrahil wrote:
The PSP's network module architecture has been copied from an ancient system which - by luck - was made to have several interfaces. You just have to attach your network interface through the sceNet commands, but first after having completely understood the custom structures used as parameters. (They should consist of a few options and callbacks, check how the wlan.prx registers to sceNet)


Which means its completely possible to to provide a seamless network connection that all applications can use, over USB, Serial IO, etc. (After hundreds of hours of work and debugging).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group