612699
52
Verklein
Vergroot
Pagina terug
1/94
Pagina verder
ELM327
52 of 94ELM327DSJ Elm Electronics – Circuits for the Hobbyist
www.elmelectronics.com
Setting Timeouts - AT ST and AT AT Commands
Users often ask about how to obtain faster OBD
scanning rates. There is nothing that we can do about
how fast (or slow) a vehicle is to respond, but we can
optimize how the ELM327 handles the responses.
A typical vehicle request and response is shown in
the diagram below:
ELM327
Vehicle
request is sent
response
ELM waits up
to 200 msec
ELM waits 200 msec
for more responses
The ELM327 sends a request then waits up to
200 msec for a reply. If none were to come, an internal
timer would stop the waiting, and the ELM327 would
print ‘NO DATA’.
After each reply has been received, the ELM327
must wait to see if any more replies are coming (and it
uses the same internal timer to stop the waiting if no
more replies arrive). With our initial OBD products (the
ELM320, ELM322 and ELM323) we found that older
vehicles often needed a timeout setting of about 100
msec, and occasionally needed more, so we settled on
a standard default setting of 200 msec.
If a typical vehicle query response time were about
50 msec, and the timeout were set to 200 msec, the
fastest scan rate possible would only be about 4
queries per second. Changing the ST time to about
100 msec would almost double that rate, giving about
7 queries per second. Clearly, if you were to know how
long it takes for your vehicle to reply, you might be
able to improve on the scan rate, by adjusting the ST
time.
It is not easy to tell how fast a vehicle replies to
requests. For one thing, requests all have priorities
assigned, so responses may be fast at some times,
and slower at others. The physical measurement of
the time is not easy either - it requires expensive test
equipment just to make one measurement. To help
with this, we added a feature to the ELM327 called
‘Adaptive Timing’.
Adaptive Timing actually makes the response time
measurements for you, and adjusts the AT ST time to
a value that should work for most situations. It is
enabled by default, but can be disabled with the AT0
command should you not agree with what it is doing
(there is also an AT2 setting that is a little more
aggressive, should you wish to experiment). For 99%
of all vehicles, we recommend that you simply leave
the settings at their default values, and let the ELM327
make the adjustments for you.
Consider the following times taken from a J1850
VPW vehicle, in response to an 01 00 request:
ELM327
Vehicle
58 msec
engine
(ECU 10)
transmission
(ECU 18)
4 msec
The engine controller responds very quickly, but
the transmission takes considerably longer. The
adaptive timing algorithm measures the longer
transmission response times and will use them to set
the timeout, likely to a value in the range of 90 msec.
With a timeout of 90 msec, the maximum scan rate
would be about 6 readings per second.
Surely there has to be a way to eliminate that final
timeout, if you know how many responses to expect?
There is a way – instead of sending 01 00 for the
above request, the ELM327 will also accept 01 00 2.
This tells the IC to send 01 00, then return immediately
after receiving 2 responses. It can not speed up a slow
ECU, but it will eliminate the final delay, as the
ELM327 knows the number of responses to expect.
This one change might give you 10 to 12 responses
per second, instead of the 6 obtained previously.
We do caution you to use this feature carefully. If
you set the last digit to a number that is less than the
actual number of responses, then acknowledgements
that may be required will not be sent, and some
protocols may begin resending the replies, looking for
a response. This will lead to unnecessary network
congestion, which must be avoided. Before using this
feature, always determine the number of responses
that will be coming from the vehicle, and then set the
responses digit to that value.
52

Hulp nodig? Stel uw vraag in het forum

Spelregels
1

Forum

Elm-327

Zoeken resetten

Misbruik melden

Gebruikershandleiding.com neemt misbruik van zijn services uitermate serieus. U kunt hieronder aangeven waarom deze vraag ongepast is. Wij controleren de vraag en zonodig wordt deze verwijderd.

Product:

Bijvoorbeeld antisemitische inhoud, racistische inhoud, of materiaal dat gewelddadige fysieke handelingen tot gevolg kan hebben.

Bijvoorbeeld een creditcardnummer, een persoonlijk identificatienummer, of een geheim adres. E-mailadressen en volledige namen worden niet als privégegevens beschouwd.

Spelregels forum

Om tot zinvolle vragen te komen hanteren wij de volgende spelregels:

Belangrijk! Als er een antwoord wordt gegeven op uw vraag, dan is het voor de gever van het antwoord nuttig om te weten als u er wel (of niet) mee geholpen bent! Wij vragen u dus ook te reageren op een antwoord.

Belangrijk! Antwoorden worden ook per e-mail naar abonnees gestuurd. Laat uw emailadres achter op deze site, zodat u op de hoogte blijft. U krijgt dan ook andere vragen en antwoorden te zien.

Abonneren

Abonneer u voor het ontvangen van emails voor uw Elm 327 bij:


U ontvangt een email met instructies om u voor één of beide opties in te schrijven.


Ontvang uw handleiding per email

Vul uw emailadres in en ontvang de handleiding van Elm 327 in de taal/talen: Engels als bijlage per email.

De handleiding is 0,23 mb groot.

 

U ontvangt de handleiding per email binnen enkele minuten. Als u geen email heeft ontvangen, dan heeft u waarschijnlijk een verkeerd emailadres ingevuld of is uw mailbox te vol. Daarnaast kan het zijn dat uw internetprovider een maximum heeft aan de grootte per email. Omdat hier een handleiding wordt meegestuurd, kan het voorkomen dat de email groter is dan toegestaan bij uw provider.

Stel vragen via chat aan uw handleiding

Stel uw vraag over deze PDF

loading

Uw handleiding is per email verstuurd. Controleer uw email

Als u niet binnen een kwartier uw email met handleiding ontvangen heeft, kan het zijn dat u een verkeerd emailadres heeft ingevuld of dat uw emailprovider een maximum grootte per email heeft ingesteld die kleiner is dan de grootte van de handleiding.

Er is een email naar u verstuurd om uw inschrijving definitief te maken.

Controleer uw email en volg de aanwijzingen op om uw inschrijving definitief te maken

U heeft geen emailadres opgegeven

Als u de handleiding per email wilt ontvangen, vul dan een geldig emailadres in.

Uw vraag is op deze pagina toegevoegd

Wilt u een email ontvangen bij een antwoord en/of nieuwe vragen? Vul dan hier uw emailadres in.



Info