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
Copy file name to clipboardExpand all lines: content/hardware/04.pro/shields/portenta-vision-shield/tutorials/connecting-to-ttn/content.md
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ hardware:
14
14
15
15
This tutorial explains how to connect your Portenta H7 to The Things Network (TTN) using the the 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
21
- About LoRaWAN® and The Things Network,
22
22
- About creating a TTN application,
23
-
- How to establish a connection between the H7 and the TTN,
23
+
- How to establish a connection between the Portenta H7 and the TTN.
24
24
25
25
### Required Hardware and Software
26
26
@@ -43,27 +43,27 @@ To be able to use the LoRa® functionality, we need to first update the firmware
43
43
44
44

45
45
46
-
5. Open the serial monitor and wait for the update to be confirmed.
46
+
5. Open the Serial Monitor and wait for the update to be confirmed.
47
47
48
48

49
49
50
50
## Connecting to the TTN
51
51
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, 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 - 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.
53
53
54
54
### 1. Setting up the Environment
55
55
56
-
Start by going [here](https://console.cloud.thethings.network/). First choose your region. Next, sign in with your The Things Network account. If you don't have an account, create a new one on the login page. Then fill all the required fields to complete a new registration.
56
+
Start by going [here](https://console.cloud.thethings.network/). First choose your region. Next, sign in with your The Things Network account. If you do not have an account, create a new one on the login page. Then fill all the required fields to complete a new registration.
57
57
58
58

59
59
60
60
### 2. Creating an App on TTN
61
61
62
-
Once you have created an account with TTN, you need to create a TTN [application](https://www.thethingsnetwork.org/docs/applications/). An application provides a way to aggregate data from different devices, and then use these data with other 3rd party integrations. After signing in, click on **Create an application**, or **Go to applications** if you already have one created.
62
+
Once you have created an account with TTN, you need to create a TTN [application](https://www.thethingsnetwork.org/docs/applications/). An application provides a way to aggregate data from different devices, and then use these data with other 3rd party integrations. After signing in, click on **Create an application**, or **Go to applications** if you already have created one.
63
63
64
64

65
65
66
-
Here you'll have a list of all your applications. Now create your first app by pressing the **Create an application** button.
66
+
Here you will have a list of all your applications. Now create your first app by pressing the **Create an application** button.
67
67
68
68
You have now to fill only the first two fields:
69
69
@@ -78,14 +78,14 @@ 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'll 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.
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
82
-**End devices**: here you can see and manage all the associated devices (e.g. your Portenta H7 with 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.
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
-
-**API keys**: here you can create an API key, it's the most sensible information. It is basically the key to gain access to your app, so keep it safe.
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
+
-**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 Vision Shield
87
87
88
-
It's now time to connect your Portenta H7 and Vision Shield - LoRa® to TTN. You'll 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 Vision Shield - LoRa® 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 Web 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)
@@ -94,7 +94,7 @@ Plug the Portenta Vision Shield - LoRa® to the Portenta H7 and them to your PC
94
94
95
95

96
96
97
-
The LoRa® module on the Vision Shield - LoRa® can be accessed by using the [MKRWAN library](https://github.com/arduino-libraries/MKRWAN)(if you can't 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 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**.
98
98
99
99

100
100
@@ -106,23 +106,23 @@ The only line you may need to change before uploading the code is the one that s
106
106
```
107
107
***Consider that in Australia the boards connect correctly to TTN gateways on AS923 frequencies; AU915 frequencies requires the selection of sub band 2, not yet implemented in the firmware.***
108
108
109
-
Once you have added to the sketch the frequency according to your country, you can upload it to the board. Then, once the upload is completed open the Serial Monitor. The following details will show:
109
+
Once you have added to the sketch the frequency according to your country, you can upload it to the board. Then, when the upload is completed, open the Serial Monitor. The following details will show up:
110
110
111
111
```
112
112
Your module version is: ARD-078 1.2.1
113
113
Your device EUI is: a8xxxxxxxxxxxxxx
114
114
Are you connecting via OTAA (1) or ABP (2)?
115
115
```
116
116
117
-
In order to select the way in which the board is going to connect with TTN (OTAA or ABP) we need to configure it on the TTN portal. We will see which option we should select in the following steps.
117
+
In order to select the way in which the board is going to connect with TTN (OTAA or ABP), you need to configure it on the TTN portal. You will see which option you should select in the following steps.
118
118
119
119
### 4. Registering the Portenta on TTN
120
120
121
-
Before your Portenta H7 can start communicating with the TTN you need to [register](https://www.thethingsnetwork.org/docs/devices/registration.html) the board with an application. Go back to the TTN portal and scroll to **End devices** section on your Application dashboard, then click **Add end device**.
121
+
Before your Portenta H7 can start communicating with the TTN, you need to [register](https://www.thethingsnetwork.org/docs/devices/registration.html) the board with an application. Go back to the TTN portal and scroll to **End devices** section on your Application dashboard, then click **Add end device**.
122
122
123
123

124
124
125
-
On the registration page, first we have to fill in information about our 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 - LoRa® 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
@@ -144,7 +144,7 @@ Once your board has been registered you can send information to TTN. Let's come
144
144
- The Application EUI
145
145
- The App Key.
146
146
147
-
Lets start by making a connection through the OTAA. Enter "1" in the Serial Monitor input box and press ENTER. Then, find the EUI and the App key from TTN **Device Overview** page. You can read more into OTA vs ABP activation mode [here](https://www.thethingsnetwork.org/docs/devices/registration.html).
147
+
Lets start by making a connection Over-The-Air (OTA). Enter "1" in the Serial Monitor input box and press ENTER. Then, find the EUI and the App key from TTN **Device Overview** page. You can read more into OTA vs ABP activation mode [here](https://www.thethingsnetwork.org/docs/devices/registration.html).
148
148
149
149
```
150
150
Your module version is: ARD-078 1.1.9
@@ -162,18 +162,18 @@ 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 Vision Shield - LoRa® on the TTN.
165
+
If you receive this message, you have managed to configure the Portenta H7 and the Vision Shield - LoRa® on TTN.
166
166
167
-
We 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, we 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 our device is in range from 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® 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
-
- Experiment your board's capabilities with OpenMV and the examples from the dedicated library for Arduino. You can continue with [this tutorial](https://www.arduino.cc/pro/tutorials/portenta-h7/por-openmv-bt) from the Arduino Pro site.
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
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.
174
174
175
175
## Troubleshooting
176
176
177
-
The most common issue is that the device cannot connect to a TTN gateway. Again, it is a good idea to check if we have coverage in the area we are conducting this tutorial, by checking out [this map](https://www.thethingsnetwork.org/map).
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
-
If we are within good range of a gateway, we should also try to move our 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.
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.
0 commit comments