Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
devices:loragw [2019/01/03 06:59]
m.mironiski Added production files
devices:loragw [2019/06/22 20:26]
piotr.figlarek
Line 21: Line 21:
 {{:devices:loragw_1.3_sch.pdf|Download}} {{:devices:loragw_1.3_sch.pdf|Download}}
  
-{{pdfjs>:devices:loragw_1.3_sch.pdf|LoRa Gateway 1.3}}+{{pdfjs 1000px>:devices:loragw_1.3_sch.pdf|LoRa Gateway 1.3}}
  
 ===== Production files ===== ===== Production files =====
Line 188: Line 188:
 where ''<PIN>'' is your pin e.g. ''1234''. where ''<PIN>'' is your pin e.g. ''1234''.
 Then type command: Then type command:
 +
 +    sync
 +
 +<alert type="info">To apply changes of gateway settings it's necessary to reset the device by turning off and on power supply or typing the following command: 
 +
 +    reboot
 +
 +</alert>
 +
 +=== Registration ===
 +
 +<alert type="info">The gateway is configured to work by default with [[https://www.thethingsnetwork.org/|The Things Network]] but it can works with any LoRaWAN network e.g. [[https://www.loriot.io/|LORIOT]] as well.</alert>
 +
 +**The Things Network**
 +
 +Sign up on [[https://www.thethingsnetwork.org/]] and open [[https://console.thethingsnetwork.org/|console]].
 +
 +{{ :devices:loragw_ttn_console_1.png?600 |}}
 +
 +Choose ''Gateways'' and then ''Register gateway''. Check option //I'm using the legacy packet forwarder// and type the gateway EUI which you own or generated in previous step. Choose frequency plan and router according to your region.
 +
 +{{ :devices:loragw_ttn_console_2.png?600 |}}
 +
 +Register your gateway and restart it. After few minutes you its status should change to ''connected''.
 +
 +{{ :devices:loragw_ttn_console_3.png?600 |}}
 +
 +**Other LoRaWAN network**
 +
 +To work with other LoRaWAN network it's necessary to adjust the gateway configuration.
 +
 +Log into the gateway and edit the configuration file:
 +
 +    vi /ttn/local_conf.json 
 +
 +Find section ''servers'' and add new instance or edit existing one. The gateway can forward packets to maximum 4 servers parallelly.
 +
 +    ...
 +    /* node servers for poly packet server (max 4) */
 +    "servers":
 +    [ { "server_address": "127.0.0.1",
 +        "serv_port_up": 1680,
 +        "serv_port_down": 1681,
 +        "serv_enabled": false },
 +      { "server_address": "router.eu.thethings.network",
 +        "serv_port_up": 1700,
 +        "serv_port_down": 1700,
 +        "serv_enabled": true } ],
 +    ...
 +
 +for example:
 +
 +    ...
 +    /* node servers for poly packet server (max 4) */
 +    "servers":
 +    [ { "server_address": "eu1.loriot.io",
 +        "serv_port_up": 1780,
 +        "serv_port_down": 1780,
 +        "serv_enabled": true },
 +      { "server_address": "router.eu.thethings.network",
 +        "serv_port_up": 1700,
 +        "serv_port_down": 1700,
 +        "serv_enabled": true } ],
 +    ...
 +
 +Save file and type the following command:
  
     sync     sync
  • devices/loragw.txt
  • Last modified: 2021/05/10 14:14
  • by kateryna.kozakova