Hi,
I am reading data from the serial port. The data are comming from 3 channels and arrive in this way:
[00][B](channel1)-[FF][01](channel2)-[11][F7](channel3)-[00][44](channel1)-[FF][33](channel2)-...
I've done a while loop to read these data. In the loop, I read each
channel one by one (1st read=2bytes, 2nd read=2bytes and 3rd
read=2bytes) before flushing the buffer and doing the loop. The baud
rate=4800 and the Sample rate=240Sample/s. The problem is when I do my
loop I lost data in a way that when the loop restart I don't know wich
channel I am reading with the first read.
How can I solve this problem?
Thank you
Francois