Code Monkey home page Code Monkey logo

Comments (19)

bri3d avatar bri3d commented on May 24, 2024 1

Hi! I have added a few fixes to the latest release version v0.5.2:

  • The default STMIN_TX is now 350000 (will be rounded to 400000us / 0xF4 for J2534 devices), up from 250000 (rounded up to 0xF3 for J2534 devices). Flashing will be a tiny slower but should be somewhat more reliable across the board.
  • For cars with specifically bad transmit framing issues, like these PQ cars, there is now a slider in the Interfaces menu in the GUI - you can select the transmit separation and keep jacking it up until things work.
  • J2534 drivers which are incompletely installed in the Registry will now be skipped instead of crashing the program.

This should resolve all of the issues discussed in this thread.

from vw_flash.

bri3d avatar bri3d commented on May 24, 2024

Odd. I have a number of users on 18.2 without issues (it's the same as 18.1 at the end of the day - still SC8 project correlation code). Although, I think most of them are using the Switchleg / A0 ESP32 hardware instead of OpenPort.

Usually random failures like this are caused by the transmit STMin (transmit message timing) parameter being incorrect causing frames to drop on the CAN bus. Maybe it is too aggressive for the PQ CANbus on OpenPort.

If you're comfortable editing code, you can set an stmin_override here:

workshop_code=workshop_code.as_bytes(),

by just adding another line:

stmin_override=500000,

I have meant to add this to the GUI but haven't had the time, this is good inspiration for me to do so.

from vw_flash.

il2evo avatar il2evo commented on May 24, 2024

Thanks for the response!

I will try that, although I am struggling a bit with a source code version, specifically with building the compressor. But that has nothing to do with the software itself.

The only problem besides that is the source code version doesn't see J2534 drivers (release version does), so I am trying to figure that out.

If I can't, I will wait for the next release version then.

Anyway, thanks a lot for your advice! I'll post here if i am able to apply your solution and test it.

from vw_flash.

bri3d avatar bri3d commented on May 24, 2024

If you are running the source version in 64-bit Python, you need to switch to 32-bit.

Most J2534 drivers are 32-bit, and I bundle 32-bit Python with the release version to avoid this issue.

from vw_flash.

il2evo avatar il2evo commented on May 24, 2024

The cable manufacturer actually provides both 32 and 64 bit drivers. I've tried both with 32 and 64 bit Python,with the same result:
2022-09-21 02:44:26 [ERROR] VWFlash: No J2534 DLLs found in HKLM PassThruSupport. Continuing anyway.
Just in case, Python version is 3.9.13. Originally I tried 3.10, but wxpython 4.1.1 doesn't build with it.

I guess I will have to wait for the release version, because the same drivers were working fine with it previously.

from vw_flash.

il2evo avatar il2evo commented on May 24, 2024

So I've eventually figured out the problem with drivers and built the compressor. Everything seems to be working, but the GUI is just missing the "Flash" button. There is no dropdown with available actions and no button.

Screenshot is attached.
vw_flash

Do you have any ides about what else I might be doing wrong?

I don't feel comfortable doing the same from cli, so I would really prefer to use GUI, because I've used it successfully with another car (release version).

from vw_flash.

bri3d avatar bri3d commented on May 24, 2024

from vw_flash.

duhnich avatar duhnich commented on May 24, 2024

It doesn't, but I feel like this is something with this specific laptop, because I've downloaded pre-built version and that button doesn't appear there too. So I'll try to build the environment on the old one, where it was working.

I was previously posting from friends account, that's also me, sorry for spaming :)

from vw_flash.

aarons3 avatar aarons3 commented on May 24, 2024

Just a random thought, but I have seen windows display scaling affect this. Could try changing that to see if the buttons appear, and/or tweaking the GUI width/height.

from vw_flash.

duhnich avatar duhnich commented on May 24, 2024

You are right! It was scailing!

However, unfortunately, the issue still persists. It gets stuck. Please find the logs and the screenshot attached.

udsoncan.log
vw_flash_stuck
.
flash_details.log
flash.log

from vw_flash.

loskani avatar loskani commented on May 24, 2024

Did you managed back to fully stock FRF after unsuccessful unlocking?

I have same car with same hardware number ECU try to flash with J2534 (Openport 2.0 or Scanmatik 2)....

Did you tried another j2534 tool instead of Scanmatik?

image

from vw_flash.

duhnich avatar duhnich commented on May 24, 2024

Yes, we didn't brick it :D

It is running a stock now. And we don't have Scanmatik. Tried Openport and a different J2534 adapter.

btw, we actually have reports from other people using this software who had the same issue with the process getting stuck, but they've managed to finish it successfully after several attempts. The same didn't work for us, unfortunately. As far as I know, they were using the same adapter.

from vw_flash.

loskani avatar loskani commented on May 24, 2024

Hello

Yes, we didn't brick it :D

It is running a stock now. And we don't have Scanmatik. Tried Openport and a different J2534 adapter.

btw, we actually have reports from other people using this software who had the same issue with the process getting stuck, but they've managed to finish it successfully after several attempts. The same didn't work for us, unfortunately. As far as I know, they were using the same adapter.

Same part number as yours and Simos 18.2 worked like a charm with OP2.0 :) no stuck or something.

