Raspberry pi 3 and bluetooth.

Need help? Ask here and someone will help
Post Reply
ChesShires
Posts: 3
Joined: Fri Apr 08, 2016 1:00 pm

Raspberry pi 3 and bluetooth.

Post by ChesShires »

Hi guys.
First, be cool with my english, i'm a french gamer.
I've installed the .deb version of the game and do each step for synchronising the dualshock3 to gimx-launcher.
but when i press Start, i got this :
option -l avec la valeur `log.txt'
option -c avec la valeur `PS3_CallOfDutyBlackOps.xml'
option -t avec la valeur `Sixaxis'
option -h avec la valeur `0'
option -b avec la valeur `B8:27:EB:66:B7:B4'
le flag "status" est positionné
le flag "subpos" est positionné
le flag "force_updates" est positionné
GIMX 5.7 ARMv6
Raspbian GNU/Linux 8.0 (jessie)
Linux 4.1.21-v7+ #872 SMP Wed Apr 6 17:34:14 BST 2016 unknown
Bus 001 Device 006: ID 1a2c:0c21 China Resource Semico Co., Ltd
Bus 001 Device 005: ID 1d57:ad03 Xenta
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 2: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 3: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 3: Dev 6, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
utilisation de la période de rafraîchissement par défaut : 10.00ms
Un nom de device est vide. Les souris et claviers multiples ne sont pas gérés.
Warning: can't open macro directory /home/pi//.gimx//macros/
connecting with hci0 = 00:26:43:D3:30:BE to B8:27:EB:66:B7:B4 psm 0x0011
connection failed: L'hôte cible est arrêté ou en panne
can't connect to psm 0x0011
0 1460120713.027447
Sortie
hci_disconnect: Le descripteur du fichier est dans un mauvais état

Thanks in advance for help, ChesShires.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Raspberry pi 3 and bluetooth.

Post by Matlo »

Hi,
This kind of error may happen with fake dualshock 3 clones that do not provide the right ps3 bluetooth address.
GIMX creator
ChesShires
Posts: 3
Joined: Fri Apr 08, 2016 1:00 pm

Re: Raspberry pi 3 and bluetooth.

Post by ChesShires »

No seriously, I've get this dualshock with the official ps3 pack.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Raspberry pi 3 and bluetooth.

Post by Matlo »

Ok. Did you pair this Dualshock 3 with the PS3?
GIMX creator
ChesShires
Posts: 3
Joined: Fri Apr 08, 2016 1:00 pm

Re: Raspberry pi 3 and bluetooth.

Post by ChesShires »

Yes, I want to play Mw3 with keyboard and mouse.
EDIT: Au passage, j'suis Français, au cas où :)
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Raspberry pi 3 and bluetooth.

Post by Matlo »

Ok. Est-ce que tu as appairé la Dualshock 3 à la PS3 ?
GIMX creator
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Re: Raspberry pi 3 and bluetooth.

Post by xleo »

Hi, I'm getting the same issue.

I following all steps from here https://gimx.fr/wiki/index.php?title=RPi

Mi config is

Code: Select all

$ gimx --version
GIMX 6.3 ARMv6

Code: Select all

$ uname -a
Linux raspberrypi 4.4.37-v7+ #936 SMP Fri Dec 9 16:56:49 GMT 2016 armv7l GNU/Linux
I used sixaddr to get the mac for the paired controller and the host, then I set the mac for the controller with bdaddr

Code: Select all

$ sixaddr
Current Bluetooth master: 90:34:FC:DF:8A:E6
Current Bluetooth Device Address: 08:A9:5A:26:3B:51

$ bdaddr -r -i hci0 08:A9:5A:26:3B:51
Manufacturer:   Broadcom Corporation (15)
Device address: AA:AA:AA:AA:AA:AA
New BD address: 08:A9:5A:26:3B:51

Address changed - Device reset successully
Just for check...

Code: Select all

$ bdaddr -i hci0
Manufacturer:   Broadcom Corporation (15)
Device address: 08:A9:5A:26:3B:51

Code: Select all

$ hciconfig -a
hci0:	Type: BR/EDR  Bus: UART
	BD Address: 08:A9:5A:26:3B:51  ACL MTU: 1021:8  SCO MTU: 64:1
	UP RUNNING 
	RX bytes:1750 acl:0 sco:0 events:84 errors:0
	TX bytes:943 acl:0 sco:0 commands:86 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: 'BCM43430A1'
	Class: 0x000508
	Service Classes: Unspecified
	Device Class: Peripheral, Gamepad
	HCI Version: 4.1 (0x7)  Revision: 0x0
	LMP Version: 4.1 (0x7)  Subversion: 0x2209
	Manufacturer: Broadcom Corporation (15)
I turned off the ps3 controller (I already checked that it's original) and when I trying to connect I get the following error

Code: Select all

$ gimx --type Sixaxis --config PS3_Crysis2.xml --hci hci0 --bdaddr 90:34:FC:DF:8A:E6 --nograb --status
controller #1: option -t with value `Sixaxis'
global option -c with value `PS3_Crysis2.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
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/pi//.gimx//macros/
connecting with hci0 = 08:A9:5A:26:3B:51 to 90:34:FC:DF:8A:E6 psm 0x0011
connection failed: Host is down
can't connect to psm 0x0011
0 1481572864.128003
Exiting
hci_disconnect: Input/output error
What am I doing wrong?
Thanks
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Re: Raspberry pi 3 and bluetooth.

Post by xleo »

Is there another way to get the PS3 bluetooth address?
xleo
Posts: 11
Joined: Wed Dec 07, 2016 6:32 pm

Re: Raspberry pi 3 and bluetooth.

Post by xleo »

Hi, I commented init_uart_clock=8000000 in /boot/config.txt, I restarted... and now it works!
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Raspberry pi 3 and bluetooth.

Post by Matlo »

Did you follow the "USB adapter using the on-board UART interface" instructions?
This would be wrong, these instructions are not needed for the bluetooth method.
GIMX creator
Post Reply