I have an Arduino Uno connected to an HC-05 Bluetooth sender/receiver chip. I am trying to create a Bluetooth connection between my Acer laptop running under Ubuntu 14.04 LTS and the HC-05 chip.
Ubuntu detects the HC-05 chip, as can be seen below.
phodor@ubuntu: hcitool scan
Scanning ...
11:22:33:44:55:66 HC-05
I am able to create a pair between my laptop Bluetooth device and the HC-05 chip. However, I am unable to create a connection with that pair from the Ubuntu interface. The "Connection" button cannot be clicked on, as you can see on the figure below.
I tried creating a connection using the terminal, but after that the terminal still did not detect any connection.
phodor@ubuntu: sudo hcitool cc 11:22:33:44:55:66
[sudo] password for phodor:
phodor@ubuntu: hcitool con
Connections:
I also checked that my computer Bluetooth device was working.
phodor@ubuntu: hcitool dev
Devices:
hci0 AA:BB:CC:DD:EE:FF
Any idea why the connection cannot be created ? Any idea on how to do it using the Ubuntu interface or the terminal ?
The suggestion from ubfan1 is complete and uses rfcomm to establish a connection with a bluetooth device. If it doesn't work you should try what follows:
I am using rfcomm and minicom to exchange data between a bluetooth device Hc-06 connected to an Arduino and Ubuntu.
Scan for bluetooth devices:
Bind using rfcomm
NB: bind 0 refers to device number 0 (rfcomm0) and 1 is the channel. The red led should now stop blinking.
Then use minicom with sudo and save a configuration in which you specify the baudrate and the port. You can find more informations on this tutorial.
Hope it helps!
Here's my (working) example of using the rfcomm for hooking up a bluetooth gps -- a bit of a pain I must say! Hope this helps, I used it with viking and openstreetmaps.
To trigger the connection & display the data using minicom, run
You'll notice that port /dev/rfcomm0 will be available from the arduino IDE as well.