Skip to content

Commit 41f8792

Browse files
authored
Merge pull request #200 from pycom/pb-787-documentation-for-pycom-lora-server
Pb 787 documentation for pycom lora server
2 parents e6b3ba7 + f775d91 commit 41f8792

File tree

15 files changed

+224
-21
lines changed

15 files changed

+224
-21
lines changed

config.toml

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,27 +1180,6 @@ theme = "doc-theme"
11801180
parent = "pybytes@connect"
11811181
weight = 10
11821182

1183-
[[menu.main]]
1184-
name = "Sigfox"
1185-
url = "/pybytes/sigfox/"
1186-
identifier = "pybytes@sigfox"
1187-
parent = "pybytes"
1188-
weight = 30
1189-
1190-
[[menu.main]]
1191-
name = "DevKit contract"
1192-
url = "/pybytes/sigfox/devkit/"
1193-
identifier = "pybytes@sigfox@devkit"
1194-
parent = "pybytes@sigfox"
1195-
weight = 10
1196-
1197-
[[menu.main]]
1198-
name = "Custom contract"
1199-
url = "/pybytes/sigfox/custom/"
1200-
identifier = "pybytes@sigfox@custom"
1201-
parent = "pybytes@sigfox"
1202-
weight = 20
1203-
12041183
[[menu.main]]
12051184
name = "Project Releases"
12061185
url = "/pybytes/releases/"
@@ -1229,6 +1208,48 @@ theme = "doc-theme"
12291208
parent = "pybytes@releases"
12301209
weight = 20
12311210

1211+
[[menu.main]]
1212+
name = "Networks"
1213+
url = "/pybytes/networks/"
1214+
identifier = "pybytes@networks"
1215+
parent = "pybytes"
1216+
weight = 20
1217+
1218+
[[menu.main]]
1219+
name = "Sigfox"
1220+
url = "/pybytes/networks/sigfox/"
1221+
identifier = "pybytes@networks@sigfox"
1222+
parent = "pybytes@networks"
1223+
weight = 20
1224+
1225+
[[menu.main]]
1226+
name = "DevKit contract"
1227+
url = "/pybytes/networks/sigfox/devkit/"
1228+
identifier = "pybytes@networks@sigfox@devkit"
1229+
parent = "pybytes@networks@sigfox"
1230+
weight = 20
1231+
1232+
[[menu.main]]
1233+
name = "Custom contract"
1234+
url = "/pybytes/networks/sigfox/custom/"
1235+
identifier = "pybytes@networks@sigfox@custom"
1236+
parent = "pybytes@networks@sigfox"
1237+
weight = 20
1238+
1239+
[[menu.main]]
1240+
name = "LoRa"
1241+
url = "/pybytes/networks/lora/"
1242+
identifier = "pybytes@networks@lora"
1243+
parent = "pybytes@networks"
1244+
weight = 20
1245+
1246+
[[menu.main]]
1247+
name = "Chirpstack LoRa Server"
1248+
url = "/pybytes/networks/lora/chirpstack/"
1249+
identifier = "pybytes@networks@lora@chirpstack"
1250+
parent = "pybytes@networks@lora"
1251+
weight = 20
1252+
12321253
[[menu.main]]
12331254
name = "Visualise data"
12341255
url = "/pybytes/dashboard/"

content/.DS_Store

-6 KB
Binary file not shown.

content/pybytes/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ In a nutshell, Pybytes is an environment designed to optimise your IoT applicati
3131
* [Getting started with Pybytes](/pybytes/getstarted)
3232
* [Connect your Pycom module to Pybytes](/pybytes/connect)
3333
* [Visualise data from your device](/pybytes/dashboard)
34+
* [LoRa Servers](/pybytes/lora)
3435
*[Integrations with external services](/pybytes/integrations/index.html)

