Skip to content

Instantly share code, notes, and snippets.

@xseignard
Last active August 31, 2016 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xseignard/9367829 to your computer and use it in GitHub Desktop.
Save xseignard/9367829 to your computer and use it in GitHub Desktop.
Connect an Espruino + HC-05 bluetooth module under Ubuntu 13.10

Find the mac address of the Espruino + HC-05

hcitool scan
Scanning ...
	00:13:12:25:33:77	HC-05

Configure /etc/bluetooth/rfcomm.conf

rfcomm0 {
  bind no;
  device 00:13:12:25:33:77;
  channel 1;
  comment "Espruino";
}

Pair it

bluetooth-agent --adapter hci0 1234&

You can now connect it

sudo rfcomm connect 0&

Then create a symbolic link to get the espruino IDE to work (see: http://forum.espruino.com/conversations/444/)

sudo ln -s /dev/rfcomm0 /dev/ttySpruino

Now, for the next time you want to connect, do the following

bluetooth-agent --adapter hci0 1234&
sudo rfcomm connect 0&
sudo ln -s /dev/rfcomm0 /dev/ttySpruino
@wty002010
Copy link

bluetooth-agent --adapter hci0 1234&
Can't register agent
Already Exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment