From 75018df9d9ed208e0cc97d59336e5d04891cf2c5 Mon Sep 17 00:00:00 2001 From: Christopher Stone Date: Wed, 7 Mar 2018 17:02:49 +0000 Subject: [PATCH] Rewrote note with more detail, clarity (hopefully) --- robots/little_john/telemetry/code/note_on_bluetooth_serial_setup.txt | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/robots/little_john/telemetry/code/note_on_bluetooth_serial_setup.txt b/robots/little_john/telemetry/code/note_on_bluetooth_serial_setup.txt index 95c473c..a5353b6 100644 --- a/robots/little_john/telemetry/code/note_on_bluetooth_serial_setup.txt +++ b/robots/little_john/telemetry/code/note_on_bluetooth_serial_setup.txt @@ -1,9 +1,19 @@ -A few quick notes on how to get the bluetooth-serial adaptor working: - -The adaptor is named "Little_John" and has passcode "3141" -Its MAC address is 00:14:03:06:44:7C -The serial link is currently configured for 115200 / 8N1 - -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 +# How to connect to the telemetry system over Bluetooth +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! + * First, ensure you have all the standard Bluetooth tools installed. Most systems will have installed these by default. + * Pair the Bluetooth module with your computer, with reference to the following details, (Common GUI tools are sufficient for this) + * MAC Address: 00:14:03:06:44:7C + * Name: Little_John + * Passcode: 3141 + * 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) + * There is now a serial port at /dev/rfcomm0, configured for 115200 / 8N1. This can be used like any other serial port. +# Configuring the Bluetooth module +This should only need doing infrequently, and is well documented on the web. The key points are: + * Use an Arduino running the serial-forwarding code in this repo to bridge between the hardware and software serial ports. + * While powering the module up, pull the "EN" pin High to enter configuration mode + * While in this mode, the module runs at 38400 Baud + * Commands must end with both \r and \n + * Sending "AT" should produce the response "OK" +If in doubt, try visiting http://www.techbitar.com/modify-the-hc-05-bluetooth-module-defaults-using-at-commands.html -- libgit2 0.21.2