E92 PCM Reverse Engineering

Disassembly, Reassembly, Tools and devleopment. Going deep with Hardware and Software.
ironduke
Posts: 699
Joined: Thu Feb 13, 2020 11:32 pm
cars: Mainly GM trucks, a Cruze and an Equinox for dailys..

Re: E92 PCM Reverse Engineering

Post by ironduke »

Is echo turned on?? that might be why your seeing your write message 2 times..
User avatar
turbo_v6
Posts: 512
Joined: Wed Apr 11, 2018 8:50 am
Contact:

Re: E92 PCM Reverse Engineering

Post by turbo_v6 »

ironduke wrote:Is echo turned on?? that might be why your seeing your write message 2 times..
I'm not sure. I didn't turn it on that I'm aware of. I don't even know how I would do that.
LS1 Boost OS Version 5 Available Here. For feature suggestions post in here Development Thread.
ironduke
Posts: 699
Joined: Thu Feb 13, 2020 11:32 pm
cars: Mainly GM trucks, a Cruze and an Equinox for dailys..

Re: E92 PCM Reverse Engineering

Post by ironduke »

bubba2533 wrote:
ironduke wrote:Is echo turned on?? that might be why your seeing your write message 2 times..
I'm not sure. I didn't turn it on that I'm aware of. I don't even know how I would do that.
Looked back and your using universal patcher logger.. Kurdo is the expert on that but I do not believe it turns loopback/echo on by default, at least with the gm mdi and the very limited testing I just did..

you could select LOOP_BACK in the config list and then click the plus sign next to it.. That will add LOOP_BACK = 1 to the configs line.. You could change that to a zero and try that???
I can do that and turn it on and make my logs look just like yours, but if I leave it turned off, or use the LOOP_BACK = 0 configs then I do not see my command repeated..
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: E92 PCM Reverse Engineering

Post by kur4o »

If you just dealing with mode 23 and a single module, I suggest you switch to ISO15765 protocol.
That way tool will format all the message length for you, it will be much readable and faster too.

What tool you are using.
In j-console you can load a preset that is labeled iso15765, and connect with it.
Than when you send a message don`t use the byte length.
00 00 07 E0 [07] 23 40 00 00 00 00 06
07= byte length in raw CAN it is needed, on ISO15765 you can remove it and tool will add it and handle the 30 multiline.
WIth iso15765 send
00 00 07 E0 23 40 00 00 00 00 06
Here is example how vin request will look like in iso15765 protocol

13:50:15.728] 00 00 07 E0 1A 90
[13:50:15.750] 00 00 07 E8 5A 90 4B 4C 37 43 4A 4B 53 42 58 47 42 36 33 33 39 37 36

You get 1 long response for vin. Instead of fragmented multiline messages.

That message doubling could be some bug in program, Can you test with latest version on github.
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: E92 PCM Reverse Engineering

Post by kur4o »

Here is a test script that should work in raw can mode, Some expected response count and timeouts are added at the end of requests.

Added also unlock logic, to poll the pcm in unlocked stage.

And screenshot how to load a presaved settings.
j-logger_load_profile.jpg
EDIT: not sure which algo pcm uses,
I set it at algo 192, table1 algo92, you can change it if not working, or send a pair for testing.
Attachments
can_tests.txt
(246 Bytes) Downloaded 102 times
ironduke
Posts: 699
Joined: Thu Feb 13, 2020 11:32 pm
cars: Mainly GM trucks, a Cruze and an Equinox for dailys..

Re: E92 PCM Reverse Engineering

Post by ironduke »

just trying to assist. Valid E92 seed = 8D92 and key = 0D5C
2 byte E92 algo is table 01 algo 0x01
5 byte E92/E92a algo is table F1 algo 0x92
Last edited by ironduke on Mon Apr 24, 2023 9:40 pm, edited 1 time in total.
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: E92 PCM Reverse Engineering

Post by kur4o »

Updated script with correct algo, thanks goes to ironduke for pointing it out.
Attachments
can_tests_fixedAlgo.txt
(246 Bytes) Downloaded 139 times
gmtech825
Posts: 227
Joined: Fri Feb 24, 2017 11:27 am

Re: E92 PCM Reverse Engineering

Post by gmtech825 »

interseting...I have seen the 7E0 07 AE 28 80 in logs but didn't know what it did
User avatar
turbo_v6
Posts: 512
Joined: Wed Apr 11, 2018 8:50 am
Contact:

Re: E92 PCM Reverse Engineering

Post by turbo_v6 »

kur4o wrote:If you just dealing with mode 23 and a single module, I suggest you switch to ISO15765 protocol.
That way tool will format all the message length for you, it will be much readable and faster too.

What tool you are using.
This is awesome! I can't believe I missed this. I was looking right at the ISO15765 Wiki page trying to understand how to send these messages and now I see that it's all done for you by the tool.

I'm using an Openport 2.0 device.
gmtech825 wrote:interseting...I have seen the 7E0 07 AE 28 80 in logs but didn't know what it did
Did I miss something? I'm not sure what this is referring to? If you have more insights I'm happy to learn more.
LS1 Boost OS Version 5 Available Here. For feature suggestions post in here Development Thread.
User avatar
Gatecrasher
Posts: 353
Joined: Sat Apr 25, 2020 6:09 am

Re: E92 PCM Reverse Engineering

Post by Gatecrasher »

bubba2533 wrote: Did I miss something? I'm not sure what this is referring to? If you have more insights I'm happy to learn more.
My comment about the VIN change tool yesterday morning.
Post Reply