how to connect bluetooth to MRE

Hardware inside and outside of the ECU
Post Reply
Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

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 11120 times

FT232RL Ftdi USB to Ttl Converter Series - USB
s-l1600.jpg
s-l1600.jpg (110.71 KiB) Viewed 11120 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 387 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 11120 times
IMG_20200718_195500.jpg
IMG_20200718_195500.jpg (4.57 MiB) Viewed 11120 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 11120 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 11120 times
Last edited by Abricos on Mon Aug 10, 2020 9:33 pm, edited 1 time in total.
User avatar
AndreyB
Site Admin
Posts: 14292
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?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

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 11105 times
Screenshot_20200718-191424__01.jpg
Screenshot_20200718-191424__01.jpg (1.03 MiB) Viewed 11105 times


Msdroid (not working )
Screenshot_20200718-190350.jpg
Screenshot_20200718-190350.jpg (640.21 KiB) Viewed 11105 times
Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

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 11077 times

Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

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: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

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 10921 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
nadrol
Posts: 5
Joined: Tue May 19, 2020 5:30 pm

Re: how to connect bluetooth to MRE

Post by nadrol »

I just went through this for my 0.4.8 MRE.

1. remove the u11 flash chip.
2. solder BT module to the gnd/3.3v/tx/rx as described in initial post (note, the annotated red tx/rx are describing the BT module pins, not the STM). i used the further inboard pad for PB10 so it has a smaller chance of touching the case.
3. connect to BT module and open serial terminal. set baud to 115200.
4. reboot ecu.
5. Go to the communication menu in TS. use the RS232 serial interface and select the proper com port and 115200 baud. Test the port.

Note: you dont have to change the aux serial pins in the controller/connection pane in TS, but i did have both of the baudrates there set to 115200.

I used an RN-41 serial module. With a class 2 module like the RN-42, you're going to get 3-12ft of range depending on obstacles.

EDIT: for some reason the second time i tried to connect it didnt work and i had to select bluetooth direct (step 5)
IMG_20210719_215612.jpg
IMG_20210719_215612.jpg (1.88 MiB) Viewed 8916 times
Post Reply