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]
Bookmarks