Universalpatcher with Logger & Analyzer

They go by many names, P01, P59, VPW, '0411 etc. Also covering E38 and newer here.
User avatar
Gampy
Posts: 2333
Joined: Sat Dec 15, 2018 7:38 am

Re: Universalpatcher with Logger & Analyzer

Post by Gampy »

Awesome!
Thank You!

-Enjoy
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!
hjtrbo
Posts: 140
Joined: Tue Jul 06, 2021 6:57 pm
cars: VF2 R8 LSA
FG XR6T
HJ Ute w/RB25DET

Re: Universalpatcher with Logger & Analyzer

Post by hjtrbo »

Hey, just wondering how to build a table seeker file for E38 / E67?

What I'm looking to do is have it search for axis header match 00 11 00 11 then return the following 578 bytes as a 17 x 17 table with datatype as uWord and scalar set to x/8

Is that possible?
kur4o
Posts: 955
Joined: Sun Apr 10, 2016 9:20 pm

Re: Universalpatcher with Logger & Analyzer

Post by kur4o »

That is very easy to do, with some limitations. You need to make a new search field for each table, increasing the hit counter.

open program->utilities->patcher->open e38 bin file->settings->tableseek->
now you can add more entries in the current file.

Some directions for searching

Us this for search string

#00 k11 00 r11

adding k and r infront use it as byte count for axis length so no need to edit that field.
# means use absolute address where the string is found and not relative.

You can set offset to 4 so start of address start after the header

You can specify in which segment to search

for example put 6 in segment, it will search only in that area or segment 2,3,4 it will search only there.

You can use validation string to make sure the actual address is used in code

This as vaildation string

3C 60 @ @ 38 63 @ @

Will exchange the address found with @@ @@ and will search for that string.

For example you found 00 11 00 11 at address 00203546

The validation string will be
3C 60 00 20 38 63 35 46

You can specify multiple validation string separated by ,

Now for the hard part, You need to make the same entry multiple times and only difference will be to increase Usehit field by 1.
This specify which hit of the string will be used. Since there might be multiple hits with 00 11 00 11.

We might make it a range for example usehit 1-5,8-9 but it may take a while and I don`t see much usage of it, other than research.
hjtrbo
Posts: 140
Joined: Tue Jul 06, 2021 6:57 pm
cars: VF2 R8 LSA
FG XR6T
HJ Ute w/RB25DET

Re: Universalpatcher with Logger & Analyzer

Post by hjtrbo »

Got it. Goodness, this program is advanced. Cheers
hjtrbo
Posts: 140
Joined: Tue Jul 06, 2021 6:57 pm
cars: VF2 R8 LSA
FG XR6T
HJ Ute w/RB25DET

Re: Universalpatcher with Logger & Analyzer

Post by hjtrbo »

I got tired of increasing the hit count by 1. Excel has a good xml export feature. Template is attached.

Usage:
Workbook must be named "ArrayOfTableSeek.xlsx"
Developer tab => XML => Export. Overwrite the table seeker file Universal Patcher is using (create back up first)
Attachments
ArrayOfTableSeek.xlsx
(14.32 KiB) Downloaded 93 times
radrace19
Posts: 4
Joined: Wed Apr 20, 2022 6:51 am
cars: Pontiac G8 GXP

Re: Universalpatcher with Logger & Analyzer

Post by radrace19 »

I was hesitant to post in this thread.

I tried messing around with the logger analyzer section and I couldn't figure out how to inject raw messages back into the bus.

I have an official MDI, but i'm struggling to figure out the universal patcher logger section where I can inject my data to see the response.
Do you happen to have any more information typed up on how to use it?
-Greg
User avatar
joukoy
Posts: 392
Joined: Tue Dec 17, 2019 3:27 am
cars: --
Contact:

Re: Universalpatcher with Logger & Analyzer

Post by joukoy »

radrace19 wrote:I was hesitant to post in this thread.

I tried messing around with the logger analyzer section and I couldn't figure out how to inject raw messages back into the bus.

I have an official MDI, but i'm struggling to figure out the universal patcher logger section where I can inject my data to see the response.
Do you happen to have any more information typed up on how to use it?
-Greg
If I understand your question, you should use tab "VPW Console":
- Enable Destination -> Screen
- Enter raw messages to single row textbox and hit enter
Attachments
up-vpw-console.png
up-vpw-console.png (17.92 KiB) Viewed 7435 times
radrace19
Posts: 4
Joined: Wed Apr 20, 2022 6:51 am
cars: Pontiac G8 GXP

Re: Universalpatcher with Logger & Analyzer

Post by radrace19 »

So use the VPW console and not the J-Console? Maybe that is where I was struggling. I was thinking the VPW was for the older messages.

Ahhh I see in my post I forgot to mention I have the raw CANbus message I want to inject.
kur4o
Posts: 955
Joined: Sun Apr 10, 2016 9:20 pm

Re: Universalpatcher with Logger & Analyzer

Post by kur4o »

On the settings tab in logger->select device->set protocol to can->set module id if not pcm->connect

Goto vpw console->start sending data

This method uses iso156765 formatting to messages and set some filters, so you can only query the module you set at initial connection.
There is also automated script system that can be used to send multiple messages and wait for predefined response count.

To broadcast raw unformatted messages you need to use the j-console.

You can load custom presets with load button or to connect raw can->protocol to CAN->baud to 500000->connect
Use buffered checkbox to make sending commands usable.

The idle bus messages is extremely fast so don`t expect to see anything on the log, it is also preferred to log to file if using slower PC.

With mdi you can modify the timing setting to optimum.
Settings tab->timeouts -use these
TimeoutLoggingActive DataLogging3
TimeoutLoggingActiveObdlink Minimum
TimeoutLoggingPassive DataLogging4
TimeoutScriptRead 100
TimeoutSerialPortRead 2000
TimeoutAvtRead 3000
TimeoutSerialPortWrite 100
TimeoutJ2534Write 0
TimeoutAnalyzerReceive 3000
TimeoutReceive 100
TimeoutLoggingReceive 100
TimeoutConsoleReceive 100
TimeoutJConsoleReceive 50
What kind of pcm do you have. I have some sample scripts for CAN you can test, to get more familiar how CAN bus is used.
radrace19
Posts: 4
Joined: Wed Apr 20, 2022 6:51 am
cars: Pontiac G8 GXP

Re: Universalpatcher with Logger & Analyzer

Post by radrace19 »

Thanks for the great information kur4o

I might get a chance to mess with it this afternoon.
I'll have to look at the script system. That sounds interesting.

I have a few spare modules on the bench (E67, 2 versions of E38, a BCM, HMI module)

Thanks for the quick walk through
Post Reply