Help with SIM808 connecting to the network

Hello ,
I have an issue reconnect to network after faild tries.
when the conneciton is good , get an IP from the netwrok - all is good
but if I start the device where there is no network signal - underground parking place
It won't recoonect to the netwrok , even if I'm ouside.

did I miss an AT command or soemthing ?

sendData1("AT+CIFSR", 1000, DEBUG, Temp); //Check IP address

SerialUSB.print("this is Temp answer: ");
SerialUSB.println(Temp);
SerialUSB.print("this is index of the '.' : ");
SerialUSB.println(Temp.indexOf('.')); //if we get an IP the reply is AT+CIFSR\n\r x.x.x.x - so the "." should be in place 12-14~
if (Temp.indexOf('.') > 0)
{
//do nothing - everything is OK
Temp = "";
}

else //in case there is no IP address
{
SerialUSB.println("Error in netwrok - going to reconnect!");
sendData1("AT+CFUN=0", 8000, DEBUG, Temp); //turn off the modem
delay(2000);
SerialUSB.println("this is cfun=0 answer:");
SerialUSB.println(Temp);
Temp = "";
sendData1("AT+CFUN=1", 8000, DEBUG, Temp); // turn on the modem
delay(2000);
SerialUSB.println("this is cfun=1 answer:");
SerialUSB.println(Temp);
Temp = "";

sendData1("AT+CSTT=internet", 1000, DEBUG, Temp);// Setup APN 
delay(1000);
sendData1("AT+CGATT=1", 1000, DEBUG, Temp);// connected to the GPRS network
delay(1000);
sendData1("AT+CIICR", 1000, DEBUG, Temp);// connected to the GPRS network
delay(1000);
sendData1("AT+CIFSR", 1000, DEBUG, Temp);// Show IP address

}

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.