Tuesday, November 3, 2015

Raspberry Pi Bluetooth Serial Terminal, using HC-06 Bluetooth Module.

HC-06 is Bluetooth to UART Converter. This  post show how to config Raspberry Pi 2 running Raspbian Jessie, to connect HC-06 with serial port. Connect and log-in from Windows 10.

Connect HC-06 to Raspberry Pi GPIO connector:
RPi 3.3V - HC-06 VCC
*make sure your HC-06 is operate on 3.3V, NOT 5V.

By default, HC-06 work on 9600 baud. So we have to edit /boot/cmdline.txt in Raspberry Pi/Raspbian Jessie, to set 9600 baud.

in default:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

modify (with sudo right) default 115200 to 9600.
dwc_otg.lpm_enable=0 console=ttyAMA0,9600 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

Then you can connect and login from Windows 10 with Bluetooth.

This video show how to config Raspberry Pi, and log-in from Windows 10 using PuTTY. In this video, Raspberry Pi desktop is Remote Desktop Connection via WiFi. PuTTY run as Bluetooth Serial Terminal.

- Android Bluetooth Terminal to login Raspberry Pi + HC-06


IDIs Desarrollo said...

Thank you very much! Do you think it can work with a normal bluetooth dongle? or only a HC-05 or HC-06 and the external circuitry?

Andr.oid Eric said...

hello IDIs Desarrollo,

I haven't check with normal bluetooth dongle, can't confirm. Sorry.

Mohan said...

I don't have cmdline.txt. Is that OK? I created a new one and added that line, but after pairing, the LED still keeps blinking.

Andr.oid Eric said...

After paired, still blink is correct.
Stop blinking after connected.

hướng hà said...

Hi everyone, i used Hc05 to connect with rpi2, but when i made the physical connect (GND - GND, VCC - VCC, RX - TX, TX - RX), the led on HC05 still off. i checked the voltage in the pin #2 on rpi and i sure it had 5V out. i don't know how to fix it. Can anyone help me?

Unknown said...

is there a way to make the bt serial module connected to the RPi2 the master and control it in such a way to connect to a slave module elsewhere, like on an arduino?