RAK2287 WisLink LPWAN Concentrator Quick Start Guide
Follow this guide to quickly set up the RAK2287 WisLink LPWAN Concentrator. Before starting, complete the RAK2287 Installation Guide.
Access the Raspberry Pi Setup
The RAK2287 setup can be accessed through Wi-Fi AP Mode or Ethernet connection.
Wi-Fi AP Mode
By default, the firmware is configured to operate the Raspberry Pi in Wi-Fi AP mode. This means you should be able to find an SSID named “Rakwireless_XXXX” on your 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.
Ethernet Connection
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, it 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 Raspberry Pi Setup via SSH
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 in this guide, you will be using 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 then be prompted to enter the username and password. The default username is "pi" and the default password is "raspberry".
Figure 1: Command line after login2. MacOS
Open the Mac OS 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: Opening Terminal in Mac OSOpen the terminal of Mac OS. Enter root mode by typing the following command: "sudo -i".
Figure 1: SSH in Mac OS- If you are not in root mode, enter "
ssh pi@192.168.230.1" in the terminal to log in to the gateway, the default password is "raspberry". - If you connect your PC with the gateway through Ethernet Cable, you should enter "
ssh pi@192.168.10.10", the default password is "raspberry".
Now, you have successfully logged into the gateway via SSH.
Figure 1: Log-in Successful Notification3. Linux OS
If the OS of your PC is Linux, you should do the same as the Mac OS, except for the root mode.
Product Configuration
Configuring 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 this page.
Figure 1: Configuration options for the gateway- Set Pi Password: Used to set or change the password of the gateway.
- Set Up RAK Gateway LoRa Concentrator: 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 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 lineSetting 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.
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 Change- Once the password is successfully changed, a success message will appear.
Figure 1: Successful Password ChangeSet Up RAK Gateway LoRa Concentrator
This menu allows you to select your LoRa frequency band and one of the two available Networks Server options.
- Choosing option 2 Setup RAK Gateway LoRa concentrator.
Figure 1: Choosing 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 this article for more information on your local TTN frequency plan. This will allow you to choose the correct plan.
Figure 1: Selecting the TTN Channel PlanAfter choosing the correct frequency, the success message will appear.
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, which means you will be using the Built-in LoRa Server. If you want to use an independent LoRa Server running on another device or a cloud-based LoRa Server, you need to set it to the corresponding IP address.
- If you have instead selected Chirpstack ADR Configure, enable/disable the Adaptive Data Rate (ADR) functionality.
Figure 1: Chirpstack ADR Enable/DisableConnecting 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 RAK2287 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, and 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 Password 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 Mode: This is used 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 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- Start by selecting your country of residence:
Figure 1: Selecting 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 connect to the RAK2287 WisLink LPWAN Concentrator again via SSH in Wi-Fi AP Mode. If you find yourself stuck 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. Ensure 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.
Reverting 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 RAK2287 WisLink LPWAN Concentrator, follow these steps to revert to Wi-Fi AP Mode and redo the setup:
- Remove the SD Card from your RAK2287 WisLink LPWAN Concentrator and insert it into your PC. Your PC should be able to detect.
Figure 1: Creating 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 RAK2287 WisLink LPWAN Concentrator and it should work again in Wi-Fi AP Mode.
Next Steps
After completing the basic configuration, refer to the LoRaWAN Network Server Guide for server-specific configuration and verification.
