Reading input from serial communication.

You need 52.35 ms to send 50 characters at 9600 baud. So, just forget about the timeout, and use the 1 second default. I edited my post.