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 revision
Previous revision
Next revisionBoth sides next revision
deploying_lorawan [2017/01/04 11:13] – [2.1. Single Channel Gateway] samerdeploying_lorawan [2017/01/05 11:44] – [2.1. Single Channel Gateway] samer
Line 15: Line 15:
 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. 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.
  
-[{{ :2017-01-04_11.34.54.jpg?direct&200 |Figure 2. LoRa single channel gateway}}] +[{{ :2017-01-04_11.34.54.jpg?direct&300 |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. In order to assemble the gateway, start by making the wire connections: the connection pins are identified in Figures 2 and 3.
Line 37: Line 37:
 </code> </code>
  
-Now you can compile and run the packet forwarder as root.+Compile the packet forwarder:
 <code bash> <code bash>
 make all make all
-nohup ./single_chan_pkt_fwd & 
 </code> </code>
  
-<codedoc toggle description>+For gcc version 4.6.3, a compilation error results in the following warning ''unrecognized command line option '-std=c++11'''. Replace ''-std=c++11'' by ''-std=c++0x'' in the Makefile and recompile: 
 +<code> 
 +CFLAGS = -std=c++0x -c -Wall -I include/ 
 +</code> 
 + 
 +Now, you need to configure the single channel packet forwarder. This is done in the ''global_conf.json'' configuration file. Particularly, you need to choose the channel, the spreading factor, the pins for SPI communication, and the address of the backend server. Note that you can specify multiple backends for testing purposes. 
 + 
 +<file | global_config.json>
 { {
   "SX127x_conf":   "SX127x_conf":
Line 84: Line 90:
   }   }
 } }
-</codedoc>+</file> 
 + 
 +Finally, you can run the packet forwarder as root!
  
 <code bash> <code bash>
-gcc version 4.6.3 +nohup ./single_chan_pkt_fwd &
-unrecognized command line option '-std=c++11' +
-CFLAGS = -std=c++0x -c -Wall -I include/+
 </code> </code>
 ==== -. Kerlink IoT Station ==== ==== -. Kerlink IoT Station ====
deploying_lorawan.txt · Last modified: 2021/08/28 09:50 by samer