Hi guys,
Just add these lines after you open your port.Because the IO_SERIAL_NON_BLOCKING which you enable at the time of opening a port is not working that was the issue.
setflag = IO_SERIAL_NON_BLOCKING;
ioctl(GSM_Port, IO_IOCTL_SERIAL_SET_FLAGS,&setflag);
Hope it helps someone.
Thanks and Regards,
Olivia