Can't connect two adapters to PS4

Need help? Ask here and someone will help
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Can't connect two adapters to PS4

Post by xleo »

I wonder if its posible to connect, using one keyboard, two bluetooth adapters as controller 1 and 2.
I did the following, but the config seems to apply only to a one controller:

My config: https://gist.github.com/anonymous/08372 ... 7c3b3afdd7

My adapters:

# 1

Code: Select all

$ sudo ps4/gimx-ps4-helper.sh 
Unplug the bluetooth dongle, then press enter.

Plug the bluetooth dongle.
The bluetooth dongle address is 00:1B:10:00:2A:EC.
The bluetooth hci number is 0.
Plug the DS4 with a USB cable.
The DS4 address is 00:01:6C:C7:A6:66.
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 60:5B:B4:D0:03:94.
Everything was successful: setting dongle link keys.
To run gimx, type:
gimx -t DS4 -c config.xml -h 0 -b 60:5B:B4:D0:03:94
#2

Code: Select all

$ sudo ps4/gimx-ps4-helper.sh 
Unplug the bluetooth dongle, then press enter.

Plug the bluetooth dongle.
The bluetooth dongle address is 08:11:5A:26:3B:51.
The bluetooth hci number is 1.
Plug the DS4 with a USB cable.
The DS4 address is AC:FD:93:87:CA:B7.
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 60:5B:B4:D0:03:94.
Everything was successful: setting dongle link keys.
To run gimx, type:
gimx -t DS4 -c config.xml -h 1 -b 60:5B:B4:D0:03:94
My gimx command

Code: Select all

gimx --status --nograb --config ps4-dual.xml -t DS4 -h 0 -b 60:5B:B4:D0:03:94 -t DS4 -h 1 -b 60:5B:B4:D0:03:94

Code: Select all

global option -c with value `ps4-dual.xml'
controller #1: option -t with value `DS4'
controller #1: option -h with value `0'
controller #1: option -b with value `60:5B:B4:D0:03:94'
now reading arguments for controller #2
controller #2: option -t with value `DS4'
controller #2: option -h with value `1'
controller #2: option -b with value `60:5B:B4:D0:03:94'
now reading arguments for controller #3
grab flag is unset
status flag is set
using default refresh period: 10.00ms
A device name is empty. Multiple mice and keyboards are not managed.
Warning: can't open macro directory /root//.gimx//macros/
listening on psm: 0x0001
listening on psm: 0x0011
listening on psm: 0x0013

Then one of these PS keys doesn't work

Code: Select all

0 1484661914.244656, PS (255)
0 1484661914.304629
1 1484661916.244617, PS (255)
1 1484661916.414590
What am I doing wrong?
Thanks!
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Can't connect two adapters to PS4

Post by Matlo »

Did you connect two DS4 controllers to GIMX?
Please also post a full log file.
GIMX creator
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Re: Can't connect two adapters to PS4

Post by xleo »

Yes, I connected two PS4 controllers. I have the same issue with the PS3 console. When I try to connect two PS3 controllers just one of those works.

This doesn't work:

Code: Select all

gimx --status --nograb --config ps3-dual.xml -t Sixaxis -h 0 -b 90:34:FC:DF:8A:E6 -t Sixaxis -h 1 -b 90:34:FC:DF:8A:E6
ps3-dual.xml: https://gist.github.com/anonymous/f000d ... fd1c815abf


But when I lunch a process by each controller It works as expected!

This works:

# console 1

Code: Select all

gimx --status --nograb --config ps3-0.xml -t Sixaxis -h 0 -b 90:34:FC:DF:8A:E6
# console 2

Code: Select all

gimx --status --nograb --config ps3-1.xml -t Sixaxis -h 1 -b 90:34:FC:DF:8A:E6
ps3-0.xml: https://gist.github.com/anonymous/499fa ... 93443aafde
ps3-1.xml: https://gist.github.com/anonymous/c7dbc ... abd0120417


Maybe is there an issue with the command? Is it correct the command for two adapters?

I will provide you the full log later.

Thanks!
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Can't connect two adapters to PS4

Post by Matlo »

Full logs will help figuring out.
GIMX creator
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Re: Can't connect two adapters to PS4

Post by xleo »

Here is the complete log for ps3

Code: Select all

