Bluetooth connection problems on Fedora 20


#1

I’m trying to use muse-io on Fedora 20, but can’t seem to get it to work. I’m able to pair the Muse successfully, but I can’t seem to then “connect”. Here’s the output of a bluetoothctl session:

[B][bluetooth]# scan on[/B]
Discovery started
[CHG] Controller 00:21:86:BF:6E:46 Discovering: yes
[NEW] Device 00:06:66:69:50:61 Muse
[CHG] Device 00:06:66:69:50:61 RSSI: -86
[B][bluetooth]# pair 00:06:66:69:50:61[/B]
Attempting to pair with 00:06:66:69:50:61
[CHG] Device 00:06:66:69:50:61 Connected: yes
[CHG] Device 00:06:66:69:50:61 UUIDs:
00000000-deca-fade-deca-deafdecacaff
00001101-0000-1000-8000-00805f9b34fb
[CHG] Device 00:06:66:69:50:61 Paired: yes
Pairing successful
[CHG] Device 00:06:66:69:50:61 Connected: no
[CHG] Device 00:06:66:69:50:61 RSSI: -78
[B][bluetooth]# connect 00:06:66:69:50:61[/B]
Attempting to connect to 00:06:66:69:50:61
[CHG] Device 00:06:66:69:50:61 RSSI: -86
[CHG] Device 00:06:66:69:50:61 Connected: yes
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 00:06:66:69:50:61 RSSI: -78
[CHG] Device 00:06:66:69:50:61 Connected: no

It says “Connected: yes” first, but then says “Connected: no” a short while after that. I’m assuming that it’s necessary to successfully connect here in order to run muse-io.


#2

I would try running muse-io after the connection to confirm whether or not it is functioning. I am running Mac OS X but have seen cases where it did not appear that the connection was active, but when I ran muse-io it would connect and run.


#3

I thought I’d clarify the meaning of pairing and connecting.

Pairing is a process you do with a bluetooth device to identify each other. It’s a formal handshake where a unique key is exchanged for future connections. When you pair a bluetooth device you’re not connecting to it as much as deciding a unique key. Yes, Muse will show connected after pairing briefly because a connection is necessary to generate this key. However, pairing is not connecting.

Once you have paired, your device is ready to connect to Muse. This is presently done on any computer by launching Muse-IO.

Do not launch Muse-IO before the pairing process finishes. Give it a few seconds to finish the entire pairing process. Once you’re paired you should not need to pair again in the future or enter pairing mode at all if you don’t switch devices talking to Muse.

Hope that helps.


#4

I’m now able to use muse-io successfully with version 3.0.2 of the SDK. In the bluetoothctl session above, the “connect” command above is not required, just the pair command. Once the device has been paired successfully, muse-io can be run with the following arguments:

muse-io --preset 14 --device 00:06:66:69:50:61 --osc osc.udp://localhost:5000

The key is to use the MAC address of the Muse in the --device argument.