Setting up a Moates QH for Bluetooth connectivity with BE

Collection of newbie questions and common tuning concepts

Moderators: cgrey8, EDS50, 2Shaker, Jon 94GT

User avatar
Posts: 10719
Joined: Fri Jun 24, 2005 5:54 am
Location: Acworth, Ga (Metro Atlanta)

Setting up a Moates QH for Bluetooth connectivity with BE

Post by cgrey8 » Wed Dec 21, 2016 11:30 am

This tutorial is a work in progress and is made available for public review & comment, and thus the content is subject to frequent edits over the next few weeks.

Moates now offers a Bluetooth(BT) option for a number of their products. The only one that applies to most people on this forum is the Moates Quarterhorse (QH) and/or Superlogger (SL) I/O device. On the Moates website, it is refereed to as the Neptune/Demon Bluetooth Module Add-on. When ordering, you want the ROBP cable pinout option. Or simply note in the comments section of your order that this device is being purchased for use with a Quarterhorse. The guys there at Moates will know what you are doing and get you setup with what you need. Throughout this tutorial, I will refer to this device simply as the BT-Slave device.

The BT-Slave device must be connected to the QH using the inner serial port connection. Many QHs didn't ship with a header on that serial port connection, but it can be easily added with a soldering iron. Although I believe if you order a QH today, you can request that this header be present, particularly if you order the BT-Slave at the same time.
QH_with_BT_Slave.jpg (202.14 KiB) Viewed 5258 times

On older model EECs, like the 89-93 Mustang 5.0L EECs (i.e. GUFx), there are electrical components that have to be bent out of the way to make clearance for the QH. This is covered in this thread:
Installation of the Quarterhorse on an 89-93 Mustang EEC

One of these components becomes an obstruction for the serial connector which requires that the connector on the QH be bent upward to clear it when installing the QH on the EEC. Notice:
QH_On_EEC_w_slave_connector.jpg (227.13 KiB) Viewed 5258 times
QH_On_EEC_w_slave_connector2.jpg (236.42 KiB) Viewed 5258 times

Once the QH is installed, route the BT-Slave's wire out the back of the EEC like the USB cable would, then re-secure the EEC cover back in place. Try to route and locate the BT-Slave device as close to where your laptop will be as possible. Bluetooth connectivity has an optimal range of over 30 feet in an electrical-noise free and obstruction-free environment. However if the Slave is surrounded by metal and/or has to overcome electrical noise (i.e. EMI from the ignition), then the distance will be reduced. For those that have the EEC located in the passenger-side kick panel, you have nothing to worry about. I have my BT-Slave draped across the back of the EEC and down the side closest to the passenger side door. Literally, the only thing between the BT-Slave and my laptop is the plastic kick panel. However if your EEC is mounted in the engine bay (passenger side firewall or driver's side quarter panel), the Bluetooth signal will have to battle much more obstruction. The hope is that the relatively short distance will still be able to overcome the obstructions. Time will tell whether there's issues related to BT connectivity in these far-less-than-optimal installations.

I have both the USB and Slave wire coming out of my EEC. However if you bench-test your Bluetooth slave (discussed later), you could completely ditch the USB cable. Although personally, I'll be keeping my USB cable even if it's stored behind the passenger seat just in case something happens that I need to connect to the QH and wireless isn't working for whatever reason.

Now, transition focus to the laptop. Your laptop will either need built-in Bluetooth support or will need a USB-Bluetooth device. If you require a USB-BT adapter, make sure the adapter supports the Bluetooth Serial Port Protocol (SSP) which is the profile that exposes your Bluetooth connection as a standard serial COM port. Many USB-BT devices only support A2DP and AVRCP, which are audio oriented Bluetooth profiles. For a complete list of all the Bluetooth profiles there are (if you are curious), refer to this Wikipedia page:
List of Bluetooth profiles

My laptop is old enough that it doesn't have BT support built in. So I had to get a BT dongle. My dongle is a generic CSR8510 that I got off eBay for $6 including shipping:

It works, however it sticks out a tad further than some of the other dongle designs. If I had it to do over again, I'd probably get one shaped more like this:

