PDA

View Full Version : ELM327 CAN pins selector for FIAT and FORD + k-line pin selector



manocao
19th March, 2013, 12:00 AM
adapter useful for:

multiecuscan CAN programming (see ELM C19, adapter cable 3 Multiecuscan - Diagnostics software for Italian cars (Powered by FiatECUScan) (http://multiecuscan.net/SupportedVehiclesList.aspx))

ford CAN programming with elm-config + elm-ff2 + fds (Focus2, C-MAX, Kuga, Mondeo MK4, S-MAX, Galaxy)

kkl interface k-line pin selection (iso 9141-2, kwp2000, kw1281, vag, opel, fiat...)

http://www.digital-kaos.co.uk/forums/attachments/f152/182913d1363647383-elm327-can-pins-selector-fiat-ford-k-line-pin-selector-elm327-can-pin-selector-fiat-ford-k-pin-selector.jpg

components less than 10euro on ebay

SAY THANKS!!

mexanico1971
19th March, 2013, 12:13 AM
always given easy and good solutions manocao !

best regards

manocao
19th March, 2013, 08:30 AM
AT commands for FORD ELM327 CAN pin selection mod

programmable parameter 2A only available from ELM327 1.3 or upper firmware version (edit: this is not true, also available for ELM327 v1.2a)

http://www.digital-kaos.co.uk/forums/attachment.php?attachmentid=183734&stc=1&d=1363894928
edit: updated picture

edit: AT command to show current programmable parameters: atpps

example:

>atpps
atpps
00:FF F 01:FF F 02:FF F 03:32 F means off (disabled), N means on (enabled)
04:01 F 05:FF F 06:F1 F 07:09 F
08:FF F 09:00 F 0A:0A F 0B:FF F
0C:68 F 0D:0D F 0E:FF F 0F:FF F
10:0D F 11:00 F 12:FF F 13:32 F
14:FF F 15:FF F 16:FF F 17:92 F
18:00 F 19:FF F 1A:FF F 1B:FF F
1C:FF F 1D:FF F 1E:FF F 1F:FF F
20:FF F 21:FF F 22:FF F 23:FF F
24:00 F 25:00 F 26:00 F 27:FF F
28:FF F 29:FF F 2A:38 F 2B:02 F
2C:E0 F 2D:04 F 2E:80 F 2F:0A F

to set all to defaults: atd
to disable all parameters (set them off): atppffoff
(note that these two commands don't revert programmable parameters to default values, even after reset or power off/on, you got to set them to default values by hand, see default values in the picture above)

SAY THANKS!!

autotrans
19th March, 2013, 11:00 AM
Might be worth adding pin 15 to the rotary switch K to L (with a make or break) it is used quite a lot on A CLASS mercs for example instruments ect.

manocao
19th March, 2013, 01:36 PM
Might be worth adding pin 15 to the rotary switch K to L (with a make or break) it is used quite a lot on A CLASS mercs for example instruments ect.

it's ok, just use pin 15 instead of pin 11 or 13 in rotary swirch, i think pin 11 and 13 are never used in any ecu, i just added them in order to complete the rotary switch, but you can link the pins you need for your purposes

autotrans
19th March, 2013, 04:03 PM
Pin 11 is always transmission on mercs & pin 13 on EEC5 for reprogramming, they do a 12 to 1 rotary switch so it would be ideal to keep all options open

manocao
19th March, 2013, 06:52 PM
Pin 11 is always transmission on mercs & pin 13 on EEC5 for reprogramming, they do a 12 to 1 rotary switch so it would be ideal to keep all options open

it's ok, so then use a 1P12T rotary switch instead, we can add 4 more posibilities for k line like this:

1 -> fiat abs
3 -> fiat airbag, opel eps + immo
7 -> all engine, fiat automatic gearbox
8 -> bmw ?, fiat immo
9 -> fiat eps + climatonic
11 -> mb transmission, fiat alarm + lock doors
12 -> opel airbag + abs, fiat engine bay wiring
13 -> EEC5 reprogramming, fiat rear wiring
15 -> mb class A instruments
empty
empty
empty

please help complete pin features depending on car makes:

2 -> any make not as sae j1850+ but as k line?
6 -> any make not as can high but as k line?
10 -> any make not as sae j1850- but as k line?
14 -> any make not as can high but as k line?

this is 1p12t rotary switch
http://i.ebayimg.com/00/s/Mzc1WDUwMA==/$(KGrHqN,!nkE63U,fT,zBO1nQCf5Z!~~60_12.JPG

this is dpdt switch
http://i.ebayimg.com/00/s/NjAwWDYwMA==/$(KGrHqZ,!rQE-ZKL,-eGBPm2!)jIuQ~~60_3.JPG

i forgot to include a knob
http://i.ebayimg.com/00/s/MzAwWDQwMA==/$(KGrHqF,!h0E6GyWUV8UBOlpT-!r1w~~60_12.JPG

manocao
19th March, 2013, 08:53 PM
Scantool.net elm327 terminal

use this to introduce AT commands for ford

autotrans
20th March, 2013, 10:16 AM
Some early vauxhalls approx 1997 used pin 6 for engine ecu but not at 10400 baud , and early saab's used pin 14 without pin 6 but no idea what for

manocao
20th March, 2013, 10:49 AM
Some early vauxhalls approx 1997 used pin 6 for engine ecu but not at 10400 baud
i think you mean ALDL protocol working at 5v, elm327 or kkl no valid 'cos they work at 12v

chriz74
20th January, 2016, 11:06 AM
Hello, I own a 1998 Mercedes A Class, it seems to me this thread is about switches for k-lines using elm327.
The 1998 A Class w168 uses many pins for k-lines. Here's a scheme:

http://i.imgur.com/6Qa5VyF.jpg

Pins 1, 7, 8, 11, 12, 13 and 15 are all used for klines. The cheap elm327 bluetooth adapter from china only uses pin 7 and all obd software doesn't work.
Can you suggest a solution? Switches for k-lines? I saw this post about a mod for Fiat that doesn't use switches but resistors: http://www.cardiagnostics.be/-now/Fiat%20Examiner_bestanden/FiatEcuScan_K-line_adapter.htm
Do you think this solution could also work for thew A Class. What about the pin 3 TNA Gasoline ? Is that used to check ignition?
Thanks

manocao
20th January, 2016, 06:17 PM
don't know about mercedes pinout and protocols, i can't help, try and tell?

chriz74
21st January, 2016, 09:31 AM
Hello, thanks for your reply. The protocol should be iso 9141-2, the pinouts is as in the scheme I posted.
In your scheme you put also two switches for CAN, right? I don't think I need those for MB.
I only need to access k-lines but maybe I am not getting the functionality of those switches.
Could you advise?
Thanks

autotrans
23rd January, 2016, 02:05 PM
A class merc's use the kw2000 fast init protocol up to approx. 2004 bc ( before can )
set elm ( SP5 )

chriz74
23rd January, 2016, 03:02 PM
Hi, are you sure? What does 'set elm sp5' mean? Scan protocol number 5?
Anyway I see obd iso 9141-2 and kwp2000 share the same pins. The point is multiplexed k-lines and switches between them. http://www.onboarddiagnostics.com/images/j1962iso.gif

autotrans
23rd January, 2016, 05:04 PM
Yes set protocol 5 . only pin 7 used for comms ( engine ) but switch to obd 9 for abs or
obd 11 for trans ect.

chriz74
26th January, 2016, 10:26 AM
Yes set protocol 5 . only pin 7 used for comms ( engine ) but switch to obd 9 for abs or
obd 11 for trans ect.

Hello, I made some research and found out kwp2000 is only for programming not for diagnostic reading. So it shouldn't work at all as you suggested.

autotrans
26th January, 2016, 07:35 PM
I can assure you kw2000 works fine for diagnostic

chriz74
2nd February, 2016, 04:46 PM
I can assure you kw2000 works fine for diagnostic

I tried as you suggested. The adapter connects to ECU but no data is received, "unknown protocol":

355488

355490

I also tried to issue some AT commands to the adapter but it's not responding. I was able to make it work on a Freelander so the unit works. Don't know why it doesn't reply to AT.
Could it be anyway that I need to pass the exact header ? Do you know what is it?

autotrans
5th February, 2016, 01:34 PM
A CLASS PET ENG PIN 7 SP5.
SET HEADER 81 01 F2
SEND 81 ( INIT OK C1 C2 46 ).
SEND 3C 00 E C U SERIAL NUM ID.
SEND 22 11 XX 01 DATA XX = DATA REQUEST.
SEND 82 STOP COMMS ( AND THANKS BUTTON ).

chriz74
5th February, 2016, 02:36 PM
Ok I was able to communicate with the ECU, but how do I use this info in scanmaster? I mean here's what I did using elm327 program: ... ecu replied also to 3F; 22110101 and 3C00 .. those where suggested by the elm327 author. Now is there a way to set scanmaster program to use this header ATSH8101f2 outside of the terminal and get actual diagnostic data in the GUI ?

6860 ms >>>> ATZ
ATZ#0D
#0D
#0D
ELM327 v1.5#0D
#0D
>
2297 ms >>>> ATI
ATI#0D
ELM327 v1.5#0D
#0D
>
1546 ms >>>> ATH1
ATH1#0D
OK#0D
#0D
>
6641 ms >>>> ATTP5
ATTP5#0D
OK#0D
#0D
>
9922 ms >>>> ATSH8101F2
ATSH8101F2#0D
OK#0D
#0D
>
5266 ms >>>> 81
81#0D
BUS INIT:
OK#0D
83 F2 01 C1 C2 46 3F #0D
#0D
6860 ms >>>> ATZ
ATZ#0D
#0D
#0D
ELM327 v1.5#0D
#0D
>
2297 ms >>>> ATI
ATI#0D
ELM327 v1.5#0D
#0D
>
1546 ms >>>> ATH1
ATH1#0D
OK#0D
#0D
>
6641 ms >>>> ATTP5
ATTP5#0D
OK#0D
#0D
>
9922 ms >>>> ATSH8101F2
ATSH8101F2#0D
OK#0D
#0D
>
5266 ms >>>> 81
81#0D
BUS INIT:
OK#0D
83 F2 01 C1 C2 46 3F #0D
#0D

chriz74
5th February, 2016, 05:16 PM
A CLASS PET ENG PIN 7 SP5.
SET HEADER 81 01 F2
SEND 81 ( INIT OK C1 C2 46 ).
SEND 3C 00 E C U SERIAL NUM ID.
SEND 22 11 XX 01 DATA XX = DATA REQUEST.
SEND 82 STOP COMMS ( AND THANKS BUTTON ).


Do you have references for DATA ? I mean when sending 22 11 XX 01 How do I know what is the data I am asking?

for example:

14234 ms >>>> 22110101
22110101#0D
85 F2 01 62 11 01 94 9B 1B #0D
#0D

what is the data returned?

chriz74
23rd March, 2016, 09:32 AM
I sniffed the PIDs with a serial monitor and a working adapter (not ELM) . Now I have all the PIDs and meaning. I sent them to hobdrive support team. They made a custom conf for the program and now I can read live data through ELM 327 using kwp2000

autotrans
24th March, 2016, 08:24 AM
A list of these pids would be nice

chriz74
24th March, 2016, 10:47 AM
A list of these pids would be nice

Can you help creating a custom csv file for torque app?

Follows 1998 Mercedes A Class W168 Petrol Engine PIDs (pre OBD2 car)

3C00 - Hardware info

22110101 - Coolant Temperature

22110201 - Engine Start Temperature

22110301 - Intake Air temperature

22110401 - Engine Speed (Rpm)

22110501 - Target Idle Speed (Rpm) Calculated Value

22110601 - Engine Load

22110701 - Mass Air Flow (MAF)

22110801 - Inlet Manifold Pressure

22110A01 - Throttle Position

22110B01 - Firing Angle

22110C01 - Engine Torque

22110D01 - Injection Time

22110E01 - Fuel Consumption

22110F01 - Fuel consumed since start Total

22111001 - Battery Voltage

22111101 - Fuel Tank Pressure Difference

22111201 - Canister Purge Valve, Duty Cycle

22111301 - Vehicle Speed at Front Axle

22111501 - Pedal Value Sensor 1

22111601 - Pedal Value Sensor 2

22111701 - Throttle Actuator, voltage 1

22111801 - Throttle Actuator, voltage 2

22111B01 - Lambda Extract Value

22111F01 - Voltage Lambda Sensor Upstream

22112101 - Voltage Lambda Sensor Downstream

22112301 - Fuel Adaptation Upper Part Load Rich at Lower Part Load

22112401 - Fuel Adaptation Lower Part Load Rich at Upper Part Load

22112501 - Fuel Adaptation Idle at Idle Speed

22112601 - Idle Speed Adaptation Value

22114601 - Exhaust Gas Temperature

22114701 - Fuel Level (OK/NOT OK)

apparently the unit uses this same pid (22114701) to read also: Clutch Switch (ON/OFF), Air Conditioning Compressor (ON/OFF)

22114801 - Secondary Air Injection (ON/OFF)

apparently the unit uses this same pid (22114801) to read also: Knock Control (ON/OFF), Torque Control (ON/OFF), Tank Ventilation Valve (ON/OFF), Lambda Regulation, probe before catalytic converter (ON/OFF), Lambda Regulation, probe after catalytic converter (ON/OFF)

22114901 - End Of Line Mode (ON/OFF)

apparently the unit uses this same pid (22114901) to read also: Preheating, catalytic Converter (ON/OFF), Post Start Enrichment (ON/OFF), Inertia Switch (ON/OFF), Safety Fuel Shut Off (ON/OFF), Programming Throttle Limits (Done / Not Done)

22114C01 - Start Enable (YES/NO)

22117201 - Engine Oil Level

22117301 - Engine Oil Quality


------

READ DTC (ELM 327):

ATSP5
ATH1
ATSH8101F1
ATFI
22111001
ATSH8101F3
A1

CLEAR DTC (ELM 327):

ATSP5
ATH1
ATSH8101F1
ATFI
22111001
ATSH8101F3
14

autotrans
24th March, 2016, 04:54 PM
Thanks for the list, A1 for codes 14 for clear, certainly work for autotrans : abs : selector & autoclutch
obviously the faults need to be rectified first. try ATSH 81-01-F2 then 81 then 14.
have a list of pids for autotrans if anyone needs it.

chriz74
24th March, 2016, 05:02 PM
Thanks for the list, A1 for codes 14 for clear, certainly work for autotrans : abs : selector & autoclutch
obviously the faults need to be rectified first. try ATSH 81-01-F2 then 81 then 14.
have a list of pids for autotrans if anyone needs it.

excuse my ignorance, what is auto trans? A software? .. by the way, 14 is returning 7F (error)

chriz74
25th March, 2016, 09:15 AM
You mean you have more PIDs for this car ? If so can you post them? Do you know the commands for adaptation reset?

autotrans
25th March, 2016, 12:41 PM
autotrans ( AUTOMATIC TRANSMISSION ) 722 600 this was Mercedes feeble attempt to make a 5 speed front wheel
drive transmission 00 to 05 it failed miserably, but can't complain it kept us in work on the repair side. in those days
there were lots of scanners around to do engine management but very little in the way of transmission data that's how
I became involved with the elm327. have some transmission pids & ABS will sort them out and post after the easter
break. what code's do you have stored, 14 seems to work on most other modules.

chriz74
25th March, 2016, 12:56 PM
autotrans ( AUTOMATIC TRANSMISSION ) 722 600 this was Mercedes feeble attempt to make a 5 speed front wheel
drive transmission 00 to 05 it failed miserably, but can't complain it kept us in work on the repair side. in those days
there were lots of scanners around to do engine management but very little in the way of transmission data that's how
I became involved with the elm327. have some transmission pids & ABS will sort them out and post after the easter
break. what code's do you have stored, 14 seems to work on most other modules.

VCI finds p0121. My ECU was rebuilt recently for MAFs fault by ecutesting. I know that this p0121 error comes out after you reset adaptation and you can't clear it until throttle is adapted again. When I had the Star Diagnosis I could reset adaptation then put the key in pre ignition position for 2 minutes to make the throttle relearn positions or something than I could clear the p0121 error. Now I don't seem to be able to do so, not even the VCI working scanner could do that so I don't know if 14 is failing completely (wrong command) or just failing at clearing the error. A1 now returns this:

Write: A1
Read: A1
98 F3 01 E1 01 21 10 0B 01 00 34 80 80 11 00 00 00 32 80 01 0A 00 06 02 00 00 00 B5
84 F3 01 E1 FF FF 01 58


>
Write: 14
Read: 14
83 F3 01 7F 14 10 1A

I doubt I have all those errors as the car is working normally and there is no engine light on.

autotrans
29th March, 2016, 08:06 AM
Might be worth introducing a another code to the system
( unplug a sensor of some sort ) just to see the results
most codes will clear automatically after so many key-starts
you will find a list of pids in attachment

chriz74
29th March, 2016, 09:04 AM
You mean sending a code like A2 or A3 ? Ax ? ... I guess to use those pids you attached the adapter must be modified right? Attaching another pin to pin 7.

chriz74
29th March, 2016, 11:42 AM
Might be worth introducing a another code to the system
( unplug a sensor of some sort ) just to see the results
most codes will clear automatically after so many key-starts
you will find a list of pids in attachment


I was able to clear the p0121 by doing this: ingition on/off -> ignition on for 30 seconds then engine start.
I also found out that the program maxiecu (http://maxiecu.com.pl/download,6,en.html) works with elm327 and with the car, it's sending the same pids I found with vci. I tested the demo version.

ammarben
29th March, 2016, 05:21 PM
hi chriz are you sure maxiecu demo version works with elm327 ?
because i tested it and dont work

chriz74
29th March, 2016, 05:44 PM
hi chriz are you sure maxiecu demo version works with elm327 ?
because i tested it and dont work

Yes, I tried the demo, the program connects to the ECU through elm327 but the data it returns is "demo".. however monitoring the serial port I could see the PIDs it's sending for each data request.

autotrans
30th March, 2016, 08:13 AM
there are a lot of free programs around, just bear in mind that most will
only give you basic obd2 ( emission related data )

kido resuri
4th February, 2019, 10:57 AM
How to use ELM327 to communicate on K-Line (ex. ISO 14230-4)?

Would it be possible to use an ELM327 instead of a VAG/KKL?