radiokk6
Posts: 18
Joined: Sun Jul 09, 2017 1:09 am

Succesfully paired a Mac mini with Rpi3B using Bluetooth with Stretch....I think

Tue Aug 22, 2017 2:58 am

So, my goal was to connect my Mac mini to by Rpi3B with Stretch. My previous attempts at doing the samething with Jessie failed.
I wanted to share my experience so others may benefit. Initially, this did not work out of the box. But, I think I found the right sequence of events. I would be interetested to see if others have the same experience.

Under Jessie, I was never able to maintain the Bluetooth connection. It would connect but then in less than 5 seconds it would immediately disconnect and/or give an error about Bluez. Updating Jessie to the latest packages did not help.

So, I decided to try Stretch. I installed Stretch with Etch. No NOOBS. My SDcard was a 32GB card.

1. After Stretch booted, I did the following

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dost-upgrade

2. Next, with the rpi configuration tool in the desktop GUI, I enabled the ssh and serial interfaces; My actual goal will use these things so I turned them on.

3. I turned on Bluetooth on my Mac Mini which was running OS X 10.12.6

4. On the Rpi3B, I went to the Bluetooth icon and made the Rpi3B 'discoverable'.

5. On the Rpi3B, I ran bluetoothctl this way : sudo bluetoothctl

6. When bluetoothctl started, it listed the Rpi3B and my Mac Mini's bluetooth addresses.

7.Opened the Bluetooth Prefernces on the Mac Mini.

8. On the Rpi3B in bluetoothctl, I then entered the command: scan on

9. I waited until I saw the bluetooth ID of my Mac Mini and then entered in the bluetoothctl tool: scan off

10. On the Mac Mini in the Bluetooth tool, the 'raspberrypi' was listed as 'Not Connected'. I deleted it to force the Mac to also scan for the Rpi3B.

11. On the Mac Mini, a popup appeared asking if I would allow a pair. I accept it.

12. On the bluetoothctl on the Rpi3B, it will show that the pairing worked, but then say immediately afterwords that the there is no pairing.

13. But, when I ran the bluetoothctl command on the rpi3b, the mac mini showedd as paired: paired-devices

And when I ran my actual application(OSX screen connection to Rpi3B), it worked. so, it worked!

Note, you may try something similar. And it may not work. I believe if you follow the steps outlined here, then it will work for you.

One of the problems I ran into was that I attempted to do all of this via the Raspbian Stretch desktop GUI and Mac OSX GUI. Imho, this will only work if you use bluetoothctl on the Rpi3B.

I hope this helps someone!

Return to “Raspberry Pi OS”