Serial String parsing


View Poll Results: What do you do with serial strings

Voters
9. You may not vote on this poll
  • Receive full string and parse

    1 11.11%
  • Recieve string and utilize data modifiers and variables

    2 22.22%
  • Happy mix of both

    6 66.67%
Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Default Serial String parsing

    I find my self not sure at times what the best method is to deal with long strings of serial data.

    So I thought I would throw this out to the group and see what people thought.

    If you had a serial string that you were recieving would you (generally speaking)

    a) recieve the full string and the parse/convert it later

    b) Use data modifiers and variables as the data is coming in with no parse/convert later

    c) A happy mix of both
    Last edited by DynamoBen; - 29th June 2005 at 03:55.

  2. #2
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    C !

    I have the task to listen to serial data and decode them...

    I installed an interrupt to get the serial data into an ringbuffer. On Overflow it stops.

    The Basic-Routine listens to each new byte and checks, if it "goes the right way" (number, character, CR, Checksum...). After checking the complete command, the string will be interpreted...
    And the next characters are coming into the ringbuffer.
    After interpreting the string, the next few characters are checked...
    I use a parser, which has a status-code (for each element of a command) and a small counter for each character inside this element. So I check every character and count until the next element...

Similar Threads

  1. Hserin parsing string...again?
    By kevlar129bp in forum Serial
    Replies: 21
    Last Post: - 9th July 2012, 16:35
  2. Parsing Serial data stream
    By boroko in forum Serial
    Replies: 5
    Last Post: - 26th October 2008, 11:12
  3. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39
  4. String Parsing
    By eoasap in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th February 2006, 17:20
  5. serial string parsing
    By billybobbins in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th September 2004, 21:34

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