I have an international Samsung Galaxy S7 SM-G930F (NOROOT) with a Gear VR. I can connect my XBOX360 Wireless Controller to this phone with the USB/BT Joycenter application 8.1 .
Unfortunately Samsung has removed USB OTG Support from the Consumer Gear VR and left over the only possibility to use bluetooth gamepads.
Therefore I have found your software GIMX and I am trying to expose my XBOX360 Wireless Controller as a Android Bluetooth Gamepad to use it in VR Applications.
I have setup Ubuntu 14.04 with the Bluetooth dongle and XBOX360 Wireless Controller and tested successful the functionality of both devices.
- Bluetooth = Standard Ubuntu Bluetooth application with exposing host and connecting to other devices
- Gamepad = Installing application gt-joytest and tested XBOX360 functionality (Buttons, rstick ... )
Code: Select all
osboxes@osboxes:~/.gimx/bluetooth/40:E2:30:3C:4F:7F$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
XBOX Controller -> Bus 002 Device 005: ID 045e:0719 Microsoft Corp. Xbox 360 Wireless Adapter
Bluetooth -> Bus 002 Device 004: ID 0b05:180a ASUSTek Computer, Inc.
I have downloaded the config X360PadUsb.xml and modified it to accept the XBOX360 Wireless Controller in GIMX
(Just Replacing the joystick name with Xbox 360 Wireless Receiver)
I have faked the gimx linkkeys setup by placing in the directory
Code: Select all
/.gimx/bluetooth/40:E2:30:3C:4F:7F
Code: Select all
00:00:00:00:00:00 0000 4 0
A4:84:31:2F:85:C6 0000 4 0
Code: Select all
Output hciconfig -a
Manufacturer: Broadcom Corporation (15)
Device address: 40:E2:30:3C:4F:7F
hci0: Type: BR/EDR Bus: USB
BD Address: 40:E2:30:3C:4F:7F ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:2637 acl:0 sco:0 events:136 errors:0
TX bytes:1429 acl:0 sco:0 commands:113 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'osboxes-1'
Class: 0x600100
Service Classes: Audio, Telephony
Device Class: Computer, Uncategorized
HCI Version: 4.0 (0x6) Revision: 0x16b2
LMP Version: 4.0 (0x6) Subversion: 0x220e
Manufacturer: Broadcom Corporation (15
Now the GIMX way.
I have started gimx with this commandline
Code: Select all
gimx --type DS4 --config X360PadUsb.xml --bdaddr A4:84:31:2F:85:C6 --hci 0 --nograb --status
Code: Select all
osboxes@osboxes:~$ gimx --type DS4 --config X360PadUsb.xml --bdaddr A4:84:31:2F:85:C6 --hci 0 --nograb --status
option -t with value `DS4'
option -c with value `X360PadUsb.xml'
option -b with value `00:04:0E:89:B9:09'
option -h with value `0'
grab flag is unset
status flag is set
using default refresh period: 10.00ms
Warning: can't open macro directory /home/osboxes//.gimx//macros/
listening on psm: 0x0001
listening on psm: 0x0011
listening on psm: 0x0013
Code: Select all
0 1460409944.568671
0 1460409944.618742
0 1460409944.747846, rstick y (1)
0 1460409945.118202
0 1460409945.128212, rstick x (14), rstick y (-3)
0 1460409945.138228, rstick x (15), rstick y (-4)
0 1460409945.158271, rstick x (17), rstick y (-4)
0 1460409945.168262, rstick x (17), rstick y (-7)
0 1460409945.178286, rstick x (19), rstick y (-7)
0 1460409945.188263, rstick x (19), rstick y (-9)
Code: Select all
root@osboxes:~# hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: 40:E2:30:3C:4F:7F ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:3943 acl:0 sco:0 events:168 errors:0
TX bytes:2061 acl:0 sco:0 commands:146 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'Wireless Controller'
Class: 0x002508
Service Classes: Unspecified
Device Class: Peripheral, Gamepad
HCI Version: 4.0 (0x6) Revision: 0x16b2
LMP Version: 4.0 (0x6) Subversion: 0x220e
Manufacturer: Broadcom Corporation (15)
Try to connect with S7 to the new Gamepad which is now recognized as a Gamepad in Android Bluetooth settings.
So the Blutooth link (Desktop) with the name osboxes-1 has changed to (Gamepad) Wireless Controller still paired but not connected.
Code: Select all
osboxes@osboxes:~/.gimx/bluetooth/40:E2:30:3C:4F:7F$ gimx --type DS4 --config X360PadUsb.xml --bdaddr A4:84:31:2F:85:C6 --hci 0 --nograb --status
option -t with value `DS4'
option -c with value `X360PadUsb.xml'
option -b with value `A4:84:31:2F:85:C6'
option -h with value `0'
grab flag is unset
status flag is set
using default refresh period: 10.00ms
Warning: can't open macro directory /home/osboxes//.gimx//macros/
listening on psm: 0x0001
listening on psm: 0x0011
listening on psm: 0x0013
Timer fired several times...
accepted connection from A4:84:31:2F:85:C6 (psm: 0x0001)
hci_open_dev: No such device
connecting with hci0 = 40:E2:30:3C:4F:7F to A4:84:31:2F:85:C6 psm 0x0011
connecting with hci0 = 40:E2:30:3C:4F:7F to A4:84:31:2F:85:C6 psm 0x0013
connection failed: Connection refused
can't connect to psm 0x0013
accepted connection from A4:84:31:2F:85:C6 (psm: 0x0001)
accepted connection from A4:84:31:2F:85:C6 (psm: 0x0001)
accepted connection from A4:84:31:2F:85:C6 (psm: 0x0001)
Timer fired several times...
Timer fired several times...
0 1460549588.965538, lstick x (37), lstick y (114), rstick x (4), rstick y (91), share (255), options (255), PS (255), up (255), right (255), down (255), circle (255), cross (255), l1 (255), r1 (255), l3 (255), r3 (255)
Exiting
I see that the bluetooth adapter is transferring
Code: Select all
RX bytes:2637 acl:0 sco:0 events:136 errors:0
TX bytes:1429 acl:0 sco:0 commands:113 errors:0
Please download the btsnoop_hci.log from Android (Wireshark format) http://s000.tinyupload.com/index.php?fi ... 8221690616
(If any other file hoster is required please let me know)
Maybe something with the linkkey ? I have set it to 0000 (see line 128 in the log)
It would be great if you could help me to connect it properly to the S7