Page 1 of 15

Universalpatcher with Logger & Analyzer

Posted: Thu Feb 24, 2022 6:32 am
by joukoy
Maybe it is time to start new thread about UniversalPatcher?

Currently it can:

Make/apply patches for bin files
Get information of PCM binary files
Extract / swap segments
Generate XDF files for Tunerpro
Modify calibrations (Tuner)
Log data from PCM (Logger)
Log VPW bus traffic (Analyzer)
And using PCM Hammer:
Read/write calibrations

Started as simple, small patch program (idea from kur4o), but lot of features added later (too many?)

Latest version available:
https://github.com/joukoy/UniversalPatcher

Homepage:
https://universalpatcher.net/

Re: Universalpatcher with Logger & Analyzer

Posted: Thu Feb 24, 2022 7:02 am
by Gampy
It's mind boggling ... I very much remember the start of the thread/program and admired the team work between you two!

I think it's amazing, it is busy though, at least to me.

You have,
Log data from PCM (Logger)
in your list above.

You should add,
Log VPW bus traffic (Analyzer)
In your wording ...

Re: Universalpatcher with Logger & Analyzer

Posted: Thu Feb 24, 2022 7:04 am
by persingc
Great work!

Re: Universalpatcher with Logger & Analyzer

Posted: Thu Feb 24, 2022 1:04 pm
by Gampy
Awe, now I see, the Console is on the Settings tab, close enough to what I like ... Be nice to have timing, not required.

Sweet!

Could you add horizontal scroll bars please ??

Re: Universalpatcher with Logger & Analyzer

Posted: Thu Feb 24, 2022 8:28 pm
by joukoy
Gampy wrote:Awe, now I see, the Console is on the Settings tab, close enough to what I like ... Be nice to have timing, not required.

Sweet!

Could you add horizontal scroll bars please ??
Version 0.20.9 have Timestamps and scrollbars in VPW Console

Re: Universalpatcher with Logger & Analyzer

Posted: Thu Feb 24, 2022 8:57 pm
by Gampy
The dates are not coming out correctly, we can lose them, the date is not needed, just the time. I use "hh:mm:ss:ffff"

Also, if you open the logger from the Utilities menu, then close the Logger, Then open it again without closing UP, the logger complains about not having a profile ... At that point you have to restart UP.
And it crashes if you Select Disconnect ... While the logger is running.

Also noticing the name of the button, Start/Start Logging/Start Analyzer doesn't properly follow the Tab changes as it looks like you've intended, and that seems to be playing a part in the failed logging and no profile defined ...

Something has happened between 20.8 and 20.9 ... It is no longer stable, it keeps either not logging, saying there is no profile defined or flat crashes and closes UP!

I cannot get it to log VPW at all now ... I have even deleted the %appdatalocal%\Creator__joukoy...

Thank you!

Re: Universalpatcher with Logger & Analyzer

Posted: Thu Feb 24, 2022 10:33 pm
by kur4o
There is some random crash bug with j2534 driver. Reason unknown.

If anyone can debug it with some j device that can debug driver issues will be of great help.

Re: Universalpatcher with Logger & Analyzer

Posted: Thu Feb 24, 2022 11:29 pm
by Gampy
Yup, the crash on disconnect while VPW logger is running is related to J2534.
The dates are related to J2534 ... :?

The rest happens with both ...

I'm not going to dig into joukoy's code, however I replaced the J2534.dll in Joukoy\UniversalPatcher\PCMHammer (only one I found) and it still acts the same, it is the most simplest interoperability wrapper possible, no issues with it elsewhere ...
Not saying it cannot be the wrapper or driver, it still could be.

The logger app is fragile.

Re: Universalpatcher with Logger & Analyzer

Posted: Fri Feb 25, 2022 12:54 am
by joukoy
Gampy wrote:Yup, the crash on disconnect while VPW logger is running is related to J2534.
The dates are related to J2534 ... :?

The rest happens with both ...

I'm not going to dig into joukoy's code, however I replaced the J2534.dll in Joukoy\UniversalPatcher\PCMHammer (only one I found) and it still acts the same, it is the most simplest interoperability wrapper possible, no issues with it elsewhere ...
Not saying it cannot be the wrapper or driver, it still could be.

The logger app is fragile.
UniversalPatcher is not using J2534.dll, functionality is built in.
I have already fixed dates and some disconnect bugs, still hunting j2534 crash before next version.

Re: Universalpatcher with Logger & Analyzer

Posted: Fri Feb 25, 2022 12:58 am
by Gampy
So you're doing the J2534 C <-> C# Interoperability within UP ??

Edit; Ok, I had to look, I see now, you've merged J2534DotNet into it.