Hi guys,
I am not able to get my MKR GSM 1400 running for a long period of time.
Context:
- Board: MKR GSM 1400
- 2400 mAh LiPo connected
- Dipole antenna
- Swisscom Multi Device SIM card
- Sketch: GPC_IoT_Core_GSM from Arduino Cloud Provider Examples
- arduino_secrets.h configured as it should, everything else is out of the box
- all libraries bords used in this context are up to date
- Configuration on Google Cloud IoT Core is done
The board connects to the network and successfully connects Cloud IoT Core.
Messages published by the board are received by IoT Core.
Messages published by IoT Core are received by the board.
And after some time everything stops. The board need to be reset, and then it will reconnect.
The cycle goes on and on.
I'm looking after setting up a critical remote system, and as you may imagine, this is far from being ideal currently.
I attach the debug output. The last breath before dying is:
10:27:16.864 -> +USORD: 0,0,""
10:27:16.864 ->
10:27:16.864 -> OK
10:27:16.908 -> AT+USORD=0,512
10:27:17.044 -> +USORD: 0,0,""
10:27:17.044 ->
10:27:17.044 -> OK
10:27:17.044 -> AT+USORD=0,512
10:27:17.138 -> +USORD: 0,2,"D000"
10:27:17.138 ->
10:27:17.138 -> OK
10:27:17.138 -> AT+USORD=0,512
Attempting to connect to MQTT broker: mqtt.googleapis.com
And then, nothing, stuck forever until next reset.
There is anoter successful reconnectin prior to that one:
10:25:22.113 -> +USORD: 0,0,""
10:25:22.113 ->
10:25:22.113 -> OK
10:25:22.113 -> AT+USOCL=0
10:25:22.113 -> OK
10:25:22.113 -> Attempting to connect to MQTT broker: mqtt.googleapis.com
10:25:22.113 -> AT+CCLK?
10:25:22.113 -> +CCLK: "19/07/10,10:25:17+08"
10:25:22.113 ->
10:25:22.113 -> OK
10:25:22.113 -> AT+USOCR=6
10:25:22.113 -> +USOCR: 0
10:25:22.113 ->
10:25:22.113 -> OK
10:25:22.113 -> AT+USOSEC=0,1,0
10:25:22.113 -> OK
10:25:22.113 -> AT+USECPRF=0,0,1
10:25:22.113 -> OK
10:25:22.113 -> AT+USOCO=0,"mqtt.googleapis.com",8883
10:25:22.113 -> OK
I noticed that it is happening each time on the second attempt to reconnect.
I didn't go too deep in the code for the moment, but did anybody encountered the same issue, or have any existing reference relating this behaviour?
Could anybody try to reproduce this?
Versions as I'm writing and testing:
Arduino SAMD board: 1.8.3
Arduino_JSON library: 0.1.0
ArduinoMqttClient library: 0.1.3
Regards
GSM1400hangs.txt (140 KB)