|
-
Jun 30th, 2009, 01:28 AM
#1
Thread Starter
Member
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.
-
Jun 30th, 2009, 01:47 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|