MHD+ - Real-Time Tuning

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

MHD+ Real Time Tuning

Revision 1.10 • 5/31/2024

© MHD Tuning
Table of Contents

Introduction 3
Overview 3
Downloading and Installing Required Files 4
MHD GitHub 4
TunerPro RT 4
Reflash DME with Latest MHD App 5
Update MHD Universal Wifi Adapter Firmware 6
MHD Plugin Configuration 7
Loading Files in TunerPro RT 8
Bin File 8
XDF File 8
ADX File 8
Connecting and Tuning 9
Connect to Hardware 9
Validate Bin vs. DME 10
Cell Tracing and DAQ 11
Enable and Use Real Time Tuning 12
Supported Tables 13
Wrapping Up 14
Revision History 15

© 2024 MHD Tuning 2


Introduction
MHD+ is the overall encompassing name of our suite of custom features we’ve added to the
DME in order to improve and expand upon its functionality. This document focuses on the latest
of these features, Real Time Tuning. Currently we offer Real Time Tuning support for the
following vehicles:

● F/G-Series (MG1 DME): Gen2 B58 and S58

We are working to actively expand Real Time Tuning support to more engines and platforms,
both newer and older, so stay tuned! Additionally, the list of tables supported by MHD+ Real
Time Tuning will be expanded going forward as well.

Additionally, you can view our instruction / demonstration video here.

Overview
In order to utilize our Real Time Tuning, there are a few prerequisite setup steps that must be
done first. These include:

1. Download and install required files


2. Reflash DME with latest MHD app
3. Update MHD Universal Wifi Adapter firmware
4. Configure our plugin in TunerPro settings
5. Load matching *.bin, *.xdf, and *.adx files
6. Connect to hardware and start real time tuning!

Each of these steps will be detailed in their own subsection on the following pages.

NOTE: Simultaneous use of MHD logging and TunerPro RT real time tuning functions (cell
tracing / table upload) is only possible with our MHD Universal Wifi Adapter (red case).

You can use other ENET devices / cables with TunerPro RT, but will be unable to log w/ MHD at
the same time.

© 2024 MHD Tuning 3


Downloading and Installing Required Files
MHD GitHub
First you will need to go to our public GitHub
(here) and download our latest files. It is
recommended to download the entire set of
files as you will need all of the XDF updates,
along with the files in the Real time tuning
folder. To download the entire archive, click the
green Code button and then hit Download ZIP
and the bottom of that popup as seen here.
Once downloaded, unzip the archive to a
familiar / easily accessible location on your PC.

TunerPro RT
TunerPro RT is required for real time tuning, as the base version of TunerPro does not support
the plugin architecture or other underlying extensions we needed to utilize to make this possible.
You can download the latest version of TunerPro RT (here). At time of writing, the latest version
is 5.00.10018, so we require at least that version. Download and install TunerPro RT.

While TunerPro RT is technically free, it is donation supported ($39). If you do not register, you
will see a 5 seconds popup each time you load the app. Mark has done a great deal of work
with RT so we encourage you to donate / register if you are able.

After TunerPro RT is installed, you will need to add our MHD.dll to the root folder where you
installed TunerPro RT. This DLL can be found in the archive you unzipped above, in the Real time
tuning folder. This can be seen here below:

© 2024 MHD Tuning 4


Reflash DME with Latest MHD App

Support / activation of the real time tuning code inside the DME is possible as of release 4.66 of
the MHD F+G Series mobile app. In order to prepare your DME for the process, you will need to
ensure you download version 4.66 (or later) of the MHD F+G app, and reflash your current tune!

© 2024 MHD Tuning 5


Update MHD Universal Wifi Adapter Firmware
The real time tuning specific firmware is in the archive you unzipped earlier, inside the Real time
tuning folder. Its filename will be like UNI_SF.MultiNFX04.bin. Please locate that file before
proceeding.

Once you know the location of that file, you will want to connect to the Wifi network of your MHD
adapter on your laptop. The Wifi SSID will likely be MHD ENET XXXX. Next, open a browser
window and go to http://192.168.4.1:5377/ota

You will see a simple website that looks like


this. First click Choose File. In the popup that
appears, browse to the location of the UNI_SF
bin file inside the unzipped archive from above
and select it. Then click Program. This will
begin updating the firmware and cause your
adapter to reboot. You will likely need to
reconnect your laptop Wifi to it once it finishes
rebooting.

IMPORTANT NOTES:

