This could be caused by the length of time necessary to complete the connection. Add the following code to your application after the port is opened.
*******************************************************************
Declare the following function prototype.
extern "C" {int ModemModifyValue(int port, int code, long value);}
and
Example-
CCdrvPPPort *Port //Assumed to be initialized port object.
int Status;
//Wait up to 45 seconds for modem connections
if ((Status = ModemModifyValue(Port->GetPortID(),3,45*18)) != 0)
{
printf("Error Changing Modem value\n");
// Take remedial action
*******************************************************************
|