5 posts / 0 new
Last post
thammer
Milli reference application

https://developer.ssni.com/milli-developer-kit-reference-application instructs me to:

  1. Download the UF2 file mshield-1.4.1.ino.uf2 from the Itron GitHub repository .

However, I do not find that file on GitHub (nor in a broader search using Google).

Where can I find this file? Or do I need to build it from source?

Thanks!

.Tim

 

srjohnson24
Milli reference application

Hi Tim,

We need to post the latest UF2 file to GitHub, but we will also post it to the Document Center on the Developer Portal.  My apologies for that; I will email you a copy of the latest UF2 release for Adafruit boards.

Thanks,

--Stephen

srjohnson24
Milli reference application

Hi Tim,

Below are answers to additional questions on the UF2 file loading, and setting up the Milli reference application:

Thank you for the file. I copied it into the METROBOOT device and the board seemed to process the file and reboot. When it came back up it did not have the CIRCUITPY storage device, but I assume that your image does not provide that so I was not worried.

Stephen: Correct, the METROBOOT device automatically goes away, and the large LED is no longer illuminated, but the correct firmware has been loaded onto the device at that point, and the device has automatically rebooted.

I moved the USB connection from my MS Windows laptop to my GNU/Linux workstation to access the serial port, but did not get anything on that console. Should I?

Stephen: You can open a terminal to see console output from the Adafruit board.  This can be a very helpful way to understand system behavior, when you are using a COAP Client in particular to exercise the COAP Server APIs running on the Adafruit board.  You can use any free, downloadable terminal emulator, like Putty, TerraTerm, or Termius.  Check your system to see what COM port the device enumerated as, and then use your terminal emulator to set up a serial connection on that COM port, with a baud rate of 115200.  Then, press the reset button on the Adafruit board (NOT the reset button on the Millishield board), and within 15 seconds, connect your terminal emulator.  Then you will be able to see the console output from the Adafruit board.

 

Also, following the instructions on https://developer.ssni.com/milli-developer-kit-setup-and-provisioning-setup-instructions :

Milli Firmware Upgrade

If you received your Milli Dev Kit before March 1, 2019 it is recommended that you upgrade to the latest release of Milli firmware found in Document Center. If you received the Dev Kit after March 1, 2019, the dev kit was preloaded with firmware and there should be no need to update.

 

I have upgraded the shield to 1.4.1008 and switched the boot selection to the production version (per https://developer.ssni.com/how-update-firmware-images). Now I no longer get a prompt so I cannot do anything more on that console?

Stephen: Yes, that is correct, the prompt goes away on the serial console from the Millishield after you switch the boot selection to the production firmware.

However, I do get a node now when I refresh the mesh scan on the Itron Edge Router!

Stephen: Perfect!  If you see your Milli device in the mesh scan from the IOTR, and the IOTR LED is solid green, that means the IOTR is communicating wirelessly with the Milli, and the IOTR also has a tunnel connection through the WAN to the Starfish Stage back office.  Now you are ready to interact with your Adafruit board with a COAP Client, and/or the MQTT Client (if the Milli is configured to perform MQTT bubble-ups for the temperature sensor)!

 

 

We do not have any sensors to connect to the Metro Express board, so we were hoping to add a “random” data generator to simulate a sensor for testing. I assume that I need to be able to build the mshield project and modify it to do that (and then be able to upload the new binary!).

Do I have that about right?

Stephen: Yes, if you want to use a temperature sensor, any DHT11 sensor will work, but I recommend the HiLetgo DHT11 sensor, which is very easy to install on the Adafruit or any Arduino board (https://www.amazon.com/gp/product/B01DKC2GQ0/ref=ppx_yo_dt_b_asin_title_...).  If you do not have a temperature sensor, the COAP server you loaded on the Adafruit board with the supplied UF2 file will return the bogus value of 100 degrees (in Celcius, or the equivalent Farenheit value if you have your units configured to F instead of C).  You can also add your own resource to the COAP server that implements a random number generator, as you suggest.
thammer
Milli dev kit & reference application

Stephen -

Thanks for the responses (and for posting my questions!).

RE: Adafruit

Stephen: You can open a terminal to see console output from the Adafruit board.
...
Then, press the reset button on the Adafruit board (NOT the reset button on the Millishield board), and within 15 seconds, connect your terminal emulator. Then you will be able to see the console output from the Adafruit board.

When I have the Adafruit board connected to my GNU/Linux workstation, it seems there is a very limited window during which I can connect to the serial port/console and capture any output from the board. If I try too quickly after the reset, the port is not set up and PuTTY reports it cannot connect. If I wait too long, I see nothing on the terminal. I was able to connect once and capture some output:

Time: 14:27:51: HDLC recv frame: a0 07 03 03 53 80 d7
Time: 14:27:51: frame type: 0x5
Time: 14:27:51: Process incoming ctrl 53 in state 2
Time: 14:27:51: HDLC_DISC
Time: 14:27:51: hdlcs_run:257 Cleared pending_rsp
Time: 14:27:51: disconnecting
Time: 14:27:51: HDLC send frame: a0 07 03 03 73 82 f6
Time: 14:27:51: hdlcs_run() - 0

In any case, once I am connected to the port, there is no prompt, and no response to <Enter> (or anything else that I have tried...).
On my MS-Windows 7 PC, I do not get a COM port. It simply shows up in "Other devices" with a warning icon because there is no driver installed. I have been unable to locate/install one either by automatic or manual searches. My post to the Adafruit forum has not identified any solution (yet) - Metro M0 Express COM port failure

Should I be able to interact with the terminal? Is there anything I can do to get it to show more output after it is already running?

 

RE: Milli shield

I have upgraded the shield to 1.4.1008 and switched the boot selection to the production version. Now I no longer get a prompt so I cannot do anything more on that console?

Stephen: Yes, that is correct, the prompt goes away on the serial console from the Millishield after you switch the boot selection to the production firmware.

So there is no way to switch back to the other versions? Nor to modify the provisioning info (network ID, country code)?

 

RE: Edge Router

The IoT Edge Router Getting Started Guide states:

Once logged into the IoT Edge Router, you can use tcpdump to monitor traffic across the Itron NAN (on interface tun6 or, for IPv4 traffic only, on interface b4 or eth for the Ethernet side). You can also create shell scripts, Python scripts, applications, and so on. 

I am logged into my router via SSH, but do not find the tcpdump binary. Is it installed in a specific snap that I need to connect to? Or do I need to add it?

 

Thanks again!
.Tim

thammer
Milli dev kit & reference application

RE: Adafruit

In any case, once I am connected to the port, there is no prompt, and no response to <Enter> (or anything else that I have tried...).
...
Should I be able to interact with the terminal? Is there anything I can do to get it to show more output after it is already running?

UPDATE - I left the console connection to the Metro M0 Express and now see that there is a dump of information every once in a while.