MKR NB 1500 keeps rebooting after connecting to IoT cloud

Hello, I use an MKR NB 1500 and an MKR GSM 1400. When I connect them to the Arduino IoT cloud, the installation goes without a problem. However, after uploading the standard sketch provided by the Arduino IoT Cloud, both boards reboot every 10 seconds.

Does anyone know ow what is causing this issue?

Hi!
Can you share the sketch you are using?
How are you powering the devices? Could it be that the power suppy is not giving enough current to your devices?

Hello,

Thanks for getting back to me. I'm getting a little desperate :slight_smile:

This is the standard sketch generated by the Arduino IoT cloud (see below).

I tried several sim cards (Arduino, Vodafone and Xipo). All give the same results.

Based on your suggestion regarding the power supply, I installed the MRK ND 1500 on an MKR connector carrier with an external power supply. No difference.

The board still keeps disconnecting from the serial port every 10 seconds and than rebooth and give the following message on the serial monitor:

***** Arduino IoT Cloud - configuration info *****
Device ID: 3d53e4b5-9e68-467d-93e9-9ffea4f1d71a
MQTT Broker: mqtts-sa.iot.arduino.cc:8883

The SECRET tab is filled in correctly and the code is:

/* 
  Sketch generated by the Arduino IoT Cloud Thing "Untitled"
  https://create.arduino.cc/cloud/things/584ffcc9-fa24-4b9d-99e8-f21dc8b0e645 

  Arduino IoT Cloud Variables description

  The following variables are automatically generated and updated when changes are made to the Thing

  String channelTimeStamp;
  CloudTime iotTime;

  Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
  which are called when their values are changed from the Dashboard.
  These functions are generated with the Thing and added at the end of this sketch.
*/

#include "thingProperties.h"

void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(3);
  ArduinoCloud.printDebugInfo();
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
  
  
}



/*
  Since IotTime is READ_WRITE variable, onIotTimeChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onIotTimeChange()  {
  // Add your code here to act upon IotTime change
}







@pboers i suspect the board keeps a little bit to much time to connect to the networks and the watchdog is killing it.

Try to disable the watchdog substituting:

ArduinoCloud.begin(ArduinoIoTPreferredConnection);

with:

ArduinoCloud.begin(ArduinoIoTPreferredConnection, false);

1 Like

Hi Pennam,

Thanks for your suggestion. It looks like the board is connected to the IoT cloud.

It connects using the Vodafone sim. Now I have to find out why the Xipo sim is not working.

Thanks a lot.

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