● After a successful update to this specific real time tuning firmware, your Wifi SSID
should now be like MHD RT ENET XXXX
● This real time specific firmware has not been compatibility tested with xHP or xDelete.
We will be testing it and validating it over the coming weeks. However, if you need to use
one of these apps and there is an issue, you may need to revert back to the non RT
firmware. You can do this by connecting your laptop to the adapter’s Wifi, again going to
http://192.168.4.1:5377/ota, click Factory Reset and follow that process. Once
complete, connect to the adapter’s Wifi with MHD and go to Read Codes. It will bring the
adapter back to the latest official firmware (not RT specific).

© 2024 MHD Tuning 6


MHD Plugin Configuration
At this point you should have TunerPro RT installed, our MHD.dll inside your TunerPro RT
installation folder, and the firmware of your MHD Wifi adapter updated. The next step is to
properly configure TunerPro RT to use our DLL, as well as the correct settings for our plugin.

1. Open TunerPro RT, and in the top menu bar, click Tools > Preferences.
2. Select the Data Acq./Emulation tab
3. In the Data Acq. I/O Plug-in Component drop down, select MHD Data Acquisition
4. In the Tuning Hardware Plug-in, select MHD Emulator Interface
5. Make sure to check the box for Upload Whole Tables (very important!)

After following those steps, your screen should look like the following:

© 2024 MHD Tuning 7


Loading Files in TunerPro RT
Preparing for real time tuning is a bit different than normal tuning, as you need to load three files
in TunerPro RT instead of the traditional two. We detail those specifics below

Bin File
Load your *.bin file like you normally would. However, it is very important that the bin file you
load is the same as the one that is currently flashed on the DME. We have a check that validates
this (more on that later).

XDF File
Load your *.xdf file like you normally would. Again, this must match the ROM version of the *.bin
file that you loaded. It will also need to be one of our freshly updated XDFs that were in the
archive you unzipped earlier. These contain some important extra flags and attributes that allow
the cell tracing to work properly during your real time tuning session.

ADX File
The *.adx file is going to be new to many of you. This is what allows data acquisition (logging /
cell tracing) in TunerPro RT. This file is in the archive you unzipped earlier, inside the Real time
tuning folder. Its filename is MG1au.adx. There is only one file; you will use this no matter what
Gen2 B58 or S58 ROM you are real time tuning. We will create a separate *.adx file in the future
per DME type. To load the *.adx file, in the TunerPro RT menu bar select Acquisition > Load
Definition File.

It is important that you do not make any changes to the *.adx file. It is properly configured as-is,
and no changes are required or necessary.

The logging items inside TunerPro RT are strictly to support cell tracing of the tuning tables. If
you want to take a full log while real time tuning, you can connect your MHD app to the MHD Wifi
adapter and log there at the same time!

© 2024 MHD Tuning 8


Connecting and Tuning
At this point, all the prerequisite setup and configuration should be complete. It is now time to
get TunerPro RT to connect to the DME, validate your bin and flashed file match, enable data
acquisition and cell tracing, and start real time tuning!

Connect to Hardware
Make sure TunerPro RT is loaded, you are connected on your laptop’s Wifi to the MHD RT ENET
XXXX network, and that the desired bin/xdf/adx are loaded. Next you will need to click the
Initialize Emulation Hardware (connector plug) button seen here:

If the connection was successful, you will hear a beep, and the bottom left status bar inside
TunerPro RT will look like this (you will see Hardware: MHD VINXYZ):

© 2024 MHD Tuning 9


Validate Bin vs. DME
This step is very important, as it ensures the file you have loaded in TunerPro RT matches the
file that is currently flashed to the connected DME. You want to ensure this match, as otherwise
what you are seeing / thinking you need to edit in TunerPro is not actually what is running on the
vehicle’s DME. To check if the bin and dme flash are a match, click the Verify Emulator RAM
Contents button seen here:

If the loaded bin file and the currently flashed DME file match, you will see a success popup
message like this:

If they do not match, you will see an error message stating that instead. In this case, it means
that the *.bin you have in TunerPro RT is different from what was last flashed to the DME. There
is a chance you may have loaded the wrong bin file in TunerPro RT, or perhaps you already made
a change to the bin before clicking Verify. You can try reloading the *.bin and clicking Verify
again. But if that still fails, you will likely need to reflash the DME with the *.bin file you want to
start the real time tuning session with (using MHD F+G app version 4.66 or later!)

© 2024 MHD Tuning 10


