WisGateOS 2 2.0.x/2.1.x
Before installing the extension, obtain the extension file in the .ipk
format. Gateways running WisGateOS 2 2.0.x/2.1.x support the extensions shown in the table below.
Extension Names | Extension Files |
---|---|
Breathing Light | Download |
Custom Logo | Download |
Country Settings | Download |
Open/Close Port | Download |
Solar Battery | Download |
WireGuard | Download |
OpenVPN Client | Download |
How to Add an Extension
- To install an extension, access the gateway by referring to the Access the WisGateOS 2 Web UI user manual.
- Once logged in successfully, navigate to the Extensions tab (
).
- You can click on the WisGate logo (
) to expand the menu on the left and see the full names of the tabs.
- By default, no extensions are installed.
- Proceed with the installation by clicking on the Add new extension button or the install one now link. This will open the Add new extension window.
- In the window, either drag and drop the extension file into the Drop your Extension file here area, or click the choose file link in the form to browse and select the extension file manually.
The extension files are in .ipk
format, specifically created for the WisGateOS 2 and WisGate Edge hardware platform. A general .ipk
file for OpenWrt cannot be installed.
- Once the extension file is selected, click Add extension to begin the installation. The process may take a few moments to complete.
- When the installation is complete, the WisGateOS will automatically reboot, and you will need to log in again.
- After logging in, navigate back to the Extensions tab. The newly installed extension should now be listed and visible in the interface.
- To install additional extensions, use the Add new extension button or manage existing ones by clicking the Launch button next to the desired extension.
How to Remove an Extension
- Navigate to the Extensions tab and click on the Remove button of the extension you want to uninstall.
- A pop-up window will appear to verify if you want delete the extension. Click Remove and wait for the process to finish.
At this point, the uninstalled extension will no longer appear on the Extensions page.
How to Use the Extensions
Breathing Light
The breathing light LED is located on the top cover of the WisGate Edge Lite 2 gateways, which helps to easily determine the gateway's status visually. The breathing light extension allows you to enable or disable the breathing light on the gateway's top cover. The default state of the LED is as in its Normal state, indicated by a slowly blinking blue light.
The Breathing Light extension is available only for the WisGate Edge Lite 2 version 2 gateways.
Working Mode
By using the Breathing Light extension, the working mode, frequency, and color of the LED light are now customizable. This extension has two working modes: All and Warning Only.
-
Choosing the All mode can:
- Change the Normal light color, that is the light you see when the gateway is working properly.
- Set the blinking frequency from slow, fast, and steady.
- Configure the color of the Warning light.
NOTE
The colors for the Normal and the Warning Light should not be the same.
-
If you choose Warning only mode:
- The LED light will only work in case of abnormal activities like internet connection loss.
- Light's color can be modified, but not its frequency.
Install the Breathing Light Extension
To install the extension, follow the steps in How to Add an Extension.
Configure the Breathing Light Extension
- To access the Breathing Light extension, click Launch.
- In the Configuration page, configure the mode, color, and blinking frequency of the LED.
-
Interface
- Enable Breathing Light: Enables or disables the breathing light extension.
- Mode: Sets the mode of the extension.
- All: The Normal light is enabled.
- Warning only: Disables the Normal light settings and only Warning light will glow.
-
Normal light: The settings for the normal light.
- Color: The color of the light (red, green, blue).
- Frequency: Blink frequency of the led (slow, fast, steady).
NOTEThe Normal light settings are disabled if Warning only mode is selected.
-
Warning Light: The color of the warning light.
- Once done with the configuration, click Save changes. You can check the status of the LED on the gateway itself.
Custom Logo
The Custom Logo extension allows you to upload your logo in the Web UI. This extension is universally compatible with all gateways running WisGateOS 2. It was developed with both small or bigger enterprises in mind, allowing them to have their logo recognized and used in their daily operations.
Having the capability to rebrand your Web UI is essential for companies that need to effectively promote and visualize their brand or product. This necessity is met by RAKWireless' white label feature, which allows clients to customize the user interface to reflect their branding elements seamlessly.
Size and Format Requirements
The uploaded logo image must be in .svg
format and cannot exceed 300 kb. You can preview the Web UI page before finally switching RAKWireless' logo with your brand logo.
Install the Custom Logo Extension
To install the extension, follow the steps in How to Add an Extension.
Configure the Custom Logo Extension
- To access the Custom Logo extension, click Launch.
- In the Configuration page, you can set a custom logo on the login page and on the sidebar menu.
- Interface: Enables/disables custom logo extension.
- Large logo: This logo will be used on the login page and the expanded sidebar menu. Upload a logo by dragging and dropping it, or by clicking Choose File to browse manually.
- Small logo: This logo will be used for mobile view and the collapsed sidebar menu. Upload the logo by dragging and dropping it, or by clicking Choose File to browse manually.
- Preview: After selecting the images, click Preview to see how the logo appears on the login page and sidebars in both desktop and mobile views.
- To apply the selected logos, click Save changes. The page reloads automatically, applying the selected logos.
Country Settings
LBT (Listen Before Talk) means that, before transmitting, the gateway checks the availability of the channel. This is necessary because LoRaWAN is a multi-channel protocol and uses ISM Band. Anyone can use the band, so a collision occurs if two or more end devices send signals simultaneously.
The gateway checks for empty channels and uses one of them to send downlink data. If a channel is occupied, the gateway performs a random back off. In case all of the channels are occupied, the gateway waits for a free channel and tries to send the downlink data again.
LBT is usually governed by regulations per country. In WisGateOS 2 2.x, there is a country table which includes proper configurations for all countries so you can set the country code in WisGateOS 2 2.x.
AS923 end-devices operating in Japan shall perform Listen Before Talk (LBT), based on ARIB STD-T108 regulations. The ARIB STD-T108 regulation is available for free and should be consulted as needed.
You can switch the frequency plan in the following regions:
- AS923, KR920
- EU868, RU864, IN865
- CN470
The frequency plan will be limited to a particular region. Tx power will be limited to under the maximum.
- Downlink Tx Power
- Beacon Tx Power
Install the Country Settings Extension
To install the extension, follow the steps in How to Add an Extension.
Configure the Country Settings Extension
- To access the Country Settings extension, click Launch.
- In the Configuration page, click the Select your Country button to set your country.
- In the new window, find your country and select it. Tick the checkbox below to confirm that you have chosen the country where the gateway is located. Then click Confirm to set the LBT for your country.
- Enable the LBT by clicking on the Enable Listen Before Talk switch.
- Click Save changes to apply the configuration. LBT is now enabled on your gateway.
Open/Close Port
This extension allows you to add or delete packet traffic management rules on the gateway, allowing any (or specific) host IP from a designated subnet to communicate with the gateway through specified ports.
Install the Open/Close Port Extension
To install the extension, follow the steps in How to Add an Extension.
Configure the Open/Close Port Extension
- To access the Open/Close Port extension, click Launch.
After clicking Launch, the Traffic rules page will be displayed, showing the default rules of the Open/Close port extension with the following parameters:
- Service name: A readable name for the service.
- Protocol: The protocol used.
- Family: The protocol version used for the traffic.
- From: External source
- To: Internal source
For example, the Allow-http service indicates that any host in WAN can communicate with the gateway through port 80 using the TCP protocol type.
- To add a new rule, click the Add new rule and configure the following information:
- Service name: Provide a readable name for the rule.
- Protocol: Select the protocol used for the rule:
- TCP
- UDP
- TCP + UDP
- Sources:
- Allow any host: Allows any host to access the rule.
- Source IP address: Specify up to three host IPs.
- Destination port: The destination port for routing.
- To save the changes, click Add new rule. The newly created rule will then appear in the Traffic rules interface.
Solar Battery
The Solar Battery extension is used to display the operational status information of the solar battery used by the gateway. This includes information on the performance of the solar battery, battery health status, cycle period, battery capacity, charging and discharging modes, and more.
This extension is compatible with the following gateways:
- RAK7240V2
- RAK7267
- RAK7289
- RAK7289V2
- RAK7285
You can learn the status of the solar battery in real-time through the UI interface.
Install the Solar Battery Extension
To install the extension, follow the steps in How to Add an Extension.
Configure the Solar Battery Extension
- To access the Solar Battery extension, click Launch.
After clicking Launch, the Details page will be displayed, showing information about the Solar Battery:
-
Solar battery performance: Shows the real-time performance of the battery.
- Temperature: The temperature of the battery. Used to prevent overheating or freezing.
- Voltage: The voltage level of the battery.
- State of charge: The current battery level.
- Current: Indicates whether the battery is charging or discharging.
-
About solar battery: Contains additional information about the battery.
- State of Health: Represents the battery's overall condition.
- Cycle times: The number of charge/recharge cycles.
- Remaining Capacity: The current available capacity of the battery.
- Full-charge capacity: The maximum capacity when the battery is fully charged.
- Battery working mode: Indicates whether the battery is charging or discharging.
-
Solar battery active events: Notifies users about battery-related issues.
- FAULT: The system detects a potentially damaged battery and recommends immediate replacement.
- PROTECT: The system detects a serious issue and shuts down the battery as a protective measure. Once conditions are safe, the battery resumes operation automatically.
- Enable the switch to activate Monitor solar battery.
WireGuard
WireGuard is a simple but fast VPN. It aims to be faster, simpler, and leaner than the IPsec protocol. It intends to be more performant than the well-known RAKwireless - OpenVPN. Before, it was not possible to use the WireGuard protocol on the RAKwireless gateways, but that is not the case now.
The new WisGateOS 2 now offers Extension features, where you can install and set up the WireGuard extension. In this tutorial, you will learn how to set the WireGuard client on the gateway.
This guide assumes that you have some knowledge in setting up a WireGuard server and have a WireGuard server set up.
Install the WireGuard Extension
To install the extension, follow the steps in How to Add an Extension.
Configure the WireGuard Extension
- To access the WireGuard extension, click Launch.
- In the Configuration page, enable the Enable WireGuard switch and configure the following information:
-
Interface: Settings for the WireGuard client.
- Address with netmask: The address used by the WireGuard client. It must be in the same range (e.g.,
10.0.8.0
to10.0.8.255
) defined by the server. - Generate key pair: Automatically generates the key pair.
- Public key: The public key of the WireGuard client.
- Private key: The private key of the WireGuard client.
NOTE
Do not share your private key with anyone.
- Address with netmask: The address used by the WireGuard client. It must be in the same range (e.g.,
-
Server: Settings for the WireGuard server.
- Endpoint Host: The IP address of the machine or cloud service where the WireGuard server is hosted.
- Endpoint Port: The port used for WireGuard traffic.
- Persistent Keepalive (ms): The interval at which keepalive packets are sent to maintain the connection.
- Public Key: The public key of the WireGuard server.
- Enable Preshared Key: Enables the preshared key field. This key is used as part of the Noise protocol during encrypted connection setup between the two peers.
Figure 1: Enable preshared key
-
Route All Traffic: Allows traffic from all IPs.
- Allowed IPs: Specifies the IPs that are allowed to connect to the gateway via the WireGuard IP. This option is only available when Route All Traffic is disabled.
- To save the changes, click Save changes.
Remember to add the WireGuard Client credentials to the WireGuard server configuration.
- After the connection is established, open the Status tab to view the WireGuard connection.
OpenVPN Client
OpenVPN (Open Virtual Private Network) is a type of VPN in which a server is deployed to allow both the Gateway and multiple client devices, such as PCs, phones, and other endpoints, to connect via a public IP address. This setup can be implemented using any backhaul connectivity supported by the gateway, including Ethernet, Wi-Fi, or LTE. When using LTE as the backhaul, make sure that the gateway has a static public IP address.
By connecting to the OpenVPN server from a remote client, the gateway can be securely managed from anywhere, at any time. As mentioned above, an OpenVPN server is required. Detailed instructions for deploying a server in the AWS cloud can be found in the How to Configure WisGate Edge v2 Gateways Remote Management - OpenVPN guide.
Install the OpenVPN Client Extension
To install the extension, follow the steps in How to Add an Extension.
Configure the OpenVPN Client Extension
Make sure you have local network access to your gateway and connect to it to access the Web UI.
- To access the OpenVPN Client extension, click Launch.
- Add an OpenVPN tunnel by clicking the Add tunnel button or the add one now link.
- Click the choose file link and browse for the
.ovpn
file or drag and drop the.ovpn
file you created by following the How to Configure WisGate Edge v2 Gateways Remote Management - OpenVPN guide.
- Once the file is added, click Add tunnel to add the OpenVPN tunnel.
When the tunnel is added successfully, a confirmation message will appear at the bottom of the screen.
- Click the Configure button of the VPN tunnel. On the next window, toggle the Enable Connection switch to enable the OpenVPN tunnel and click Save changes.
- Once the configurations are set, you can check the OpenVPN status under the Logs tab.
- You can also view the assigned IP on the OpenVPN Overview page.