HSERIN String reading


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: HSERIN String reading

    this will help , but maybe the serial data will need to be inverted
    the pic chip expects the data line to idle " high"

    Code:
    mai var byte[16]
    Lcdout $fe, 1
    pause 200
    
    main:
    hserout ["ATI",13,10]
    pauseus 300
    HSerin 2000,main,[STR mai\16]  ;>ati ELM327 v1.5
    
    pause 2000
    Lcdout $fe, 1
    lcdout  str mai\16
    Warning I'm not a teacher

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: HSERIN String reading

    Looking at the garbled data I would first look at the interface levels and states. When I used one of these OBD interface chips quite a few years ago it was designed to be connected DIRECTLY to the PC. That means the signals are already inverted. To interface it to a PIC you will need to Re-invert the TX and RX signals before connecting it to the PIC. Look at the data sheet. I used an ELM322D OBD(VPW) device.
    Last edited by Dave; - 19th December 2016 at 13:25.
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. HSERIN string starting index ?
    By gunayburak in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th July 2016, 23:54
  2. Hserin parsing string...again?
    By kevlar129bp in forum Serial
    Replies: 21
    Last Post: - 9th July 2012, 17:35
  3. HSERIN for variable length string
    By Pic2008 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th February 2010, 06:58
  4. parsing string from hserin
    By xxxxxx in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 2nd April 2009, 19:42
  5. Reading RS232 String
    By Peter1960 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th June 2005, 10:02

Members who have read this thread : 0

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