Thank you for your answer Rudolfl. It seems it keeps going to the timeout. This is are the debugging messages I put to the code to see whats happenning.
Initiating launch sequence…
Initialized…
// Initialization of network starts here
Initialization delay //15 secs
AT+CREG?
+CREG: 0,0
OK
+WIND: 1
AT+CREG?
+CREG: 0,2
OK
+WIND: 16
AT+CREG?
+CREG: 0,2
OK
+WIND: 7
AT+CREG?
+CREG: 0,1
OK
+WIND: 4
+WIND: 10,“SM”,0,“FD”,0,“ON”,0,“SN”,0,“EN”,0
+WIND: 11,“F2091B217C46FA48F19319EF4DE12495”,“56A7DAEB1BE67DE0A601A2A35BF375F3”,“9E5A4518994A9F33F64DB3CE480256D0”
AT+CREG?
+CREG: 0,1
OK
Sim subscription
Activating GPRS.
Openning bearer
wip_bearerOpen
wip_bearerSetOpts+dns
Starting bearer.
Setting routine. // This is the routine we’ll jump in case bearer is started
gprsStart
wip_bearerStart
ResWip // ResWip = wip_bearerStart(…)
-27 // So openning, we waits 30 seconds now.
Timeout.
wip_bearerStart // In case it fails, try another time before going idle
ResWip
-28 // Another connection in course
OK // Seems the watchdog resets because we came idle…
+WIND: 13
I tried som AT+CSQ during connection, returns 20,1, so it doesn’t seem an antenna problem.
It’s worth to say that code won’t reach wip_bearerStart until every single step returns ok values, if any one fails, modem is reset.
Do you have any other sugestion?
Thank you!