Cell Tracing and DAQ
Part of the beauty of real time tuning (aside from making changes without reflashing each
revision), is being able to see what cells in a table are being hit at a given time. This is especially
powerful on a dyno with a form of load resistance (like an eddy brake) where you can steady
state tune a large portion of many important tables like timing, fuel scalar, etc. In order to
enable cell tracing and data acquisition (DAQ) you will need to hit both of these buttons in
TunerPro RT, Acquire Data and Enable Data Tracing, seen below:

Following that, you should see the status bar in the lower left of TunerPro RT update to show DA:
Connected, along with a changing value showing the refresh rate of the data being received.
Note: if using cell tracing in TunerPro RT at the same time as data logging in MHD, the logging
rate of both will become a bit slower due to sharing the bandwidth.

NOTE: Simultaneous use of MHD logging and TunerPro RT real time tuning functions (cell
tracing / table upload) is only possible with our MHD Universal Wifi Adapter (red case).

You can use other ENET devices / cables with TunerPro RT, but will be unable to log w/ MHD at
the same time.

© 2024 MHD Tuning 11


Enable and Use Real Time Tuning
The last button you need to press to finally enable real time tuning is the Enable Live Tuning
(chip) button in TunerPro RT, seen below:

Once you press that, and after following all the previous steps, your bottom left status bar in
TunerPro RT will look like this:

You are connected to the DME, emulation (live tuning) is active, and data acquisition (for cell
tracing) is connected and logging! You are now ready to make a table change and send it to the
DME, live!

Open up a table (current list of tables supporting real time tuning listed below), make a change,
and then hit the Commit Changes and Upload button, as seen here:

Upon success, you hear an audible beep, and briefly see a green background in the status bar
saying Upload Success. Congratulations, you’ve just made your first real time tuning change!

© 2024 MHD Tuning 12


Supported Tables

The list of tables currently supported by real time tuning include include:
● ALL mapswitch / FF tables that have a copy per map slot and/or FF and FF#2
● The “map 1” base table equivalent of ALL above tables
● ALL map 1/2/3/4 interpolation tables
● WGDC Base (Custom) and (Custom) (Antilag)
● WGDC P and D Factor (Custom) and (Custom) (Antilag)
● Antilag Timing (Base) and (P-Factor)
● PI / DI Percent Split (Gasoline) (Auto) and (Ethanol) (Auto)
● Port Injection Interpolation (General)
● Maximum Allowed DI Usage
● PI Injector Pulse Width (Gasoline) (Manual) and (Ethanol) (Manual)
● Load Reduction Scaling

That is roughly 200 total tables (not including their axis) for our initial release.

Only two corresponding axis tables are not able to be real time tuned: Fuel (AFR) Target and the
Knock Factor.

We will be releasing real-time tuning support for many more tables soon. Stay tuned!

© 2024 MHD Tuning 13


Wrapping Up
A few final points to make, along with a few troubleshooting tips:

● All changes made during the real time tuning session are also persisted in the *.bin file
loaded in TunerPro RT (whether the table has support for real time tuning / upload or
not!)
● Upon completion of your real time tuning session, you will need to then save the *.bin file
in TunerPro RT and flash it to the DME with MHD in order to persist those changes going
forward.
● If a table is not currently supported by real time tuning, you will see a pop-up message
telling you this. We are working to expand the number of tables supported, and have the
ability to extend real time tuning to just about every table in the DME. More will be added
in the coming weeks. If there are any you especially would like added quicker, please
contact us at [email protected]
○ If you want to make a change to a table that is not supported by real time tuning,
you will need to flash that change before it becomes active!
● If you are unable to log with MHD app at the same time as using TunerPro, please
ensure:
○ Your MHD adapter Wifi SSID is like MHD RT ENET XXXX
○ NOTE: simultaneous use of TP RT and MHD app is only possible using our MHD
Universal Wifi Adapter (red case)
● If you are unable to get TunerPro RT to connect, please ensure:
○ Your laptop Wifi is connected to MHD RT ENET XXXX
○ You’ve flashed the DME at least once with MHD F+G app version 4.66 or later
● You can view our instructional / demonstration video here:
https://www.youtube.com/watch?v=pzCZbk5oQqk

© 2024 MHD Tuning 14


Revision History

Version Notes Date Updated By

1.00 Initial creation 5/10/2024 Jake Y

1.10 Some additional details and tables added 5/31/2024 Jake Y

© 2024 MHD Tuning 15

You might also like