| View previous topic :: View next topic |
| Author |
Message |
nergal
Joined: 02 Apr 2008 Posts: 8
|
Posted: Tue Apr 29, 2008 7:33 am Post subject: IP over USB |
|
|
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 |
|
 |
Shapyi
Joined: 25 Apr 2005 Posts: 95
|
Posted: Tue Apr 29, 2008 1:07 pm Post subject: |
|
|
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 |
|
 |
folklord904
Joined: 26 Apr 2008 Posts: 12
|
|
| Back to top |
|
 |
nergal
Joined: 02 Apr 2008 Posts: 8
|
Posted: Tue Apr 29, 2008 5:06 pm Post subject: |
|
|
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 |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Tue Apr 29, 2008 10:33 pm Post subject: |
|
|
| 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 |
|
 |
nergal
Joined: 02 Apr 2008 Posts: 8
|
Posted: Tue Apr 29, 2008 10:58 pm Post subject: |
|
|
| 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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Apr 30, 2008 5:29 am Post subject: |
|
|
| You could base it off USBHOSTFS, but instead of sending filesystem requests and data, send network packets. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Wed Apr 30, 2008 6:44 am Post subject: |
|
|
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 |
|
 |
SANiK
Joined: 05 Jul 2005 Posts: 29
|
Posted: Wed Jul 09, 2008 12:34 pm Post subject: |
|
|
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 |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Thu Jul 10, 2008 7:10 am Post subject: |
|
|
| 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 |
|
 |
byzb3atz
Joined: 10 Jul 2008 Posts: 1
|
Posted: Thu Jul 10, 2008 9:59 am Post subject: |
|
|
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 |
|
 |
Jossie90
Joined: 11 Jul 2008 Posts: 1
|
Posted: Fri Jul 11, 2008 6:06 pm Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sat Jul 12, 2008 2:37 am Post subject: |
|
|
| 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 |
|
 |
|