I'm having an issue with my Mac where if I try to pair it with my Pi using Bluetooth, it connects after confirming the code it displays, then after about 5-10 seconds, it randomly disconnects. I don't get an error, it just drops my connection from each device that I have paired with my Pi.
Here's what I am using:
- Raspberry Pi 2 Model B+ (Canakit Edition)
- Plugable USB Bluetooth 4.0 Low Energy Micro Adapter
- Macbook-Air Mid 2011, 11-inch. (Running OS X 10.10.3 to(*) 10.10.5 Yosemite)
The software I'm using is
I don't know if this is a timeout thing with Mac or with my Pi but I can never get it to stay connected for more than 10 seconds.
(*) - The reason I said to on my specs of my Mac is because more than one Mac will be pairing, specifically about 20 Macbook Airs, all of the same model.
UPDATE 28/3/16 -
I found a way to keep it paired. It doesn't make any sense, but if I go to the Blueman Bluetooth Manager and setup a new device under a group network, I somehow stay connected to the Pi. It never establishes a connection to the "group network", but it does keep the Pi and Mac connected. (Not really what I'm looking for though.)
UPDATE 29/3/16 -
Bluedevil, as well as executing through
bluetoothctlthat @Chris suggested, but no luck. Started looking into editting the
/usr/bin/bluetoothctlto bypass the issue specified in @Chris' 2nd link in his post, which got confusing as the line already existed when the tutorial stated it didn't, making me guess it was outdated. Will be trying the first link method later when I can to see if it fixes it. I did try to pair it with the Windows 10 side of a Mac Mini and I actually was able to pair successfully, yet when on OS X on the Mac Mini, it didn't pair correctly.
UPDATE 4/4/16 -
Haven't been able to fix this problem. Also came around an issue when checking for an address nearby using a Python script, but my device I'm testing it with is shut down and the only way I can stop it from automatically saying it's here is by removing it from trusted devices.