612699
41
Zoom out
Zoom in
Previous page
1/94
Next page
41 of 94
ELM327
ELM327DSJ Elm Electronics – Circuits for the Hobbyist
www.elmelectronics.com
Setting the Headers (continued)
addressing, and to DA if using physical addressing.
The next two bytes are as defined previously for the
other standards – ‘yy’ is the receiver (or Target
Address), and ‘zz’ is the transmitter (or Source
Address). For the functional diagnostic requests, the
receiver is always 33, and the transmitter is F1, which
is very similar to ISO 14230-4.
Those that are familiar with the SAE J1939
standard will likely find this header structure to be very
similar (J1939 is a CAN standard for use by ‘heavy-
duty vehicles’ such as trucks and buses). It uses
slightly different terminology, but there is a direct
parallel between the bytes used by J1939 for the
headers and the grouping of the bytes in the ELM327.
Pages 53 and 54 provide more details of the J1939
message structure.
Another method to define all 29 CAN ID bits at
once is with the four byte version of the SH command.
Simply provide all 8 nibbles in one command:
>AT SH vv xx yy zz
xx yy zzvv
29 bit ID
As with the AT CP command, only 5 bits are used
from the first byte (the 3 most significant bits are
ignored).
The final header format to discuss is that used by
11 bit CAN systems. They also use a priority and
address structure, but shorten it into roughly three
nibbles rather than three bytes. The ELM327 uses the
same storage locations for these values, so you may
use the methods just discussed to assign 11 bit values
(but only the least significant bits are used for any
messages - the others are ignored).
11 bit CAN ‘headers’ are normally assigned using
a special ‘short’ version of the AT SH command that
uses only three hex digits. Since three digits are
actually 12 bits, the most significant bit is ignored, and
can have any value. As an example of this instruction,
to assign an ID of 7DF, simply send:
>AT SH 7DF
OK
The OK shows that the ELM327 has accepted
your value.
The 11 bit ISO15765-4 CAN standard defines both
functional addressing (ID/header = 7DF) and physical
addressing (7En) for making requests. Generally, you
do not know physical addresses at first, but you do
know (from the standard) that the OBD functional
address is 7DF.
In order to learn the physical addresses, turn the
headers on, and watch what address the replies are
from, then use that information to make physical
requests if desired. For example, if the headers are on,
and you send 01 00, you might see:
>01 00
7E8 06 41 00 BE 3F B8 13 00
The 7E8 shows that ECU#1 was the one
responding. In order to talk directly to that ECU, all you
need do is to set the header to the appropriate value (it
is 7E0 to talk to the 7E8 device – see ISO 15765-4 for
more information). From that point on, you can ‘talk’
directly to the ECU using its physical address, as
shown here:
>AT SH 7E0
OK
>01 00
7E8 06 41 00 BE 3F B8 13 00
>01 05
7E8 03 41 05 46 00 00 00 00
This has just been a quick overview on how to
change headers (and ID bits). Hopefully it has been
enough to at least help to get you started. We do not
recommend experimenting too much without a copy of
the standards though, as some aspects are extremely
difficult to figure out without them.
41


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Elm 327 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Elm 327 in the language / languages: English as an attachment in your email.

The manual is 0,23 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info