from vw_flash.

duhnich avatar duhnich commented on May 24, 2024

Where did you get the frf file for unlocking from? Mine is from vw flashdata database. I am thinking that maybe the issue is in the frf I am using. The name is correct according to docs, but maybe it is just broken... I've tried OP 2.0 already, but with the same result.

And also what is the name and size of yours? Just want to compare.

from vw_flash.

loskani avatar loskani commented on May 24, 2024

https://we.tl/t-plpf95UlUK

here unlock frf
your OP is genuine or china clone?

from vw_flash.

duhnich avatar duhnich commented on May 24, 2024

It is genuine, but that was not the problem. You probably just have the same ECU, but a different car. Looks like this is just a GLI issue.

For Brian:

Your advice worked! I've increased "stmin_override" to 700000 today. Unlocking was a bit slower, but it worked on the first attempt! It got stuck once at importing bin later but worked fine after restart (without increasing further).

So for the next release version, you may probably want to have an option for a bit higher value to make sure it works for other unfortunate GLI owners :) But in general, that was exactly the solution! We have flashed it successfully.

Thank you for the assistance and for this great tool!

from vw_flash.

thTUNED avatar thTUNED commented on May 24, 2024

The cable manufacturer actually provides both 32 and 64 bit drivers. I've tried both with 32 and 64 bit Python,with the same result: 2022-09-21 02:44:26 [ERROR] VWFlash: No J2534 DLLs found in HKLM PassThruSupport. Continuing anyway. Just in case, Python version is 3.9.13. Originally I tried 3.10, but wxpython 4.1.1 doesn't build with it.

I guess I will have to wait for the release version, because the same drivers were working fine with it previously.

I using Scanmatik 2 and have same problem , how did you manage to solve this problem?

from vw_flash.

duhnich avatar duhnich commented on May 24, 2024

Check the first reply from bri3d on this thread. That was the solution, but I've used

stmin_override=700000

Instead of 500000.

You'll have to use the source code version though, so you'll need to build the environment. But you can check /docs/cli.md file for details and commands you will need (you can still use GUI after that, this cli doc just has instructions for modules installation and compressor compiling).

In my case what I had to install is: 32 bit Python (3.9.* because wxpython 4.1.1 will not work with 3.10), modules from "requirements.txt', Microsoft Visual C++, make and gcc to build the compressor (I've used MinGW for both).

Or you can just wait for the next release :)

from vw_flash.

duhnich avatar duhnich commented on May 24, 2024

Or did you mean the problem with drivers not being seen? In this case, it was purely my mistake. I was downloading the wrong drivers.

from vw_flash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.