LoRa Configuration
In WisGateOS 2, LoRa configuration supports three operating modes, allowing the gateway to connect to different LoRa network servers and manage LoRa communication efficiently:
- Built-in Network Server
The gateway acts as a central LoRa Network Server (LNS), processing packets locally and managing devices directly. It supports multi-gateway networking by allowing extender gateways to join the network and be managed locally from the gateway interface. This mode enables independent operation without relying on external services. - Packet Forwarder
The gateway forwards packets to an external network server (e.g., TTN, ChirpStack) without local processing. The external network server handles packet processing, device management, and data routing. Suitable for integrating the gateway into an existing LoRaWAN network infrastructure. - Basics Station
The gateway uses a secure WebSocket (WSS) to communicate with a remote LoRaWAN network server. This mode offers enhanced security and stable connectivity, supporting dynamic updates and secure cloud-based communication.
Built-in Network Server
In WisGateOS 2, the gateway can operate as a Built-in Network Server, processing packets locally and managing LoRa devices directly without needing an external server.
Configuration
This section covers how to configure the gateway as a Built-in Network Server, including setting up the server and configuring its parameters.
Set Work Mode to Built-in Network Server
Select the Work mode to make the gateway act as its own LoRaWAN Network Server.
Figure 1: Work modeSet Log Level
Configure the log level for debugging and monitoring purposes.
Figure 1: Log Level- Error: Logs of error conditions.
- Warning: Logs of warning conditions.
- Notice: Logs of significant but normal events.
- Info: Logs of general system activity and information.
- Debug: Logs of all messages, including detailed debugging information.
Select Your Country & Region
Figure 1: Select your country & regionSelect your country (Optional)
The correct country setting ensures that the gateway operates in compliance with regional regulations. Transmit power is automatically limited to the maximum permitted, and LBT (Listen Before Talk) is enabled when required. For more details, visit How to Configure Country Code on RAK LoRaWAN Gateways for Rf Compliance.
- Click Select your country.
- From the dropdown list, select the Country where the gateway will be deployed.
- Select the appropriate Region.
- Check the confirmation box to acknowledge compliance with local regulations.
- Click Confirm to save your settings.
Figure 1: Country code settingsRegion
Set the region here. The frequency plan can be switched for the following regions:
- US915, AS923, KR920, AS923
- EU868, RU864, IN865
- EU433
- CN470
- If you have already configured the Region in the Select your country settings, it will be automatically applied to the Region configuration.
- Different hardware supports different LoRaWAN regions.
- If your Region is set to AS923, you need to configure the Variation option, such as AS923-1/AS923-2/AS923-3/AS923-4.
Detailed Regional Frequency Settings
This section allows you to fine-tune sub-bands, LoRa/FSK channels, and network mode according to your deployment needs.
Click View detailed regional parameters of the frequency plan in the Frequency Plan section to expand and access advanced configuration options.
- The frequency settings vary by region due to different radio regulations and frequency allocations, which affect the available channel types and UI display.
- The available settings (such as Frequency sub-band, Multi-SF LoRa channel, Standard LoRa channel, and FSK channel) depend on the region's frequency plan and the specific frequency band in use.
- LoRaWAN Public: When enabled (by default), the gateway will process data from all end devices. If you want to create a private network, you can turn it off. The gateway will process the data only from the end devices, whose sync word is changed to private.
- Frequency Sub-Band: Select the specific frequency sub-band based on the region's frequency plan.
Figure 1: Frequency Sub-Band Selection- Multi-SF LoRa Channel Frequency (MHz): Set the frequency for the Multi-SF LoRa channel.
- Standard LoRa Channel Frequency (MHz): Set the frequency for the standard LoRa channel.
- FSK Channel Frequency (MHz): Set the frequency for the FSK channel.
Figure 1: Frequency settingsConfigure Network Server Parameters
Click
in the Network server parameters section to expand the settings.
Figure 1: Network Server Parameters- Network ID: This is a decimal number to distinguish between networks if deploying multiple ones.
- Enable ADR: Enables or disables Adaptive Data Rate (ADR). When enabled, the server will automatically adjust data rates, airtime, and energy consumption based on current network conditions.
- Min Allowed TX Data-Rate: Sets the minimum transmission data rate. Depends on the Region.
- Max Allowed TX Data-Rate: Sets the maximum transmission data rate. Depends on the Region.
- ADR Margin (dB): Only visible when ADR is enabled. This sets the margin value in dB to avoid overestimating the data rate, which could lead to performance issues.
- Rx1 Delay (s): Delay of the first receive window (RX1) in seconds.
- RX1 Data Rate Offset: Determines the data rate for downlink frames sent in the RX1 window. By default, it is 0 – identical to the uplink.
- RX2 Frequency (MHz): Sets the frequency of the second receive window (RX2).
- RX2 Data Rate: Sets the data rate for frames sent in the second receive window.
- Uplink / Downlink Dwell Time Limit: Sets the uplink/downlink Dwell Time limit. Only valid for specific regions.
- Downlink Tx Power (dBm): It is useful if you want to use a larger antenna with more gain. Values from -6 to 20 are permissible.
- Disable Frame-counter Validate: This function turns on/off the Frame counter validation.
- End device-status request interval (s): This shows how often the end devices should be polled for their status log level.
- Statistic interval (s): This shows how often the statistics will be gathered.
Enable Packet Filter
Set a filter for the packets from chosen devices (disabled by default).
Click
in the Packet filter section to expand the settings. If White List Mode and Auto Filter are enabled, these are the following options:
Figure 1: Packet Filter-
OUI: Filters devices based on the first 3 bytes (6 hexadecimal characters) of the DevEUI, which typically identify the device manufacturer.
NOTEOUI filtering only works during the device join process.
-
Network ID: A number between 0 and 127 (decimal), derived from the first 7 most significant bits (MSB) of a device's DevAddr. For example, a DevAddr starting with 0x26 (00100110 in binary) has the first 7 bits 0010011, which equals decimal 19.
-
Discard Period (s): The period threshold of discard time for nodes (in seconds).
-
Join Period (s): The period threshold of statistics on the latest join request (in seconds).
-
Join Interval (s): The time interval threshold between two consecutive join requests from the same device EUI (in seconds).
-
Join Count 1: Maximum count of join requests allowed during the Join Interval.
-
Join Count 2: Maximum count of join requests allowed during the Join Period.