You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
7
7
author: Lenard George, Ignacio Herrera
8
8
hardware:
@@ -14,28 +14,28 @@ hardware:
14
14
15
15
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.
16
16
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.***
18
18
19
19
## Goals
20
20
21
-
- About LoRaWAN® and The Things Network,
21
+
- About LoRa® technology and The Things Network,
22
22
- About creating a TTN application,
23
23
- How to establish a connection between the Portenta H7 and the TTN.
-[Portenta Vision Shield with LoRa® technology](https://store.arduino.cc/portenta-vision-shield-lora)
29
29
-[Dipole Pentaband antenna](https://store.arduino.cc/antenna) or a UFL Antenna of the H7 (x1)
30
30
-[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)
- An [account](https://console.cloud.thethings.network/) with The Things Network
33
33
34
34
### 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.
36
36
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.
39
39
3. Open the **MKRWANFWUpdate_standalone** sketch from the Arduino IDE menu: **File > Examples > MKRWAN**.
40
40
41
41
4. Upload the sketch.
@@ -49,7 +49,7 @@ To be able to use the LoRa® functionality, we need to first update the firmware
49
49
50
50
## Connecting to the TTN
51
51
52
-
The Portenta Vision Shield - LoRacan 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.
53
53
54
54
### 1. Setting up the Environment
55
55
@@ -78,23 +78,23 @@ After completing these two fields, press the "Create application" button located
78
78
79
79
Let's take a closer look at these sections:
80
80
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.
83
83
-**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.
84
84
-**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.
85
85
86
86
### 3. Configuring the Portenta Vision Shield
87
87
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:
89
89
90
90
- Use the [Arduino Cloud Editor](https://create.arduino.cc/editor)
91
91
- Use the [Arduino IDE](https://www.arduino.cc/en/software), (this is the option this guide will follow)
92
92
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.
94
94
95
95

96
96
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**.
98
98
99
99

100
100
@@ -122,7 +122,7 @@ Before your Portenta H7 can start communicating with the TTN, you need to [regis
122
122
123
123

124
124
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.
126
126
127
127

128
128
@@ -162,18 +162,22 @@ Message sent correctly!
162
162
163
163
## Conclusion
164
164
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.
166
166
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).
168
168
169
169
### Next Steps
170
170
171
171
- Try sending uplink and downlink messages between Portenta and your TTN application with **LoraSendAndReceive** sketch from the MKRWAN library.
172
172
- 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.
174
174
175
175
## Troubleshooting
176
176
177
177
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).
178
178
179
179
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