欢迎访问ic37.com |
会员登录 免费注册
发布采购

ELM322SM 参数 Datasheet PDF下载

ELM322SM图片预览
型号: ELM322SM
PDF下载: 下载PDF文件 查看货源
内容描述: OBD ( VPW ),以RS232翻译 [OBD (VPW) to RS232 Interpreter]
分类和应用:
文件页数/大小: 18 页 / 118 K
品牌: ELM [ ELM ELECTRONICS ]
 浏览型号ELM322SM的Datasheet PDF文件第4页浏览型号ELM322SM的Datasheet PDF文件第5页浏览型号ELM322SM的Datasheet PDF文件第6页浏览型号ELM322SM的Datasheet PDF文件第7页浏览型号ELM322SM的Datasheet PDF文件第9页浏览型号ELM322SM的Datasheet PDF文件第10页浏览型号ELM322SM的Datasheet PDF文件第11页浏览型号ELM322SM的Datasheet PDF文件第12页  
ELM322  
OBD Commands  
If the bytes received on the RS232 bus do not  
would press the return key. These three characters  
would be sent to the ELM322 on the RS232 bus. The  
ELM322 would store the characters as they are  
received, and when the third character (the carriage  
return) is received, begin to assess the other two. It  
would see that they are both valid hex digits, and  
would convert them to a one byte value (with a  
decimal value of 166). Three header bytes and a  
checksum byte would be added, so a total of five bytes  
would be sent to the vehicle. Note that the carriage  
return character is only a signal to the ELM322, and is  
not sent on to the vehicle.  
After sending a command, the ELM322 listens to  
the OBD bus for any responses that are directed to it.  
Each received byte is converted to the equivalent  
hexadecimal pair of ASCII characters and transmitted  
on the RS232 port for the user. Rather than send  
control characters which are unprintable on most  
terminals, the digits are sent as numbers and letters  
(e.g. the hex digit ‘A’ is transmitted as decimal value  
65, and not 10).  
begin with the letters A and T, they are assumed to be  
commands for the vehicle’s OBD bus. The bytes will  
be tested to ensure that they are valid pairs of  
hexadecimal digits and, if they are, will be combined  
into bytes for transmitting to the vehicle. Recall that no  
checks are made as to the validity of the OBD  
command – data is simply retransmitted as received.  
OBD commands are actually sent to the vehicle  
embedded within a data message. The J1979  
standard requires that every message begin with three  
header bytes followed by the data bytes, and finally be  
terminated with a checksum byte, but the ELM322  
takes care of this formatting for you. It powers on  
expecting to be used for OBDII mandated emissions  
diagnostics, so knows the values necessary for the  
header bytes, sets them accordingly, and simply has  
to insert the user’s data. If you wish to experiment with  
some of the more advanced functions, the values used  
for the header bytes may be changed with AT  
commands, as discussed previously. To view these  
extra bytes as they are received, you must turn the  
header display on by issuing an ATH1 command.  
The command portion of most OBD messages is  
usually only one or two bytes in length, but can  
occasionally be longer, as the standard allows for as  
many as seven. The current version of the ELM322  
will accept the maximum seven command bytes (or 14  
hexadecimal digits) per message, while users of  
previous versions (v1.x) were limited to only three  
command bytes. In either case, attempts to send more  
than the maximum number of bytes allowed will result  
in a syntax error, with the entire command being  
ignored and a single question mark printed.  
If there was no response from the vehicle, due to  
no data being available, or because the command is  
not supported, a ‘NO DATA’ message will be sent. See  
the Error Messages section for a description of this  
message and others.  
Hexadecimal  
Number  
Decimal  
Equivalent  
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0
1
2
3
4
5
6
7
8
The use of hexadecimal digits for all of the data  
exchange was chosen as it is the most common data  
format used in the relevant SAE standards. It is  
consistent with mode request listings and is the most  
frequently used format for displaying results. With a  
little practice, it should not be very difficult to deal in  
hex numbers, but some may initially find the table in  
Figure 2 or a calculator to be invaluable. All users will  
eventually be required to manipulate the results in  
some way, though (combine bytes and divide by 4 to  
obtain rpm, divide by 2 to obtain degrees of advance,  
etc.), and may find a software front-end helpful.  
9
10  
11  
12  
13  
14  
15  
As an example of sending a command to the  
vehicle, assume that A6 (or decimal 166) is the  
command that is required to be sent. In this case, the  
user would type the letter A, then the number 6, then  
Figure 2. Hex to Decimal Conversion  
ELM322DSE  
Elm Electronics – Circuits for the Hobbyist  
< http://www.elmelectronics.com/ >  
8 of 18