cedricp / ddt4all

OBD tool
GNU General Public License v3.0
1.19k stars 234 forks source link

someone had tryed ELS27 with Megane 4? #76

Closed igno77 closed 1 year ago

igno77 commented 6 years ago

Hi to all, I've seen in last version of ddt4all the new icon of ELS27. After a quick reserch of information I know that this interface is better than ELM (faster, stable and use Mcan and Lcan at the same time) but....we need to modify some wiring for use it with a Megane 4? It seems this interface born for Ford and Mazda cars, not for Renault. On a russian website there is a modification of the els27 but no one have had success with the connection. Do you have more info? What kind of chip we must have insiede? Thanks

KarelSvo commented 6 years ago

You only must to modify the ELS27 if you want to use the media can bus. https://a.d-cd.net/40c326ds-960.jpg The second can bus input must be diverted from Ford to Renault media pin. Simply get yourself an experience with els27 from aliexpress from 13 euro. Please your note, obdlink interface and els are preset to baudrate 115200. If firmware is not up-to-date then just update to scantool.net. I must to use windows 10 for update ELS.

pakoto commented 6 years ago

Check photo. Description says 3-12 11-13: wrong, and photo shows 6-13, 12-14: wrong because you connect canbus and mm canbus into the car obd, dangerous!).

premultiply commented 6 years ago

No. "Normal" CAN-Bus is on 6+14 (unmodified). Only the second independant CAN-Interface needs to be briged to Renault MM-CAN on 12+13. Ford-Pins 3+11 does not have any connection on Renault vehicle OBD port so there is no need to remove or disconnect them on ELS27. Just wire these two connectors and you can use it on Ford and Renault vehicles.

pakoto commented 6 years ago

Sorry, i mean that zmiterm bridge 6-13 and 12-14 and use it out the car. See green red cables in the photo and compare position with generic OBD pinout photo. If you connect els27 like this, you shortcircuit canbus and mm canbus into the car.

ohayyam commented 6 years ago

I tried many combinations but no success. Even i disconnect obd socket side and main board connections and made many more combinations according to ford and renault pin out diagrams but all fail. I never read succesfull story. does really anyone use els27 with any renault ? I already asked to zmiterm on drive2.ru no answer. I believe els27 may fake ??? I contact russian seller of original els27 he said 75 usd but he did not know about cable modification for renault. He said original els27 will work with renault. I am not sure and waiting to read success story with els27 and renault.

pakoto commented 6 years ago

Clone els27 works with canbus, but NO with MM canbus. Tested by me with cedric. We need to know how ELS27 switch between canbus/mmcanbus (soft-controlled?)

premultiply commented 6 years ago

Simple second virtual COM on USB?

ohayyam commented 6 years ago

I already mail latest ddt4all v.3.4.5 program with mar2018 database to cedric to check ;) download link on drive2.ru site by zmiterm.

My els27 may damage during combination try :)) never connected or it was fake because i tried it without cable mod. It did not work for me.

premultiply commented 6 years ago

http://ffclub.ru/topic/311647/

premultiply commented 6 years ago

@cedricp This looks like the protocol description to change the CAN interface for MM-CAN access: https://www.scantool.net/downloads/118/mx_protocol_commands.pdf You have to select a "MS-CAN" preset first an then adjust the baud rate to 500000.

cedricp commented 6 years ago

I saw that, but I don't have the hardware to test it yet.

premultiply commented 6 years ago

I have one here. How can I assist you?

cedricp commented 6 years ago

I created an els27 branch, you can try it... (a dropdown box has beed added in the toolbar to select CAN line)

premultiply commented 6 years ago

First try run (without connected to car X10 ZOE) with els27 branch:

Traceback (most recent call last):
  File ".\ddt4all.py", line 514, in changecanspeed
    self.paramview.setCanLine(item)
  File "C:\Program Files (x86)\ddt4all\parameters.py", line 534, in setCanLine
    self.initELM()
  File "C:\Program Files (x86)\ddt4all\parameters.py", line 537, in initELM
    connection_status = self.ecurequestsparser.connect_to_hardware(self.canline)
  File "C:\Program Files (x86)\ddt4all\ecu.py", line 1015, in connect_to_hardware
    options.elm.set_can_addr(short_addr, ecu_conf, canline)
  File "C:\Program Files (x86)\ddt4all\elm.py", line 1170, in set_can_addr
    self.lf.write('#' * 60 + "\n#connect to: " + ecu['ecuname'] + " Addr:" + addr + "\n" + '#' * 60
+ "\n")
TypeError: cannot concatenate 'str' and 'NoneType' objects
Scanning ECU FRRAD
Scanning ECU INV-ME_29b
Scanning ECU Aide au parking
Warning, address DB is not mapped
Warning, address DC is not mapped
Skipping CAN extended address (not supported yet)  DA
Scanning ECU WCGS
Scanning ECU FCAM
Scanning ECU BCB
Scanning ECU PEB
Scanning ECU CAN Adapter / BAC
Scanning ECU VSP
Scanning ECU AAU
Scanning ECU IDM
Scanning ECU UCH
Scanning ECU ABS-VDC - ABS-ESP
Scanning ECU Direction assiste
Scanning ECU HVAC
Scanning ECU LBC2
Scanning ECU HFM
Scanning ECU E-ACT-EBA_29b
Scanning ECU BCB-OBC_29b
Scanning ECU DCM Renault
Scanning ECU UBP
Scanning ECU UPC-EMM
Scanning ECU Frein de parking lectrique
Scanning ECU Airbag-SRS
Scanning ECU LBC (EV)
Scanning ECU (H) EVC
Scanning ECU PLC/PLGW
Skipping CAN extended address (not supported yet)  2D
Scanning ECU Audio
Scanning ECU MIU
Scanning ECU Navigation-UCC-ITM
Scanning ECU TDB
Skipping CAN extended address (not supported yet)  D2
cedricp commented 6 years ago

