Recent

Author Topic: receive serial com with high data rate with LAZserial  (Read 3793 times)

kupferstecher

  • Hero Member
  • *****
  • Posts: 583
Re: receive serial com with high data rate with LAZserial
« Reply #15 on: July 01, 2020, 01:18:51 pm »
Example in some condition have "B5B0B1B2B3B4" or "B4B5B0B1B2B3" ecc ecc depend of start condition.
So the data sequence seems to be correct you just don't read it alligned.

Serial Stream:
Code: Text  [Select][+][-]
  1. |B0B1B2B3B4B5|B0B1B2B3B4B5|B0B1B2B3B4B5|B0B1B2B3B4B5|B0B1B2B3B4B5|
  2.           | ^  ^ ^ ^ ^ ^|
  3.           |B5 B0B1B2B3B4|
  4.         RecvBufferStr(6,50);

I'd read the data byte by byte (Serial.RecvByte(10)), search for the beginning and evaluate the block then.

 

TinyPortal © 2005-2018