Universalpatcher with Logger & Analyzer

They go by many names, P01, P59, VPW, '0411 etc. Also covering E38 and newer here.
Post Reply
User avatar
joukoy
Posts: 392
Joined: Tue Dec 17, 2019 3:27 am
cars: Pontiac Firebird 1978

Universalpatcher with Logger & Analyzer

Post 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/
Last edited by joukoy on Thu Feb 24, 2022 4:03 pm, edited 1 time in total.
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Post 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 ...
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!
persingc
Posts: 58
Joined: Sat Nov 13, 2021 11:21 am
cars: 64 c10
63 impala

Re: Universalpatcher with Logger & Analyzer

Post by persingc »

Great work!
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Post 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 ??
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
joukoy
Posts: 392
Joined: Tue Dec 17, 2019 3:27 am
cars: Pontiac Firebird 1978

Re: Universalpatcher with Logger & Analyzer

Post 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
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Post 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!
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!
kur4o
Posts: 948
Joined: Sun Apr 10, 2016 9:20 pm

Re: Universalpatcher with Logger & Analyzer

Post 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.
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Post 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.
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
joukoy
Posts: 392
Joined: Tue Dec 17, 2019 3:27 am
cars: Pontiac Firebird 1978

Re: Universalpatcher with Logger & Analyzer

Post 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.
User avatar
Gampy
Posts: 2330
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Post 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.
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!
Post Reply