Universalpatcher with Logger & Analyzer

They go by many names, P01, P59, VPW, '0411 etc. Also covering E38 and newer here.
User avatar
Posts: 377
Joined: Tue Dec 17, 2019 3:27 am

Universalpatcher with Logger & Analyzer

Postby joukoy » Thu Feb 24, 2022 6:32 am

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/
Last edited by joukoy on Thu Feb 24, 2022 4:03 pm, edited 1 time in total.

User avatar
Posts: 1792
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Postby Gampy » Thu Feb 24, 2022 7:02 am

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 ...
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!

Posts: 49
Joined: Sat Nov 13, 2021 11:21 am

Re: Universalpatcher with Logger & Analyzer

Postby persingc » Thu Feb 24, 2022 7:04 am

Great work!

User avatar
Posts: 1792
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Postby Gampy » Thu Feb 24, 2022 1:04 pm

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 ??
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!

User avatar
Posts: 377
Joined: Tue Dec 17, 2019 3:27 am

Re: Universalpatcher with Logger & Analyzer

Postby joukoy » Thu Feb 24, 2022 8:28 pm

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

User avatar
Posts: 1792
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Postby Gampy » Thu Feb 24, 2022 8:57 pm

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!
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!

Posts: 590
Joined: Sun Apr 10, 2016 9:20 pm

Re: Universalpatcher with Logger & Analyzer

Postby kur4o » Thu Feb 24, 2022 10:33 pm

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.

User avatar
Posts: 1792
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Postby Gampy » Thu Feb 24, 2022 11:29 pm

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.
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!

User avatar
Posts: 377
Joined: Tue Dec 17, 2019 3:27 am

Re: Universalpatcher with Logger & Analyzer

Postby joukoy » Fri Feb 25, 2022 12:54 am

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.

User avatar
Posts: 1792
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Postby Gampy » Fri Feb 25, 2022 12:58 am

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.
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!

Next

Return to GM LS1 512Kbyte and 1Mbyte and newer

Who is online

Users browsing this forum: No registered users and 3 guests