You are here

how to do bluetooth pairing on centos

this is a story of a phone that wanted to pair with a centos box via bluetooth.

the centos box has a bluetooth dongle

the steps are:

1. install the bluetooth stack and python dependencies

yum -y install pygobject2 bluez

2. get simple-agent, the python script that pairs the bluetooth devices together

chmod +x simple-agent

3. get the mac address of the phone

hcitool scan

4. set the pin for your centos box

echo "1234" > /etc/bluetooth/pin

5. pair the 2 devices together

./simple-agent hci0 00:1D:3B:7E:62:20


i do not recommend using the bluetooth dongle for an extended period of time. my dongle seems to disappear from the OS after a few hours