MKR GSM 1400 problem

We have the problem. Arduino for some reason stops the work and does not respond to requests. We know that the program will stop at this stage, How can I stop the loop for example in 30 seconds and restart modem?

// After starting the modem with GSM.begin()
// attach the shield to the GPRS network with the APN, login and password
while (!connected) {
if ((gsmAccess.begin(PINNUMBER) == GSM_READY ) &&
(gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD) == GPRS_READY)) {
connected = true;
}
else {

Serial.println("Not connected");
delay(1000);
}
}

Hi @viktor_laitinen,

Could you please provide a full minimal sketch that can be run to reproduce this? Also, do you have a lipo battery connected?

After you provide the sketch, debug output by changing GSM gsmAccess; to GSM gsmAccess(true);, would be very helpful in helping you out.

I see in this post is same problem https://forum.arduino.cc/index.php?topic=537553.0

My question is how we can break this loop and restart modem?

Starting Arduino web client.

+UUSORD: 0,75

AT+UDCONF=1,1
OK
AT+CTZU=1
OK
AT+UDTMFD=1,2
OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK

+UMWI: 0,1

+UMWI: 0,2

+UMWI: 0,3

+UMWI: 0,4
OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0

OK
AT+CREG?
+CREG: 0,0
OK
AT+CREG?
+CREG: 0,1

OK

Arduino is stoped work in this place. When we check connecting, Arduino is offline.

Now Arduino is toped work when CHRG lamp is started blink.

Hi @viktor_laitinen,

Could you please try again with a LiPo battery connected, from the MKR GSM 1400 product page:

During cellular transmissions the peak current required by the board will exceed 500mA. This is in excess of what can sourced by a standard USB port, so it is MANDATORY to have a 1500 mAh or higher LiPo battery plugged all the time, the current provided by the USB port will be supplmented by the battery.

I repeat from the post above:

Could you please provide a full minimal sketch that can be run to reproduce this? Without this, it is very difficult for us to try to reproduce the issue.

OK
AT+UCALLSTAT=1

OK
AT+CGATT=1

OK
AT+UPSD=0,1,“iot.dna.fi

OK
AT+UPSD=0,2,""

OK
AT+UPSD=0,3,""

OK
AT+UPSD=0,7,“0.0.0.0”

OK
AT+UPSDA=0,3

OK
AT+UPSND=0,8

+UPSND: 0,8,1

OK

connecting…

OK

Stopped in here.

Hi @viktor_laitinen, if you provide a sketch, we could try to help in your request.