wikiroute

networking recipes

User Tools

Site Tools


deploying_lorawan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
deploying_lorawan [2016/12/21 13:58] – [2.2. Kerlink IoT Station] samerdeploying_lorawan [2017/01/04 10:52] – [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 between the two modules is done over an SPI interface.
  
-Start by making the correction connection between the modules: the connection pins are identified in Figures 2 and 3.+[{{ :2017-01-04_11.34.54.jpg?direct&200 |Figure 2. LoRa single channel gateway}}]  
 + 
 +In order to assemble the gateway, start by making the wire connections: the connection pins are identified in Figures 2 and 3.
 [{{ :schema-single-channel-pi3.png?direct&300 |Figure 2. Dragino pin mapping}}] [{{ :schema-single-channel-pi3.png?direct&300 |Figure 2. Dragino pin mapping}}]
 [{{ :schema-pins-pi3.png?direct&300 |Figure 3. Raspberry pi 3 pins}}] [{{ :schema-pins-pi3.png?direct&300 |Figure 3. Raspberry pi 3 pins}}]
  
-Now you can connect the Raspberry Pi to the Internet and install the packet forwarding software. The source code of the single channel packet forwarder is available on: [[https://github.com/samerlahoud/single_chan_pkt_fwd]]. In order to install it, you need to:+Connect the Raspberry Pi to the Internet and install the packet forwarding software. The source code of the single channel packet forwarder is available on: [[https://github.com/samerlahoud/single_chan_pkt_fwd]]. In order to install it, you need to:
   * 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:
 </code> </code>
  
-  * Compile and run the packet forwarder as root.+Now you can compile and run the packet forwarder as root. 
 +<code bash> 
 +make all 
 +nohup ./single_chan_pkt_fwd & 
 +</code> 
 + 
 +<file> 
 +
 +  "SX127x_conf": 
 +  { 
 +    "freq": 868100000, 
 +    "spread_factor": 7, 
 +    "pin_nss": 6, 
 +    "pin_dio0": 7, 
 +    "pin_rst": 0, 
 +    "pin_led1":
 +  }, 
 +  "gateway_conf": 
 +  { 
 +    "ref_latitude": 33.86576536772, 
 +    "ref_longitude": 35.56378662935, 
 +    "ref_altitude": 165, 
 + 
 +    "name": "ESIB SC Gateway", 
 +    "email": "cimti@usj.edu.lb", 
 +    "desc": "Dragino Single Channel Gateway on RPI", 
 + 
 +    "servers": 
 +    [ 
 +      { 
 +        "address": "router.eu.thethings.network", 
 +        "port": 1700, 
 +        "enabled": true 
 +      }, 
 +      { 
 +        "address": "212.98.137.194", 
 +        "port": 1700, 
 +        "enabled": true 
 +      }, 
 +      { 
 +        "address": "172.17.17.129", 
 +        "port": 1700, 
 +        "enabled": false 
 +      } 
 +    ] 
 +  } 
 +
 +</file>
  
 <code bash> <code bash>
deploying_lorawan.txt · Last modified: 2021/08/28 09:50 by samer