Advertising (This ad goes away for registered users. You can Login or Register)

[NEED DEVELOPERS]Demo with USBPSPCMDriver(2nd Release)

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
173210
Guru
Posts: 195
Joined: Fri Jul 15, 2011 11:32 pm

[NEED DEVELOPERS]Demo with USBPSPCMDriver(2nd Release)

Post by 173210 » Sat Mar 23, 2013 1:25 am

USBPSPCommunicationDriver is used to connect PSP with PS2/PS3.
It works on ePSP, too.
I disassembled two games which use USBPSPCommunicationDriver.
And I found how it start.
How it start:
1. load flash0:/kd/usbpspcm.prx
2. call sceUsbStart(PSP_USBBUS_DRIVERNAME, 0, 0);
3. call sceUsbStart("USBPSPCommunicationDriver", TITLE_LEN, TITLE);
4. call sceUsbActivate(0x1CB);

I wrote this code with the information, and it worked.
Test it and report!
2nd Release:
http://www.mediafire.com/?wnc3g6ash72md99

----CheangeLog----
2nd Release : Added exit code.
Added disconnect detect thread.

----For Developer----
I need PS2/PS3 Developers.

To connect with PC by this driver, we must understand how it works on PS2/PS3, too.
So I want PS2/PS3 Developers to reverse these games.
Games which use USBPSPCommunicationDriver:
Monster Hunter 2
Jikkyo Pawafuru Puroyakyu 2012 Ketteiban/2012/2011/2010/13 Ketteiban/12 Ketteiban
WORLD SOCCOER Winning Eleven 2008
Pro Evolution Soccer 2008
Routes PE
Juiced 2 Hot Import Nights
Ratchet & Clank
Dexter
Assassin's Creed Bloodlines

Known Protocol
Every values are in big endian!
From PSP
1. Start connection
PS3

Code: Select all

00 00 00 03
PSP

Code: Select all

00 00 00 03
PS3

Code: Select all

00 00 00 03
2. Send argument of sceUsbStart
PSP

Code: Select all

55 53 42 50 53 50 43 4D 00 - "USBPSPCM"
PS3

Code: Select all

55 53 42 50 53 50 43 4D 00 - "USBPSPCM"
3. Initialize connection
PS3

Code: Select all

02 00 00 00 02 00 00 00 00 10 00 00
PSP

Code: Select all

04 00 00 00 00 FF 00 00
0x04000000 - Binding Request
0x00FF - Address
4. Unknown

Code: Select all

01
5. Request "Receive"

Code: Select all

00 00 81 00 01 00 00 00
0x00008100 - "Receive" Request
0x01 - Length

Received data is completely raw. There's no need to process them.

Code: Select all

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 20 66 72 6F  Hello, World fro
00000010  6D 20 50 53 33 21                                m PS3!
Advertising
Last edited by 173210 on Wed Mar 11, 2015 7:42 am, edited 18 times in total.
Donate!
Bitconin: 1Aq3NruiohEvUsGJAmHoXjTq764HDS5zef
Paypal: http://173210.github.io/

User avatar
hgoel0974
Retired Mod
Posts: 2155
Joined: Mon Jul 23, 2012 11:42 pm
Location: New York

Re: Test this program to connect with USBPSPCommunicationDri

Post by hgoel0974 » Sat Mar 23, 2013 1:41 am

Interesting. But does it do the PC as well?
Advertising
"If the truth is a cruel mistress, then a lie must be a nice girl"

173210
Guru
Posts: 195
Joined: Fri Jul 15, 2011 11:32 pm

Re: Test this program to connect with USBPSPCommunicationDri

Post by 173210 » Sat Mar 23, 2013 1:45 am

hgoel0974 wrote:Interesting. But does it do the PC as well?
We must reverse PS2/PS3 games to do it.
Donate!
Bitconin: 1Aq3NruiohEvUsGJAmHoXjTq764HDS5zef
Paypal: http://173210.github.io/

