Page 7 of 35

Re: PCM Hammer Release 021

Posted: Fri May 27, 2022 3:03 am
by Gampy
bubba2533 wrote:It seems this version of PCM Hammer does not like my new Custom OS.

When trying to flash it gives me an error:

Code: Select all

[12:08:22:442]  PCM and image file are both operating system 76030003
Unknown OsID ... Would just need to be added to PcmInfo, there is a PR up that would make this easier without over complicating it.
bubba2533 wrote:Another thing that would be nice is to have the ability to do a flash of both calibration sectors (Stock=008000-01FFFF & Custom OS=0E0000-0FFFFF).

I'm currently doing a "Write OS, Calibration, and Boot" to flash Cal changes, which makes it a little more dangerous for the user.
Shouldn't be that difficult to implement if everyone agrees ...

Re: PCM Hammer Release 021

Posted: Fri May 27, 2022 4:42 am
by NSFW
antus wrote:I dont think its two byte values, at least its not by the J1939 spec which GM should not be able to break while maintaining OBD2 compliance. I think it is 2 bytes of bits here so that should work as is.
Cool. In that case we just need to define new parameters that look at the specific bits.

Re: PCM Hammer Release 021

Posted: Fri May 27, 2022 4:46 am
by NSFW
Gampy wrote:
bubba2533 wrote:It seems this version of PCM Hammer does not like my new Custom OS.

When trying to flash it gives me an error:

Code: Select all

[12:08:22:442]  PCM and image file are both operating system 76030003
Unknown OsID ... Would just need to be added to PcmInfo, there is a PR up that would make this easier without over complicating it.
bubba2533 wrote:Another thing that would be nice is to have the ability to do a flash of both calibration sectors (Stock=008000-01FFFF & Custom OS=0E0000-0FFFFF).

I'm currently doing a "Write OS, Calibration, and Boot" to flash Cal changes, which makes it a little more dangerous for the user.
Shouldn't be that difficult to implement if everyone agrees ...
I'm totally on board with adding the OSID, and 04, 05, 06, etc... planning ahead. :)
I haven't seen the PR yet but it sounds like a good idea.

It'll take some creativity to add support for the 2nd calibration sector without causing all other users to wait for an unnecessary CRC check on that segment. I'll think on it though, there's probably a way.

Re: PCM Hammer Release 021

Posted: Fri May 27, 2022 8:10 am
by antus
I dont think os cal and boot is as dangerous as it might sound ss identical sectors eg at least boot wont be erased and written if they are identical. its more about considering those sectors when deciding what to do. Though maybe when we detect this COS we could do a os plus cal write transperently to pick up the right sectors without confusing the ui for the majority of users.

Re: PCM Hammer Release 021

Posted: Fri May 27, 2022 11:18 am
by spyder09
What exactly are you doing to make it a “custom OS”? If there is anything specific I can help with please let me know, I have a p12 here as a bench unit I can flash to a couple different OS’s and test logging etc. I also have hp tuners so if any of that info helps let me know

Re: PCM Hammer Release 021

Posted: Fri May 27, 2022 11:21 am
by spyder09
Also if anyone is good at disassembling the code to figure out what is going on I would be very interested in getting help doing atleast 1 OS. There is some hidden settings not exposed, and hoping for some other settings to be burried in the binary that is in other p12 OSs

Re: PCM Hammer Release 021

Posted: Sun Jun 05, 2022 3:37 am
by spyder09
if I come across a p12 that PCM hammer still cant detect as p12, how can I add that OS to the program so it can pull a bin file?

Re: PCM Hammer Release 021

Posted: Sun Jun 05, 2022 11:45 am
by NSFW
spyder09 wrote:if I come across a p12 that PCM hammer still cant detect as p12, how can I add that OS to the program so it can pull a bin file?
Right now, you'd have to edit the code and recompile.

But, Gampy has submitted a change that will make it possible to add support for more operating systems just by editing an XML file. I'm pretty sure that will be part of the next release.

EDIT: ...but in the meantime, what's the OS ID that you've found? We can add that to the XML before the next release.

Re: PCM Hammer Release 021

Posted: Sun Jun 05, 2022 12:55 pm
by spyder09
NSFW wrote:
spyder09 wrote:if I come across a p12 that PCM hammer still cant detect as p12, how can I add that OS to the program so it can pull a bin file?
Right now, you'd have to edit the code and recompile.

But, Gampy has submitted a change that will make it possible to add support for more operating systems just by editing an XML file. I'm pretty sure that will be part of the next release.

EDIT: ...but in the meantime, what's the OS ID that you've found? We can add that to the XML before the next release.

12623279 and 12605256

Re: PCM Hammer Release 021

Posted: Wed Jun 08, 2022 9:19 am
by spyder09
NSFW wrote:
spyder09 wrote:if I come across a p12 that PCM hammer still cant detect as p12, how can I add that OS to the program so it can pull a bin file?
Right now, you'd have to edit the code and recompile.

But, Gampy has submitted a change that will make it possible to add support for more operating systems just by editing an XML file. I'm pretty sure that will be part of the next release.

EDIT: ...but in the meantime, what's the OS ID that you've found? We can add that to the XML before the next release.

forgive me as I am new to github and have never compiled anything from there before. Would I edit the \Apps\PcmLibrary\Misc\PcmInfo.cs file, add the OS ID's in the p12 1m list or 2m list, save that file then complie that to .exe, which I am not 100% sure on how to do yet haha