Page 1 of 1

MRE Wireless communication - BT or WiFi

Posted: Fri Feb 12, 2021 10:05 pm
by JRD McLAREN
Now I have successfully tested communication for MRE via Bluetooh and WiFi module.

I'm use HC-05 for BT communication and ESP8285MOD for WiFi communication
(you can use any compatible modules)

Requirements:
HW side: any kind of serial communication module capable for TTL level signal (3.3Volts)
+ some wires
SW side: set "serial port" baudrate to 38400 8N1
+ all other required settings in TS

Wiring:
Connect "power pins" to power - GND, 5V or 3.3V to "any power source" - J8 header (or anything else)
Connect "signal pins" to RX and TX - on my mre 0.5.3 are J12 J13 headers - J12 is PB11 RX and J13 is PB10 TX

(it looks so easy ... at this moment :mrgreen: )

Re: MRE Wireless communication - BT or WiFi

Posted: Fri Feb 12, 2021 10:10 pm
by JRD McLAREN
I have one question:

Can I increase serial port speed (in rusefi console or TS) .. ??

Re: MRE Wireless communication - BT or WiFi

Posted: Fri Feb 12, 2021 10:12 pm
by mck1117
you might have to configure the BT module for it, but you can pick a new serial speed in the "connection" menu
image.png

Re: MRE Wireless communication - BT or WiFi

Posted: Fri Feb 12, 2021 10:16 pm
by JRD McLAREN
.on mre ... ??

Re: MRE Wireless communication - BT or WiFi

Posted: Fri Feb 12, 2021 10:17 pm
by mck1117
Oops I guess that menu is hidden on MRE.

Re: MRE Wireless communication - BT or WiFi

Posted: Fri Feb 12, 2021 10:18 pm
by mck1117

Re: MRE Wireless communication - BT or WiFi

Posted: Sat Feb 13, 2021 1:41 am
by AndreyB
Maybe the other speed is the one relevant here? I've changed something not 100% sure if it's right

Re: MRE Wireless communication - BT or WiFi

Posted: Sat Feb 13, 2021 6:55 pm
by JRD McLAREN
...115200 or 57600bps are most common speeds ... . ...

I have no problem with 38400, but it is little bit slow ...

(Have some external GPS modules woks on 10 or 20Hz, and they have no problem with 115200bps)

Re: MRE Wireless communication - BT or WiFi

Posted: Wed Feb 17, 2021 8:52 pm
by JRD McLAREN
Mounted BT-TTL device ..
DSCN5337.JPG
and tested on some APPS ...
Shadow Dash MS seems to be work ... connected doing something
MD Droid connected, but not work ...
DSCN5336.JPG

Re: MRE Wireless communication - BT or WiFi

Posted: Thu Feb 18, 2021 1:23 am
by Abricos

Re: MRE Wireless communication - BT or WiFi

Posted: Thu Feb 18, 2021 8:14 am
by JRD McLAREN
..it is in ini file .. by default ... since XYZ .
[SettingGroups]
; the referenceName will over-ride previous, so if you are creating a
; settingGroup with a reference name of lambdaSensor, it will replace the
; setting group defined in the settingGroups.xml of the TunerStudio config
; folder. If is is an undefined referenceName, it will be added.
; keyword = referenceName, DisplayName

[MegaTune]
; https://rusefi.com/forum/viewtopic.php?p=36201#p36201
signature = "rusEFI 2021.01.06.mre_f4.4213847723"

[TunerStudio]
queryCommand = "S"
versionInfo = "V" ; firmwave version for title bar.
signature = "rusEFI 2021.01.06.mre_f4.4213847723" ; signature is expected to be 7 or more characters.

Re: MRE Wireless communication - BT or WiFi

Posted: Mon Jan 24, 2022 4:15 am
by Lambo97
I'm adding this to both my .4 and .6 Proteus. Was wondering if the HC-08 Slave module is fine to use? OR do you need both HC-05 Master / Slave module only for this to work?

Re: MRE Wireless communication - BT or WiFi

Posted: Mon Jan 24, 2022 7:24 am
by JRD McLAREN
HC-08 is BLE 4.0 module ...

you need HC-05 or HC-06 Bluetooth SPP (Serial Port Protocol)

Re: MRE Wireless communication - BT or WiFi

Posted: Mon Jan 24, 2022 6:58 pm
by Lambo97
The module description is: SH-HC-08 Bluetooth 4.0 BLE Slave Module to UART Transceiver for Arduino Compatible with iOS

I've already connected using USB to Serial cable, set Bluetooth Name, PIN and 153600 Baud for serial communication. I can talk to it using AT commands so I'm guessing it's compatible? The only thing I'm worried about is it's slave only, not sure if that matters.

Also what is the agreed apon wireless management software for our boards? Shadow Dash or MD Droid? Does Tuner studio not have an Android app?

Thanks for the help.

Re: MRE Wireless communication - BT or WiFi

Posted: Mon Jan 24, 2022 7:26 pm
by AndreyB
Grrrrr. https://www.tunerstudio.com/ mentions Shadow Dash MS as authored by tuner studio authors.

Grrrrr. AT commands do not mean anything. BLE Bluethoot Low Energy does not have https://en.wikipedia.org/wiki/List_of_Bluetooth_profiles#Serial_Port_Profile_(SPP) AT commands do not mean anything.

Re: MRE Wireless communication - BT or WiFi

Posted: Wed Jan 26, 2022 6:33 am
by Lambo97
OK I have the HC-05 and USB adaptor. I was able to terminal into the HC-08 no issue but the HC-05 is not responding. I'm in AT mode slow blink 2 seconds. Do you need a voltage divider "resistors" to get the V down to 3.3 to be able to communicate with HC-05? My terminal connects but AT comes back with nothing.

Re: MRE Wireless communication - BT or WiFi

Posted: Wed Jan 26, 2022 8:16 am
by JRD McLAREN
no pullup needed ...

try different speed ... no flow control .. uppercase chars ...
https://components101.com/sites/default/files/component_datasheet/HC-05%20Datasheet.pdf

Re: MRE Wireless communication - BT or WiFi

Posted: Wed Jan 26, 2022 5:42 pm
by Lambo97
What Terminal are you using. I've tried Putty no go, every setting just sits there. Just a note that I can connect to the Bluetooth no issue, with pass 1234. Just would like to increase speed and set name. I was using "Mybotic Serial Connector" terminal to successfully connect to HC-08 but not working on 05.

Re: MRE Wireless communication - BT or WiFi

Posted: Wed Jan 26, 2022 6:20 pm
by JRD McLAREN
I have linux ... picocom minicom or CuteCom ...

try to connect RX TX GND, run terminal ... and then connect VCC ...
you should see "+READY" message .. or "+OK"

Re: MRE Wireless communication - BT or WiFi

Posted: Wed Jan 26, 2022 6:24 pm
by Lambo97
I have to hold down the AT button while I boot the device to get into AT mode correct? 2 second slow red blink.

Re: MRE Wireless communication - BT or WiFi

Posted: Wed Jan 26, 2022 6:49 pm
by JRD McLAREN
I'm not sure ... maybe NOT ..
I don't have any "free" HC05 at this moment ..