612699
40
Verklein
Vergroot
Pagina terug
1/94
Pagina verder
Setting the Headers (continued)
40 of 94
ELM327
ELM327DSJ Elm Electronics – Circuits for the Hobbyist
www.elmelectronics.com
causing a ‘NO DATA’ result. In these cases, you may
want to adjust the timeout value, perhaps first trying
the maximum (ie use AT ST FF). Many vehicles will
simply not support these extra addressing modes.
The other, and more common method of obtaining
information is by physical addressing, in which you
direct your request to a specific device, not to a
functional group. To do this, you again need to
construct a set of header bytes that direct your query
to the physical address of the processor, or ECU. If
you do not know the address, recall that the sender of
information is usually shown in the third byte of the
header. By monitoring your system for a time with the
headers turned on (AT H1), you can quickly learn the
main addresses of the senders. The SAE document
J2178 assigns address ranges to these devices if you
are unsure of which might be most appropriate.
When you know the address that you wish to
‘speak to,’ simply use it for the second byte in the
header (assume an address of 10 for this example).
Combine that with your knowledge of SAE J2178 to
choose a priority/type byte (assume a value of E4 for
this example, as if the vehicle is J1850 PWM). Finally,
you need to identify yourself to the target, so that
responses can be returned to you. As is customary for
diagnostic tools, we’ll use an address of F1. As before,
these three bytes are then assigned to the header with
the set header command:
>AT SH E4 10 F1
OK
From this point on, all messages that the ELM327
sends will use these three bytes for the header. All that
needs to be done now is to request data from the
vehicle. For physical addressing, this is often done
using mode 22:
>22 11 6B
62 11 6B 00 00
The response to this command is of the same
format to those seen for ‘standard’ OBD requests. The
request has been repeated (with 40 added to the
mode value in order to show that this is a response),
and this is followed by the actual data (00 00 in this
case). The PIDs used with mode 22 are usually
proprietary to each manufacturer and are generally not
published widely, so you may have difficulty in
determining the ones to use with your vehicle. Elm
Electronics does not maintain lists of this information,
and cannot provide any further details for you. Mode
22 and others are described in more detail in the SAE
standards document J2190, ‘Enhanced E/E Diagnostic
Test Modes’.
The ISO14230-4 standard defines its header bytes
a little differently. Advanced experimenters will be
aware that for ISO 14230-4, the first header byte must
always include the length of the data field, which
varies from message to message. From that, one
might assume that the you would need to redefine the
header for every message that is to be sent – not so!
The ELM327 always determines the number of bytes
that you are sending, and inserts that length for you, in
the proper place for the header that you are using. If
you are using the standard ISO 14230-4 header, the
length will be put into the first header byte, and you
need only provide the two (most significant) bits of this
byte when defining the header. What you place in the
rest of the byte will be ignored by the ELM327 unless
you set it to 0. If it is 0, it is assumed that you are
experimenting with KWP four byte headers, and the
ELM327 then creates the fourth header byte for you.
Again, you do not need to provide any length to be put
into this byte – it is done for you.
Addressing within the CAN (ISO 15765-4)
protocols is quite similar in many ways. First, consider
the 29 bit standard. The ELM327 splits the 29 bits into
a CAN Priority byte and the three header bytes that we
are now familiar with. This is how they are combined
for use by the ELM327:
>AT SH xx yy zz>AT CP vv
vv xx yy zz
5 bits only
xx yy zzvv
29 bit ID
The CAN standard states that for diagnostics, the
priority byte (‘vv’ in the diagram) will always be 18 (it is
the default value used by the ELM327). Since it is
rarely changed, it can be assigned separately from the
other header bytes, using the CP command.
The next byte (‘xx’) describes the type of message
that this is, and is set to hex DB for functional
40

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