I build a vcom connection with PC and STM32 MCU.
On the MCU, I send alternatively two strings, one is 3 byte long; the other is 5 bite.
DelayMs(20);
UartPutBuffer(&UartUsb, TxBuff.RSSI, 5);
clearBuff(TxBuff.RSSI,5);
DelayMs(20);
UartPutBuffer(&UartUsb, TxBuff.SNR, 3);
clearBuff(TxBuff.SNR,3);
On the PC, I write a program with labview, which measure the number generated by property node "bytes at port" to identify string1 and string2.
But the problem is that the node "bytes at port" returns three value: 3,5 and 8. How can I avoid the situation of "8 bytes"?