612699
25
Zoom out
Zoom in
Previous page
1/94
Next page
25 of 94
ELM327
ELM327DSJ Elm Electronics – Circuits for the Hobbyist
www.elmelectronics.com
SH xx yy zz [ Set the Header to xx yy zz ]
This command allows the user to manually control
the values that are sent as the three header bytes in a
message. These bytes are normally assigned values
for you (and are not required to be adjusted), but there
may be occasions when it is desirable to change them
(particularly if experimenting with physical addressing).
If experimenting, it is not necessary but may be better
to set the headers after a protocol is active. That way,
wakeup messages, etc. that get set on protocol
activation will use the default values.
The header bytes are defined with hexadecimal
digits - xx will be used for the first or priority/type byte,
yy will be used for the second or receiver/target byte,
and zz will be used for the third or transmitter/source
byte. These remain in effect until set again, or until
restored to their default values with the D, WS, or Z
commands.
If new values for header bytes are set before the
vehicle protocol has been determined, and if the
search is not set for fully automatic (ie other than
protocol 0), these new values will be used for the
header bytes of the first request to the vehicle. If that
first request should fail to obtain a response, and if the
automatic search is enabled, the ELM327 will then
continue to search for a protocol using default values
for the header bytes. Once a valid protocol is found,
the header bytes will revert to the values assigned with
the AT SH command.
This command is used to assign all header bytes,
whether they are for a J1850, ISO 9141, ISO 14230, or
a CAN system. The CAN systems will use these three
bytes to fill bits 0 to 23 of the ID word (for a 29 bit ID),
or will use only the rightmost 11 bits for an 11 bit CAN
ID (and any extra bits assigned will be ignored). The
additional 5 bits needed for a 29 bit system are set
with the AT CP command.
If assigning header values for the KWP protocols
(4 and 5), care must be taken when setting the first
header byte (xx) value. The ELM327 will always insert
the number of data bytes for you, but how it is done
depends on the values that you assign to this byte. If
the second digit of this first header byte is anything
other than 0 (zero), the ELM327 assumes that you
wish to have the length value inserted in that first byte
when sending. In other words, providing a length value
in the first header byte tells the ELM327 that you wish
to use a traditional 3 byte header, where the length is
stored in the first byte of the header.
If you provide a value of 0 for the second digit of
the first header byte, the ELM327 will assume that you
wish that value to remain as 0, and that you want to
have a fourth header (length) byte inserted into the
message. This is contrary to the ISO 14230-4 OBD
standard, but it is in use by many KWP2000 systems
for (non-OBD) data transfer, so may be useful when
experimenting.
SH ww xx yy zz [ Set the Header to ww xx yy zz ]
This four byte version of the AT SH command
allows setting a complete 29 bit CAN ID in one
instruction. Alternatively, AT SP (for the five most
significant bits) and AT SH (for the other three bytes)
may be used.
SI [ perform a Slow Initiation ]
Protocols 3 and 4 use what is sometimes called a
5 baud, or slow initiation sequence in order to begin
communications. Usually, the sequence is performed
when the first message needs to be sent, and then the
message is sent immediately after. Some ECUs may
need more time between the two however, and having
a separate initiation command allows you to control
this time. Simply send AT SI, wait a little, then send
the message. You may need to experiment a little to
get the right amount of delay. Protocol 3 or 4 must be
selected to use the AT SI command, or an error will
result.
SP h [ Set Protocol to h ]
This command is used to set the ELM327 for
operation using the protocol specified by 'h', and to
also save it as the new default. Note that the protocol
will be saved no matter what the AT M0/M1 setting is.
The ELM327 supports 12 different protocols (two
can be user-defined). They are:
0 - Automatic
1 - SAE J1850 PWM (41.6 kbaud)
2 - SAE J1850 VPW (10.4 kbaud)
3 - ISO 9141-2 (5 baud init, 10.4 kbaud)
4 - ISO 14230-4 KWP (5 baud init, 10.4 kbaud)
5 - ISO 14230-4 KWP (fast init, 10.4 kbaud)
6 - ISO 15765-4 CAN (11 bit ID, 500 kbaud)
7 - ISO 15765-4 CAN (29 bit ID, 500 kbaud)
AT Command Descriptions (continued)
25


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