This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-AM243: UART Interrupt in Partial Mode is too fast - how can I adjust the timeout?

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.