Switch to a library for RS232 Communication.  http://www.teuniz.net/