Results 1 to 4 of 4

Thread: Datalogger MUT Initialization

  1. #1
    Forum User
    Join Date
    Feb 2013
    Owner Since
    2012

    Location
    California
    Posts
    59
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Datalogger MUT Initialization

    I'm trying to datalog my 94 Hybrid car, I can do it with Mitsulogger and EvoScan but I would like to use something on my own, I searched about Serial port/OBD and some implementations but I'm still lost LOL, I have a FTDI chipset cable, this is the info that I got from "google".


    Okay the Mut Protocol Init is alot like the ISO9141-2 Init.

    We will be using 1 of the Pins from the OBD-II Connector for communicating.

    Pin7 K line

    If you take a Pin HIGH this means you are applying 12Volts to it.
    If you take the Pin LOW you are applying 0V

    The first thing that you need to do is to initialise the ECU so it knows you want to communicate.

    This is done with the following routine:

    'Slow Init
    Take K Line High
    Pause 300ms

    'Send 0x01 (00000001) at rate of 5 baud (LSB) with a Start Bit and a Stop bit

    'Send Startbit
    Set K line low (0)
    Pause 200ms

    'Now to send out 0x01
    'Send out bit0
    Set K line high (1)
    pause 200ms
    'Send out bit1
    Set K line low (0)
    pause 200ms
    'Send out bit2
    Set K line low (0)
    pause 200ms
    'Send out bit3
    Set K line low (0)
    pause 200ms
    'Send out bit4
    Set K line low (0)
    pause 200ms
    'Send out bit5
    Set K line low (0)
    pause 200ms
    'Send out bit6
    Set K line low (0)
    pause 200ms
    'Send out bit7
    Set K line low (0)
    pause 200ms

    'Send Stopbit
    Set K line high (1)
    Pause 200ms

    Switch to 15625 baud

    Receive C0 55 EF 85
    send FE
    Receive E4 ' First Byte of ECU ID
    Send FF
    Receive B3 ' Second byte of ECU ID
    Send FE
    Receive E4 ' First Byte of ECU ID
    Send FF
    Receive B3 ' Second Byte of ECU ID
    Send FD
    Receive 20
    Send FD
    Receive 20
    Send FD
    Receive 20

    The ECU is now initialised and you can start sending requests depending on the info you want back.

    For example if you wanted to know the RPM of the engine.

    Send 21 and it will reply with a answer, then simply do a calculation on that result to get the true answer.

    The calculation for RPM is 31.25*x

    Will sort out a list of know Request ID's and their calculations next.

    Followup post:

    I have now been informed that after you do the 5 baud Init and then change Baud rate to Receive C0 55 EF 85, you can start sending request bytes straight away.
    This is from the a guy from UK ( http://www.myrollingroad.com is offline).


    I checked Mitsulogger inits but that doesnt look like the init described here.

    Main code (I removed irrelevant lines):


    FT_SetBaudRate(15625)
    FT_SetDataCharacteristics(D2XX_Unit_NET.FT_Handle, (byte) 8, (byte) 0, (byte) 0)
    FT_SetFlowControl(D2XX_Unit_NET.FT_Handle, 0, (byte) 0, (byte) 0)
    FT_SetFlowControl(D2XX_Unit_NET.FT_Handle, 0, (byte) 0, (byte) 0);
    FT_SetTimeouts(D2XX_Unit_NET.FT_Handle, 500, 500);
    FT_Status = D2XX_Unit_NET.FT_SetLatencyTimer(D2XX_Unit_NET.FT_ Handle, (byte) 1);
    SendByte("17"); send that hex string
    Data = GetResponse(2); get 2 bytes response

    n = 0;
    while( n < 5)
    {


    FT_SetBreakOn(); break conditions
    Sleep(1800); wait 1800ms;
    FT_SetBreakOff();


    GetResponse(4); get the 4 bytes from the ecu, ecuid??

    sleep(150);

    if(Data.Length >=4)
    {
    break; we got the init...
    }
    }

    if(Data.Length <4)
    {
    timeout after 5 inits
    }


    Getresponse just checks the queue and return a string

    recbytes, sentbytes; this is for status/display?

    GetResponse(n)
    {
    status = FT_GetQueueStatus(ref recbytes);
    string str;
    if(status != 0) error...
    str = "";
    string buffer = new string with n+ spaces...

    FT_Read_String(buffer,n,bytes); read available bytes


    str = buffer;
    return str;
    }


    send byte converts the hex string to an int and send that bytes to the device...


    Any info on how to tackle this, obviously I tried that code/init on a c# sample but I didn't got the 4 bytes response, evoscan/mitsulogger get that right... I haven't tried any serial communications before, but I got some ftdi samples, I can do some things in c/c++/c#/java/python and almost any mid-high level programming language

  2. #2
    The code you posted... is that from mitsulogger, or your attempt at what you found?

  3. #3
    Forum User
    Join Date
    Feb 2013
    Owner Since
    2012

    Location
    California
    Posts
    59
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Thats the init part of mitsulogger, there is no more development on mitsulogger or the mutlogger (that dev was on the open ecu forum), the ecu forum is dead by now.. right now I'm learning some android lol.. havent touched the init/communication with the ftdi library, I read on the ecu forum that you need to use the bit bang mode on the ftdi chipset (evoscan dev said that..).

  4. #4
    Forum User
    Join Date
    Feb 2013
    Owner Since
    2012

    Location
    California
    Posts
    59
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Ok so I just found some info about the MUT init, is just a 5 baud byte (writes/breaks for turning the RTS line high/low after 200ms delay) with a start and stop bit, but I cant get the ECU to initialize, I'm using the FTDI Java driver with android and still NADA, any chance on a sample, Memphetic, you started a port of mmcd right?

    EDIT: Got it, its kinda buggy but I managed to get the light blinking and got the ECU response.

    3.jpg

    2.jpg
    Last edited by reses; 04-13-2014 at 03:39 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The 3000GT/Stealth/GTO Web History Project
3000gt.com
3000GT / Stealth International WWWboard Archive
Jim's (RED3KGT) Reststop
3000GT/Stealth/GTO Information and Resources
Team 3S
3000GT / Stealth / GTO Information
daveblack.net
3000GT/Stealth/GTO Clubs and Groups
Michigan 3S
MInnesota 3S
Wisconsin 3S
Iowa, Nebraska, Kansas 3S
North California 3000GT/Stealth
United Society of 3S Owners
3000GT/Stealth/GTO Forums
3000GT/Stealth International
3000GT/Stealth/GTO Event Pages
3S National Gathering
East Coast Gathering
Upper Mid-West Gathering
Blue Ridge Gathering