Results 1 to 3 of 3

Thread: ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: May:2008
    Location: bguddd
    Posts: 108

    ?

    ,
    :
    . .
    FT232RL . . , USB <> serial.

    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


  2. #2
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  3. #3
    Registered User
    Join Date: May:2008
    Location: bguddd
    Posts: 108

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |