Support for Sony´s DS4 Wireless adapter

Need help? Ask here and someone will help
Post Reply
sedilson
Posts: 3
Joined: Mon Jan 18, 2016 1:09 pm
Location: Brazil

Support for Sony´s DS4 Wireless adapter

Post by sedilson »

Hi Matlo,

Prologue
MY setup DIY: Arduino Micro, works with DS3 (USB and Bluetooth) and DS4 USB, of course, flashing the corresponding Arduino firmware for DS3 and DS4. GIMX 6.3 running on RaspberryPi


Due to a brain blackout, I decided to buy a Sony Wireless Adapter (https://www.playstation.com/en-us/explo ... s-adaptor/) to use my DS4 in Raspbian along with GIMX, without ask or search if it´s supported. Looks like it´s not (right?).

Well, the name of the adapter in linux is different:
Sony_Interactive_Entertainment_DUALSHOCK®4_USB_Wireless_Adaptor
While, when DS4 USB connected:
Sony_Computer_Entertainment_Wireless_Controller
Of course, I have edited the Dualshock4.xml to accommodate the new name.

But when I try to start GIMX I have the following output:
global option -l with value `log.txt'
global option -c with value `TesteWL.xml'
controller #1: option -p with value `/dev/ttyUSB0'
now reading arguments for controller #2
status flag is set
subpos flag is set
force_updates flag is set
GIMX 6.3 ARMv6
Raspbian GNU/Linux 8.0 (jessie)
Linux 4.1.15-v7+ #1 SMP Thu Jan 21 16:05:46 UTC 2016 unknown
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 009: ID 054c:0ba0 Sony Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
|__ Port 3: Dev 9, If 0, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 9, If 1, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 9, If 2, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 9, If 3, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 4, If 0, Class=Vendor Specific Class, Driver=rtl8192cu, 480M
|__ Port 5: Dev 5, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
USB adapter detected, controller type is: DS4.
No controller was found on USB buses.
gimx.c:208 main: no adapter detected
Looks like GIMX is looking for DS4 and the DS4 connected via Wireless adapter is not recognized as such.

I have found* this command to perform, to get information about joystick that I found useful:
*https://ubuntuforums.org/showthread.php?t=1595666

Code: Select all

udevadm info -q all -n /dev/input/js0
Following the output for DS4 USB connected and thru Wireless adapter:
P: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:054C:05C4.0002/input/input1/js1
N: input/js1
S: input/by-id/usb-Sony_Computer_Entertainment_Wireless_Controller-joystick
S: input/by-path/platform-3f980000.usb-usb-0:1.2:1.0-joystick
E: DEVLINKS=/dev/input/by-id/usb-Sony_Computer_Entertainment_Wireless_Controller-joystick /dev/input/by-path/platform-3f980000.usb-usb-0:1.2:1.0-joystick
E: DEVNAME=/dev/input/js1
E: DEVPATH=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:054C:05C4.0002/input/input1/js1
E: ID_BUS=usb
E: ID_FOR_SEAT=input-platform-3f980000_usb-usb-0_1_2_1_0
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_MODEL=Wireless_Controller
E: ID_MODEL_ENC=Wireless\x20Controller
E: ID_MODEL_ID=05c4
E: ID_PATH=platform-3f980000.usb-usb-0:1.2:1.0
E: ID_PATH_TAG=platform-3f980000_usb-usb-0_1_2_1_0
E: ID_REVISION=0100
E: ID_SERIAL=Sony_Computer_Entertainment_Wireless_Controller
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:030000:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=Sony_Computer_Entertainment
E: ID_VENDOR_ENC=Sony\x20Computer\x20Entertainment
E: ID_VENDOR_ID=054c
E: MAJOR=13
E: MINOR=1
E: SUBSYSTEM=input
E: TAGS=:seat:uaccess:
E: USEC_INITIALIZED=5710201
P: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/0003:054C:0BA0.0001/input/input0/js0
N: input/js0
S: input/by-id/usb-Sony_Interactive_Entertainment_DUALSHOCK®4_USB_Wireless_Adaptor-if03-joystick
S: input/by-path/platform-3f980000.usb-usb-0:1.3:1.3-joystick
E: DEVLINKS=/dev/input/by-id/usb-Sony_Interactive_Entertainment_DUALSHOCK®4_USB_Wireless_Adaptor-if03-joystick /dev/input/by-path/platform-3f980000.usb-usb-0:1.3:1.3-joystick
E: DEVNAME=/dev/input/js0
E: DEVPATH=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/0003:054C:0BA0.0001/input/input0/js0
E: ID_BUS=usb
E: ID_FOR_SEAT=input-platform-3f980000_usb-usb-0_1_3_1_3
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_MODEL=DUALSHOCK®4_USB_Wireless_Adaptor
E: ID_MODEL_ENC=DUALSHOCK®4\x20USB\x20Wireless\x20Adaptor
E: ID_MODEL_ID=0ba0
E: ID_PATH=platform-3f980000.usb-usb-0:1.3:1.3
E: ID_PATH_TAG=platform-3f980000_usb-usb-0_1_3_1_3
E: ID_REVISION=0100
E: ID_SERIAL=Sony_Interactive_Entertainment_DUALSHOCK®4_USB_Wireless_Adaptor
E: ID_TYPE=hid
E: ID_USB_DRIVER=usbhid
E: ID_USB_INTERFACES=:010100:010200:030000:
E: ID_USB_INTERFACE_NUM=03
E: ID_VENDOR=Sony_Interactive_Entertainment
E: ID_VENDOR_ENC=Sony\x20Interactive\x20Entertainment
E: ID_VENDOR_ID=054c
E: MAJOR=13
E: MINOR=0
E: SUBSYSTEM=input
E: TAGS=:seat:uaccess:
E: USEC_INITIALIZED=53020

Code: Select all

lsusb
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 009: ID 054c:0ba0 Sony Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

pi@RPi-DS3-DIY:/usr/EdS $ gimx --version
GIMX 6.3 ARMv6
pi@RPi-DS3-DIY:/usr/EdS $ uname -a
Linux RPi-DS3-DIY 4.1.15-v7+ #1 SMP Thu Jan 21 16:05:46 UTC 2016 armv7l GNU/Linux
Not sure if the authentication can be used along with this adapter but since i can be done using Bluetooth, maybe there´s a change.
Can you help me with this?
Post Reply