Not able to setup MKR 1010 to IoT cloud as new Thing - COM port changing?

I got my "Explore IoT" Kit with a MKR WiFi 1010 yesterday and was eager to test. I also have two MKR 1000.

Running sketches are no problem but when I use the Arduino Create IoT Cloud to add a new Thing this does not work.

The error I get is "not able to configure secure element".

During the process I hear the sound telling that a new USB device has been connected, I can see in the Windows Device manager that the com-port number is changing. This also seem to cause the Arduino Create Agent to crash. I guess the problem is that it lost the connection to the board.

Tried on both MKR 1010 and MKR 1000 and on two separate computers (both running Win 10) get the same problem. Com-port switching up one step during the process...

I have tried using the advanced setting in the Device manager My serial device requires a specific COM port to function, how do I change this in Windows? (startech.com) to fix the port number, and it seem to work, the com-port is not changed the process, but then the IOT cloud setup give the error message "Serial port not found".

I'm out of ideas.. using the cable from the kit, tested different USB-ports (USB 2.0 and 3.0).

When programming, using the IDE, the same COM port switching occurs but that seem to work...

@jeniara
do you have your MKR outside of the carrier?
I know that some components might interfere with the i2c bus the cryptochip needs to get access to

1 Like

I've tried both inside and outside the carrier. Maybe 50 variations of USB cables, computers (all with Win 10 and Edge - I should really try an other browser), USB slots, double click, firmware loader sketch loaded... and both with a MKR 1010 and a MKR 1000.

I would be very surprised if this was a problem unique to my configuration!

@jeniara

I've seen plenty of poltergeist, but this could be an issue on the communication between the Agent and your browser.
I suspect some dropped messages between the board and the browser.
Depending on the configuration the first messages (maybe just a few bytes) from the board to the browser can get dropped.
If you right click the Agent icon in the taskbar you can open a debug panel which will show you the messages coming in.

