Hi Derek Cook,
Double check your question: Do you mean your received 47 bytes data all begin with 'L' or 'V'?
'L' and 'V' is the start character, and you also make sure the other content in the 47 Bytes won't have the start bytes?
If yes, it is easy to realize it, you can use the UART receive interrupt, then in the interrupt check the received data, if it is the specific start char, then write your received counter as the begin point.
Actually, from my own experience, normally, the master and the slave side can define the uart communication protocol if you don't want to use the standard protocol like modbus.
You can define the header as 0XA55A(header 2Bytes)+data length(1 byte) + data(nByte)+CRC(1byte). But this method also need the cooperation in the master side.
This will make sure the communication data is correct and stable.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------