Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # HowTo pair Bluetooth device with the Pi
- #
- # Install Bluetooth + tools and start Bluetooth service
- #
- apt-get install bluetooth bluez-utils sysv-rc-conf
- sysv-rc-conf bluetooth on
- /etc/init.d/bluetooth restart
- #
- # Put the BT device in discovery mode and scan for BT devices
- #
- hcitool scan
- #
- # Start a Bluetooth agent to interface with the BT device
- # Replace "xx:xx:xx:xx:xx:xx" with the address found during scan
- # Make up a PIN code when asked and confirm the pin on the BT device
- #
- bluez-simple-agent hci0 xx:xx:xx:xx:xx:xx
- #
- # Make the BT device trusted to allow auto connect
- #
- bluez-test-device trusted xx:xx:xx:xx:xx:xx yes
- #
- # Connect to the BT device
- #
- bluez-test-input connect xx:xx:xx:xx:xx:x
- #
- # The BT device should be available now
- # If necessary to remove a trusted BT device enter
- #
- bluez-test-device remove xx:xx:xx:xx:xx:xx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement