Contents
Errors when using ps3joy
Error: Won't run in Karmic.
$ sudo ./ps3joy.py No inactivity timeout was set. (Run with --help for details.) Error binding to socket. Do you have another ps3joy.py running? This error occurs on some distributions (such as Ubuntu Karmic). Please read http://wiki/ps3joy/Troubleshooting for solutions.
- You need python-bluez version 0.18, and you need to disable automatic loading of bluetoothd.
 
Error: Won't connect in Karmic.
The driver says it is waiting for a connection, but no connection happens. Gnome pairing dialog boxes might also be popping up. Solution:
Is bluetoothd running?
$ ps ax|grep bluetoothd
Error: usb_claim_interface: Operation not permitted
$ rosrun ps3joy sixpair usb_claim_interface: Operation not permitted
Solution:
- Are you running as root? 
$ sudo bash
 
Error: No controller found on USB busses.
$ rosrun ps3joy sixpair No controller found on USB busses.
Solution:
- Is the joystick plugged in via USB?
 
Error: Unable to retrieve local bd_addr from `hcitool dev`
rosrun ps3joy sixpair Current Bluetooth master: 00:22:b0:d0:5a:09 Unable to retrieve local bd_addr from `hcitool dev`. Please enable Bluetooth or specify an address manually.
Solution:
- Is the USB interface up and running? 
$ sudo hciconfig hci0 hci0: Type: USB BD Address: 00:22:B0:D0:5A:09 ACL MTU: 384:8 SCO MTU: 64:8 DOWN RX bytes:1068796 acl:18423 sco:0 events:70 errors:0 TX bytes:496 acl:20 sco:0 commands:33 errors:0If the interface says DOWN:$ sudo hciconfig hci0 up
Then:$ sudo hciconfig hci0 hci0: Type: USB BD Address: 00:22:B0:D0:5A:09 ACL MTU: 384:8 SCO MTU: 64:8 UP RUNNING RX bytes:1069138 acl:18423 sco:0 events:80 errors:0 TX bytes:531 acl:20 sco:0 commands:43 errors:0 - Does the interface need to be reset? 
$ sudo hciconfig hci0 reset
 - None of theses solutions work? 
Try this resource for bluetooth programming http://people.csail.mit.edu/rudolph/Teaching/Articles/PartOfBTBook.pdf