Connect as shown at the end of this document to ST-Link programmer/Nucleo board as shown earlier in this thread.
I have had to connect battery, USB cable and the programmer for the flashing to be successful, did not work without the USB cable and only on battery
Use the ST-Link flasher utility by selecting Program & Verify and select the file from the downloaded software package: /STM32CubeFunctionPack_LORA1_V2.0.1/Projects/STEVAL-STRKT01/Applications/LoRa/Asset_Tracker/Binary/STEVAL_STRKT01.bin
Create an application on TTN and register a new node. I have opted for a TTN generated DevEUI, you could get one from the tracker as well.
Provision the tracker through the serial connection (tested under Windows and Linux, just plug in and port should appear) with the following commands (copy/paste replacing xxxxx with string from TTN console):
TTN provided DevEUI, likely you could use board provided one, but need to load different FW to find it out or observe on GW
!deviceeui-xxxxxx
TTN provided Application EUI
!joineui-xxxxxx
TTN provided App key
!appkey-xxxxxx
TTN provided App key
!ntwkkey-xxxxxx
Issue a reset to use this keys
!sysreset
On TTN under payload formats configure the Cayenne LPP and you will get decoded data.
If all has gone well, the tracker should be connected and sending data.
I finally received my TTIN gateway, and got my first connection.
So thanks again, effesud, that was a good move.
Now I need to decode the payload. I suppose that there is something for that, but the doc is not very clear.
After a while I understood that one has just to check in
Cayenne LPP in Applications -> Payload Formats,
and everything is automatic as it ahs been properly encoded
in main.c, lines 1319 – 1363
Note that this is the same module as on the DISCO-L072CZ-LRWAN1 board so compiling for that target from Mbed CLI / Online Compiler should give you a binary that can also run Mbed OS on this module. There seem to be drivers for the GNSS module as well from ST: TeseoLocation.
I have received my TTIG, and I am experimenting with a
STEVAL-STRK01, sending a message every minute, but I see that several packets are lost.
Packets are received more like every 2 mn.
And more important, after a while (33 packets) everything is stalled.
I see… ok, TTIG is working fine (here) so it must be your node (code) -is the green led flashing when its no longer forwarding ? -are you moving around with the node ?
No. There must be something else wrong with you code to cause this.
My TTIG has been running uninterrupted for a couple of days receiving data from several nodes without any issue. If a reset of just the node makes things come alive again the error is on the node, not TTIG. If you need to reset TTIG as well it might be an issue with the gateway, but given the information available at this time that seems unlikely to me.
Thanks Jac, this was helpful.
I have set up another node ( again a STEVAL-STRKT01)
As it looked fine, I have also set up a third one and flash again the first one.
Now it seems that everything is OK.
At least it has been running with no problems for more than 3 hours.
which has never been the case before. I will let it run as such for a longer time to test
the devices.
I need now to increase the range.
How do you change the coding rate (coding_rate) on the STRKT01 ?
I have already set the data_rate to the lowest possible :
To set the data rate, have a look at the “!loradr” command via USB to set the LoRa Data Rate and “?platformstatus” to double check. Restart the device after this procedure.
You can also change LORAWAN_DEFAULT_DATA_RATE in the main.c and send the “!defaultsettings” to use this new setting. Restart the device after this procedure.