How to finish implementing serial port read interval timeouts?