Have you tried increasing the timeout period?

P.S. How do you know what you're receiving? Your example doesn't show how you're
checking what's received!