Page 13 of 15

Re: Universalpatcher with Logger & Analyzer

Posted: Sat Jul 01, 2023 2:04 am
by Gampy
Awesome!
Thank You!

-Enjoy

Re: Universalpatcher with Logger & Analyzer

Posted: Tue Dec 12, 2023 12:59 pm
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?

Re: Universalpatcher with Logger & Analyzer

Posted: Tue Dec 12, 2023 7:23 pm
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.

Re: Universalpatcher with Logger & Analyzer

Posted: Tue Dec 12, 2023 8:42 pm
by hjtrbo
Got it. Goodness, this program is advanced. Cheers

Re: Universalpatcher with Logger & Analyzer

Posted: Thu Dec 14, 2023 7:06 am
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)

Re: Universalpatcher with Logger & Analyzer

Posted: Sun Dec 24, 2023 12:34 am
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

Re: Universalpatcher with Logger & Analyzer

Posted: Sun Dec 24, 2023 12:52 am
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

Re: Universalpatcher with Logger & Analyzer

Posted: Sun Dec 24, 2023 1:05 am
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.

Re: Universalpatcher with Logger & Analyzer

Posted: Sun Dec 24, 2023 4:17 am
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.

Re: Universalpatcher with Logger & Analyzer

Posted: Sun Dec 24, 2023 11:53 pm
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