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, allowing extender gateways to join the network and be managed from the central gateway interface. This mode allows 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.
- 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
- 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.
Set Up Gateway Backend for Multi-Gateway Networking
When setting up a multi-gateway network, the Gateway Backend provides an MQTT broker service, allowing extender gateways to connect by subscribing to the central gateway’s MQTT broker, enabling centralized management.
For the complete multi-gateway network setup tutorial, refer to the How to Configure a RAK Multi-Gateway LoRaWAN Network.
Click
in the Gateway backend section to expand the settings.
Figure 1: Gateway backend-
MQTT Broker Address: The IP address of the MQTT broker (default:
127.0.0.1for the built-in broker).NOTEWhen the MQTT Broker Address is set to
127.0.0.1(built-in broker), SSL/TLS configuration is not available. -
MQTT Broker Port: The port used by the broker (default:
1883). -
MQTT Version: Choose between V3.1 and V3.1.1. There is very little difference between them, more information can be found on the GitHub repository.
-
QoS (Quality of Service):
- 0 - At Most Once
- 1 - At Least Once
- 2 - Exactly Once
-
Keepalive interval (s): Interval in seconds to keep the connection alive (default:
10). -
Clean session: When enabled, the broker does not store subscription or undelivered messages.
-
Retain: When enabled, the last message will be retained.
-
Enable User Authentication: Enable authentication using username and password (disabled by default).
-
SSL/TLS Mode: Configure secure connection
- None
- CA signed server certification
- Self-signed server certification
- Self-signed server & client certification
-
TLS Version: Choose between TLS v1.1 and TLS v1.2.
-
Uplink Topic/Downlink Topic/Downlink Acknowledge Topic/Gateway Statistic Topic: Predefined MQTT topics for uplink, downlink, and status updates.
Integrate with External Platforms
The Integration Interface forwards uplink data received by the built-in network server to external MQTT-compatible platforms or cloud services (e.g., AWS IoT Core) for visualization, processing, and integration.
Click
in the Integration interface parameters section to expand the settings.
Enable Integration Interface: Enables the integration interface.
Generic MQTT
In this configuration, the gateway acts as an MQTT client that publishes messages to an external MQTT broker.
Figure 1: MQTT Integration Interface Parameters- MQTT Broker Address: The IP address of the MQTT broker.
- MQTT Broker Port: The port used by the broker.
- MQTT Version: The MQTT protocol version used for communication.
- QoS (Quality of Service):
- 0 - At Most Once
- 1 - At Least Once
- 2 - Exactly Once
- Keepalive interval (s): Interval in seconds to keep the connection alive (default:
10). - Clean session: When enabled, the broker does not store session data.
- Client ID: ID used to associate with the topic (auto-generated if left empty).
- Enable User Authentication: Enable authentication using username and password.
- SSL/TLS Mode: Configure secure connection.
- None
- CA signed server certification
- Self-signed server certification
- Self-signed server & client certification
- TLS Version: Choose the TLS version for the secure connection.
- Event Topic: Used to publish event messages related to a device, such as uplink data, join events, or device status updates.
- Join Topic: Used to publish events when a device joins the network.
- Uplink Topic: Used to publish data from the device to the network.
- Ack Topic: Used to publish acknowledgment (ACK) messages from the device.
- Downlink Acknowledge Topic: Used to acknowledge the reception of downlink messages by the device.
- Status Topic: Used to publish the status of the device.
- Command Topic: Used to send commands to the device.
- Downlink Topic: Used to send downlink data or commands to the device.
AWS IoT Core
Figure 1: AWS Integration Interface Parameters- AWS IoT Core endpoint URL: The AWS endpoint address.
- AWS IoT Core endpoint Port: The port used by the AWS server.
- Root CA: CA certificate provided by AWS IoT Core.
- Certificate: Gateway certificate generated by AWS IoT Core.
- Key: Private key for the gateway, generated by AWS IoT Core.
Application and Device Management
The Applications tab is available only when the gateway is in Built-in Network Server mode. Here, you can create applications and register end devices.
Create an Application
Applications group LoRaWAN devices for management.
- Navigate to the LoRa > Applications tab.
- To add a new application, click Add application or add one now.
Figure 1: Applications tab- Set the following parameters:
Figure 1: Set parameters-
Application name: A unique name for the application.
-
Application description: (Optional) description of the application.
-
Application Type
- Unified Application key: All devices will use the same application key.
- Separate Application keys: Each device or group of devices has a unique key.
-
Auto Add Device: When enabled, devices with matching AppKey and Application EUI will be added automatically after a successful join request. This feature applies only to OTAA devices.
-
Application Key: Required for Unified Application Key setup.
-
Join EUI: Required for automatic device registration when Auto Add Device is enabled.
-
Payload type
- None: No specific payload format.
- CayenneLPP: Payload format based on the Cayenne Low Power Payload (LPP) standard.
-
Enable HTTP/HTTPS Integration Parameters: Enables the integration for forwarding data to an external HTTP/HTTPS endpoint.
- Header Name / Header Value: Defines custom HTTP headers for the requests.
- Payload Encoding: Selects the encoding format for the message payload (either Protobuf (binary) or JSON).
- Event Endpoint URL(s): Specifies the URL(s) for receiving event data via HTTP/HTTPS.
- Click Save application.
Add Devices
If Auto Add Device is enabled in the application settings, devices are automatically registered upon a successful join request. Otherwise, you can add devices manually or using a CSV file.
Configure Device Information
- Navigate to the LoRa > Applications.
- Click on the application where the device should be added.
Figure 1: Application listNOTEYou can also click "Add end devices" in the END DEVICES list. (This button will only appear if no end devices are registered.)
- In the End devices tab, click Add end device or add some now.
Figure 1: Add an end device- Set the following device parameters:
Figure 1: Configuration page- Activation Mode
- OTAA: Over-The-Air-Activation (OTAA).
- ABP: Activation-By-Personalization (ABP).
- End device (group) name: Enter a name for the device or group of devices.
- End device description (optional): Provide a brief description of the device or group of devices.
- Application Key: Required for LoRaWAN OTAA devices. Enter the AppKey during registration when using Separate Application keys.
- Class: Class A / Class C
- Application Session Key: Required for ABP devices.
- Network Session Key: Required for ABP devices.
- Frame Counter Width: Defines the frame counter size for message tracking.
- LoRaWAN MAC Version: V1.0.2 / V1.0.3 / V1.0.4
- LoRaWAN Regional Parameters reversion: Defines the revision of the Regional Parameters specification (A or B). This setting is available only when the LoRaWAN MAC Version is 1.0.2.
- To save the changes, click Add end devices.
Manually Add Devices
Figure 1: Manual Method-
Enter the following:
- End Device EUI (Main): Fill in the device's unique EUI (Required).
- End Device Address (Main): Fill in the device's unique address (Required for ABP mode).
- Step (Optional): Use this to auto-generate multiple devices in sequence.
- Count (Optional): Number of devices to generate.
-
Click Add to "End Devices List" and the system will automatically verify the device information.
- Devices that meet the criteria will appear under End devices list.
- Duplicate devices will appear under End devices with error for correction.
Figure 1: Add devices to the List- To add the uploaded devices, click Add end devices.
- Click Add to confirm and proceed.
Figure 1: Confirm adding devicesAdd Devices Using CSV File
For batch registration of multiple devices, using a CSV file is more efficient.
Figure 1: CSV Method- You can create a CSV file in two ways:
-
Download the template by clicking download it here.
-
Or create your CSV file manually.
NOTEThe CSV file must include the following fields:
- end device EUI : Enter the unique 64-bit EUI, shown as a 16-character hexadecimal string.
-
-
end device address: Enter the 32-bit device address, shown as an 8-character hexadecimal string (required for ABP mode).
Ensure the file size does not exceed 1 MB. :::
- Click choose file or drag and drop your CSV file into the upload box.
- After importing the CSV file, the system will automatically verify the device information.
- Devices that meet the criteria will appear under End devices list.
- Duplicate devices and devices with invalid fields will appear under End devices with error.
Figure 1: Add devices to the List- To add the uploaded devices, click Add end devices.
- Click Add to confirm and proceed.
Figure 1: Confirm adding devicesOnce the device successfully joins or communicates, its "LAST SEEN" field in the End Devices List will be updated with a timestamp (e.g., 5s ago), indicating when the device was last active.
Manage Applications
View/Modify Application Settings
- Navigate to the LoRa > Applications. View all added applications in this panel.
- Click the target application to go to its Configuration tab, or click (
) and choose Edit Configuration.
Figure 1: Application list- In the Configuration tab, you can view and modify the application settings.
Figure 1: Application configurationDelete Application
Once deleted, the applications cannot be recovered. Proceed with caution.
- Delete a Single Application
- Navigate to the target application's Configuration tab.
- Click Remove this application.
- Batch Delete Applications
- Go to LoRa > Applications.
- Select checkbox(es) for target application(s).
- Click Delete.