Part Number: LP-AM243
How do I adjust the timeout for a UART set to partial mode?
I've set up the UART to read with a buffer of 1024 bytes, using a callback interrupt. I don't know the length of the data streams beforehand, which is why I have a large buffer and want to use partial mode with a timeout.
When I set the read mode to full, I can see the entirety of my data stream in the buffer, so I know that the data can be received.
But when I switch to partial mode, the interrupt is always triggered after only 8 bytes have been read - despite more being sent simultaneously. I assume this is because of some brief delay/buffer on the serving side (using Node Serialport) because if I open PuTTY and hold down a key it will generally reach around 28-32 bytes received before the UART times out and interrupts.
How can I adjust this timeout? I need partial mode for the variable length data stream, but it's too strict by default.