Support for more than one BT adapter

Bug #734397 reported by Paul McMahon
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QtSixA
New
Undecided
Unassigned

Bug Description

Hi, thanks for qtsixa--it's very close to what I need!
What I'm really aiming for is to support two BT connections--one from the sixaxis controller, and another to a Lego NXT robot. I have two BT adapters in my system, correctly recognized at hci0 and hci1. I have no problems using my Sixaxis controller in ubuntu as a remote joystick -- slick!

My problem is that once I run sixad, the bluetooth service is stopped, so I can't access the other adapter. Is there a way to prevent killing the second adapter when sixad runs?

thanks
Ubuntu 10.10
Qt version: 4.7.0
PyQt version: 4.7.4
QtSixA version: 1.5.0

Revision history for this message
falkTX (Old) (falk-t-j) wrote :

the sixad driver needs 'hcid' to work, which conflicts with the regular bluetooth.

but, if you have 2 bt adapters, I guess you can make them work separately.

the steps should be:
1 - set (normal) bluetooth device as hci1 (leaving default hci0 for sixaxis).
(you should have a GUI for this...)
2 - connect the sixaxis using these commands:
$ sudo modprobe uinput
$ sudo hcid -n # will not close (ignore errors about config file)
$ sudo sixad-bin 0 0 # 1st argument for DEBUG, 2nd is LEGACY_MODE

press ps button, and it should work.

let me know how it goes

Revision history for this message
Kirkulez (tokirkules) wrote :

I tried these steps as I have a similar issue. hci0 is the adapter I want to use with sixad. But I end up with this

$ sudo modprobe uinput
$ sudo hcid -n
hcid[31747]: Bluetooth HCI daemon
hcid[31747]: Can't bind HCI socket: Invalid argument (22)
$ sudo sixad-bin 0 0
sixad-bin requires 'sixad'. Please run sixad instead

I tried both:
$ sudo sixad 0 0
$ sudo sixad -s 0 0

Both of which fail of course

Do you know how to do this as of version 1.5?

Thanks again!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.