how to connect bluetooth to MRE

Hardware inside and outside of the ECU
Post Reply
Abricos
contributor
contributor
Posts: 794
Joined: Mon Aug 18, 2014 12:32 am

how to connect bluetooth to MRE

Post by Abricos »

!!!!Attention!!!! these manipulations were done with MRE R0.5.
if you have a different version please ask a question before you start do something

what you need


HC-06 Bluetooth Serial
612tmFFu8YL._SL1000_.jpg
612tmFFu8YL._SL1000_.jpg (70.08 KiB) Viewed 1363 times

FT232RL Ftdi USB to Ttl Converter Series - USB
s-l1600.jpg
s-l1600.jpg (110.71 KiB) Viewed 1363 times
you need any program to change the speed in bluetooth

I personally used this one
You will also need to install this program to change the speed in your bluetooth module
you need speed in bluetoothe what you connect to MRE speed (baud rate) 38400
btinit.rar
(951.45 KiB) Downloaded 57 times

after you set the correct speed in your bluetooth
you will need to connect 4 wires from bluetooth to MRE
1.5v
2.GND
3.TX
4.RX

on the picture we see places marked where to solder bluetooth Communication TX RX
pad 1. HOLD=PB11=UART3 RX
pad 9. PB10=UART3 TX
sometimes on chinese bluetooth modules output rx tx inverted (if something doesn’t work try swapping RX TX)
87486652-bc0a0500-c609-11ea-868d-5fec6876a7ae.png
87486652-bc0a0500-c609-11ea-868d-5fec6876a7ae.png (271.48 KiB) Viewed 1363 times
IMG_20200718_195500.jpg
IMG_20200718_195500.jpg (4.57 MiB) Viewed 1363 times

if you use windows10
you need to find your bluetooth in the settings panel and connect to it
New Bitmap Image (2).jpg
New Bitmap Image (2).jpg (138.06 KiB) Viewed 1363 times
if you are a lucky person and did everything right
when you go to the tuner studio to the section communication you will see there name your bluetooth module
New Bitmap Image (3).jpg
New Bitmap Image (3).jpg (305.53 KiB) Viewed 1363 times
Last edited by Abricos on Mon Aug 10, 2020 9:33 pm, edited 1 time in total.

User avatar
AndreyB
Site Admin
Posts: 11041
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: how to connect bluetooth to MRE

Post by AndreyB »

How stable is the connection? Did you start/run a car while using BT?
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Abricos
contributor
contributor
Posts: 794
Joined: Mon Aug 18, 2014 12:32 am

Re: how to connect bluetooth to MRE

Post by Abricos »

No not yet ...
Maybe be tomorrow I check in real car and ECU will be location under hood and in plastic box ...
Today only check connections to

Shabow dash MS ( it's workin)
Screenshot_20200718-191211__01.jpg
Screenshot_20200718-191211__01.jpg (1.02 MiB) Viewed 1348 times
Screenshot_20200718-191424__01.jpg
Screenshot_20200718-191424__01.jpg (1.03 MiB) Viewed 1348 times


Msdroid (not working )
Screenshot_20200718-190350.jpg
Screenshot_20200718-190350.jpg (640.21 KiB) Viewed 1348 times

Abricos
contributor
contributor
Posts: 794
Joined: Mon Aug 18, 2014 12:32 am

Re: how to connect bluetooth to MRE

Post by Abricos »

bluetooth under the hood in a closed plastic box...
works stably ...
IMG_20200719_160517.jpg
IMG_20200719_160517.jpg (4.39 MiB) Viewed 1320 times


Abricos
contributor
contributor
Posts: 794
Joined: Mon Aug 18, 2014 12:32 am

Re: how to connect bluetooth to MRE

Post by Abricos »

We actually have BT initialization code in rusEFI itself

CODE: SELECT ALL

#if EFI_BLUETOOTH_SETUP
// Usage: "bluetooth_hc06 <baud> <name> <pincode>"
// Example: "bluetooth_hc06 38400 rusefi 1234"
addConsoleActionSSS("bluetooth_hc05", bluetoothHC05);
addConsoleActionSSS("bluetooth_hc06", bluetoothHC06);
addConsoleActionSSS("bluetooth_spp", bluetoothSPP);
addConsoleAction("bluetooth_cancel", bluetoothCancel);
#endif /* EFI_BLUETOOTH_SETUP */


for end users that mean that if one uses rusEFI console, the following commands are available:

bluetooth_hc05
bluetooth_hc06
bluetooth_spp
bluetooth_cancel


I believe I had those working and that's how I got my HC initialized.

We need to make nicer TS button for same logic https://github.com/rusefi/rusefi/issues/1685

Abricos
contributor
contributor
Posts: 794
Joined: Mon Aug 18, 2014 12:32 am

Re: how to connect bluetooth to MRE

Post by Abricos »

Jimmy lunztel 4:54 PM
@abricosvw it says in the link they were done with r5.0 not r4.8
First question is what differences are there for soldering with my version

I don't see any change between R0.4.8 boards to R0.5 in this area (memory chip U11)


Second question what do I do with FT232RL Ftdi USB to Ttl Converter Series - USB
you need connect using jumper cable between bluetooth and TTL as in the picture below
New Bitmap Image (3).bmp
New Bitmap Image (3).bmp (2.07 MiB) Viewed 1164 times
you need any program to change the speed in bluetooth

I personally used this one
You will also need to install this program to change the speed in your bluetooth module
you need speed in bluetoothe what you connect to MRE speed (baud rate) 38400
The attachment btinit.rar is no longer available

Post Reply