Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
devices:loragw [2018/12/31 13:05] m.mironiski Initial version - features & schematics |
devices:loragw [2021/05/10 14:14] (current) kateryna.kozakova [LoRa Gateway] |
||
---|---|---|---|
Line 9: | Line 9: | ||
* LoRaWAN Concentrator 868MHz ([[https:// | * LoRaWAN Concentrator 868MHz ([[https:// | ||
- | * Ethernet 10/100 ([[http:// | + | * Ethernet 10/100 ([[https:// |
* 4G LTE modem ([[https:// | * 4G LTE modem ([[https:// | ||
* GNSS/GPS ([[https:// | * GNSS/GPS ([[https:// | ||
Line 21: | Line 21: | ||
{{: | {{: | ||
- | {{pdfjs>: | + | {{pdfjs |
+ | |||
+ | ===== Production files ===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Start guide ===== | ||
+ | |||
+ | ==== Firmware ==== | ||
+ | |||
+ | There are two ways to get the firmware: | ||
+ | * download the image, | ||
+ | * build. | ||
+ | |||
+ | === Image === | ||
+ | |||
+ | //Available soon.// | ||
+ | |||
+ | === Build === | ||
+ | |||
+ | Download and extract the [[https:// | ||
+ | |||
+ | wget https:// | ||
+ | tar xf buildroot-2018.08.tar.gz | ||
+ | |||
+ | Clone [[https:// | ||
+ | |||
+ | git clone https:// | ||
+ | |||
+ | Configure the buildroot: | ||
+ | |||
+ | cd buildroot-2018.08 | ||
+ | make BR2_EXTERNAL=< | ||
+ | |||
+ | where ''< | ||
+ | |||
+ | Build the firmware: | ||
+ | |||
+ | make all | ||
+ | |||
+ | After successful build microSD card image '' | ||
+ | |||
+ | ==== Bootable microSD card ==== | ||
+ | |||
+ | After getting the firmware, flash a microSD card with '' | ||
+ | |||
+ | sudo dd if=< | ||
+ | |||
+ | where ''< | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | ==== Board preparation ==== | ||
+ | |||
+ | * put flashed microSD card into the socket on the board, | ||
+ | * connect an Ethernet cable and/or put your SIM card into the socket under the LoRa iC880A module, | ||
+ | * connect 868MHz antenna to the u.fl connector on the LoRa module (see [[https:// | ||
+ | * connect GSM antenna to '' | ||
+ | * connect GPS antenna to '' | ||
+ | * connect 12V power supply to the '' | ||
+ | |||
+ | ==== Terminal connection ==== | ||
+ | |||
+ | There are two ways to connect to a gateway: | ||
+ | |||
+ | - Via SSH (if the IP address is known) | ||
+ | - Via USB< | ||
+ | |||
+ | Log in as: | ||
+ | |||
+ | user: root | ||
+ | password: root | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | ==== Configuration ==== | ||
+ | |||
+ | To configure your device it's necessary to edit few files with embedded '' | ||
+ | |||
+ | === Gateway EUI === | ||
+ | |||
+ | In you own your EUI and want to assign it to the gateway follow point 1. If not follow point 2. | ||
+ | |||
+ | **1. Owned EUI** | ||
+ | |||
+ | Log into the gateway and edit the configuration file: | ||
+ | |||
+ | vi / | ||
+ | |||
+ | Overwrite the '' | ||
+ | |||
+ | ... | ||
+ | " | ||
+ | " | ||
+ | /* Devices */ | ||
+ | ... | ||
+ | |||
+ | Save the file and then run the following command: | ||
+ | |||
+ | sync | ||
+ | |||
+ | **2. Generate EUI** | ||
+ | |||
+ | Log into the gateway and type the following command: | ||
+ | |||
+ | / | ||
+ | |||
+ | Response should looks like following: | ||
+ | |||
+ | Gateway_ID set to <EUI> in file local_conf.json | ||
+ | |||
+ | Then run the following command: | ||
+ | |||
+ | sync | ||
+ | |||
+ | **3. Check EUI** | ||
+ | |||
+ | To see currently set Gateway EUI run the following command: | ||
+ | |||
+ | grep " | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | reboot | ||
+ | |||
+ | </ | ||
+ | |||
+ | === GSM - APN & PIN === | ||
+ | |||
+ | //This paragraph consists information how to set up the Internet connection over the GSM module. If you want to use only Ethernet link you don't need to follow this part.// | ||
+ | |||
+ | **1. APN** | ||
+ | |||
+ | Open the '' | ||
+ | |||
+ | vi / | ||
+ | |||
+ | edit the last string (default value is '' | ||
+ | |||
+ | AT+CGDCONT=1," | ||
+ | |||
+ | Save the file and then type: | ||
+ | |||
+ | sync | ||
+ | |||
+ | **2. PIN** | ||
+ | |||
+ | //If your SIM card doesn' | ||
+ | |||
+ | Open the '' | ||
+ | |||
+ | vi / | ||
+ | |||
+ | change the default string: | ||
+ | |||
+ | AT | ||
+ | |||
+ | to the following: | ||
+ | |||
+ | AT+CPIN=< | ||
+ | |||
+ | where ''< | ||
+ | Then type command: | ||
+ | |||
+ | sync | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | reboot | ||
+ | |||
+ | </ | ||
+ | |||
+ | === Registration === | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | **The Things Network** | ||
+ | |||
+ | Sign up on [[https:// | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Choose '' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Register your gateway and restart it. After few minutes you its status should change to '' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | **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 / | ||
+ | |||
+ | Find section '' | ||
+ | |||
+ | ... | ||
+ | /* node servers for poly packet server (max 4) */ | ||
+ | " | ||
+ | [ { " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ... | ||
+ | |||
+ | for example: | ||
+ | |||
+ | ... | ||
+ | /* node servers for poly packet server (max 4) */ | ||
+ | " | ||
+ | [ { " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ... | ||
+ | |||
+ | Save file and type the following command: | ||
+ | |||
+ | sync | ||
+ | |||
+ | <alert type=" | ||
+ | |||
+ | reboot | ||
+ | |||
+ | </ |