This error is not related to els27 work, which ECU are you trying to connect ?

cedricp commented 6 years ago

Just committed a fix for this kind of problem.

premultiply commented 6 years ago

Ok, did a test on my car (ZOE) now but switching to "MediumSpeed CAN" does not change anything. All communcation stays on HS-CAN.

Switched to "MediumSpeed CAN" after startup, selected my vehicle from list and pressed scan. All ECUs from HS-CAN where found but nothing from MM-CAN (Navigation/MFD, ...) was found.

Verwendung einer benutzerdefinierten Datenbank
libpng warning: iCCP: known incorrect sRGB profile
Starten des ELM mit einer Baudrate von 500000...
Versuche Anschluss zu oeffnenCOM17 @ 500000
Checking els
Test der Baudrate: 500000
Starten mit Baudrate: 500000
2933 ECUs wurden geladen.
Scanning ECU FRRAD
Scanning ECU INV-ME_29b
Scanning ECU Aide au parking
Warning, address DB is not mapped
Warning, address DC is not mapped
Skipping CAN extended address (not supported yet)  DA
Scanning ECU WCGS
Scanning ECU FCAM
Scanning ECU BCB
Scanning ECU PEB
Scanning ECU CAN Adapter / BAC
Scanning ECU VSP
Scanning ECU AAU
Scanning ECU IDM
Scanning ECU UCH
Scanning ECU ABS-VDC - ABS-ESP
Scanning ECU Direction assiste
Scanning ECU HVAC
Scanning ECU LBC2
Scanning ECU HFM
Scanning ECU E-ACT-EBA_29b
Scanning ECU BCB-OBC_29b
Scanning ECU DCM Renault
Scanning ECU UBP
Scanning ECU UPC-EMM
Scanning ECU Frein de parking lectrique
Scanning ECU Airbag-SRS
Scanning ECU LBC (EV)
Scanning ECU (H) EVC
Scanning ECU PLC/PLGW
Skipping CAN extended address (not supported yet)  2D
Scanning ECU Audio
Scanning ECU MIU
Scanning ECU Navigation-UCC-ITM
Scanning ECU TDB
Skipping CAN extended address (not supported yet)  D2
cedricp commented 6 years ago

Did you rewire the MS-CAN lines on the OBD connector ? AFAIK, it's not connected to the good pins.

cedricp commented 6 years ago

Just fixed an issue with MS-CAN scan, sorry, can you retry ?

premultiply commented 6 years ago

Yes of course it's rewired. Yep, I will try again in a few minutes.

premultiply commented 6 years ago

Sorry, still only ECUs from HS-CAN. And manual MFD selection still does not get any data.

And many

ECU uses SDS 10C0
Bad ELM response : WRONG RESPONSE MULTILINE CFC0
Bad ELM response : WRONG RESPONSE MULTILINE CFC0
Bad ELM response : WRONG RESPONSE MULTILINE CFC0
Bad ELM response : WRONG RESPONSE MULTILINE CFC0

in MFD ECU screen.

premultiply commented 6 years ago

There are some more command descriptions in https://www.scantool.net/scantool/downloads/234/stn1100-frpm-preliminary.pdf which are removed from later versions of the documentation.

cedricp commented 6 years ago

That's weird, can you send me your elm log over ?

cedricp commented 6 years ago

You can also try to add a line at the end : elm.py 1192

        if canline == 0:
            if 'brp' in ecu.keys() and ecu['brp'] == "1":  # I suppose that brp=1 means 250kBps CAN
                self.cmd("AT SP 8")
            else:
                self.cmd("AT SP 6")
        else:
            self.cmd("STP 53")
            self.cmd("STPBR 250000") # this line
premultiply commented 6 years ago

