Difference between revisions of "Bluetooth"
From RobolaboWiki
(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...") |
|||
Line 30: | Line 30: | ||
</pre> | </pre> | ||
− | < | + | <h1> Connect to a bluetooth </h1> |
<pre> | <pre> | ||
rfcomm connect 0 xx:xx:xx:xx:xx:xx | rfcomm connect 0 xx:xx:xx:xx:xx:xx | ||
</pre> | </pre> | ||
or use rfcomm.conf | or use rfcomm.conf |
Revision as of 20:44, 10 December 2015
Contents
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
Connect to a bluetooth
rfcomm connect 0 xx:xx:xx:xx:xx:xx
or use rfcomm.conf