IoT (구 유비쿼터스)/라즈베리 파이

raspberry pi bluetooth connect

개발자_이훈규 2015. 1. 30. 22:26

1. Title


How to connect bluetooth?



2. Reference


http://www.raspberrypi.org/forums/viewtopic.php?p=521067



3. Command


sudo apt-get update

sudo apt-get install bluez bluez-utils minicom

sudo vi /etc/bluetooth/main.conf

    add this line towards the top:

    DisablePlugins = pnat

sudo hciconfig hci0 piscan

bluez-simple-agent


sdptool add sp

sudo rfcomm listen hci0


-------- waitting connect app ----------

When connect app, you can see the directory /dev/rfcomm0

( ls -l /dev/rfcomm0 )


4. term

rfcomm ( RFCOMM) - Radio Frequency Communication 프로토콜

http://en.wikipedia.org/wiki/List_of_Bluetooth_protocols#RFCOMM