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/02 12:28]
m.mironiski Added Start guide
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 ===== 
 + 
 +{{:devices:loragw_1.3_bom.zip|BOM}} 
 + 
 +{{:devices:loragw_1.3_gerber_x2.zip|Gerber X2}} 
 + 
 +{{:devices:loragw_1.3_gerber_rs-274x.zip|Gerber RS-274X}}
  
 ===== Start guide ===== ===== Start guide =====
Line 67: Line 75:
 where ''<path/to>'' is path to built or downloaded firmware image and ''<sd_card>'' can be ''sdX'' or ''mmcblkX''. where ''<path/to>'' is path to built or downloaded firmware image and ''<sd_card>'' can be ''sdX'' or ''mmcblkX''.
  
-**WARNING! This will destroy all contents of device you specify!**+<alert type="danger">WARNING! This will destroy all contents of device you specify!</alert>
  
 ==== Board preparation ==== ==== Board preparation ====
Line 90: Line 98:
     password: root     password: root
  
-**It's highly recommended to change the password after first log in.**+<alert type="info">It's highly recommended to change the password after first log in.</alert>
  
 ==== Configuration ==== ==== Configuration ====
Line 138: Line 146:
     grep "gateway_ID" /ttn/local_conf.json     grep "gateway_ID" /ttn/local_conf.json
  
-**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:** +<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     reboot
 +
 +</alert>
  
 === GSM - APN & PIN === === GSM - APN & PIN ===
Line 181: Line 191:
     sync     sync
  
-**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:** +<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     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
 +
 +<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>
  • devices/loragw.txt
  • Last modified: 2021/05/10 14:14
  • by kateryna.kozakova