My dongle did not come with software. Win7 installed a generic driver which works just fine. After the driver has been installed, you'll see the USB device in your list of devices:
Devices_USB-BT_installed.jpeg (59.36 KiB) Viewed 5258 times
You can access this window by hitting the Windows key to open the start menu and typing the word devices. Click the link to Devices and Printers that should appear. Keep this window open as it will be referenced later.

At this point you are ready to pair the laptop to the Moates BT-Slave device. You can do this with the QH and BT-Slave installed in your vehicle OR you can bench-power it. When I was experimenting with this, I connected the BT-Slave to my QH, then connected the QH to a USB power supply. A cell phone or tablet USB power supply works great and most people have at least one of these. When the BT-Slave is powered, the first thing you notice is a bright blue LED begins blinking.

From the devices window, click the Add a device button.

What should appear is a window like this:
Discovered_with_name.jpg (35.63 KiB) Viewed 5258 times

The BT-Slave device should present as BT for Tunerview via Moates. Although on my computer, the name did not initially appear as that. I believe the window initially presented the name as other. It took a few moments for Windows to fetch the name from the BT-Slave device. If the BT-Slave does not present itself in this window, you may need to power-cycle it before it can be detected as a pairable device.

Select the BT-Slave and click the Next button. This will present the following:
Pairing_Options.jpg (42.35 KiB) Viewed 5258 times
Choose to Enter the device's pairing code and click the Next button.

You should now see the following:
Pairing_with_password.jpg (34.64 KiB) Viewed 5258 times
Enter the default password 1234 and click the Next button. If all goes well, then you should get a message indicating that pairing was successful. However if you take too long pairing the device, you may get a failure message indicating that the pairing procedure timed out. If this happens, just repeat the procedures, but don't take too long. I actually got this message as I was screencapping each of these screens and saving them to file for this tutorial, however the average person should have plenty of time.

Once installation has completed, you should now see the BT-Slave device in your list of Devices, along with the USB-BT dongle. With the device paired, you should now also see new COM ports available in the Device Manager:
Device_Manager_with_BT_COM_ports2.jpg (95.43 KiB) Viewed 5258 times
Two COM ports are actually typical, although you only use one. Most of the time, the smaller numerical COM port is the one you want to use. If you fail to communicate with your QH using that port, try the other.

Up to this point, all the steps have been focused just on getting hardware connectivity and are applicable regardless of what tuning software you use with your QH. However since I only use BinaryEditor (BE), only it is discussed here. If you are a BE-user, you will need to configure BE to use the above-mentioned COM port associated with the Bluetooth-connected BT-Slave. Clint added Bluetooth support for the QH a week or so before the writing of this tutorial. So if your version of BE doesn't look like the following screencap, you don't have a version that supports a Bluetooth-connected QH:
BE_Successfully_Using_BT2.jpg (24.4 KiB) Viewed 5258 times
Notice that the top-level Quaterhorse checkbox is selected as well as the Bluetooth optional checkbox, which allows for the selection of a COM port. Once the COM port is selected, if all is working as it is supposed to, BE should recognize the presence of the QH, and illuminate the Green light indicating it has successfully detected the QH. At this point, communication with the QH should be identical to the user experience when connected to the QH via USB.

Now for those using a USB-BT dongle, you will find that the COM ports you get in the Device Manager will probably change based on which USB port the USB-BT dongle is connected to. This is an annoying aspect of Windows that just has to be understood and dealt with. The annoyance doesn't stop there. I found that if you move the dongle to a different port AFTER pairing with a BT-Slave, you can't connect to the BT-Slave anymore despite seeing COM ports appear in your Device Manager. Newer versions of Windows or possibly different USB-BT dongles may not behave this way, but my Win7 and USB-BT dongle combination do. So if you find this to be your experience as well, you will need to return the USB-BT dongle to the USB port the BT-Slave was paired on before it will pair again. Add to this, you can't rediscover and reinstall the BT-Slave until the currently installed instance of the BT-Slave has been unpaired. To unpair it, return the USB-BT dongle to the original USB port that pairing occurred on. And from the Devices window, right-click the BT-Slave and select Remove Device. This unpairs the USB-BT and BT-Slave allowing the USB-BT to rediscover and pair with it on a different USB port. Once you find the USB port you want to keep the USB-BT dongle plugged into all future use, repeat the above procedures (including updating BE with the new COM port). If you would like to FORCE your USB-BT dongle to use the same COM port numbers regardless of which USB port it is plugged into, refer to this forum discussion on the topic:
Bluetooth adapter for the Moates Quarterhorse

