Bluetooth

From RobolaboWiki
Revision as of 20:44, 10 December 2015 by Aguti (Talk | contribs) (Created page with "<!--__NOTOC__--> <h1> RFCOMM does not allow to connect a user </h1> <pre> sudo chmod u+s /usr/bin/rfcomm </pre> <h1> Pairing bluetooth in command line </h1> <pre> bluez-si...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


RFCOMM does not allow to connect a user

sudo chmod u+s /usr/bin/rfcomm

Pairing bluetooth in command line

bluez-simple-agent hci# xx:xx:xx:xx:xx:xx

Replace # with the Bluetooth adapter number (e.g. hci0) and xx:xx:xx:xx:xx:xx with the MAC of our Bluetooth device

To get the number of our adapter

hciconfig 

To get the MAC

hcitool scan

DE-Pairing bluetooth in command line

bluez-simple-agent hci# xx:xx:xx:xx:xx:xx remove

</h1> Connect to a bluetooth </h1>

rfcomm connect 0 xx:xx:xx:xx:xx:xx

or use rfcomm.conf