Skip to content

UART Driver only reading 16 bytes at a time #2401

Answered by timcanham
VR314 asked this question in Q&A
Discussion options

You must be logged in to vote

This is very likely a function of the buffer in the underlying hardware. It isn't uncommon for the OS call to receive the data in chunks like this. In general, you can't count on the underlying hardware to deliver it to you in chunks that exactly match your packet size, so you have to sync with your packets with another method like a sync value or just counting bytes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VR314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants