RAK7394 WisGate Developer CM4 Quick Start Guide
Prerequisites
What Do You Need?
- RAK7394/RAK7394C/RAK7394P WisGate Developer CM4 gateway
- 5 V at least 2.5 A Micro USB power supply
- A Windows/Mac OS/Linux Computer
- Latest Firmware
What Is Included in the Package?
Product Configuration
Powering the Gateway
Before powering the device, connect the LoRa, LTE (only in the Cellular variant), and GPS antennas. Not doing so, might damage the boards. After the antennas are attached, you can safely power the gateway on.
Power the gateway using the provided power adapter by inserting it into the USB-C Power Supply slot. If you are unsure which one of the two USB-C slots is for powering the gateway and which one is for booting, consult the Interfaces section of the gateway's datasheet
RAK7394P WisGate Developer CM4 gateway supports Power-over-Ethernet. You can supply yourself with a PoE injector and power up the gateway via an Ethernet cable using a PoE injector.
Accessing the Gateway
In this section, several ways of accessing the gateway are provided to have different alternatives for you to choose from, depending on the availability of the requirements needed.
Wi-Fi AP Mode
By default, when you power on RAK7394 and no other connection is established with the device (eg. Ethernet connection) the gateway will work in Wi-Fi AP mode, which means you can find an SSID named RAK_XXXX on your PC Wi-Fi Network List.
XXXX is the last 2 bytes of your RAK7394’s Wi-Fi MAC address. Connect to this Wi-Fi SSID using the password provided below. Take note of the default IP address of the gateway provided below as this will be needed in connecting via SSH.
- Wi-Fi Password: rakwireless
- Default IP Address: 192.168.230.1
Ethernet Port
Power up the RAK7394 and connect it to your router via an Ethernet cable. By default, the OS operates in DHCP client mode. Then, look up the IP address your gateway gets assigned from the router. It will be listed as rakpios. Use your favorite SSH tool to log in and get started.
Log into the Gateway
Windows OS
- SSH (Secure Shell) 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 for this guide, you will be using Putty.
- The default RAKPiOS user name is rak, and the password is changeme. At first login, you will need to change the default password for security. So, if you log in via SSH for the first time, you need to set a new password by entering the default one and a new one after.
- When you change the default password (required), the terminal and the SSH session will be closed. Reopen it using the new password for login.
Mac OS
- Open the Terminal of Mac OS. Launch the Terminal application found in the /Applications/Utilities/ directory. You can also launch it from Spotlight by hitting Command + Spacebar and typing Terminal.
- After opening the terminal of macOS, enter root mode by typing the following command:
sudo -i
- Then, you need to run the following command:
ssh user@IP-Address
- You will be asked to provide a password for login.
Linux OS
If the OS of your PC is Linux, you should do the same as the macOS, except for the root mode (step 2).
Accessing the Internet
Connect Through Wi-Fi
- To connect the RAK7394 to a Wi-Fi network, execute the following command:
sudo raspi-config
- When you issue the command, you will be prompted to enter the sudo password. Do so.
- The Raspberry Pi configuration tool will open. Select System options.
- Select Wireless LAN.
- You will be asked to select the country in which the Pi is to be used. Select the corresponding country.
- Confirm the selection.
- You will be prompted to provide the SSID of the wireless network you want to connect to. After entering it, click OK.
- Next, you will be asked for the passphrase. If your Wi-Fi doesn’t have one leave this box empty. Once you have set all of the above, the configuration tool will return you to the main menu, select Finish to close this window.
- Your RAK7394 should be connected to the Wi-Fi by now. To check if the connection is established use the ifconfig command. The console should indicate an established connection.
ifconfig
Connect Through Ethernet
If you are accessing the gateway through the RAKR314 Carrier Board Ethernet Port, you are automatically connected to the internet via the Ethernet connection.
Reboot
Lastly, reboot the gateway using the command shown below and put it in the command line.
sudo reboot
Optional Configuration
Reflashing Procedure
To reflash the RAK7394 you would need to disassemble the enclosure to get to the RAK314 inside.
When you have access to the RAK314, you need to follow this guide.
Changing the Password
- To change the password you will have to use the following command to open the configuration tool:
sudo raspi-config
- From the menu, select System Options.
- Select Password.
- You will see a message informing you that you will enter a new password.
- After clicking OK, you will see a line that will ask you to enter a new password and then confirm it one more time.
- After confirming the password, the configuration tool will indicate that the password is changed successfully.
Switching Network Interfaces
- To manage your network interfaces, you need to execute the following command:
rakpios-cli
- You will see a menu with the available configuration options, select Manage networks.
- This will open a list of the available interfaces. Configure as preferred by selecting the desired one and making the needed changes.