Skip to content

Commit 84e0d6b

Browse files
committed
Connect Portenta Vision Shield to TTN with LoRa® Technology content update (1 image require attention but could be an exception due TTN)
1 parent 9eaf824 commit 84e0d6b

File tree

1 file changed

+22
-18
lines changed
  • content/hardware/04.pro/shields/portenta-vision-shield/tutorials/connecting-to-ttn

1 file changed

+22
-18
lines changed

content/hardware/04.pro/shields/portenta-vision-shield/tutorials/connecting-to-ttn/content.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Connecting the Portenta Vision Shield to TTN Using LoRa®
2+
title: Connect Portenta Vision Shield to TTN with LoRa® Technology
33
coverImage: assets/vs_ard_things_nw.svg
44
difficulty: intermediate
5-
tags: [Things Network, LoRa, Vision Shield]
5+
tags: [Things Network, LoRa® Technology, Vision Shield]
66
description: This tutorial explains how to connect your Portenta H7 to The Things Network (TTN) using the the Portenta Vision Shield's LoRa® Connectivity feature.
77
author: Lenard George, Ignacio Herrera
88
hardware:
@@ -14,28 +14,28 @@ hardware:
1414

1515
This tutorial explains how to connect your Portenta H7 to The Things Network (TTN) using the the Portenta Vision Shield's LoRa® Connectivity feature. A data communication channel will be enabled between the H7 and a TTN application that will be configured on your TTN console.
1616

