Page 1 of 4
PCM Logger XML
Posted: Thu Jul 15, 2021 8:32 am
by turbo_v6
I see a few different types of XML files that seem to be for defining parameters and I don't really understand the intent of each one. I would like to help out defining some basic parameters for a few OS's. I'm sure there are basic SAE PID's that could be defined as well, but I'm not sure how these files all fit together or if each OS will need it's own XML.
This is from PcmHammer018 release
Code: Select all
Parameters.Standard.xml
Parameters.SAE.xml
Parameters.RAM.xml
Parameters.Math.xml
Parameters.12593358.xml
Parameters.DidNotWork.xml
Also it seems there are different type of formats within those files and I'm not sure which is the correct one.
Parameters.SAE.xml :
Code: Select all
<Parameter DefineBy="SAE" Name="Engine Load" Address="0x4">
<Conversion Name="Percentage" Value="x * 100.0 / 255.0"/>
</Parameter>
Parameters.Standard.xml :
Code: Select all
<Parameter
id="0004"
name="Engine Load"
description=""
storageType="uint8"
bitMapped="False">
<Conversion units="%" expression="(x/2.55)" format="0.00" />
</Parameter>
Parameters.RAM.xml :
Code: Select all
<Parameter Name="Load" DefineBy="Address" ByteCount="2" Address="0xFFAAEA">
<Conversion Name="g/cyl" Expression="x/2048.0" />
</Parameter>
Parameters.12593358.xml :
Code: Select all
<RamParameter
id="RamLoad"
name="Load"
description=""
storageType="uint16"
bitMapped="False">
<Location os="12593358" address="0xFFAAEA" />
<Conversion units="g/cyl" expression="x/2048.0" format="0.00" />
</RamParameter>
Re: PCM Logger XML
Posted: Thu Jul 15, 2021 10:37 am
by Gampy
Not sure about the others but Parameters.Standard.xml should be current.
-Enjoy
Re: PCM Logger XML
Posted: Fri Jul 16, 2021 3:01 am
by turbo_v6
That seems to work for PID parameters, but I can't get anything to work for RAM parameters.
I've tried to add to Parameters.RAM.xml and I created Parameters.12587603.xml and neither would work.
Re: PCM Logger XML
Posted: Fri Jul 16, 2021 4:46 am
by Gampy
I'm sure NSFW knows this off the top of his head ...
I have no way to test the logger (that I know of), so I know little about it, I can read the code though so I'll look see what I can figure out for you if he doesn't beat me to your answer!
Parameters.RAM.xml has been recently updated.
[edit]
Can I assume that you used Parameters.RAM.xml as a template to create Parameters.12587603.xml and changed the "Location" element to suit 12587603 ??
Re: PCM Logger XML
Posted: Fri Jul 16, 2021 5:31 am
by turbo_v6
I tried adding this to Parameters.RAM.xml
Code: Select all
<RamParameter
id="Test Throttle Position"
name="RAM Throttle Position"
description="Unconfirmed."
storageType="uint16"
bitMapped="False">
<Location os="12587603" address="0xFFAB64" />
<Conversion units="Raw" expression="x" format="0.00" />
</RamParameter>
I also tried creating Parameters.12587603.xml similar to how Parameters.12593358.xml is defined.
Code: Select all
<Parameter Name="Throttle Position" DefineBy="Address" ByteCount="2" Address="0xFFAB64">
<Conversion Name="Raw" Expression="x" />
</Parameter>
Re: PCM Logger XML
Posted: Fri Jul 16, 2021 5:48 am
by Gampy
Parameters.RAM.xml is proper, I don't think Parameters.12593358.xml is ...
Try creating Parameters.12587603.xml from Parameters.RAM.xml.
bubba2533 wrote:Code: Select all
<RamParameter
id="Test Throttle Position"
name="RAM Throttle Position"
description="Unconfirmed."
storageType="uint16"
bitMapped="False">
<Location os="12587603" address="0xFFAB64" />
<Conversion units="Raw" expression="x" format="0.00" />
</RamParameter>
No spaces in "ID" ... Otherwise this looks good as long as the address is valid.
I do not know any 12587603 RAM Addresses off the top of my head ...
Parameters.Standard.xml, Parameters.Math.xml, Parameters.RAM.xml are the only ones most likely to be accurate, they get loaded as defaults when PCMLogger opens ...
Re: PCM Logger XML
Posted: Fri Jul 16, 2021 6:04 am
by turbo_v6
Nope that didn't fix it.
Re: PCM Logger XML
Posted: Fri Jul 16, 2021 6:59 am
by Gampy
I'm obviously misunderstanding how to use the logger ...
There is no way to load a Parameters.12587603.xml.
I do not know if folks are expected to expand the Parameters.Standard.xml, Parameters.Math.xml and Parameters.RAM.xml or what, they are the only .xml files used by PCMLogger that I see.
Then there is the .LogProfile ... The LogProfile is for selecting what (that is previously defined) you want in the log.
You can add a Parameter to Parameters.Standard.xml and it winds up in the Parameters tab, however I have yet to find how it uses Parameters.RAM.xml (other then loading it), still looking.
I have tried adding a Parameters.RAM.xml parameter to My.LogProfile, it fails to include it in the log.
Re: PCM Logger XML
Posted: Fri Jul 16, 2021 7:19 am
by Gampy
Ah Ha!
Create a Parameters.RAM.xml entry of your choice,
Example:
Code: Select all
<RamParameter
id="MyRamLoad"
name="MyLoad"
description="Testing 123"
storageType="uint16"
bitMapped="False">
<Location os="12587603" address="0xFFAAEA" />
<Conversion units="Raw" expression="x" format="0.00" />
</RamParameter>
Then add that entry to your .LogProfile
Example:
Code: Select all
<RamParameters>
<RamParameter id="MyRamLoad" units="Raw" />
</RamParameters>
Worked for me, how about you ??
-Enjoy
[Edit]
BTW, Spacy "ID's" do in fact work.
Select your .LogProfile every time, it appears there is a loading issue, like a horse before the kart issue, it picks up the standard stuff but not the RAM stuff so it seems.
[Edit2]
Anyone know a valid RAM location in 12587603 that should have a known value ??
Someplace to retrieve a known for testing ...
Re: PCM Logger XML
Posted: Fri Jul 16, 2021 1:11 pm
by turbo_v6
That still didn't work for me.
0xFFAB64 is throttle position.