[Release] ds3vita - control your Vita using a DualShock 3

Discussion in 'PS Vita - Hacking & Homebrew' started by xerpi, Jan 3, 2017.

  1. xerpi
    OP

    xerpi GBAtemp Regular

    Member
    166
    445
    Dec 25, 2011
    Barcelona
    After some more reverse engineering to the Vita's Bluetooth module, I've managed to get a DS3 connected. It's in an early stage (the LEDs are not set yet, so they will continue to blink), and it could be somewhat buggy.

    Download: https://github.com/xerpi/ds3vita/releases

    Enable the plugin:
    1. Add ds3vita.skprx to taiHEN's config (ux0:/tai/config.txt):
      Code:
      *KERNEL
      ux0:tai/ds3vita.skprx
      
    2. You need to refresh the config.txt by rebooting or through VitaShell.
    Pairing the controller:
    1. Download this tool (or this other one if you want to compile it yourself)
    2. Connect your DS3 to the PC and open the tool
    3. Introduce the Vita's MAC address plus 1 to the tool (Settings -> System -> System information)
    Using it once paired (see above):
    1. Just press the PS button and it will connect to the Vita
    Note: If you use Mai, don't put the plugin inside ux0:/plugins because Mai will load all stuff you put in there...
     
    Last edited by xerpi, Jan 4, 2017


  2. ArugulaZ

    ArugulaZ GBAtemp Advanced Fan

    Member
    501
    117
    Sep 17, 2009
    United States
    Is there a way to make USB controllers compatible with the Playstation TV?
     
  3. Lord M

    Lord M GBAtemp Advanced Fan

    Member
    870
    190
    Oct 31, 2014
    Italy
    Great, finally :D Good job.
    One thing: we need PC every time we wanna connect ds3 to vita?
     
  4. xerpi
    OP

    xerpi GBAtemp Regular

    Member
    166
    445
    Dec 25, 2011
    Barcelona
    Only the first time, to pair it. But if you then connect it to the PS3, you'll have to pair it again.

    I'm pretty sure it is, the Vita has a USB device API, so I don't see why it shouldn't. That's a good idea and I'll take a look at it myself, although I don't have a PSTV.
     
    Last edited by xerpi, Jan 4, 2017
    MKKhanzo likes this.
  5. Lord M

    Lord M GBAtemp Advanced Fan

    Member
    870
    190
    Oct 31, 2014
    Italy
    Ok, this is good (because i cant turn on pc much or often in a day :P )
    When you wrote 'connect ds3 to pc' you mean with usb cable, it is right?

    Note: i ask, but anyway i'll try by myself, if paired controller work in retroarch emulators; this is my goal :D
     
  6. Rizzorules

    Rizzorules "What are you doing?" "Something unexpected."

    Member
    916
    366
    Aug 17, 2013
    Netherlands
    Viimote is working perfectly but im having trouble with ds3vita
    Edit: Nevermind its working perfectly now thanks a lot xerpi
     
    Last edited by Rizzorules, Jan 6, 2017
  7. replicashooter

    replicashooter GBAtemp Advanced Fan

    Member
    501
    227
    Jun 16, 2006
    Very cool development.
     
  8. Lord M

    Lord M GBAtemp Advanced Fan

    Member
    870
    190
    Oct 31, 2014
    Italy
    what mean 'mac address plus 1'? Mean, if end with xx:54, we must put xx:55?
    Anyway sure you dont forgot this step? :P
    Go to Setting -> Devices -> Bluetooth Devices
     
  9. xerpi
    OP

    xerpi GBAtemp Regular

    Member
    166
    445
    Dec 25, 2011
    Barcelona
    Exactly that's what it means. And nope, there's no need to go to Settings -> Devices -> Bluetooth Devices :)
     
  10. Lord M

    Lord M GBAtemp Advanced Fan

    Member
    870
    190
    Oct 31, 2014
    Italy
    Ah ok, anyway seem dont work for me.
    i have put plugins in tai folder, edited the config txt, reloaded the config.txt and then connect ds3 to pc, open the sixaxis pair tool, change the master with my vita mac + 1 (always in hex, right? because my mac end with XX:6A, so become XX:6B?) and obiouvsly after enabled the blutooth on psvita lol.
    What i am doing wrong?

    EDIT: nevermind, now works :) Anyway is normal or set-upped in retroarch l2 and r2 works as r1 and l1? Maybe if you teamup with libretro team you can make a RA cores with fully compatibility controllers with your plugin :D
     
    Last edited by Lord M, Jan 5, 2017
    Ikilledzeus likes this.
  11. Frezzno

    Frezzno Member

    Newcomer
    26
    19
    Jan 20, 2008
    Sweden, Södertälje, at home.
    Nice it works! But... L1, L2 and R1, R2. All those buttons seems to be mixed with other button, like pushing two buttons simultaneously. On PS vita L1 only do one thing. But on DS3 it does like two things.
     
    xerpi and Ikilledzeus like this.
  12. pakrett

    pakrett GBAtemp Maniac

    Member
    1,472
    559
    Apr 6, 2015
    France
    Is it possible to bind the rear touchpad to a physical button ? Like L2/R2 for exemple ?
     
    xerpi, Pandaxclone2 and Ikilledzeus like this.
  13. Ikilledzeus

    Ikilledzeus Member

    Newcomer
    42
    13
    Mar 27, 2015
    United States
    Bessemer, AL
    Any new updates planned for this? All that's missing is R2 and L2 mapping.
     
    xerpi, Pandaxclone2 and pakrett like this.
  14. Spore2

    Spore2 GBAtemp Regular

    Member
    203
    51
    Jan 12, 2016
    followed the instructions but it's not working for me
     
  15. xerpi
    OP

    xerpi GBAtemp Regular

    Member
    166
    445
    Dec 25, 2011
    Barcelona
  16. Retinal_FAILURE

    Retinal_FAILURE GBAtemp Regular

    Member
    141
    26
    Jan 3, 2016
    United States
    would this update work with a fake PS3 (DS3) controller with the PS TV. I tried it before with no luck. I have to tether mine all the time to get response even though the controller has bluetooth now at least w/o the program to get it to work.
     
  17. Ikilledzeus

    Ikilledzeus Member

    Newcomer
    42
    13
    Mar 27, 2015
    United States
    Bessemer, AL
    Love it! You do great work man! I was wondering if this plugin could possibly be expanded to trick games into thinking the system is a pstv for games like borderlands 2 where you can't play it using your plugin because the touchscreen and rear touch are integral controls. There was an update to the game to support pstv and that's what makes me think it could be possible.
     
  18. ArugulaZ

    ArugulaZ GBAtemp Advanced Fan

    Member
    501
    117
    Sep 17, 2009
    United States
    I'm crossing my fingers until they bleed that someone will come up with a way to make wired USB controllers compatible with the Playstation TV. Although now that I'm using the external storage exploit, I wonder if I could use a hub on my PSTV so I could have both the flash drive and a controller connected at once...
     
  19. xerpi
    OP

    xerpi GBAtemp Regular

    Member
    166
    445
    Dec 25, 2011
    Barcelona
    It should be possible now that we have this on vitasdk: https://github.com/vitasdk/vita-headers/blob/master/include/psp2kern/usbd.h
     
    reprep and ArugulaZ like this.
  20. medoli900

    medoli900 Open the Benzenes Gates

    Member
    GBAtemp Patron
    medoli900 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    724
    246
    Jan 7, 2013
    Lavender Town
    Thank you so much for this.
    This will do as a temporary fix while waiting for a working PSV 1000 joystick

    Edit: Is it possible to completely override the Vita control with the DS3 one?
     
    Last edited by medoli900, Apr 12, 2017