Weird problem with Debugin


Results 1 to 10 of 10

Threaded View

  1. #9
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Weird problem with Debugin

    Hi,
    34 is the ASCII code (in HEX) for '4' and 61 is the ASCII code (in HEX) for 'a' so the actual data you want to capture is the fifth byte in the received packet. How about
    Code:
    DEBUGIN[WAIT (1), B0]    ' Wait for the 01 part of the string then grab the next byte
    or
    Code:
    DEBUGIN[SKIP 4, B0]    ' Skip the first four bytes, grab the fifth.
    /Henrik.

    EDIT: Or, if it's actually the 01 part you want to capture (and it's NOT the ASCII code for the digit 1 by the way) then perhaps DEBUGIN[SKIP 3, B0]
    Last edited by HenrikOlsson; - 4th June 2013 at 06:03.

Similar Threads

  1. Weird Random problem
    By Del Tapparo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th August 2012, 22:06
  2. Weird Problem
    By isaac in forum General
    Replies: 9
    Last Post: - 22nd September 2008, 19:30
  3. DebugIn problem
    By Mutiaz in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd January 2006, 15:51
  4. Weird Oscillator Problem
    By eoasap in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th December 2005, 14:21
  5. Debugin problem
    By moby in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th September 2004, 15:12

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