RAK5146 WisLink LoRaWAN Concentrator Quick Start Guide
Follow this guide to get started with the RAK5146 WisLink LPWAN Concentrator. Before starting, complete the RAK5146 Installation Guide.
Access the Gateway
There are two ways to connect to your RAK5146 WisLink LPWAN Concentrator setup.
Before powering the Raspberry Pi 3B+ or 4, install the LoRa and GPS antennas. Not doing so might damage the boards.
1. Wi-Fi AP Mode
By default, the Gateway will work in Wi-Fi AP mode, which means that you should be able to find an SSID named RAKwireless_XXXX on the Wi-Fi network list, for example:
Figure 1: RAKWireless Access PointConnect to this Wi-Fi SSID using "rakwireless" as the default password. The default IP address of the gateway's Wi-Fi is 192.168.230.1. Make note of this IP address, as it will be needed to connect via SSH.
There is no need to configure the IP address of your PC, as it will be automatically assigned by the DHCP server.
2. Via the Ethernet Port on the Raspberry Pi
You can also connect your PC to the gateway using an Ethernet cable. By default, the IP address of the gateway’s Ethernet interface is 192.168.10.10, so you need to set the IP address of your PC’s Ethernet to the same network segment, for example, 192.168.10.20.
- To do this, in Windows, go to Control Panel > Network and Internet > Network and Sharing Center and click Ethernet.
Figure 1: Network and Sharing Center- Click Properties, then choose Internet Protocol Version 4 (TCP/IPv4).
Figure 1: Ethernet Properties- By default, the PC will obtain an IP address automatically. Click the option Use the following IP Address and enter the IP address:
192.168.10.20and press OK.
Figure 1: TCP/IPv4 PropertiesNow, you should be able to access your gateway from your PC successfully using the IP address 192.168.10.10through SSH.
Log Into the Gateway
1. Windows OS
Secure Shell (SSH) is typically used to log in to a remote machine and execute commands. There are a lot of free and good SSH Clients out there namely Putty, BitVise SSH Client, MobaXterm and many more. Feel free to choose one that fits your needs, but this guide will use Putty.
Figure 1: Putty Software for SSH in Windows- If you have connected to the gateway through Wi-Fi AP Mode, the IP address is
192.168.230.1. - If you have connected to the gateway through Ethernet, the IP address is
192.168.10.10. - You will be prompted to enter the username and password. The default username and password are provided below:
- Username:
pi - Password:
raspberry
- Username:
Figure 1: Command line after login2. macOS
Open the macOS Terminal. Launch the Terminal application, which is found in the /Applications/Utilities/ directory. You can also launch it from Spotlight, press Command + Spacebar, type Terminal, and then return.
Figure 1: Open the Terminal in macOSOpen the macOS terminal. Enter root mode by typing the following command: sudo -i.
Figure 1: SSH in macOS- If you are not in root mode, enter
ssh pi@192.168.230.1in the terminal to log in to the gateway, the default password is "raspberry". - If you connect your PC with the gateway through Ethernet Cable, enter
ssh pi@192.168.10.10, the default password is "raspberry".
Now, you have successfully logged into the gateway via SSH, as shown in Figure 11.
Figure 1: Log-in Successful Notification3. Linux OS
If the OS of your PC is Linux, you should do the same as the macOS, except for the root mode.
Product Configuration
Configure the Gateway
- Assuming you have successfully logged into your gateway using SSH. Enter the following command in the command line:
sudo gateway-config
- Then, you will see a page similar to the one shown in Figure 12.
Figure 1: Configuration options for the gateway- Set pi password: Used to set or change the password of the gateway.
- Set up RAK Gateway Channel Plan: Used to configure the operating frequency of the gateway and the LoRaWAN Server it will connect with.
- Restart packet-forwarder: Used to restart the LoRa packet forwarding process.
- Edit packet-forwarder Config: Used to open and manually edit LoRaWAN parameters in the
global_conf.jsonfile. - Configure WIFI: Used to configure the Wi-Fi settings for network connections.
- Configure LAN: Used to configure the Ethernet adapter settings.
A unique ID, also known as the Gateway EUI, will be generated for the gateway. This ID is highlighted in red in Figure 12 and is essential for registering the gateway with any LoRa Network Server (e.g., TTN, ChirpStack).
There is also another way to get your Gateway ID, just enter the command below in the command line:
sudo gateway-version
Figure 1: Gateway ID using the command lineSet a New Password for the Gateway
It is a good security practice to change the default password "raspberry" which is the same on all Raspberry Pi devices.
- Choose the 1 Set pi password option referred on Figure 14.
Figure 1: Set Pi Password- Press Yes and you will be asked to enter your new password twice then press Enter.
Figure 1: Confirm Password ChangeOnce the password is successfully changed, a success message will appear.
Figure 1: Successful Password ChangeSet Up RAK Gateway Channel Plan
This menu allows you to select your LoRa frequency band and one of the two available Networks Server options.
- Choose option 2 Setup RAK Gateway LoRa concentrator.
Figure 1: Choose Setup RAK Gateway LoRa concentrator- Select one of two supported LoRa servers: TTN or ChirpStack.
Server is TTN
Figure 1: Server Is TTN- The Things Network (TTN): If you choose TTN as the LoRa Server, you will see the following page. Visit the LoRa Alliance Regional Parameters for more information on your local TTN frequency plan. This will allow you to choose the correct plan.
Figure 1: Select the TTN Channel PlanAfter choosing the correct frequency, the success message will appear as shown in Figure 20.
Figure 1: Successfully Changed the FrequencyServer is Chirpstack
Figure 1: Server Is ChirpstackIf you choose Chirpstack as your LoRa Server, you will see the following page with two options available:
-
ChirpStack Channel Plan Configuration: Used to configure your Regional Frequency Band
-
ChirpStack ADR Configure: Used to enable/disable the Adaptive Data Rate (ADR) functionality.
- Select option 1 for configuring your Regional Frequency Band.
Figure 1: Regional Frequency Band Option- Set the IP address of the ChirpStack that you want your gateway to connect with.
Figure 1: Default LoRaServer IP addressThe default IP address is 127.0.0.1. If you want to use an independent LoRa Server running on another device or a cloud-based LoRa Server, set it to the corresponding IP address.
Connect to a Network
If you want to use TTN or an independent ChirpStack network server, which may be deployed in a local area network or remotely, connect your gateway to a networking device that provides internet connectivity, such as a router. There are two options available for this purpose.
Connect Through Wi-Fi
If you want to connect through Wi-Fi, you can easily do so using the wireless capabilities of the Raspberry Pi 3B+ or Raspberry Pi 4 by selecting 5 Configure WIFI. By default, the RAK5146 WisLink LPWAN Concentrator operates in Wi-Fi AP Mode.
- To connect the gateway to a router, it must be set to Wi-Fi Client Mode.
Figure 1: Configuration options for WIFIThere are 5 options to choose from in the Wi-Fi configuration menu:
- Enable AP Mode/Disable Client Mode: After rebooting, the gateway will operate in Wi-Fi Access Point Mode while the Wi-Fi Client Mode will be disabled (this is the default mode).
- Enable Client Mode/Disable AP Mode: After rebooting, the gateway will operate in Wi-Fi Client Mode, and Wi-Fi AP Mode will be disabled.
- Modify SSID and pwd for AP Mode: This option is used to modify the SSID and password of the Wi-Fi AP. It only works if the Wi-Fi AP Mode is enabled.
- Add New SSID for Client: This is used if you want to connect to a new Wi-Fi network. It only works in Wi-Fi Client Mode.
- Change Wi-Fi Country: This is used to modify the resident country to match the Wi-Fi standards.
To enable Wi-Fi Client Mode, you must first disable the AP Mode.
- Once Wi-Fi AP Mode has been disabled by choosing "2 Enable Client Mode/Disable AP Mode", connect to a new Wi-Fi Network by choosing "4 Add New SSID for Client".
Figure 1: Add a new SSID- Select your country of residence:
Figure 1: Select a Country of Residence- Enter the SSID of the network you want to connect to.
Make sure to input the correct Wi-Fi SSID and password. Otherwise, you will not be able to reconnect to the RAK5146 WisLink LPWAN Concentrator via SSH when it is in Wi-Fi AP Mode. If you find yourself in this situation, follow the procedure outlined in the Connecting to a Network document, which is applicable for all Raspberry Pi-based gateways to restore Wi-Fi AP mode functionality.
Figure 1: SSID of the Network you want to connect to.- Enter the password as well. Leave it empty if there is none.
Figure 1: Password of the Wi-FiConnect Through Ethernet
To connect to the router using an Ethernet cable, follow these steps:
- In the main configuration menu, choose 6 Configure LAN. This allows you to set up a static IP address for the Gateway’s Ethernet adapter.
- Enter a static IP address that corresponds to your router's IP address range. Make sure that the LoRaWAN gateway and the router are in the same network segment. Otherwise, the connection will fail.
- By default, the IP address of the gateway's Ethernet is
192.168.10.10.
Figure 1: Default gateway Ethernet IP address- Configure the IP address of the router. This will be the LAN interface IP address of the router.
Figure 1: LAN Interface IP address of the Router- Press OK and a success message will appear.
- Finally, reboot the gateway using the command
sudo rebootin the command line and it will connect to the router successfully through Ethernet.
Optional Configurations
The configurations in this section are optional and situational.
Revert to Wi-Fi AP Mode
If you have entered incorrect Wi-Fi SSID and/or password during the Wi-Fi Client Mode setup for the RAK5146 WisLink LPWAN Concentrator, follow these steps to revert to Wi-Fi AP Mode and redo the setup:
- Remove the SD Card from your RAK5146 WisLink LPWAN Concentrator and insert it into your PC. Your PC should be able to detect as shown in Figure 32.
Figure 1: Create rak_ap file to your SD Card- Using your Command Prompt or Terminal, navigate to your SD Card and type the command
rak_apto generate a file.
cd > rak_ap
- Check if the
rak_apfile is created successfully. If so, re-insert the SD Card into your RAK5146 WisLink LPWAN Concentrator and it should work again in Wi-Fi AP Mode.
