deploying_lorawan
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
deploying_lorawan [2016/12/21 08:58] – [2.2. Kerlink IoT Station] samer | deploying_lorawan [2017/01/05 10:27] – [2.1. Single Channel Gateway] samer | ||
---|---|---|---|
Line 13: | Line 13: | ||
==== -. Single Channel Gateway ==== | ==== -. Single Channel Gateway ==== | ||
- | The single channel gateway includes a LoRa transmission module (Dragino Shield) connected to a Raspberry Pi (2 or 3). Communication is done over an SPI interface. | + | The single channel gateway includes a LoRa transmission module (Dragino Shield) connected to a Raspberry Pi (2 or 3) as shown in Figure 1. Communication |
- | Start by making the correction connection between the modules: the connection pins are identified in Figures 2 and 3. | + | [{{ : |
+ | |||
+ | In order to assemble the gateway, start by making the wire connections: the connection pins are identified in Figures 2 and 3. | ||
[{{ : | [{{ : | ||
[{{ : | [{{ : | ||
- | Now you can connect | + | Connect |
* Enable SPI on the Raspberry Pi using raspi-config | * Enable SPI on the Raspberry Pi using raspi-config | ||
* Download and unzip the source code: | * Download and unzip the source code: | ||
Line 35: | Line 37: | ||
</ | </ | ||
- | * Compile | + | Compile the packet forwarder: |
<code bash> | <code bash> | ||
- | gcc version 4.6.3 | + | make all |
- | unrecognized command line option ' | + | </ |
+ | |||
+ | For gcc version 4.6.3, a compilation error results in the following warning '' | ||
+ | < | ||
CFLAGS = -std=c++0x -c -Wall -I include/ | CFLAGS = -std=c++0x -c -Wall -I include/ | ||
+ | </ | ||
+ | |||
+ | Now, you need to configure the single channel packet forwarder. This is done in the '' | ||
+ | |||
+ | <file global_config.json> | ||
+ | { | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | " | ||
+ | [ | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | and run the packet forwarder as root. | ||
+ | |||
+ | <code bash> | ||
+ | nohup ./ | ||
</ | </ | ||
==== -. Kerlink IoT Station ==== | ==== -. Kerlink IoT Station ==== | ||
Line 65: | Line 120: | ||
</ | </ | ||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | 3270 root 2548 S /bin/sh ./ | ||
+ | 3288 root 34908 S ./ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | / | ||
+ | |||
+ | [root@Wirgrid_0b03008c demo_gps_loramote]# | ||
+ | pppd (pid 5273) is running... | ||
+ | Session: Rx=58, Tx=163 | ||
+ | Globals: Rx=1130457, Tx=1195592 | ||
+ | Sum: | ||
+ | [root@Wirgrid_0b03008c demo_gps_loramote]# | ||
+ | </ | ||
===== -. Backend ===== | ===== -. Backend ===== |
deploying_lorawan.txt · Last modified: 2021/08/28 09:50 by samer