Elm327 obd


Closed Thread
Results 1 to 5 of 5

Thread: Elm327 obd

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Elm327 obd

    I skipped some of the code for brevity's sake; here is my PORT SFRs:
    Code:
    ; --- *** PORT Related SFRs *** ----------------------------------------------------------------------------------------
    TRISA        =    %01000000
    TRISB        =    0
    TRISC        =    %11000000
    ANSELA       =    0
    ANSELB       =    0
    ANSELC       =    0

  2. #2
    Join Date
    Aug 2011
    Posts
    453


    Did you find this post helpful? Yes | No

    Default Re: Elm327 obd

    Just to make sure I'm following you...
    From the K50, the logic analyzer shows 0xA5, 0x8A, 0x96, 0xAC
    So the PC->K50 USB is ok... you see "ATZ", but the K50 uart TX is what's wrong? The above should have been "ATZ"?

    I'll look back over the uart setup, but in the meantime try transmitting a "U" (0x55) on the uart and measure the bit times with a scope
    Code:
    txtest:
     DO
     LOOP WHILE PIR1.4 = 0
     TXREG1 = $55
     GOTO txtest
    At 38400 bit times should be ~26us

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Elm327 obd

    I finally got it working. The big thing was it seems I missed traces on 2 of the ELM327 board that tie pins 5 & 6 to Vdd. Pin 5 holds the memory while pin 6 is the Baud selector. Ran a jumper on the bottom of the board and now it works.

Similar Threads

  1. Replies: 8
    Last Post: - 5th March 2011, 18:31
  2. OBD-2 Question
    By oslinux in forum General
    Replies: 9
    Last Post: - 5th May 2007, 21:34
  3. OBD-2 Input to the PIC
    By oslinux in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 4th April 2007, 14:00
  4. OBD II Protocol
    By L_Gaminde in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th July 2005, 06:12

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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