One of the things to still be developed is the EASY ability to change the default BT-Slave password. Although even when a program to make this easier is available, there are some steps that just can't be abstracted away. These are the details as we know them right now. Note, this can only be done from the TTL (i.e. wired) side of the device. It cannot be done over Bluetooth. So to do this, you will need a USB-TTL device such as the Moates HULOG, pictured here:
Xtreme HULOG Honda USB Datalog Interface

The HULOG uses the same FTDI USB-serial chip that the Moates QH does. But by default, Windows will install it with the standard FTDI driver which means the device will present itself in the Device Manager as as COM port. This is the preferred presentation for this device.

The Moates BT-Slave device is based on the HC-05 Bluetooth-to-Serial-TTL device. If you want to know more about it, refer to the HC-05 data sheet.

It's recommended that the BT-Slave be unpaired from the laptop prior to changing the BT-Slave's password. This ensures that Windows doesn't see the BT-Slave's Bluetooth MAC address and think it is already paired to that device and attempt to communicate with the BT-Slave with a wrong password and thus cause problems. To avoid that, just uninstall the BT-Slave as described above before proceeding.

To change the password, the HC-05 on the BT-Slave must be put into AT mode (i.e. Configuration Mode). The HC-05 documentation talks about how to do this, however the BT-Slave's circuit board makes this much easier. While the BT-Slave is disconnected/powered OFF, pierce through the BT-Slave's shrink wrap and short the two connections labeled AT:
BT_Slave_AT_Jumper.jpeg (57.46 KiB) Viewed 5258 times
ProTip: You can use the sharp tips of a Volt meter's leads to punch through the shrink wrap. If your meter has a current measuring option (most do nowadays), you can set up the meter and leads for current measuring which creates a very near dead-short between the leads and should be sufficient for the purposes of putting the HC-05 into AT mode.

With the connections shorted, power the BT-Slave by connecting it to the Moates HULOG USB-TTL device. The TTL-side configuration mode baud rate is 38.4k/8/N/1. With a serial terminal like PuTTY, Hypterterminal, minicom, or GTKTerm, you can connect to the HULOG's COM port and confirm connectivity with the BT-Slave by sending the command AT (including hitting <enter>). The BT-Slave should respond with OK if your connection to it is good. If you fail to connect at this point, you will need to diagnose why, which is beyond the scope of this tutorial. However Google-searching for information about the HC-05 should get you some info.

The command to update the password is:
AT+PSWD=<new 4-digit password>

Power off the BT-Slave for at least 30 seconds and the new password should be active on next power up. Repeat the procedure above for pairing the BT-Slave to your laptop with the only exception being you will use your NEW password instead of the default. You might also want to write the new 4-digit password on the BT-Slave's shrink wrap. And just so I don't have to hear it from the security weenies out there, 99% of the time the BT-Slave is tucked into the car somewhere, difficult for the owner to get to, so writing the password on the BT-Slave IS NOT like writing your PIN number on your bank card. It's more akin to putting a spare key in your wallet.

For guys comfortable with serial terminals, this is a rather trivial task with the right equipment in hand. However for people that don't really deal with terminals or serial connections, Clint has expressed a desire to write a program (possibly built into BE) that will abstract away a lot of the technical details of this procedure. Stay tuned for that to get documented here when it is available.
...Always Somethin'

89 Ranger Supercab, 331 w/GT40p heads, ported Explorer lower, Crane Powermax 2020 cam, 1.6RRs, FMS Explorer (GT40p) headers, Slot Style MAF, aftermarket T5 'Z-Spec', 8.8" rear w/3.27s, Powertrax Locker, Innovate LC-1, GUFB, Moates QuarterHorse tuned using BE&EA



Who is online

Users browsing this forum: No registered users and 1 guest