-
Notifications
You must be signed in to change notification settings - Fork 4
PS3 Notes
Wayne Keenan edited this page Jun 1, 2017
·
1 revision
PS3 (Official)
see: https://www.piborg.org/rpi-ps3-help
lsusb
steps:
sudo apt-get -y install libusb-dev joystick
cd ~ wget http://www.pabr.org/sixlinux/sixpair.c gcc -o sixpair sixpair.c -lusb
sudo ./sixpair
Current Bluetooth master: b8:27:eb:d0:f7:f0
Setting master bd_addr to b8:27:eb:d0:f7:f0
sudo bluetoothctl
discoverable on
agent on
<DISCONNECT USB>
loop till it works:
Press PS button
connect b8:27:eb:d0:f7:f0 # LED '1' should fight up on controller
trust 00:06:F5:12:F4:BA
sudo reboot
press PS button # LED 1 may not light up, but controller may actually be connected
jstest /dev/input/js0
Setup Log:
pi@cam2:~ $ lsusb
Bus 001 Device 006: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@cam2:~ $ wget http://www.pabr.org/sixlinux/sixpair.c
--2017-04-16 05:40:08-- http://www.pabr.org/sixlinux/sixpair.c
Resolving www.pabr.org (www.pabr.org)... 62.210.16.61
Connecting to www.pabr.org (www.pabr.org)|62.210.16.61|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4022 (3.9K) [text/x-csrc]
Saving to: ‘sixpair.c’
sixpair.c 100%[=================================================================================================================>] 3.93K --.-KB/s in 0.002s
2017-04-16 05:40:09 (1.66 MB/s) - ‘sixpair.c’ saved [4022/4022]
pi@cam2:~ $ gcc -o sixpair sixpair.c -lusb
pi@cam2:~ $ sudo ./sixpair
Current Bluetooth master: b8:27:eb:c6:02:a3
Setting master bd_addr to b8:27:eb:c6:02:a3
pi@cam2:~ $ sudo bluetoothctl
[NEW] Controller B8:27:EB:C6:02:A3 cam2.local [default]
[NEW] Device 00:06:F5:12:F4:BA PLAYSTATION(R)3 Controller
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller B8:27:EB:C6:02:A3 Discoverable: yes
[bluetooth]# agent on
Agent registered
[CHG] Device 00:06:F5:12:F4:BA Class: 0x000508
[CHG] Device 00:06:F5:12:F4:BA Icon: input-gaming
[CHG] Device 00:06:F5:12:F4:BA Connected: yes
[CHG] Device 00:06:F5:12:F4:BA Modalias: usb:v054Cp0268d0100
[CHG] Device 00:06:F5:12:F4:BA UUIDs:
00001124-0000-1000-8000-00805f9b34fb
00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 00:06:F5:12:F4:BA Connected: no
[CHG] Device 00:06:F5:12:F4:BA Connected: yes
[CHG] Device 00:06:F5:12:F4:BA Connected: no
[CHG] Device 00:06:F5:12:F4:BA Connected: yes
[CHG] Device 00:06:F5:12:F4:BA Connected: no
[CHG] Device 00:06:F5:12:F4:BA Connected: yes
[bluetooth]# connect 00:06:F5:12:F4:BA
Attempting to connect to 00:06:F5:12:F4:BA
[CHG] Device 00:06:F5:12:F4:BA Connected: no
Failed to connect: org.bluez.Error.Failed
[CHG] Device 00:06:F5:12:F4:BA Connected: yes
[bluetooth]# trust 00:06:F5:12:F4:BA
[CHG] Device 00:06:F5:12:F4:BA Trusted: yes
Changing 00:06:F5:12:F4:BA trust succeeded
[CHG] Device 00:06:F5:12:F4:BA Connected: no
[CHG] Device 00:06:F5:12:F4:BA Connected: yes