I'd try the following (in order)
Try using Chrome (you'll have to reinstall the Create Agent, I suspect).
If you get the same results try the following (longer) procedure

  • unplug the board
  • open the Create editor
  • click on Serial Monitor
  • connect the board
  • look at the output to see if you have an outdated NINA Firmware version

should that be the case you need to update it, but in order to avoid future issue I'd advice you download an Hourly Build which I'm sure has the very latest firmware (you can find it here on the page https://www.arduino.cc/en/software)

The procedure to update the firmware can be found here

I'll be following this thread, hoping you'll manage to get it to work.
We're in the process of revamping this provisioning process, but it's going to take a while until it's deployed.
keep me posted :slight_smile:

u.

Thank you for following this problem!

I have updated, but there is a later hourly build. I'll try that. Uploading "Blink" using on the Arduino create to the MKR 1010 is no problem, so the Agent is working...

Now I tried with Crome, unfortunately with same result. It was indeed an other version of the Arduino Create to download when I used Crome, but they look very similar, and once it is started I can not tell the difference. And they have the same problem. After running the "New thing", they disappear and I need to manually restart.

Attaching the log from the Agent and screen dump of the error message. Maybe tht can give some clue...

Log Arduino Create Crome.txt (48.1 KB)

OK, after another series of attempt it started working.

Unfortunately, I can not say what was the problem, but if the Create Agent does not crash during the process, it works. I downloaded the zip-file with the hourly build of the Arduino hourly build, installed the libraries, ran the sketch FirmwareUpdater in the Examples -> WiFiNINA -> Tools ->FirmwareUpdater, updated the firmware and then did the IoT setup. After a few attempts (when the Agent did not crach, but it still failed) it suddenly was online!

So, I cant say what was the problem. The version of the library and the update look to be the same. Maybe something on the cloud software changed during the night? Hope it now will work better!

@jeniara
thank you for trying my suggestions, I'm happy you made it through.
I have posted a link to this thread to the Create/Cloud team's channel.
Someone will look into it soon.
The Agent shouldn't be crashing so often, we had an issue (later resolved) months ago on Mac which caused it to quit unexpectedly, but on Windows it's always been very stable.

Thank you for reporting this and for the back and forth :slight_smile:

Not able to setup MKR 1010 to IoT cloud as new Thing. The MKR1010 was purchased less than a month ago.

The MKR1010 IOT configuration, step 3 fails:

We were not able to configure the Secure Element
Cannot set property '5fe043df-09a0-4f36-8ce4-00fb45b92186' of undefined or
Cannot set property '7dab354c-b4af-43b5-8354-3ebb1e87ad3e' of undefined or
Cannot set property '646c2cdd-6d0e-426e-8cb4-5492f58da102' of undefined

Are you sure you have an Arduino board connected to your computer? Try disconnecting and connecting it again. Make sure plugin is running or restarting it. Do you see at least the power LED on your device lighting up?

After a failed attempt, apparently, the create_bridge process has crashed because it's gone.

The board appears to operate OK. It looks like it was running the Blink sketch before I ran the IOT configuration. I believe Blink is the factory default program. I downloaded an example sketch to be sure and it worked.

--- Log from create_port process shows a firmware version issue:

{ "Ports": [], "Network": true }
{ "Ports": [ { "Name": "COM6", "SerialNumber": "", "DeviceClass": "", "IsOpen": true, "IsPrimary": false, "Baud": 9600, "BufferAlgorithm": "timed", "Ver": "1.1.251", "NetworkPort": false, "VendorID": "0x2341", "ProductID": "0x8054" } ], "Network": false }
{"D":"Current firmware version: 1.2.3\r\nThe firmware is not up to date. Latest version available: 1.4.1\r\n"}
close COM6
Closing serial port COM6
time="2020-12-08T13:20:30-05:00" level=info msg="Shutting down reader on COM6"
Shutting down reader on COM6

The firmware is not up to date. Current Ver: 1.1.251 Latest version available: 1.4.1 <=== ** NOTE

--- From the IDE Library Manager, I installed: ArduinoIoTCloud ver 0.11.03

I ran the firmware update utility and the highest version I could select was the 1.3.0 version. I selected v1.3.0 and successfully ran the update.

After installation I did a WiFiNINA firmware check:

WiFiNINA firmware check.

Firmware version installed: 1.3.0
Latest firmware version available : 1.4.2 <==== *** NOTE ***

Check result: NOT PASSED

  • The firmware version on the module do not match the
    version required by the library, you may experience
    issues or failures.

-------- Tried IOT configure process again but it failed:

{"D":"Current firmware v"}
{"D":"ersion: 1.3.0\r\nThe firmware is not up to date. Latest version available: 1.4.1\r\n"}

I'm fairly certain things will work once the firmware is the proper revision. My problem is that I don't know how to install the latest firmware version on my PC so the Firmware Updater program will see it and use it for the update. I downloaded the nightly update, but I have no clue what to do with it. I followed the firmware update instructions and was able to update the firmware from 1.2.3 to version 1.3.0, which does also does not work.

I noticed in the debug output that the create _agent was attempting to update the firmware during an IoT configuration attempt. The debug output is in the attached file.

Apparently, the update failed. I did see the v1.4.1 bin files in the directory that the debug output displayed.

I have the same problem with a Nano 33 IoT and I'm pretty sure it will work too once I get the firmware issues resolved.

debug_console.txt (8.16 KB)

@thomas_simpson6
I think you're having a very similar issue to @jeniara

There is clearly something going wrong, but don't worry about this message

Firmware version installed: 1.3.0
Latest firmware version available : 1.4.2 <==== *** NOTE ***

Check result: NOT PASSED

  • The firmware version on the module do not match the
    version required by the library, you may experience
    issues or failures.

The operation is non-blocking, it's a warning.
The latest revision of the NINA firmware is right now only available in the Arduino IDE Nightly Build, but you shouldn't need it.

I'm going to ping the Firmware and Cloud teams on our Slack and get someone to look into these issues in a combine effort.
There's a major upgrade coming (1.4.1) which we're preparing for, but we're making sure what's currently out there keeps working retroactively.

Please be patient until someone picks this up from here and gets back to you.

ciao.ubi

I have continued to setup more MKR boards to the cloud and after a few attempts it works. But the Arduino Create Agent is frequently crashing on both my Win 10 computers, both with Edge and Chrome. Maybe Chrome is a little more stable. This seem to be the root of the problem. However, even when I try to use the Arduino Create WebIDE, the Agent crashes and I need to make multiple attempts to upload the code.

So now, after making the MKR connect to cloud using the online IOT Cloud, I only use the Arduino Create WebIDE to create the IOT code, but I then cut and past it to the Arduino IDE and compile and upload from there. The IDE has no problem uploading code and the Agent is not crashing.

@jeniara
We're about to release an update (1.2) to Create Agent.
We have a Release Candidate ready on GitHub, I'd suggest you try that one, it seems to have addressed a lot of bugs and resolved stability issues.

Just go for the pre-release and try, but check back in a few days to download the final one

Hello there, i hope you're doing well.
I'm having some issues to setup my MKR1010 to IoT cloud as well.
The board it's properly working, i can upload other sketch from the web editor and work just fine, the board it's unattached from the IoT Carrier (i have the IoT Explorer Kit).
When the setup devices it's running, in the second step an "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data" appear below de setup window, after some time an "Something went wrong" error appear with a "Try again" button. If i push the "try again" button, after a time an "Execution command: exit status 2 error" appear.
I attached pictures with the error, i hope you can help me.

Fernand017:
Hello there, i hope you're doing well.
I'm having some issues to setup my MKR1010 to IoT cloud as well.
The board it's properly working, i can upload other sketch from the web editor and work just fine, the board it's unattached from the IoT Carrier (i have the IoT Explorer Kit).
When the setup devices it's running, in the second step an "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data" appear below de setup window, after some time an "Something went wrong" error appear with a "Try again" button. If i push the "try again" button, after a time an "Execution command: exit status 2 error" appear.
I attached pictures with the error, i hope you can help me.


I uninstalled and installed the "Arduino Create Agent" and solve the problem.