Page 1 of 1
Disable PID AT Command.
Posted: Sat Jan 23, 2016 6:35 am
by daniel.vilela
Well, newer version from the GUI have the DISABLE PID feature.
But i dont see it on the list of AT Commands.. and the GUI just use that..
So where is that documented?
And.. The emulator sends on initialization that it supports all PIDs.. That is wrong. Can you correct that?
Besides that.. Can we change this in AT Commands for PIDs not supported by the emulator?
Thx.
Daniel.
Re: Disable PID AT Command.
Posted: Sat Jan 23, 2016 6:41 pm
by pillepallepeter
function clearDTC()
{
if (!sendCommand("ATCLR DTC")) {
alert("Unable to clear DTC");
} else {
alert("DTC cleared successfully");
dtcCount = 0;
}
}
...ATCLR DTC
Re: Disable PID AT Command.
Posted: Mon Jan 25, 2016 9:49 pm
by daniel.vilela
Sorry, pillepallepeter, you misunderstood the question.
Disable PID is different than to Clear DTC. I am not working with DTCs.
I am working with Service $01 PIDs.
$01 PID 0x00 is a Support PID that shows me what PID are ENABLE and the ones that i will have an answer for a PID request.
I think in the GUI is this func.. i am not very sure:
function togglePID(pid, enabled)
{
var i = parseInt(pid, 16) & 0xff;
pidDisabled[i] = !enabled;
var specialPid = i & 0xE0;
var val = 0;
var vals = "";
var pidTmp = specialPid + 1;
for (m = 0; m < 4; m++) {
val = 0;
for (n = 1; n <= 8; n++) {
val <<= 1;
if (!pidDisabled[pidTmp++]) val |= 1;
}
vals += val.toString(16) + ",";
}
specialPid |= 0x100;
var cmd = "ATSET 0" + specialPid.toString(16) + "=" + vals.substr(0, vals.length - 1);
if (!sendCommand(cmd)) {
alert("Unable to set PID " + specialPid.toString(16));
return false;
} else {
alert("PID " + pid + " is " + (enabled ? "enabled" : "disabled"));
}
}
Daniel.
Re: Disable PID AT Command.
Posted: Mon Jan 25, 2016 10:55 pm
by daniel.vilela
I have already found it using a serial sniffer.
it goes like this:
000000: ATSET 0100=ff,ef,ff,ff
000001: OK
this is when i disabled Engine RPM.
For VIN is correctly documented.