IP over USB
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
Is this idea totally madness or is it possible? Could be good to get some hints before I hit the wall while trying.
Regards
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.
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.
-
- Posts: 12
- Joined: Sat Apr 26, 2008 1:50 pm
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.
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.
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.
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...)
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
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
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)
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)
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)
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_Lin ... t_Protocol
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_Lin ... t_Protocol
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).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)