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/20 11:18] – [2.1. Single Channel Gateway] samer | deploying_lorawan [2017/01/05 11:44] – [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 (the Dragino Shield) connected to a Raspberry Pi (2 or 3). The connection pins are identified in Figures 2 and 3. Communication is done on an SPI communication 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 between the two modules is done over an SPI interface. |
+ | |||
+ | [{{ : | ||
+ | |||
+ | In order to assemble the gateway, start by making the wire connections: | ||
[{{ : | [{{ : | ||
[{{ : | [{{ : | ||
- | After making | + | 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 33: | Line 37: | ||
</ | </ | ||
- | * Compile and run the packet forwarder as root. | + | Compile |
+ | <code bash> | ||
+ | make all | ||
+ | </ | ||
+ | |||
+ | For gcc version 4.6.3, a compilation error results in the following warning '' | ||
+ | < | ||
+ | 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> | ||
+ | { | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | " | ||
+ | [ | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Finally, you can run the packet forwarder as root! | ||
+ | |||
+ | <code bash> | ||
+ | nohup ./ | ||
+ | </ | ||
==== -. Kerlink IoT Station ==== | ==== -. Kerlink IoT Station ==== | ||
+ | |||
+ | < | ||
+ | # activates eth0 at startup | ||
+ | ETHERNET=yes | ||
+ | # claims dhcp request on eth0 | ||
+ | ETHDHCP=yes | ||
+ | |||
+ | # Selector operator APN | ||
+ | GPRSAPN=gprs.touch.com.lb | ||
+ | # Enter pin code if activated | ||
+ | GPRSPIN=0000 | ||
+ | # Update / | ||
+ | GPRSDNS=yes | ||
+ | # PAP authentication | ||
+ | GPRSUSER= | ||
+ | GPRSPASSWORD= | ||
+ | |||
+ | # Bearers priority order | ||
+ | # | ||
+ | BEARERS_PRIORITY=" | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | 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