Skip to content

Instantly share code, notes, and snippets.

@xseignard xseignard/espruinoBT.md

Last active Aug 31, 2016
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

wty002010 commented Aug 31, 2016

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
You can’t perform that action at this time.