Changes

Jump to navigation Jump to search
3,208 bytes added ,  13:17, 17 September 2021
= Who is it for =
[[File:Stage3.png|frameless]]
= How does it work =
= How can I contribute =
If you want to help contribute to the open source project, start by getting acquainted with the process. Check out the github repos for the flasher tool and the definitions. And reach out to webmaster@simoswiki.com
 
= Thats cool - but how =
== Using Brian Ledbetters VW_FLASH Tool ==
Steps
#Build your tune(cal) in tunerpro
#Copy the cal to your raspberry pi
#Pre-reqs
#Checksum the cal
#Encrypt and compress the cal to prepare it for flashing
#Flash it
 
Directions below will assume you have a directory on your pi for the flash tool (/home/pi/VW_Flash) and for your tunes (/home/pi/flashfiles/tunes)
 
=== Copy the cal to your raspberry pi ===
A suggestion is to create a directory on your pi (within your home directory) that can hold all your tunes.
Something like /home/pi/flashfiles/tunes
 
Using something like winscp (or scp if you're on a mac, or any number of other methods to transfer files to your pi), transfer your tune file to this directory:
 
<pre>
pscp C:\somedirectory\thisismytune.bin pi@raspberrypi.local:/home/pi/flashfiles/tunes/thisismytune.bin
</pre>
 
=== Pre-reqs ===
<pre>
git clone https://github.com/bri3d/VW_Flash.git
cd /home/pi/VW_Flash
python3 -m pip install -r requirements.txt
cd ~/VW_Flash/lzss
make
</pre>
 
=== Checksum the cal ===
We won't re-explain everything... Just know that your file needs to be checksummed
 
Assuming you put the cal in /home/pi/flashfiles/tunes/thisismytune.bin
<pre>
cd /home/pi/VW_Flash
python3 checksumsimos18.py -i /home/pi/flashfiles/tunes/thisismytune.bin -o /home/pi/flashfiles/tunes/thisismytune.bin.checksummed --block 5
</pre>
 
The above commands will use the -i input file to create a -o output file that's been checksummed as a --block 5 (cal block) file.
 
=== Encrypt and compress the cal to prepare it for flashing ===
Thanks to Brian and David, we can then encrypt and prepare the CHECKSUMMED file for flashing by:
<pre>
cd /home/pi/VW_Flash
./prepareblock.sh /home/pi/flashfiles/tunes/thisismytune.bin.checksummed 5
</pre>
 
This is a bash script that will re-run the checksum checker and (if it's valid), compress the file using VW's keys, and then encrypt the file and append .flashable to it.
You'll now have a few extra files in your /home/pi/flashfiles/tunes directory. A worked example:
<pre>
pi@raspberrypi:~/VW_Flash $ ls -l /home/pi/flashfiles/tunes/
18tsi_MPI_IS38hybrid_FlexTiming_3000rpmscav_1.9bar_500nm.bin
18tsi_MPI_IS38hybrid_FlexTiming_3000rpmscav_1.9bar_500nm.bin.checksummed
18tsi_MPI_IS38hybrid_FlexTiming_3000rpmscav_1.9bar_500nm.bin.checksummed.compressed
18tsi_MPI_IS38hybrid_FlexTiming_3000rpmscav_1.9bar_500nm.bin.checksummed.flashable
</pre>
 
The .compressed file is an intermediate file that we don't really need anymore. And the original .bin file is identical to the .checksummed file (except that the checksum doesn't match). You can continue to build your tune off of EITHER the .bin or the .bin.checksummed file since next time you make revisions - the file will be re-checksummed anyway.
 
=== Flash it ===
The fun part:
<pre>
cd /home/pi/VW_Flash
python3 flashsimos18.py --file /home/pi/flashfiles/tunes/thisismytune.bin.checksummed.flashable --block CAL
</pre>
 
This command will use the "flashable" file to flash it to the "CAL" block on the ECU. You can also use --block by number.
 
= Getting started with a Stage X tune =
 
 
== Limiters ==
 
 
== Fueling ==
 
 
== Torque Request ==

Navigation menu