User avatar
hgoel0974
Retired Mod
Posts: 2155
Joined: Mon Jul 23, 2012 11:42 pm
Location: New York

Re: Test this program to connect with USBPSPCommunicationDri

Post by hgoel0974 » Sat Mar 23, 2013 1:57 am

173210 wrote:
hgoel0974 wrote:Interesting. But does it do the PC as well?
We must reverse PS2/PS3 games to do it.
Unfortunately I haven't finished learning enough of ASM (MIPS) to be remotely helpful. :cry: But this seems to have a lot of potential! I can help by making a blog post if/when you get this to work.
"If the truth is a cruel mistress, then a lie must be a nice girl"

173210
Guru
Posts: 195
Joined: Fri Jul 15, 2011 11:32 pm

Re: Test this program to connect with USBPSPCommunicationDri

Post by 173210 » Sat Mar 23, 2013 2:02 am

hgoel0974 wrote:
173210 wrote:
hgoel0974 wrote:Interesting. But does it do the PC as well?
We must reverse PS2/PS3 games to do it.
Unfortunately I haven't finished learning enough of ASM (MIPS) to be remotely helpful. :cry: But this seems to have a lot of potential! I can help by making a blog post if/when you get this to work.
Thank you.
Donate!
Bitconin: 1Aq3NruiohEvUsGJAmHoXjTq764HDS5zef
Paypal: http://173210.github.io/

User avatar
Theredbaron
Posts: 457
Joined: Wed Feb 15, 2012 8:47 pm
Contact:

Re: [NEED DEVELOPERS]Connection with USBPSPCommunicationDriv

Post by Theredbaron » Sat Mar 23, 2013 3:00 am

Wow, now this is awesome. I know this is in early stages, but still, this is awesome.

I am no dev, but I do offer you all my luck. :)

And if you need any pc testers, on Windows or Linux, I would be happy to help. At least once it gets to that stage.
Vita 3G - 4GB/8GB - 3.00 TN-V

User avatar
Acid_Snake
Retired Mod
Posts: 3099
Joined: Tue May 01, 2012 11:32 am
Location: Behind you!

Re: [NEED DEVELOPERS]Connection with USBPSPCommunicationDriv

Post by Acid_Snake » Sat Mar 23, 2013 10:25 am

for ps2 you just need to reverse usbd.irx, found in some games that use the usb ports

173210
Guru
Posts: 195
Joined: Fri Jul 15, 2011 11:32 pm

Re: [NEED DEVELOPERS]Connection with USBPSPCommunicationDriv

Post by 173210 » Sat Mar 23, 2013 10:39 am

Acid_Snake wrote:for ps2 you just need to reverse usbd.irx, found in some games that use the usb ports
Thank you for your information.
Donate!
Bitconin: 1Aq3NruiohEvUsGJAmHoXjTq764HDS5zef
Paypal: http://173210.github.io/

User avatar
wartaf
Posts: 350
Joined: Sat Oct 13, 2012 12:34 pm

Re: [NEED DEVELOPERS]Connection with USBPSPCommunicationDriv

Post by wartaf » Sat Mar 23, 2013 11:10 am

may i ask what it can do?
PS Vita white 1.81 FW + eCFW (Gravity Crash Portable)

ako'y isang Pinoy ONE PIECE fan

173210
Guru
Posts: 195
Joined: Fri Jul 15, 2011 11:32 pm

Re: [NEED DEVELOPERS]Connection with USBPSPCommunicationDriv

Post by 173210 » Sat Mar 23, 2013 11:18 am

wartaf wrote:may i ask what it can do?
It is just demo.
If you connect with PC, ePSP will be shown in device manager.
Donate!
Bitconin: 1Aq3NruiohEvUsGJAmHoXjTq764HDS5zef
Paypal: http://173210.github.io/

Post Reply

Return to “Programming and Security”