Page 1 of 1

GIMX 4.2 (Linux + Bluetooth)

Posted: Wed Dec 09, 2015 8:23 pm
by frza
I have been running gimx on two machines controlling two different PS4 via bluetooth. 1 has been running fine for over a year, I just added the second one and it was working for about 3 days. All of a sudden it appears gimx can no longer retrieve the ds4 bdaddr when I plug in the teensy 2.0

Below is the output from broken server:

$gimx -s 192.168.1.112:9999 -t DS4 -h 0 -b B0:05:94:16:C8:EC --nograb --status
option -s with value `192.168.1.112:9999'
option -t with value `DS4'
option -h with value `0'
option -b with value `B0:05:94:16:C8:EC'
grab flag is unset
status flag is set
listening on psm: 0x0001
listening on psm: 0x0011
listening on psm: 0x0013
using default refresh period: 10.00ms
accepted connection from A4:15:66:52:45:6D (psm: 0x0001)
connecting with hci0 = 00:1E:C2:8F:26:F6 to B0:05:94:16:C8:EC psm 0x0011
connecting with hci0 = 00:1E:C2:8F:26:F6 to B0:05:94:16:C8:EC psm 0x0013
no ps4/ds4 bdaddr found

Below is dmesg from broken machine when plugging in teensy
$ dmesg|tail
[ 1330.932307] usb 3-2: USB disconnect, device number 12
[ 1332.660245] usb 3-2: new full-speed USB device number 13 using uhci_hcd
[ 1332.831848] usb 3-2: New USB device found, idVendor=054c, idProduct=05c4
[ 1332.831859] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1332.831867] usb 3-2: Product: Wireless Controller
[ 1332.831873] usb 3-2: Manufacturer: Sony Computer Entertainment
[ 1332.892182] input: Sony Computer Entertainment Wireless Controller as /devices/pci0000:00/0000:00:1a.0/usb3/3-2/3-2:1.0/0003:054C:05C4.002E/input/input54
[ 1332.948911] sony 0003:054C:05C4.002E: input,hidraw3: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-0000:00:1a.0-2/input0
[ 1332.950737] sony 0003:054C:05C4.002E: failed to retrieve feature report 0x81 with the DualShock 4 MAC address
[ 1332.984965] sony: probe of 0003:054C:05C4.002E failed with error -32



Below is dmesg from WORKING machine:
$dmesg|tail
[20891532.737090] usb 3-2: New USB device found, idVendor=054c, idProduct=05c4
[20891532.737104] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[20891532.737113] usb 3-2: Product: Wireless Controller
[20891532.737120] usb 3-2: Manufacturer: Sony Computer Entertainment
[20891532.802372] input: Sony Computer Entertainment Wireless Controller as /devices/pci0000:00/0000:00:02.0/usb3/3-2/3-2:1.0/input/input226
[20891532.802878] hid-generic 0003:054C:05C4.00DB: input,hidraw0: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-0000:00:02.0-2/input0
[20891533.141368] input: Sony Computer Entertainment Wireless Controller as /devices/pci0000:00/0000:00:02.0/usb3/3-2/3-2:1.0/input/input227
[20891533.142157] hid-generic 0003:054C:05C4.00DC: input,hidraw0: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-0000:00:02.0-2/input0
[20891533.284032] input: Sony Computer Entertainment Wireless Controller as /devices/pci0000:00/0000:00:02.0/usb3/3-2/3-2:1.0/input/input228
[20891533.284032] hid-generic 0003:054C:05C4.00DD: input,hidraw0: USB HID v1.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-0000:00:02.0-2/input0



Any advice on what to do to fix this? I'm not sure exactly what caused it but their may have an apt-get upgrade in there :?

Re: GIMX 4.2 (Linux + Bluetooth)

Posted: Wed Dec 09, 2015 9:21 pm
by Matlo
Hi,
I think you may have hit issue 334.
Anyway, I can't provide support for old GIMX version.
Please install GIMX 5.4 on both the client and server, and see if it works.

Re: GIMX 4.2 (Linux + Bluetooth)

Posted: Wed Dec 09, 2015 11:19 pm
by frza
thanks for the quick response. I updated to 5.4 and the server output looks better on startup:

# gimx -s 192.168.1.112:9999 -t DS4 -h 0 -b B0:05:94:16:C8:EC --nograb --status
option -s with value `192.168.1.112:9999'
option -t with value `DS4'
option -h with value `0'
option -b with value `B0:05:94:16:C8:EC'
grab flag is unset
status flag is set
using default refresh period: 10.00ms
GE_RegisterJoystick has to be called before GE_initialize.
listening on psm: 0x0001
listening on psm: 0x0011
listening on psm: 0x0013
accepted connection from A4:15:66:52:45:6D (psm: 0x0001)
connecting with hci0 = 00:1E:C2:8F:26:F6 to B0:05:94:16:C8:EC psm 0x0011
connecting with hci0 = 00:1E:C2:8F:26:F6 to B0:05:94:16:C8:EC psm 0x0013
accepted connection from A4:15:66:52:45:6D (psm: 0x0011)
accepted connection from A4:15:66:52:45:6D (psm: 0x0013)
0 1449702804.374081, finger1 x (-776), finger1 y (3139), finger1 (1)

The PS login screen pops up also once it connects but it goes away after about 10 seconds

Below is the message I see on the client running 5.4:
$gimx -d 192.168.1.112:9999 --event "cross(255)"
option -d with value `192.168.1.112:9999`
option e with value `cross(255)`
Detected Controller: DS4.
using default refresh period: 10.00ms
The --event argument may require running two gimx instances.


I am not seeing any output from server when sending button presses from client

Re: GIMX 4.2 (Linux + Bluetooth)

Posted: Thu Dec 10, 2015 12:00 am
by frza
changed my command to

$gimx --event "cross(255)" --dst 192.168.1.112:9999

and it worked but it tends to fail after a few minutes with the following error:

recvfrom failed with error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

can't get controller type from remote gimx
Can't connect to: 192.168.1.112:9999.
adapter_detect failed


I assume this is a network issue on me but I don't usually have any problems.

Re: GIMX 4.2 (Linux + Bluetooth)

Posted: Thu Dec 10, 2015 8:03 am
by Matlo
Can you ping the server from the client? How much time does the ping take? Is it constant?