PCM Hammer - CAN BUS Communications

They go by many names, P01, P10, P12, P59, E38, VPW, '0411 etc.
User avatar
turbo_v6
Posts: 512
Joined: Wed Apr 11, 2018 8:50 am
Contact:

Re: PCM Hammer - CAN BUS Communications

Post by turbo_v6 »

Here is my hacky branch bubba2533_CANBus_Testing. You don't have to tell me how terrible it is because I already know lol.

I'll probably just abandon that branch and start a new one after reevaluating and hearing feedback.
LS1 Boost OS Version 5 Available Here. For feature suggestions post in here Development Thread.
kur4o
Posts: 1044
Joined: Sun Apr 10, 2016 9:20 pm

Re: PCM Hammer - CAN BUS Communications

Post by kur4o »

Awesome work bubba2533. You can definitely optimize from here. The fastest read time I get from 3mb pcm is around 2:40min, packet size is $800. With 4mb 3:30 is possible for sure, but I guess you want to do some clean up before squeezing timings to the limit.
User avatar
Gampy
Posts: 2332
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer - CAN BUS Communications

Post by Gampy »

Awesome job!

CANHammer is alive!
bubba2533 wrote: It looks like that's because of line 64 & 65 from "PcmHacks\Apps\PcmLibraryWindowsForms\Devices\J2534Device.cs"

Code: Select all

this.MaxSendSize = 2048 + 12;    // J2534 Standard is 4KB
this.MaxReceiveSize = 2048 + 12; // J2534 Standard is 4KB
And if you look one more row up from that,

Code: Select all

            // Reduced from 4096+12 for the MDI2
            this.MaxSendSize = 2048 + 12;    // J2534 Standard is 4KB
            this.MaxReceiveSize = 2048 + 12; // J2534 Standard is 4KB
You will see why it is set to that ... The MDI2 cannot handle 4096 byte packets!

I suspect it won't be the only abandon branch ... You'll learn something new and wind up starting over, very typical!

Have fun with it, not to worry, I have ZERO interest in contributing ... Though I may make a remark or two (dozen).

-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!
darkman5001
Posts: 252
Joined: Sat Dec 18, 2021 8:15 am
cars: 2005 Yukon, 2004 Suburban, 2001 Tahoe, 2002 Envoy, 2006 Envoy, 2003 Lincoln LS
Location: New Jersey, USA

Re: PCM Hammer - CAN BUS Communications

Post by darkman5001 »

Great work. Very interesting.
User avatar
turbo_v6
Posts: 512
Joined: Wed Apr 11, 2018 8:50 am
Contact:

Re: PCM Hammer - CAN BUS Communications

Post by turbo_v6 »

One question I keep thinking about is: Should there be a selection to go between VPW and CAN?

Or should it try VPW and then try CAN if it fails? In my branch I added a toggle to the device selection, which works, but I just thought it might make it easier on the user.

Obviously that would only make sense if the device is capable of communicating via CAN.
LS1 Boost OS Version 5 Available Here. For feature suggestions post in here Development Thread.
User avatar
antus
Site Admin
Posts: 9002
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: PCM Hammer - CAN BUS Communications

Post by antus »

I think the step that identifies the PCM type by OSID would try vpw then try can. If it can identify the PCM it then saves it type as it does now, then that type is used to look up the protocol each time it communicates. I also would like to have a pcm type selection page where you can select the pcm type from a list, and skip the osid step so that it can be used to read and write PCMs that are not identifiable by OSID - either its unknown, or incorrect/missing/not responding normally/recovery mode.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
TE27Levin
Posts: 39
Joined: Tue Dec 03, 2019 4:26 am
cars: 04 escalade

Re: PCM Hammer - CAN BUS Communications

Post by TE27Levin »

We need this thing to pop open t43's! How can I do that?
User avatar
antus
Site Admin
Posts: 9002
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: PCM Hammer - CAN BUS Communications

Post by antus »

this is just proof of concept for can bus comms. it wont do t43 without a lot more work. never say never, but for now its a no.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
Gampy
Posts: 2332
Joined: Sat Dec 15, 2018 7:38 am

Re: PCM Hammer - CAN BUS Communications

Post by Gampy »

Personally, I think the app should ask what to do, not try to figure it out ...
CAN or VPW
ECM,TCM,BCM, etc...

But it's y'all's gig, I have worse things to do!

-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!
Vampyre
Posts: 262
Joined: Wed Dec 06, 2017 1:02 pm
cars: grand am, trans am

Re: PCM Hammer - CAN BUS Communications

Post by Vampyre »

kinda with gampy on this one, would make things more streamline if we just had drop downs for protocol, ecu type(bcm, ecm, etc,), and one needed(po1, p04, e38)

make the programmers lives easier
Post Reply