No IOTcloud connection MKRNB1500

I am expiriencing difficulties getting my NB1500 to work with the IOTCloud
The Sketch I am loading is the Sketch IOTcloud generates. I have other boards (OPTA and MKRwifi1010) working properly in the IOTcloud.

Firmware modem :
L0.0.00.00.05.06 [Feb 03 2018 13:00:41]

The following output can be read from the serial monitor (the board gets diconnected and reboots a few seconds after "connected to GPRS network")

***** Arduino IoT Cloud - configuration info *****
Device ID: ff087f1f-8f94-4a5e-9b62-04e6028bbd36
MQTT Broker: mqtts-sa.iot.arduino.cc:8883
SIM card ok
Connected to GPRS Network
***** Arduino IoT Cloud - configuration info *****
Device ID: ff087f1f-8f94-4a5e-9b62-04e6028bbd36
MQTT Broker: mqtts-sa.iot.arduino.cc:8883
SIM not present or wrong PIN

And sometimes the output is different, no disconection of the board and the output looks like this:

***** Arduino IoT Cloud - configuration info *****
Device ID: ff087f1f-8f94-4a5e-9b62-04e6028bbd36
MQTT Broker: mqtts-sa.iot.arduino.cc:8883
SIM card ok
GPRS.attachGPRS(): 4
Connected to GPRS Network
TimeServiceClass::sync  Drift: -21 RTC value: 1701786005
ArduinoIoTCloudTCP::handle_ConnectMqttBroker could not connect to mqtts-sa.iot.arduino.cc:8883
ArduinoIoTCloudTCP::handle_ConnectMqttBroker 1 connection attempt at tick time 10102
ArduinoIoTCloudTCP::handle_ConnectMqttBroker could not connect to mqtts-sa.iot.arduino.cc:8883
ArduinoIoTCloudTCP::handle_ConnectMqttBroker 2 connection attempt at tick time 14230
ArduinoIoTCloudTCP::handle_ConnectMqttBroker could not connect to mqtts-sa.iot.arduino.cc:8883
ArduinoIoTCloudTCP::handle_ConnectMqttBroker 3 connection attempt at tick time 22359
GPRS.isAccessAlive(): 1
Connected to Cellular Network
ArduinoIoTCloudTCP::handle_ConnectMqttBroker could not connect to mqtts-sa.iot.arduino.cc:8883
ArduinoIoTCloudTCP::handle_ConnectMqttBroker 4 connection attempt at tick time 38488
GPRS.isAccessAlive(): 1
Connected to Cellular Network

Ran the ChooseRadioAccesTechnology (Chose option 2 - CAT M1 preferred, NB IoT as failover (default))

Ran the modemtest sketch, modem is functioning properply.

Connecting NB IoT / LTE Cat M1 network...OK
Attaching to GPRS...
OK
If your carrier uses a proxy, enter it, if not press enter: 
Connecting and sending GET request to example.org...OK
Receiving response...OK
TEST COMPLETE!
Connecting NB IoT / LTE Cat M1 network...ERROR

Ran the tesGPRS sketch, all seems well until last line:

Ran NBScanNetworks sketch and left it for 20 min. or so:

NB IoT/LTE Cat M1 networks scanner
Modem IMEI: 356726100194810
Current carrier: KPN KPN
Signal Strength: 99 [0-31]
Scanning available networks. May take some seconds.

Current carrier: 
Signal Strength: 31 [0-31]
Scanning available networks. May take some seconds.
> KPN
> 204 04
> 204 16

Current carrier: KPN KPN
Signal Strength: 16 [0-31]
Scanning available networks. May take some seconds.
> KPN
> 204 04
> 204 04
> 204 16

Current carrier: KPN KPN
Signal Strength: 17 [0-31]
Scanning available networks. May take some seconds.

Ran example sletches for sending and recieving SMS, both positive. Altough receiving a SMS took a while.

Bottom line, as far as i can tell, my modem and SIM are working properly but the board cannot seem to connect with the IOTcloud service for some reason. What can I do at this point to get this to work?

Kind regards Simon.

Additional info to my previous post, this is the sketch I downloaded to my board.

/*
  Sketch generated by the Arduino IoT Cloud Thing "Untitled"
  https://create.arduino.cc/cloud/things/08ede526-97b8-499e-8a08-1ee52f5c73b7

  Arduino IoT Cloud Variables description

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

  bool knopje;

  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(4);
  ArduinoCloud.printDebugInfo();
}

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


}



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

Did you ever resolve this? I'm having a similar issue.

Unfortunately not, the project lies in a corner of the desk waiting to be covered in dust :disappointed_relieved:

Browsing the forum makes we wonder if updating the UBLOX firmware maybe solves the problem, and at one point I will give this a try. But I am a bit dissapointed by the fact that I bought a board wit NB/LTE IOT capabilities, thats what is advertised for. And it turns out that this simply just doesn't work without some serious effort and hacking/tweaking the board itself.

1 Like

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