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/firmwareapi/pycom/machine/pygate.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ aliases:
6
6
- chapter/firmwareapi/pycom/machine/pygate
7
7
---
8
8
9
-
The Pygate is an 8-channel LoRaWAN gateway. You connect a WiPyor Gpy board to the Pygate and flash a firmware build where the Pygate functionality is enabled. See the [Pygate tutorial](/tutorials/all/pygate) to get started.
9
+
The Pygate is an 8-channel LoRaWAN gateway. Connect a WiPy, Gpy or LoPy4 board to the Pygate and flash the Pygate firmware. See the [Pygate tutorial](/tutorials/all/pygate) to get started.
Copy file name to clipboardExpand all lines: content/firmwareapi/pycom/network/eth.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,12 @@ The ETH class enables the use of an ethernet connection via the PyEthernet board
10
10
11
11
---
12
12
*NOTE* :
13
-
Ethernet support is only available in special Gpy or WiPy firmware builds where this feature has been enabled.
13
+
Ethernet support is only available in the Pygate firmware build.
14
+
15
+
---
16
+
17
+
*NOTE2* :
18
+
The PyEthernet board is connected via SPI bus 3 and GPIO's 17-19 and 21-23. So this bus and pins cannot be used concurrently with ethernet. This also means that on a LoPy4 with Pygate firmware, the LoRa module of the LoPy4 is disabled, since it is also connected via SPI 3. Of course you can still use the LoRa gateway functionality since this uses the LoRa modules on the the Pygate board itself.
Copy file name to clipboardExpand all lines: content/tutorials/all/PyGate.md
+13-10Lines changed: 13 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ The Pygate is an 8-channel LoRaWAN gateway. This page will help you get started
6
6
7
7
To connect your Pygate to a LoRa server, follow these steps:
8
8
9
-
1. Attach a Wipy, or GPy to the Pygate. The RGB LED of the development board should be aligned with the USB port of the Pygate.
9
+
1. Attach a WiPy, GPy or LoPy4 to the Pygate. The RGB LED of the development board should be aligned with the USB port of the Pygate.
10
10
1. Attach the LoRa Antenna to the Pygate.
11
11
1. Flash the Pycom Device with with a firmware build where Pygate functionality is enabled.
12
12
1. Create a `config.json` for your Pygate and upload it.
13
-
1. Create a `main.py` that creates an uplink and runs the Pygate packet fowarder.
13
+
1. Create a `main.py` that creates an uplink (wifi, ethernet or lte) and runs the LoRa packet fowarder.
14
14
1. Run the `main.py`.
15
15
1. Now it is operational. The communication from other LoRa nodes such as a LoPy4 will now reach the gateway and will receive up and downlink via the PyGate.
16
16
1. To stop the Pygate at any time press Ctrl-C on the REPL and run `machine.pygate_deinit()`. It will take a few seconds to stop the gateway tasks and safely power-off the concentrator.
@@ -23,13 +23,16 @@ Make sure you supply a config matching your region (EU868, US915, etc), e.g. htt
23
23
24
24
The following example shows the script and json file to run the Pygate over Wifi connecting to [The Things Network](https://www.thethingsnetwork.org/).
25
25
26
-
* log in to https://console.thethingsnetwork.org/
27
-
* go to Gateways and register a new gateway
28
-
* select "I'm using a legacy packet forwarder"
29
-
* enter a EUI (8 byte hexadecimal value) - also enter this in your `config.json` for `gateway_ID` (Just enter the digits without the "eui-" prefix)
30
-
* select your Frequency Plan
31
-
* select a router - also enter the hostname in your `config.json` for `server_address`
32
-
* enter your wifi SSID and password in `main.py`
26
+
1. log in to https://console.thethingsnetwork.org/
27
+
1. go to Gateways and register a new gateway
28
+
1. select "I'm using a legacy packet forwarder"
29
+
1. make up a EUI (8 byte hexadecimal value) and register it on the TTN website
30
+
1. enter the EUI in your `config.json` under `gateway_ID` (Just enter the hex digits without the "eui-" prefix and without spaces)
31
+
1. select your Frequency Plan
32
+
1. select a router - also enter the hostname in your `config.json` under `server_address`
33
+
1. enter your wifi SSID and password in `main.py`
34
+
1. upload `config.json` and `main.py` and reset the board
35
+
1. you will see how it creates the uplink connection and then start the LoRa GW. It will print out some debug information while it is running. After some initialization it will print "LoRa GW started" and the LED will turn green.
0 commit comments