Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1
Pin description
2
schematic
VCC
VCC
D1 D2
U4 GREEN YELLOW
16
R1
13 12 U1 270
R1IN R1OUT
VCC
P1 8 9 13 6
1 R2IN R2OUT 14 TXD LED1 20
6 11 14 10 RXD LED2
2 10 T1IN T1OUT 7 11 ISO_DC 28 R2
7 C1 T2IN T2OUT VPWM_DC CLKOUT 270
3 10uF 1 9
8 3 C1+ BAUDIN
+
4 4 C1- 7
C2+ TXPWM- TXPWM(-)
9 5 8
C2- TXPWM+ TXPWM(-)
5 2 1 26
GND
V+ NC TXK TXK
6 22
V- RXK RXK
+ C2 MAX232 21 23
NC TXL TXL
DB9 10uF 4 12
RXCAN RXCAN RXPWM RXPWM
15
5 24
TXCAN TXCAN TXVPWM TXVPWM
C4 25
+ RXVPWM RXVPWM
10uF
C3 + 27
10uF 15 DOWNLD
Y1 XTAL2 2 JP1
16M 16 GND 18 DJMP
VCC C5 C6 XTAL1 GND
27pF 27pF 19
RST
3
17 VCC
VCC OE90C2000
+ C7
1uF
VCC
3
8V 8V
VBAT
1k1
3k
JP2
8
3 + LM393 4k7
TXVPWM 2 1
1
2 - 2N3906 4 3
6 5
8 7
3k9 10 9
4
1N4148 12 11
14 13
16 15
OBD CONNECTOR
LM393
- 6
7 10k
RXVPWM
+ 5 10k
VBAT
LM7805C/TO220
3 1
GND
VCC OUT IN
1N4001
100nF 100nF
2
U6
LM7808/TO220
3 1
GND
8V OUT IN
100nF
2
4
VCC
R3
4K7 VCC
Q1 JP2
TXPWM(+)
2N3906
2 1
R9 4 3
D4 10K 6 5
1N4148 8 7
VBAT 10 9
12 11
14 13
R7 16 15
8
10K
+ 3 OBD CONNECTOR
1
RXPWM
- 2
U2A R10
LM393 10K
4
R4
4K7
Q2 R8
TXPWM(-)
2N3904
10K
VBAT
510
VBAT
2N2222
510
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
2N2222
OBD CONNECTOR
VBAT
4K7 VBAT
TXL
8
10K
TXK
+ 3 10K
4K7 1
RXK
- 2
LM393 10K
4
5
VCC
2 1
4 3
6 5
8 7
10 9
3
1 7 12 11
TXCAN
-VCC
4 TXD CAN_H 6 14 13
RXCAN RXD CAN_L 16 15
GND
5
REF OBD CONN.
100
PCA82C251 100
2
470Pf 470Pf
6
PC Serial Port Parameters
Software
There are 2 types of commands for communication with the interface adapter.
When sending to the adapter the service Nr. and the PID a response of 7 data
bytes as specified in ISO 15031-5 is received.
For exemple:
• <STX> <03> service 3 and no pid to get the stored error codes. <STX>
<02><frame> gets the freeze frame stored in ECU.
• <STX> <04> clears the DTC stored.
• <STX> <01><00> gets the PID supported and
• <STX><01><04> gets the coolant temperatur in 1.Byte in response
Bytes.
In this mode the adapter can speak to ECU directly. We must first request the
found protocol. For J1850-VPWM to speak to ECU for exemple we send
As a response we obtain
7
Software driver
The Host software must wait at power on until a valid protocol is found. It is
normally max 6 sec. The protocol can be requested with Command. 0x05. Is this
number zero than is no protocol found. The host can search a valid protocol itself
too. The Host must set a time out of 6 sec. for a response. The Fonction
numbers are all decimal. But 0x30 means hexadecimal. The Mobydic has a
timeout of 1000mS for a incoming Message.The unused commands return
<Command-Nr> <nack>
• first let the mOByDic search a valid protocol with default parameters
• use set header command to set the different ECU address
• generic command is only used when the mOByDic finds a valid protocol at
power on.
8
Low Level Command Listing
Stx = 0x02
Ack = 0x06
Nack = 0x15
Length = all byte inc. CS
9
Command : 03 Read serial number of mobydic
Protocol
0x0000 = no protocol
0x0020 = SAE j1850-VPWM
Address : 0..2000
10
Command : 10 Init ISO 9141 channel
Init pattern = normally 0x33 but user can send another pattern. The user must
set the even/odd parity bit .
<10><4><sync byte><kw1><kw2><add>
Else
<10><error code>
Example :
Host Æ 10
Mobydic Æ 06 ( ack)
Host Æ <0x33><0x02><0x00>
11
Mobydic Æ <4><0x55><0x08><0x08><0xCC>
Timeout is a word variable in ms. Sent MSB first . default is 400 mS.
Functional addressing :
CS is calculated by Mobydic.
<0x48><0x6b><ECUadd><0x41><0x0d><speed><CS>
Pysical addressing :
CS is calculated by Mobydic
<0x48><0x6b><0x11><0x41><0x0d><speed><CS>
12
Command : 15 K-Line Monitoring
The user can monitor the K-line . Mobydic scans the K-line continuosly at default
or changed baudrate with a timeout of 6 sec.
13
Command : 20 Read j1850 PWM counters
This fonction is used to see the event counters PWM pulse lengths . when a
second tester is connected on PWM lines we can see the trace of PWM signal that
it sends. It is used for Oscilloscope function.
Resolution is 375 nS.
This fonction is used to see the event counters VPWM ones and zeros . when a
second tester is connected on VPWM line we can see the trace of VPWM signal
that it sends. It is used for Osciloscope function.
Resolution is 375 nS.
This command is the same as that of Command 20. But we can see the
interpreted trace signal in j1850 format.
This command is the same as that of Command 21. But we can see the
interpreted trace signal in J1850 format.
14
Command : 24 direct access to ECU via J1850 PWM
<0x41><0x6b><ECUadd><0x41><0x0d><speed><CRC>
Functional addressing :
15
Command : 28 Set Header Bytes PWM
16
Command : 30 Line Scan CAN Bus 11 bit ident.
<Baudrate> Æ 0 = 250 KB
1 = 500 KB
Length byte is not used . it is always fixed to 10. ident1 is high byte and ident2 is
low byte of identifier.
<Baudrate> Æ 0 = 250 KB
1 = 500 KB
Length byte is not used . it is always fixed to 12. ident1..4 is 29 bit data of
identifier.
17
Command : 33 direct access to ECU in CAN 11 / 250
Functional addressing :
<0x07><0xdf><0x02><0x01><0x0d><00><00><00><00><00>
<0x07><0xe8><03><0x41><0x0d><speed><00><00><00><00>
Physical addressing :
<0x07><0xe1><0x02><0x01><0x0d>
18
Host sends : <34>
Mobydic sends : <ack>
Host sends : <ident1><ident2><8 CAN data byte>
Functional addressing :
<0x07><0xdf><0x02><0x01><0x0d><00><00><00><00><00>
<0x07><0xe8><03><0x41><0x0d><speed><00><00><00><00>
Physical addressing :
<0x07><0xe1><0x02><0x01><0x0d>
19
Host sends : <ident1><ident2><ident3><ident4><8 CAN data byte>
<0x18><0xdb><0x33><0xf1><0x03><0x01><0x0d><00><00><00>
<00><00>
Physical addressing :
<0x18><0xda><ECUadd><0xf1><0x03><0x01><0x0d><00><00><00
><00><00>
20
Mobydic sends : <36><ident1><ident2><ident3><ident4><8 byte fixed
CAN data>, or
<36> <00> for no response, or
<36><0x81> format error checksum error
Functional addressing :
<0x18><0xdb><0x33><0xf1><0x03><0x01><0x0d><00><00><00>
<00><00>
Physical addressing :
<0x18><0xda><ECUadd><0xf1><0x03><0x01><0x0d><00><00><00
><00><00>
21
22