TL;DR Link to heading
In this article we are going see how to connect HC-06 Bluetooth in Ubuntu, which is commonly used in embedded systems such as arduino. But this time we will see how to use it with linux in order to interact with bluetooth channels.
Configuration Link to heading
So first thing first we need to pair this device with ubuntu using the Bluetooth GUI in Ubuntu .
Select the device and make sure you set up the Pin Option to ‘1234’.
Then, Open the Terminal and make sure that you can see the device !
$ hcitool scan
Now go head and edit this file :
$ sudo vi /etc/bluetooth/rfcomm.conf
uncomment and change it to :
# Automatically bind the device at startup
# Bluetooth address of the device
# RFCOMM channel for the connection
# Description of the connection
Make sure you change the device to your HC-06 Module Address !.
Finally, bind the device with :
$ sudo rfcomm bind rfcomm0
Then use minicom to communicate with the modue in serial !
$ sudo minicom -D /dev/rfcomm0 -b 9600 -8
and don’t forget to release the device when you finished
$ sudo rfcomm release rfcomm0