ps3joy with Ubuntu 14.04 and bluetooth
Hello,
I followed instructions at http://wiki.ros.org/ps3joy/Tutorials/PairingJoystickAndBluetoothDongle and unfortunately I failed to get the controller working.
root@daredevil:/opt/ros/jade/share/ps3joy# rosrun ps3joy sixpair
after I issue this command I get:
Current Bluetooth master: cc:52:af:84:85:f9
Setting master bd_addr to cc:52:af:84:85:f9
and then when I run ps3joy I get:
root@daredevil:/opt/ros/jade/share/ps3joy# rosrun ps3joy ps3joy.py
No inactivity timeout was set. (Run with --help for details.)
Waiting for connection. Disconnect your PS3 joystick from USB and press the pairing button.
No valid data for 5 seconds. Disconnecting. This should not happen, please report it.
Connection terminated.
Waiting for connection. Disconnect your PS3 joystick from USB and press the pairing button.
No valid data for 5 seconds. Disconnecting. This should not happen, please report it.
Meanwhile in /var/log/syslog
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Successfully made thread 2171 of process 2090 (n/a) owned by '1001' RT at priority 5.
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Supervising 6 threads of 2 processes of 2 users.
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Successfully made thread 2172 of process 2090 (n/a) owned by '1001' RT at priority 5.
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Supervising 7 threads of 2 processes of 2 users.
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Successfully made thread 2173 of process 2090 (n/a) owned by '1001' RT at priority 5.
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Supervising 8 threads of 2 processes of 2 users.
Jun 30 21:47:34 daredevil bluetoothd[660]: Endpoint registered: sender=:1.81 path=/MediaEndpoint/HFPAG
Jun 30 21:47:34 daredevil bluetoothd[660]: Endpoint registered: sender=:1.81 path=/MediaEndpoint/HFPHS
Jun 30 21:47:34 daredevil bluetoothd[660]: Endpoint registered: sender=:1.81 path=/MediaEndpoint/A2DPSource
Jun 30 21:47:34 daredevil bluetoothd[660]: Endpoint registered: sender=:1.81 path=/MediaEndpoint/A2DPSink
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Successfully made thread 2175 of process 2175 (n/a) owned by '1001' high priority at nice level -11.
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Supervising 9 threads of 3 processes of 2 users.
Jun 30 21:47:34 daredevil pulseaudio[2175]: [pulseaudio] pid.c: Daemon already running.
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Successfully made thread 2179 of process 2179 (n/a) owned by '1001' high priority at nice level -11.
Jun 30 21:47:34 daredevil rtkit-daemon[1344]: Supervising 9 threads of 3 processes of 2 users.
Jun 30 21:47:34 daredevil pulseaudio[2179]: [pulseaudio] pid.c: Daemon already running.
Jun 30 21:47:34 daredevil dbus[559]: [system] Activating service name='org.freedesktop.locale1' (using servicehelper)
Jun 30 21:47:34 daredevil dbus[559]: [system] Successfully activated service 'org.freedesktop.locale1'
Jun 30 21:47:34 daredevil colord: Device added: xrandr-AU Optronics
Jun 30 21:47:35 daredevil colord: Automatic metadata add icc-74bf4293585cf428a2974b6ede9b36c1 to xrandr-AU Optronics
Jun 30 21:47:35 daredevil colord: Profile added: icc-74bf4293585cf428a2974b6ede9b36c1
Jun 30 21:47:35 daredevil dbus[559]: [system] Activating service name='org.freedesktop.UDisks2' (using servicehelper)
Jun 30 21:47:35 daredevil udisksd[2236]: udisks daemon version 2.1.3 starting
Jun 30 21:47:35 daredevil dbus[559]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Jun 30 21:47:35 daredevil udisksd[2236]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jun 30 21:47:52 daredevil bluetoothd[660]: Endpoint unregistered: sender=:1.40 path=/MediaEndpoint/HFPAG
Jun 30 21:47:52 daredevil bluetoothd[660]: Endpoint unregistered: sender=:1.40 path=/MediaEndpoint/HFPHS
Jun 30 21:47:52 daredevil bluetoothd[660]: Endpoint unregistered: sender=:1.40 path=/MediaEndpoint/A2DPSource
Jun 30 21:47:52 daredevil bluetoothd[660]: Endpoint unregistered: sender=:1.40 path=/MediaEndpoint/A2DPSink
Jun 30 21:51:46 daredevil kernel: [ 289.399106] usb 1-2: new full-speed USB device number 2 using xhci_hcd
Jun 30 21:51:47 daredevil kernel: [ 289.550335] usb 1-2: New USB device found, idVendor=054c, idProduct=0268
Jun 30 21:51:47 daredevil kernel: [ 289.550348] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun 30 21:51:47 daredevil kernel: [ 289.550357] usb 1-2: Product: PS(R) Gamepad
Jun 30 21:51:47 daredevil kernel: [ 289.550364] usb 1-2: Manufacturer: Gasia Co.,Ltd
Jun 30 21:51:47 daredevil mtp-probe: checking bus 1, device 2: "/sys/devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb1/1-2"
Jun 30 21:51:47 daredevil mtp-probe: bus: 1, device: 2 was not an MTP device
Jun 30 21:51:47 daredevil kernel: [ 289.591427] input: Gasia Co.,Ltd PS(R) Gamepad as /devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb1/1-2/1-2:1.0/0003:054C:0268.0002/input/input24
Jun 30 21:51:47 daredevil kernel: [ 289.592194] sony 0003:054C:0268.0002: input,hiddev0,hidraw1: USB HID v1.11 Joystick [Gasia Co.,Ltd PS(R) Gamepad] on usb-0000:26:00.0-2/input0
Jun 30 21:54:34 daredevil bluetoothd[660]: Terminating
Jun 30 21:54:34 daredevil bluetoothd[660]: Endpoint unregistered: sender=:1.81 path=/MediaEndpoint/A2DPSink
Jun 30 21:54:34 daredevil bluetoothd[660]: Endpoint unregistered: sender=:1.81 path=/MediaEndpoint/A2DPSource
Jun 30 21:54:34 daredevil bluetoothd[660]: Endpoint unregistered: sender=:1.81 path=/MediaEndpoint/HFPAG
Jun 30 21:54:34 daredevil bluetoothd[660]: Endpoint unregistered: sender=:1.81 path=/MediaEndpoint/HFPHS
Jun 30 21:54:34 daredevil bluetoothd[660]: Stopping SDP server
Jun 30 21:54:34 daredevil bluetoothd[660]: Exit
Jun 30 21:54:34 daredevil bluez: Stopping uarts
Jun 30 21:54:34 daredevil bluez: Stopping rfcomm
Jun 30 21:54:35 daredevil kernel: [ 458.230126] input: Sony Playstation SixAxis/DS3 as /devices/virtual/input/input25
Jun 30 21:54:38 daredevil kernel: [ 460.884148] usb 1-2: USB disconnect, device number
For some reason the controller will not pair. I am using the latest 14.04 and I think the bluetooth configuration has changed.
I also tried instructions at http://wiki.ros.org/ps3joy/KarmicInstructions to disable input plugin for the bluetooth module, and it still would not pair.
Method 2: Prevent bluetoothd from being loaded by udev
also this method 2 was not applicable. because now there is the 97-bluetooth-hid2hci.rules file and it will not contain the previous versions input.
Any ideas/recomendations/help would be greatly appreciated.
Best, -C.
Connection terminated.
Asked by wintermute on 2016-06-30 14:03:19 UTC
Comments
same problem! Did you solve the problem? Could you share how you do it? Thx!
Asked by blueflame on 2016-09-21 17:45:28 UTC