Difference between revisions of "PS4"

From GIMX
Jump to: navigation, search
(Start)
(Start)
Line 161: Line 161:
  
 
1. The bluetooth service has to be stopped before starting GIMX (this allows GIMX to get incoming connections):
 
1. The bluetooth service has to be stopped before starting GIMX (this allows GIMX to get incoming connections):
 
 
   sudo service bluetooth stop
 
   sudo service bluetooth stop
 
   sudo hciconfig hci0 up pscan
 
   sudo hciconfig hci0 up pscan
  
 
2. Start GIMX:
 
2. Start GIMX:
 
 
   gimx -t DS4 -c <config file> -h <hci number> -b <PS4 bdaddr>
 
   gimx -t DS4 -c <config file> -h <hci number> -b <PS4 bdaddr>
  

Revision as of 09:28, 11 April 2014

(work in progress)

Hardware requirements

Bluetooth dongle

A bluetooth dongle is needed. The only tested bt chip is the CSR8510 chip.

PC

The only supported OS is Ubuntu 13.10 and its derivate such as Linux Mint 16.

Teensy 2.0

This is a temporary requirement used for pairing the bt dongle with the PS4.

The firmware to load is available at: http://gimx.fr/download/EMUPS4.7z

Compilation & installation

There's no installation package yet, but GIMX can be easily built from the sources.

Refer to the Development_on_Linux page. When typing the 'git clone' command line, replace 'master' with 'dev'.

Setup

Download the helper script:

 wget https://raw.github.com/matlo/GIMX-tools/master/PS4/gimx-ps4-helper.sh

Make it executable:

 chmod +x gimx-ps4-helper.sh

Run it:

 sudo ./gimx-ps4-helper.sh

Simply follow the instructions. A successful output should look like this:

 $ sudo ./gimx-ps4-setup.sh
 Unplug any Dualshock 4.
 Unplug any teensy.
 Unpug the bluetooth dongle.
 Then press enter.
 
 Plug the bluetooth dongle.
 The bluetooth dongle address is XX:XX:XX:XX:XX:XX.
 The bluetooth hci number is 1.
 Plug the DS4 with a USB cable.
 The DS4 address is YY:YY:YY:YY:YY:YY.
 Unplug the DS4.
 Plug the teensy.
 Unplug the teensy.
 Plug the teensy to the PS4, and wait a few seconds.
 Then plug the teensy back to the PC.
 The PS4 address is ZZ:ZZ:ZZ:ZZ:ZZ:ZZ.
 Everything was successful: setting dongle link keys.
 To run gimx, type:
 gimx -t DS4 -c config.xml -h 1 -b ZZ:ZZ:ZZ:ZZ:ZZ:ZZ


Start

1. The bluetooth service has to be stopped before starting GIMX (this allows GIMX to get incoming connections):

 sudo service bluetooth stop
 sudo hciconfig hci0 up pscan

2. Start GIMX:

 gimx -t DS4 -c <config file> -h <hci number> -b <PS4 bdaddr>

<config file> is the name of the config file to use.
<hci number> is the bluetooth hci number, for example 0 if there is only one bluetooth adapter (internal or external). Run 'hciconfig' if you're not sure about this value.
<PS4 bdaddr> is the address of the PS4.

3. Start the DS4. It should connect to GIMX, which in turn should connect to the PS4.

4. Refer to the Command_line page to learn about the other command line arguments.