Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
Merged
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion content/tutorials/portenta-h7/vs-ard-ttn/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@ This tutorial explains how to connect your Portenta H7 to The Things Network (TT
- USB C cable (either USB A to USB C or USB C to USB C)
- An [account](https://account.thethingsnetwork.org/users/login) with The Things Network

### Updating the LoRa® Module Firmware
To be able to use the LoRa® functionality, we need to first update the firmware on the LoRa® modem. This can be done through Arduino IDE by running a sketch included in the examples from the MKRWAN library.

1. Connect the Portenta H7 and the Portenta Vision Shield to your computer and open the Arduino IDE.
2. Install/update the **MKRWAN** library from Arduino IDE menu **Tools > Manage Libraries**. Type "MKRWAN" to find the library and click 'Install' or 'Update' if necessary. This library provides all the APIs to communicate with LoRa® and LoRaWAN® networks.
3. Open the **MKRWANFWUpdate_standalone** sketch from the Arduino IDE menu: **File > Examples > MKRWAN**.

4. Upload the sketch.


![Finding the sketch](assets/vs_ard_ttn_standalone.png)

5. Open the serial monitor and wait for the update to be confirmed.

![Serial Monitor](assets/vs_ard_ttn_serial.png)

## Connecting to the TTN

The Portenta Vision Shield - LoRa® can be connected to the TTN and can transmit data to other devices connected to this network through a secure channel. This channel is nothing but an applicaiton on the TTN network dedicated for your board. In this tutorial, you will be guided through a step-by-step process of setting up your Portenta board and the Vision Shield LoRa® to communicate with a TTN application. As stated before, to be able to follow this guide, to be under coverage of one of the TTN gateways. You can check for [the coverage](https://www.thethingsnetwork.org/map) now if you have not done so yet.
Expand Down Expand Up @@ -156,4 +172,4 @@ If we are within good range of a gateway, we should also try to move our device

**Authors:** Lenard George, Ignacio Herrera
**Reviewed by:** Jose Garcia, Linnea Åkerberg [2021-02-02]
**Last revision:** Sebastian Romero [2021-02-05]
**Last revision:** Sebastian Romero [2021-02-05]