Pair a Raspberry Pi and Android phone¶
Using the Desktop¶
On your Android phone:
- Open Settings
- Select Bluetooth and make your phone “discoverable”
On your Raspberry Pi:
- Click (if it’s off)
- Click
- Click
- Your phone will appear in the list, select it and click Pair
On your Android phone and Raspberry Pi.
- Confirm the pairing code matches
- Click OK
Note
You may receive errors relating to services not being able available or being unable to connect: these can be ignored, your phone and Raspberry Pi are now paired.
Using the Command Line¶
On your Android phone:
- Open Settings
- Select Bluetooth and make your phone “discoverable”
On your Raspberry Pi:
Type bluetoothctl and press Enter to open Bluetooth control
At the
[bluetooth]#
prompt enter the following commands:discoverable on pairable on agent on default-agent scan on
Wait for a message to appear showing the Android phone has been found:
[NEW] Device 12:23:34:45:56:67 devicename
Type pair with the mac address of your Android phone:
pair 12:23:34:45:56:67
On your Android phone and Raspberry Pi.
- Confirm the passcode.
- Type quit and press Enter to return to the command line