No problem. Sent you the log by mail. But there is no STP command inside at all :-(

cedricp commented 6 years ago

Thanks, Have you dowloaded the els27 branch and selected ELS27 dongle at startup ? https://github.com/cedricp/ddt4all/archive/els27.zip

On Tue, Jun 12, 2018 at 7:51 PM premultiply notifications@github.com wrote:

No problem. Sent you the log by mail. But there is no STP command inside at all :-(

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/cedricp/ddt4all/issues/76#issuecomment-396677304, or mute the thread https://github.com/notifications/unsubscribe-auth/AFqmyTOAT12pUbM9_UPqJgF5yAa_OG6Tks5t7_-YgaJpZM4ULLYQ .

premultiply commented 6 years ago

Mmmmh. I downloaded the changed files only. Maybe I've forgotten something... I will try with full els27.zip again.

premultiply commented 6 years ago

Dry-run els27.zip without car connected still does show any STP commands in log.

cedricp commented 6 years ago

That is really strange... I checked the code several times...

cedricp commented 6 years ago

Ok, just found and fixed the problem... You can retry if you have time

premultiply commented 6 years ago

After several hours of testing I think all ST commands are sent out as raw data because they are filtered https://github.com/cedricp/ddt4all/blob/7b28b65f613559ed1780ed2eb60af8d0cb7f244b/elm.py#L737 so the never reach the ELS27. This is why they never show up in any log...

cedricp commented 6 years ago

Well spotted ! I fixed that issue

pakoto commented 6 years ago

works multimedia canbus using bridges or still pending tests?

cedricp commented 6 years ago

Still waiting for last commit testing ... (els27 branch)

premultiply commented 6 years ago

Software side seems to be ok now. But using the modified els27 on the car disturbed and crashed my radio ECU on MM-CAN. Had to pull the fuse to make it work again.

I am not able to verify that the modified hardware does what it should do.

pakoto commented 6 years ago

ford switch canhigh 6-3 and canlow 14-11: 3 and 11 are mm canbus. renault switch CH 6-13 and CL 14-12: 13 and 12 are mm canbus.

For conversion i think you need to connect mm CH 3-13 and mm CL 11-12. Other combinations connect mm ford canhigh with mm renault canlow and viceversa (3-12 11-13), or worse shortcircuit canbus with mm canbus into car´s OBD (6-13 14-12).

IMHO zmiterm instructions are wrong.

premultiply commented 6 years ago

Yes it seems you are right. The polarity is wrong. I have to change it on my ELS27.

pakoto commented 6 years ago

Remember that obd pinout front view images from internet are mirrored with els27 front view.

I check with multimeter pins using this ELS27 front view

\ .. 8 .. 7 . 6 . 5 . 4 . 3 . 2 . 1 . / . \ 16 15 14 13 12 .11. 10 .9 /

premultiply commented 6 years ago

The pin numbers are always the same for rear or front view ;-)

pakoto commented 6 years ago

@premultiply i need your help with off-topic if you are creator of ZOEdisplay: We are trying to add DPF soot level into dacia-renault DCIs using arduino. ddt2000 database obtain it using:

Send 22242C Receive 62242C0000 Start byte: 4 Bits: 16 Unit: gr Value: (AX+B)/C A=1 B=0 C=100

Do you know how to translate to arduino code using mcp2515 module? need to ask every x secs to ecu?

premultiply commented 6 years ago

@pakoto I don't know how to poll data from ECUs. Never thought about that. All I need to do for ZOEdisplay is listen to the bus.

pakoto commented 6 years ago

i don´t know how it works. When we connect to motor ecu using ddt4all, we can get too much sensor info than using stardard tools like android torque. We are trying to take some parameters and send to arduino lcd.

cedricp commented 6 years ago

It's because each ECM (engine control module) CAN ISO_TP frames are differents. This is why you need an engineer tool like DDT4all to get them. Select an ECU and look at request and data tabs in edition mode to know how frames are built.

cedricp commented 6 years ago

I started a project for Arduino UNO with MCP2515 here : https://gitlab.com/DrQuark/x84_can There are ISO_TP and CAN_RAW sources examples.

cedricp commented 6 years ago
Send 22242C
Receive 62242C0000
Start byte: 4
Bits: 16
Unit: gr

as the wanted value starts at byte 4 (index 3) and it's 16 bits wide (2 bytes) :

char receiv_buffer[] = {0x62, 0x24, 0x2C, 00, 00}; short my_value = (receiv_buffer[3] << 8) | receiv_buffer[4]; float final_value = (float)my_value / 100.f;

should be good

premultiply commented 6 years ago

New modification 3->13 and 11->12. Only one wire needed ;-) img_3241 img_3242 img_3243

pakoto commented 6 years ago

Yes. I have same mod. Works?

premultiply commented 6 years ago

Yes, hardware does work now! But the ddt4all part is not working correctly.

First problem was: MM-CAN on my ZOE car is 500 kbd not 250 kbd. I fixed it manually in code ("ST PBR 500000") 2nd unsolved problem: But even with that modification only parts of the ECU data is retrieved by ELS27 compared to an modified ELM327 on MM-CAN. But my ELS27 STN117 has FW 3.3.1 and I am not able to update it to lastest FW 4.2.4 (https://www.scantool.net/downloads/updates/stn1170/).

pakoto commented 6 years ago

i can´t update my fw either. Aliexpress ELS27 clone i suppose.

I´ll test with my dacia dokker connecting to medianav and post results.

pakoto commented 6 years ago

minor issue: elm benchmark don´t work with this branch.