Commit 75018df9d9ed208e0cc97d59336e5d04891cf2c5
1 parent
77e7433a
Exists in
master
Rewrote note with more detail, clarity (hopefully)
Showing
1 changed file
with
17 additions
and
7 deletions
Show diff stats
robots/little_john/telemetry/code/note_on_bluetooth_serial_setup.txt
1 | -A few quick notes on how to get the bluetooth-serial adaptor working: | |
2 | - | |
3 | -The adaptor is named "Little_John" and has passcode "3141" | |
4 | -Its MAC address is 00:14:03:06:44:7C | |
5 | -The serial link is currently configured for 115200 / 8N1 | |
6 | - | |
7 | -After pairing with the device using normal GUI tools, I ran "rfcomm connect rfcomm0 00:14:03:06:44:7C" with root permissions, which creates /dev/rfcomm0 | |
1 | +# How to connect to the telemetry system over Bluetooth | |
2 | +These notes are based on experiences with Debian 9 (Stretch). A very similar approach should work for many other Linux distributions, but not other operating systems! | |
3 | + * First, ensure you have all the standard Bluetooth tools installed. Most systems will have installed these by default. | |
4 | + * Pair the Bluetooth module with your computer, with reference to the following details, (Common GUI tools are sufficient for this) | |
5 | + * MAC Address: 00:14:03:06:44:7C | |
6 | + * Name: Little_John | |
7 | + * Passcode: 3141 | |
8 | + * In a terminal, run "rfcomm connect rfcomm0 00:14:03:06:44:7C" to connect the device to a virtual serial port. (Check you have sufficient permissions for this) | |
9 | + * There is now a serial port at /dev/rfcomm0, configured for 115200 / 8N1. This can be used like any other serial port. | |
8 | 10 | |
11 | +# Configuring the Bluetooth module | |
12 | +This should only need doing infrequently, and is well documented on the web. The key points are: | |
13 | + * Use an Arduino running the serial-forwarding code in this repo to bridge between the hardware and software serial ports. | |
14 | + * While powering the module up, pull the "EN" pin High to enter configuration mode | |
15 | + * While in this mode, the module runs at 38400 Baud | |
16 | + * Commands must end with both \r and \n | |
17 | + * Sending "AT" should produce the response "OK" | |
18 | +If in doubt, try visiting http://www.techbitar.com/modify-the-hc-05-bluetooth-module-defaults-using-at-commands.html | |
9 | 19 | ... | ... |