The LoRaWAN based IoT deployment is simplified with a combination of RAK Wireless RAK 7258 Gateway and Fogwing Platform. To demonstrate further, we will use RAK 7204 WisNode as well. The environment monitoring device WisNode Sense Home (RAK7204) is responsible for gathering data concerning temperature, humidity and air pressure. It is further sent to Fogwing Platform to visualize the data using WisGate Edge Lite (RAK7258) Gateway.
Understanding RAK7258 and RAK7204:
The WisNode Sense Home (RAK7204) is an LPWAN node that serves as an environmental monitoring station. The high-precision sensors can measure changes in temperature, humidity, gas pressure and provide an indoor air quality index. All the accumulated data can be sent to a RAK7258 LoRaWAN gateway in order for it to be forwarded to the Fogwing Platform.
The WisGate Edge Lite is a full 8-channel LoRa Gateway with a built-in Network Server for a straightforward setup. It has an onboard Wi-Fi setup that allows it to be easily configured via the default Wi-Fi AP mode. It supports the MQTT integration feature by which you can connect it to Fogwing Platform using the right MQTT credentials.
Fogwing Community Subscription.
WisNode Sense Home (RAK7204)
Integrating Fogwing MQTT
WisGate Edge Lite (RAK7258)
1. Signing Up to Fogwing Enterprise Cloud
Sign in to Fogwing Platform using your credentials to create Applications. Upon Login, you will land on the Get Started page. From the menu bar, click Applications, the Applications page will display. Click Add button and fill all the fields and click on Submit.
This step involves the creating of Edge. From the menu bar in Fogwing Platform, click Edge Network, and select Edge Devices. Edge Devices page will appear. Click the Add Edge button and fill all the fields and click on Submit.
From the menu bar, click IoT Hub Access, the IoT Hub Access page will appear. Click on Add IoT Hub Access and fill all the required fields and click Submit. To see available interface options, click on the eye icon and choose MQTT Access. You will see a screen like the one below. These details are useful while setting MQTT integration on the gateway.
2. Configuring network server in RAK7258 Gateway
Power up the RAK7258 gateway and connect to the RAK7258_610A hotspot using your PC. For more details, you can go here.
Open any browser of your choice and type 192.168.230.1 and you will see a login window, like the one shown below. Login to start the setup.
Make sure you have the latest firmware on the gateway before proceeding further. At the publishing of this guide, the latest firmware version was 1.0.1.
Configure the WiFi interface to connect the gateway to the internet. Refer to the link given.
Now, to set up the network server, head on to LoRa Network > Network Settings and select Mode as Network Server and click on Switch Mode. Then, click Save & Apply the changes.
In the LoRa Network > Application. Put an application name and select Add.
In the Application Configuration, make sure you have checked the Auto Add LoRa Device. To generate Application EUI and Application Keypress the Generate EUI and Generate Key buttons is given at the end of the text box. Make a note of it, these will be used in the next step.
In the Payload Formats section, select CayeneeLPP and make sure to check the Only forward the parsed data object and click Save & Apply.
3. Integrating RAK7258 Gateway with Fogwing IoT Hub
In the LoRa Network > Global Integration, select Integration Mode as Generic MQTT.
Make sure you have set these as guided below.
Check the Enable User Authentication and fill the User Name, Password by referring to the Fogwing Platform. Uplink Topic is the Publish Topic. Once details are filled just save these configurations by clicking Save & Apply.
4. Setting up WisNode Sense Home (RAK7204)
Connect the RAK7204 to any PC running Windows. Open the Serial Port Tool application and check the firmware version with the AT command (at+version) and update it if the current version is not the latest one.
Then execute the following commands to set the required IDs and Key to join the LoRaWAN network.
Use the following commands to set the correct parameters to join the network.
Visualize data on the Fogwing Platform in Data Storage. View the payload by pressing the eye icon.
In conclusion, connecting RAK7204 to Fogwing IIoT Platform using the RAK7258 gateway is a fairly simple process. In order to complete the successful connection of RAK7204 to the Fogwing IIoT Platform, all of the steps that are documented in this guide is to be followed. Once the connection is successful, your IIoT journey with insightful data access begins.