Skip to content

Miccet.nl

Electronics, Arduino and Wireless communication

Menu
Menu

Bind serial to HC-05

Posted on 2020-04-142023-11-11 by miccet

Here is a really quick guide to connect a HC-05 to a computer and send data to a serial port. I wanted to do this with a HM-10 module but only found information that this feature is missing on the module. If someone knows how to do this on a HM-10 I would love to hear about it.

So the first thing you do is to follow my previous guide on the HC-05 and set one of the modules in SLAVE mode. Also note the address of the device as we will be using it shortly.

Second, on a linux computer, fire up bluetoothctl and enter the following command.

# pair <module address>
# connect <module address>

Then in another terminal enter the following to bind the module to a serial port:

sudo rfcomm bind 2 <module address>

You should now have a new device called rfcomm2 in /dev. Confirm with:

ls /dev/rfcomm2
/dev/rfcomm2

Then I use picocom to read the output in real time:

sudo picocom /dev/rfcomm2

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Backup docker volumes without root user
  • Replacing the hard drive on the Ubiquiti UniFi Cloud Key Gen2 with a WD Purple
  • Extra NIC on the HP thin client T630
  • Bind serial to HC-05
  • Wireguard

Recent Comments

  • Marco on Extra NIC on the HP thin client T630
  • MT on Extra NIC on the HP thin client T630
  • tinybull on Extra NIC on the HP thin client T630
  • Bind serial to HC-05 – Miccet.nl on HC-05 review
  • HM-10 review – Miccet.nl on HC-05 review

Archives

  • December 2023
  • July 2023
  • January 2023
  • April 2020
  • October 2019
  • July 2018

Categories

  • Batteries
  • Bluetooth
  • Docker
  • Servers
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 Miccet.nl | Powered by Minimalist Blog WordPress Theme