Problem with header in XML

Hi, I’m adding a couple of lines to the original XML for obd2. But I have a problem with the headers.

I want to add several lines that need to call the 726 header, I have tried it by entering it by hand in the console and they read the sensor and return data but I can’t get them to work in the xml.

222813: 72E0562281302B3
224028: 72E0462402835

The lines are just an example of what I have tried…

command send=“222813” header=“atsh726” skipCount=“5” targetId=“240” units=“BAR” conversion=“B1*0.01373”> <!-- LF TP –

command send=“224028” header=“726” skipCount=“5” targetId=“253” units=“%” conversion=“B0”> <!-- batt % –

<command send="222813" header="atsh726" skipCount="5" targetId="240" units="BAR" conversion="(((256*B0)+B1)/3+22/3)*0.145"></command> <!-- LF TP -->
<command send="222814" header="atsh726\ratcea2A\ratta2A" skipCount="5" targetId="241" units="BAR" conversion="(((256*B0)+B1)/3+22/3)*0.145"></command> <!-- LF TP -->
<command send="222815" header="atsh726\atcea2A\atta2A" skipCount="5" targetId="242" units="BAR" conversion="(((256*B0)+B1)/3+22/3)*0.145"></command> <!-- LF TP -->
<command send="222816" header="atsh726" skipCount="5" targetId="243" units="BAR" conversion="(((256*B0)+B1)/3+22/3)*0.145"></command> <!-- LF TP -->
<command send="224028" header="atsh726" skipCount="5" targetId="253" units="%" conversion="B1"></command> <!-- batt % -->

I have tried the following that I have found in other posts:

header=“atsh726\ratcea2A\ratta2A”
header=“atsh726\atcea2A\atta2A”
header=“atsh726”

These are the originals:

Name," ““ShortName””“,” ““ModeAndPID””“,” ““Equation””“,” ““Min Value””“,” ““Max Value””“,” ““Units””“,” ““Header””“,” ““startDiagnostic””“,” ““stopDiagnostic””“,” ““Scale””"

[Ford]Battery Charge %,Batt %,0x224028,a,0,100,%,726,1

[FORD]Battery Current,Ammeter,0x224090,(((A*256)+b)/16)-511.7,-300,300,Amps,726,1

[FORD]IAT2 (Method 2),IAT2,0x2203ca,A-40,0,60,C,Auto,1

[FORD]Left front tyre pressure,LF TP,0x222813,(((256*A)+B)/3+22/3)*0.145,0,70,psi,726,1

[FORD]Left rear tyre pressure,LR TP,0x222816,(((256*A)+B)/3+22/3)*0.145,0,70,psi,726,1

[FORD]Right front tyre pressure,RF TP,0x222814,(((256*A)+B)/3+22/3)*0.145,0,70,psi,726,1

[FORD]Right rear tyre pressure,RR TP,0x222815,(((256*A)+B)/3+22/3)*0.145,0,70,psi,726,1

Use header=“atsh726” on each of those, share your complete XML file and send me a debug log:

How to send a debug log - General / Frequently Asked Questions - RealDash Forum

I send the debug log and this is the xml.

focus.xml (8.0 KB)

If I can figure out how one works I think I could get the others out. I currently use all these sensors in car scanner but I wanted to do it with realdash because the graphical interface is much better.

I’ve been doing more tests but I’m not able to get any PID that has a header to work…

In the log, there is not a single ATSH command issued. The log did not show the connecting part, but are you sure that your custom XML is loaded correctly to the connection?

I’ve been reading the elm documentation and I understand it better now. I’ve done some tests and have made progress.

focusprueba2.xml (5.0 KB)

So I have managed to get them working but not the main ones.

I have also tried this structure but it does not work… I will continue trying tonight.

focusprueba3.xml (5.4 KB)

I’ve been trying in console mode but I can’t get back to the main pids after going to atsh726.

I’ve tried with atsh7e8 and 7e9 and nothing.

Works!!!

focusprueba5.xml (4.8 KB)

It was as simple as this:

<command send="atsh726"></command>
<command send="222813" header="atsh726" skipCount="5" name="lftp" units="BAR" conversion="(((256*A)+B)/3+22/3)/100"></command> <!-- LF TP -->
<command send="ATCEA"></command>

They all work, atsh726 and main.

I think you can even remove the first line, as ATSH726 is sent with the PID request when header is set in command:

<command send="222813" header="atsh726" skipCount="5" name="lftp" units="BAR" conversion="(((256*A)+B)/3+22/3)/100"></command> <!-- LF TP -->
<command send="ATCEA"></command>