$ gimx --type Sixaxis --config ps3-dual.xml --hci 0 --bdaddr 90:34:FC:DF:8A:E6 --hci 2 --bdaddr 90:34:FC:DF:8A:E6 --status --nograb
controller #1: option -t with value `Sixaxis'
global option -c with value `ps3-dual.xml'
controller #1: option -h with value `0'
controller #1: option -b with value `90:34:FC:DF:8A:E6'
now reading arguments for controller #2
controller #2: option -h with value `2'
controller #2: option -b with value `90:34:FC:DF:8A:E6'
now reading arguments for controller #3
grab flag is unset
status flag is set
using default refresh period: 10.00ms
A device name is empty. Multiple mice and keyboards are not managed.
Warning: can't open macro directory /home/lvidarte//.gimx//macros/
connecting with hci0 = 34:C7:31:9C:9D:4E to 90:34:FC:DF:8A:E6 psm 0x0011
connecting with hci2 = 08:A9:5A:26:3B:51 to 90:34:FC:DF:8A:E6 psm 0x0011
connecting with hci0 = 34:C7:31:9C:9D:4E to 90:34:FC:DF:8A:E6 psm 0x0013
connected with hci0 = 34:C7:31:9C:9D:4E to 90:34:FC:DF:8A:E6
connecting with hci2 = 08:A9:5A:26:3B:51 to 90:34:FC:DF:8A:E6 psm 0x0013
connected with hci2 = 08:A9:5A:26:3B:51 to 90:34:FC:DF:8A:E6
0 1484750629.897160                                       <---- all 0's work ok
0 1484750631.040962, down (255)
0 1484750631.164712
0 1484750631.592218, up (255)
0 1484750631.738623
0 1484750631.974765, up (255)
0 1484750632.087243
1 1484750636.587345, left (255)                     <---- this doesn't work
1 1484750636.769791
1 1484750638.072459, down (255)
1 1484750638.188634
1 1484750638.454859, right (255)
1 1484750638.578595
1 1484750638.803686, square (255)
1 1484750638.907387
1 1484750643.058712, PS (255)
1 1484750643.157534
My config: https://gist.github.com/anonymous/236b0 ... 98fee7971e

My adapters:

Code: Select all

$ hciconfig -a
hci2:	Type: BR/EDR  Bus: USB
	BD Address: 08:A9:5A:26:3B:51  ACL MTU: 310:10  SCO MTU: 64:8
	UP RUNNING PSCAN 
	RX bytes:63551 acl:1083 sco:0 events:73 errors:0
	TX bytes:1127 acl:22 sco:0 commands:37 errors:0
	Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF PARK 
	Link mode: SLAVE ACCEPT 
	Name: 'globant #3'
	Class: 0x000508
	Service Classes: Unspecified
	Device Class: Peripheral, Gamepad
	HCI Version: 2.0 (0x3)  Revision: 0xc5c
	LMP Version: 2.0 (0x3)  Subversion: 0xc5c
	Manufacturer: Cambridge Silicon Radio (10)

hci0:	Type: BR/EDR  Bus: USB
	BD Address: 34:C7:31:9C:9D:4E  ACL MTU: 1017:8  SCO MTU: 64:0
	UP RUNNING PSCAN ISCAN 
	RX bytes:1901 acl:0 sco:0 events:62 errors:0
	TX bytes:740 acl:0 sco:0 commands:62 errors:0
	Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF PARK 
	Link mode: SLAVE ACCEPT 
	Name: 'leotooth2'
	Class: 0x1c010c
	Service Classes: Rendering, Capturing, Object Transfer
	Device Class: Computer, Laptop
	HCI Version: 2.0 (0x3)  Revision: 0x3000
	LMP Version: 2.0 (0x3)  Subversion: 0x420b
	Manufacturer: Broadcom Corporation (15)

hci1:	Type: BR/EDR  Bus: USB
	BD Address: 94:65:9C:65:66:BF  ACL MTU: 1021:5  SCO MTU: 96:6
	UP RUNNING PSCAN 
	RX bytes:3382 acl:0 sco:0 events:280 errors:0
	TX bytes:50628 acl:0 sco:0 commands:279 errors:0
	Features: 0xff 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF 
	Link mode: SLAVE ACCEPT 
	Name: 'leotooth'
	Class: 0x1c010c
	Service Classes: Rendering, Capturing, Object Transfer
	Device Class: Computer, Laptop
	HCI Version: 4.2 (0x8)  Revision: 0x1000
	LMP Version: 4.2 (0x8)  Subversion: 0x1000
	Manufacturer: Intel Corp. (2)
GIMX version: GIMX 6.3 x86_64
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Re: Can't connect two adapters to PS4

Post by xleo »

Hi, is it enough information? do you need something more? Thanks!
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Can't connect two adapters to PS4

Post by Matlo »

No, thanks. I need some time to try it myself.
GIMX creator
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Re: Can't connect two adapters to PS4

Post by xleo »

Hi, I found that the sixaxis_number was hardcoded in the send_report call. I changed that and now it works for ps3 adapters.

Here is my change https://github.com/matlo/GIMX/pull/428
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Can't connect two adapters to PS4

Post by Matlo »

I merged your pull request. Thanks!
GIMX creator
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Re: Can't connect two adapters to PS4

Post by xleo »

Thanks to you! now I have to resolve the original issue with ps4 adapters. I didn't find the same problem in the btds4 module.
Post Reply