USB Again
-
- Posts: 43
- Joined: Wed Aug 03, 2005 6:58 pm
USB Again
Has anyone made any headway with the USB protocol drivers on the PSP? I've managed to make some sense of it, but there are a few calls which register protocol drivers which pass in an unknown structure to set it all up, and I've had no time to look into further recently due to work and having to free time.
If anyone else has make any progress I'd be interested to chat with them about it.
-Jw
If anyone else has make any progress I'd be interested to chat with them about it.
-Jw
-
- Posts: 5
- Joined: Mon Jan 16, 2006 7:27 pm
-
- Posts: 43
- Joined: Wed Aug 03, 2005 6:58 pm
I have been hacking around with the USB code on the PSP and there appears to be a USB subsystem which you can register custom protocol drivers with. This is how things like the USB mass storage and inter console communication are handled - ie. through different "plugins" for the USB subsystem. You need to know nothing about the USB chipset, just about how to use the USB API. This is the part which is a mystery at the moment.
You appear to be able to register these drivers, then the USB subsystem will call them when connections are made and lost on the USB bus (at least this is my understanding). It looks like you pass a structure to a register your driver which contains callbacks, protocol name and so on. The actual format of this structure and what all the callbacks are for it what is currently eluding me. Although, saying that, I've not had much time to look into it... I was hoping someone out there had done something similar so we could exchange ideas and get things moving again. To me, this has to be the most important thing left to solve in PSP homebrew development.
-Jw
You appear to be able to register these drivers, then the USB subsystem will call them when connections are made and lost on the USB bus (at least this is my understanding). It looks like you pass a structure to a register your driver which contains callbacks, protocol name and so on. The actual format of this structure and what all the callbacks are for it what is currently eluding me. Although, saying that, I've not had much time to look into it... I was hoping someone out there had done something similar so we could exchange ideas and get things moving again. To me, this has to be the most important thing left to solve in PSP homebrew development.
-Jw
-
- Posts: 43
- Joined: Wed Aug 03, 2005 6:58 pm
- Timale-Kun
- Posts: 13
- Joined: Sat Jan 14, 2006 8:38 pm
- Location: Paris
- Contact:
As u talk about USB, I've a question, ignore it, if it's too silly for U. It claims that PSP USB is Target (can't send data by itself) but i've notice on PSP-OSS firsts Releases that when I plugged the USB cable the USB Mode started...So does it means it only react with the USB supply Voltage or it can lead to send data via USB from PSP???!! Sorry if it's annoying U
- Timale-Kun
- Posts: 13
- Joined: Sat Jan 14, 2006 8:38 pm
- Location: Paris
- Contact:
-
- Posts: 43
- Joined: Wed Aug 03, 2005 6:58 pm
That's exactly the info I was after, cheers fella! :o) I take it these are fairly standard USB structures? From my little experience of USB a lot of the PSP stuff was quite familiar.
Have you tried writing a USB protocol driver yet, TyRaNiD? I've got a kernel mode PRX build environment setup ready to try this stuff out, and I was just missing the struct definitions, so I'll give it a go when I get a minute. We may not be too far away from getting USB file serving now -- about time.
-- Jw
Have you tried writing a USB protocol driver yet, TyRaNiD? I've got a kernel mode PRX build environment setup ready to try this stuff out, and I was just missing the struct definitions, so I'll give it a go when I get a minute. We may not be too far away from getting USB file serving now -- about time.
-- Jw
Some bits (the descriptors) are standard USB structures, some of proprietry to the Sony driver.
b) Does no one bother to read the SVN commit logs?
http://svn.pspdev.org/listing.php?repna ... rev=0&sc=1
There you will find a USB based Host driver which sounds like exactly what you are planning on writing. Then again don't let me stop you doing your own.
a) Do you think I would have reversed this and _not_ done something with it?Have you tried writing a USB protocol driver yet, TyRaNiD? I've got a kernel mode PRX build environment setup ready to try this stuff out, and I was just missing the struct definitions, so I'll give it a go when I get a minute. We may not be too far away from getting USB file serving now -- about time.
b) Does no one bother to read the SVN commit logs?
http://svn.pspdev.org/listing.php?repna ... rev=0&sc=1
There you will find a USB based Host driver which sounds like exactly what you are planning on writing. Then again don't let me stop you doing your own.
-
- Posts: 43
- Joined: Wed Aug 03, 2005 6:58 pm