17-
***In order to connect your Portenta to the TTN, make sure you are within the range (max. 10 Km) from an available LoRa® Gateway. Indoor gateways will have a much shorter range. It is recommended that you check LoRa® Gateway availability on [The Things Network map](https://www.thethingsnetwork.org/map) before you try this tutorial.***
17+
***In order to connect your Portenta to the TTN, make sure you are within the range (max. 10 Km) from an available LoRa® Gateway. Indoor gateways will have a much shorter range. It is recommended that you check LoRa Gateway availability on [The Things Network map](https://www.thethingsnetwork.org/map) before you try this tutorial.***
1818

1919
## Goals
2020

21-
- About LoRaWAN® and The Things Network,
21+
- About LoRa® technology and The Things Network,
2222
- About creating a TTN application,
2323
- How to establish a connection between the Portenta H7 and the TTN.
2424

2525
### Required Hardware and Software
2626

2727
- [Portenta H7](https://store.arduino.cc/portenta-h7)
28-
- [Portenta Vision Shield - LoRa](https://store.arduino.cc/portenta-vision-shield-lora)
28+
- [Portenta Vision Shield with LoRa® technology](https://store.arduino.cc/portenta-vision-shield-lora)
2929
- [Dipole Pentaband antenna](https://store.arduino.cc/antenna) or a UFL Antenna of the H7 (x1)
3030
- [Arduino IDE 1.8.10+](https://www.arduino.cc/en/software), [Arduino IDE 2.0+](https://www.arduino.cc/en/software), or the [Arduino Cloud Editor](https://create.arduino.cc/editor)
3131
- [USB-C® cable](https://store.arduino.cc/products/usb-cable2in1-type-c)
3232
- An [account](https://console.cloud.thethings.network/) with The Things Network
3333

3434
### Updating the LoRa® Module Firmware
35-
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.
35+
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.
3636

37-
1. Connect the Portenta H7 and the Portenta Vision Shield - LoRa to your computer and open the Arduino IDE.
38-
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.
37+
1. Connect the Portenta H7 and the Portenta Vision Shield - LoRa® to your computer and open the Arduino IDE.
38+
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 establish LoRa® connectivity.
3939
3. Open the **MKRWANFWUpdate_standalone** sketch from the Arduino IDE menu: **File > Examples > MKRWAN**.
4040

4141
4. Upload the sketch.
@@ -49,7 +49,7 @@ To be able to use the LoRa® functionality, we need to first update the firmware
4949

5050
## Connecting to the TTN
5151

52-
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 application 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, you need 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.
52+
The Portenta Vision Shield with LoRa® technology 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 application 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 with LoRa technology to communicate with a TTN application. As stated before, to be able to follow this guide, you need 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.
5353

5454
### 1. Setting up the Environment
5555

@@ -78,23 +78,23 @@ After completing these two fields, press the "Create application" button located
7878

7979
Let's take a closer look at these sections:
8080

81-
- **Application Overview**: in order to use this app, you will need the Application ID and a device specific AppKey. An EUI is a globally unique identifier for networks, gateways applications and devices. The EUIs are used to identify all parts of the LoRaWAN® inside the backend server.
82-
- **End devices**: here you can see and manage all the associated devices (e.g. your Portenta H7 with Portenta Vision Shield - LoRa, Arduino MKR WAN 1300 or MKR WAN 1310), or proceed with the registration of a new one. Registering a new device lets you generate an AppEUI and an AppKey.
81+
- **Application Overview**: in order to use this app, you will need the Application ID and a device specific AppKey. An EUI is a globally unique identifier for networks, gateways applications and devices. The EUIs are used to identify all parts of the LoRa®-based network inside the backend server.
82+
- **End devices**: here you can see and manage all the associated devices (e.g. your Portenta H7 with Portenta Vision Shield with LoRa® technology, Arduino MKR WAN 1300 or MKR WAN 1310), or proceed with the registration of a new one. Registering a new device lets you generate an AppEUI and an AppKey.
8383
- **Collaborators**: here you can see and manage all the app collaborators, to integrate with other collaborative platforms or to manage access rights to the app with other TTN registered profiles.
8484
- **API keys**: here you can create an API key, it is the most sensible information. It is basically the key to gain access to your app, so keep it safe.
8585

8686
### 3. Configuring the Portenta Vision Shield
8787

88-
It iss now time to connect your Portenta H7 and Portenta Vision Shield - LoRa to TTN. You will need to upload code to the board, so, as you probably already know, there are two options:
88+
It iss now time to connect your Portenta H7 and Portenta Vision Shield with LoRa® technology to TTN. You will need to upload code to the board, so, as you probably already know, there are two options:
8989

9090
- Use the [Arduino Cloud Editor](https://create.arduino.cc/editor)
9191
- Use the [Arduino IDE](https://www.arduino.cc/en/software), (this is the option this guide will follow)
9292

93-
Plug the Portenta Vision Shield - LoRa to the Portenta H7 and them to your PC through the USB port. Be sure to have selected the right board "Arduino Portenta H7 (M7 core)" and the right port.
93+
Plug the Portenta Vision Shield with LoRa® technology to the Portenta H7 and them to your PC through the USB port. Be sure to have selected the right board "Arduino Portenta H7 (M7 core)" and the right port.
9494

9595
![Select port M7 Core](assets/vs_ard_select_port.png)
9696

97-
The LoRa® module on the Portenta Vision Shield - LoRa can be accessed by using the [MKRWAN library](https://github.com/arduino-libraries/MKRWAN)(if you cannot find it in your examples list, you can go to **Tools > Library Manager** and type "MKRWAN library" to install it). This library provides all the APIS to communicate with LoRa® and LoRaWAN® networks and can be installed from the library Manager. The first code you need to upload and run is from the **MKRWAN** library, and its name is **FirstConfiguration**.
97+
The LoRa® module on the Portenta Vision Shield with LoRa technology can be accessed by using the [MKRWAN library](https://github.com/arduino-libraries/MKRWAN)(if you cannot find it in your examples list, you can go to **Tools > Library Manager** and type "MKRWAN library" to install it). This library provides all the APIS to establish LoRa connectivity and can be installed from the library Manager. The first code you need to upload and run is from the **MKRWAN** library, and its name is **FirstConfiguration**.
9898

9999
![Upload code to IDE](assets/vs_ard_select_example.png)
100100

@@ -122,7 +122,7 @@ Before your Portenta H7 can start communicating with the TTN, you need to [regis
122122
123123
![Registering a Device](assets/vs_ard_ttn_click_register.png)
124124
125-
On the registration page, first you have to fill in information about your board. Select brand Arduino SA, and Portenta Vision Shield - LoRa as the model. Hardware and firmware versions will automatically be set to the newest ones. Then set your preferred region.
125+
On the registration page, first you have to fill in information about your board. Select brand Arduino SA, and Portenta Vision Shield with LoRa® technology as the model. Hardware and firmware versions will automatically be set to the newest ones. Then set your preferred region.
126126
127127
![Entering the device EUI](assets/vs_ard_ttn_register_device_1.png)
128128
@@ -162,18 +162,22 @@ Message sent correctly!
162162
163163
## Conclusion
164164
165-
If you receive this message, you have managed to configure the Portenta H7 and the Portenta Vision Shield - LoRa on TTN.
165+
If you receive this message, you have managed to configure the Portenta H7 and the Portenta Vision Shield with LoRa® technology on TTN.
166166
167-
You have retrieved the device EUI, used it to register the device in the TTN console, and programmed the board using the data provided by TTN. Now, you can send data over the LoRa® network which can be viewed from anywhere in the world (as long as we have an Internet connection and your device is in the range of a TTN gateway).
167+
You have retrieved the device EUI, used it to register the device in the TTN console, and programmed the board using the data provided by TTN. Now, you can send data over the LoRa®-based network which can be viewed from anywhere in the world (as long as we have an Internet connection and your device is in the range of a TTN gateway).
168168
169169
### Next Steps
170170
171171
- Try sending uplink and downlink messages between Portenta and your TTN application with **LoraSendAndReceive** sketch from the MKRWAN library.
172172
- Experiment your board's capabilities with OpenMV and the examples from the dedicated library for Arduino. You can continue with [this tutorial](https://docs.arduino.cc/tutorials/portenta-h7/getting-started-openmv-micropython) from the Arduino Documentation site.
173-
- Combine LoRaWAN® protocol with an OpenMV example to develop your own IoT application. Take advantage of the board's camera to detect, filter, classify images, read QR codes or more.
173+
- Combine LoRa® protocol with an OpenMV example to develop your own IoT application. Take advantage of the board's camera to detect, filter, classify images, read QR codes or more.
174174
175175
## Troubleshooting
176176
177177
The most common issue is that the device cannot connect to a TTN gateway. Again, it is a good idea to check if you have coverage in the area you are conducting this tutorial, by checking out [this map](https://www.thethingsnetwork.org/map).
178178
179179
If you are within good range of a gateway, you should also try to move your device and antenna to a window, and even hold it out the window and move it around. This has proven successful on numerous accounts, as the signal can travel less obstructed.
180+
181+
## Trademark Acknowledgments
182+
183+
- **LoRa®** is a registered trademark of Semtech Corporation.

0 commit comments

Comments
 (0)