Results 1 to 8 of 8

Thread: Serial Data - How to make sure the correct data is received?

Hybrid View

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2009
    Posts
    47

    Re: Serial Data - How to make sure the correct data is received?

    Yip making an interface for HAI HIfi multi-room audio controller, it is an 8 zone (room), 6 source controller. We also have a 4x4 HDMI matrix switch that has a serial port so eventually the software would ideally be universally. But I am just taking baby steps. This is just a hobby for me, for my own satisfaction.

    There is lots of hardware out there that control lights and automation etc that you could write software for.

  2. #2
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: Serial Data - How to make sure the correct data is received?

    Consider "#" as a start char and "CR" as a stop char. After every event fill up a buffer. Check after every event if it contains a stop char and a start char. If so take that data and process it. Clear the buffer and set it ready to fill up again.

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width