612699
42
Verklein
Vergroot
Pagina terug
1/94
Pagina verder
ELM327
Multiline Responses
There are occasions when a vehicle must respond
with more information than one ‘message’ is able to
show. In these cases, it responds with several lines
which the receiver must assemble into one complete
message.
One example of this is a request for the 17 digit
vehicle identification number, or VIN. This is available
from newer vehicles using a mode 09, PID 02 request
(but was not initially a requirement, so many older
vehicles do not support it). Here is one example of a
response that might be obtained from a J1850 vehicle:
>0902
49 02 01 00 00 00 31
49 02 02 44 34 47 50
49 02 03 30 30 52 35
49 02 04 35 42 31 32
49 02 05 33 34 35 36
The first two bytes (49 and 02) on each line of the
response are used to show that the information is in
reply to an 09 02 request. The next byte shows which
response it is, while the remaining four bytes are the
data bytes that are being sent. Assembling the data in
the order specified by the third byte, and ignoring the
first few 00’s (they are filler bytes - see J1979) gives:
31 44 34 47 50 30 30 52 35 35 42 31
32 33 34 35 36
The data values actually represent the ASCII
codes for the digits of the VIN. Using an ASCII table to
convert these into characters gives the following VIN
for the vehicle:
1 D 4 G P 0 0 R 5 5 B 1 2 3 4 5 6
CAN systems will display this information in a
somewhat different fashion. Here is a typical response
from a CAN vehicle:
>0902
014
0: 49 02 01 31 44 34
1: 47 50 30 30 52 35 35
2: 42 31 32 33 34 35 36
The CAN Formatting has been left on (the default),
making the reading of the data easier. With formatting
on, the sequence numbers are shown with a colon (‘:’)
after each. CAN systems add this single hex digit (it
goes from 0 to F then repeats), to aid in reassembling
42 of 94ELM327DSJ Elm Electronics – Circuits for the Hobbyist
www.elmelectronics.com
the data, instead of the byte value that the J1850
vehicle did.
The first line of this response says that there are
014 bytes of information in total. That is 14 in hex, or
20 in decimal terms, which agrees with the 6 + 7 + 7
bytes shown on the three lines. The VIN numbers are
generally 17 digits long, however, so how do we
assemble the number from 20 digits?
This is done by discarding the first three bytes of
the message. The first two are the familiar 49 02, as
this is a response to an 09 02 request, so are not part
of the VIN. The third byte (the ‘01’), tells the number of
data items that are to follow (the vehicle can only have
one VIN, and this agrees with that). Ignoring the third
byte leaves 17 data bytes which are the serial number
(purposely chosen to be identical to the those of the
previous example). All that is needed is a conversion
to ASCII, in order to read them, exactly as before.
From these two examples, you can see that the
format of the data received may depend on the
protocol used to transmit it. For this reason, a copy of
the SAE J1979 standard would be essential if you are
planning to do a lot of work with this, for example if you
were writing software to display the received data.
The following shows an example of a different type
of multiline response that can occur when two or more
ECUs respond to one request. Here is a typical
response to an 01 00 request:
>01 00
41 00 BE 3E B8 11
41 00 80 10 80 00
This is difficult to decipher without knowing a little
more information. First, turn the headers on to actually
see ‘who’ is doing the talking:
>AT H1
OK
>01 00
48 6B 10 41 00 BE 3E B8 11 FA
48 6B 18 41 00 80 10 80 00 C0
Now, if you analyze the header, you can see that
the third byte shows ECU 10 (the engine controller)
and ECU 18 (the transmission) are both responding
with a reply to the 01 00 request. With modern
vehicles, this type of response occurs often, and you
should be prepared for it.
A final example shows how similar messages
42

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