content/pybytes/networks/_index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "Networks"
3+
aliases:
4+
---
5+
6+
Pybytes supports four network types, which you can configure for each device or for a group of devices within a project. The compatible networks are WiFi, LoRa, Sigfox, and LTE CAT M1 / NB1. In this section, a detailed list of the settings for each network has been compiled.
7+
8+
[**Sigfox**](/pybytes/networks/sigfox)
9+
10+
[**LoRa**](/pybytes/networks/lora)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "LoRa"
3+
aliases:
4+
---
5+
6+
## Overview
7+
8+
Pybytes supports LoRa servers from [The Things Network](https://www.thethingsnetwork.org/) and from [ChirpStack](https://www.chirpstack.io/). During the set-up of the LoRa connection to your device, whether with TTN or with ChirpStack, Pybytes will automatically create a user profile on those servers.
9+
10+
Follow the links below for more information about the different LoRa servers.
11+
12+
![TTN Server](/gitbook/assets/pybytes/lora/ttn_logo.svg)
13+
14+
Once a device is created in Pybytes with LoRa network, and the TTN Server is selected, the device is automatically created in TTN server.
15+
16+
For more information check out [The Things Network](https://www.thethingsnetwork.org/docs/)
17+
18+
![ChirpStack](/gitbook/assets/pybytes/lora/chirpstack_logo.png)
19+
20+
Pybytes has its own LoRa Server based on [ChirpStack](https://www.chirpstack.io/). Check out [how to use it](chirpstack).
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
title: "ChirpStack Setup"
3+
aliases:
4+
- chapter/pybytes/networks/lora/chirpstack
5+
---
6+
7+
## Overview
8+
9+
When a LoRa device is added or the LoRa network is configured in Pybytes → Settings -> LoRa, a user profile is automatically created on [ChirpStack](https://loraserver.pycom.io/). This will only happen if there is no pre-existing user profile.
10+
11+
## User profile
12+
13+
After creating a LoRa device or configuring Pybytes to use ChirpStack, you should receive an email with the ChirpStack username and password. Use this for accessing the data on <a href="https://loraserver.pycom.io/"> loraserver.pycom.io</a>.
14+
15+
The basic configurations are made by Pybytes. If you want to overwrite the LoRa settings, use the ChirpStack username and password to do so.
16+
17+
### Basic ChirpStack Settings in Pybytes
18+
19+
**Network-server** - Pycom
20+
21+
You can add your own server in the section Network-servers
22+
23+
![Network-servers](/gitbook/assets/pybytes/lora/screenshots/network_servers.png)
24+
25+
**User** - Value
26+
27+
The User will be created based on the same credentials that are used in Pybytes. This, as well as the Admin status of the user, can be managed in the Org > Users section.
28+
29+
**Organization** - Value (by default)
30+
31+
The Organization Value will be created, based on the same credentials used in Pybytes. This can be changed in the section Org > Settings.
32+
33+
**Service Profile** - Value (by default)
34+
35+
The Service Profile Name is connected to the Organization’s name.
36+
37+
**Device Profiles** - OTAA or ABP
38+
39+
There are two different devices profiles, OTAA or ABP. Select which one you prefer.
40+
41+
**Applications** - Value (by default)
42+
43+
All LoRa devices that have been created in Pybytes and linked to the ChirpStack server will be connected to the ChirpStack app.
44+
45+
**Devices**
46+
47+
All LoRa devices that have been created in Pybytes.
48+
49+
## Gateway
50+
51+
The user should set up their own Gateway in order to communicate with ChirpStack.
52+
53+
![Gateway](/gitbook/assets/pybytes/lora/screenshots/gateway.png)
54+
55+
### How to set up a gateway
56+
57+
1 - Login in ChirpStack (https://loraserver.pycom.io/)
58+
59+
2 - Click on the **Gateway** on the main sidebar
60+
61+
3 - Click on the **Create** button
62+
63+
4 - Fill the form with the information below
64+
65+
**Gateway name**
66+
67+
The name may only contain words, numbers, and dashes.
68+
69+
**Gateway description**
70+
71+
The description of the gateway.
72+
73+
**Gateway ID**
74+
75+
The gateway ID.
76+
77+
**Network-server**
78+
79+
Select the network server that the gateway will connect to. When no network servers are available in the dropdown, make sure a service-profile exists for the organization.
80+
81+
**Gateway-profile**
82+
83+
This is an optional gateway profile that can be assigned to a gateway. This can be used to automatically re-configure the gateway when the LoRa Gateway Bridge is set up so that it manages the packet-forwarder settings.
84+
85+
**Gateway discovery enabled**
86+
87+
When enabled (and LoRa Server is configured with the 'gateway discover' feature enabled), the gateway will send out periodical pings to test its coverage by other gateways in the same network.
88+
89+
**Gateway altitude** (meters) 
90+
91+
When the gateway has an on-board GPS, this value will be set automatically when the network has received statistics from the gateway.
92+
93+
**Gateway location** (set to current location)
94+
95+
For more information check out [ChirpStack official guide](https://www.chirpstack.io/guides/first-gateway-device/#add-a-lora-sup-reg-sup-gateway).

content/pybytes/networks/lora/lora.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "LoRa"
3+
aliases:
4+
- pybytes/lora.html
5+
- pybytes/lora.md
6+
- chapter/pybytes/lora
7+
---

0 commit comments

Comments
 (0)