sasfog / Open-PupilEXT

Open-PupilEXT Experimental Community Version
https://www.frontiersin.org/articles/10.3389/fnins.2021.676220/abstract
Other
0 stars 0 forks source link

Remote control messages received over serial can be crammed together, causing fail to interpret #138

Closed kheki4 closed 2 months ago

kheki4 commented 2 months ago

Unlike UDP datagrams, which arrive always separately, serial messages (if sent very fast), arrive in our buffer here many at once, just as if we concatenated them. They should be taken apart upon reception (in the listener defined in connPoolCOM.h), and passed on separately for interpretation. We assume each separate message ends with a CR or LF character, or their un-encoded string aliases