
Setting Node-RED on Robustel IoT Edge Gateway EG5120 via FlowFuse
|
|
Time to read 2 min
|
|
Time to read 2 min
The Robustel EG5120 IoT Edge Gateway, equipped with Linux-based Debian 11 supporting a wide variety of programming languages including Node.js, offers robust connectivity options. When combined with FlowFuse, this iot edge gateway becomes even more powerful, enabling seamless device management and deployment.
The Robustel EG5120 supports multiple connectivity options including Ethernet, Wi-Fi, and cellular networks, which are essential for flexible deployments in various industrial scenarios. Its built-in support for Bluetooth, cellular connectivity, RS232, RS485, and Modbus facilitates seamless integration with a wide array of IoT devices and services. This blog will guide you through using FlowFuse to effectively manage your Node-RED instance, enhancing both the security and scalability of your IoT applications.
Installing FlowFuse Device Agent
Before we start, it is recommended to update and upgrade your system to ensure all your packages are up to date:
sudo apt update && sudo apt upgrade -y
Next, let's install the FlowFuse device agent with the following script.
bash <(curl -sL https://raw.githubusercontent.com/FlowFuse/device-agent/main/service/raspbian-install-device-agent.sh)
This script installs the Node.js runtime (if not already installed), sets up the FlowFuse device agent, and configures the device to automatically run the FlowFuse agent on boot and restart it in case of a crash.
To verify that the service is running, use the following command:
sudo systemctl status flowfuse-device-agent.service
If running, you should see a result similar to the one shown in the image below:
For instructions on how to register the hardware with your FlowFuse team, follow the documentation: Register your Remote Instance .
When registering your hardware, you will be presented with a dialog containing a one-time passcode command that the Device Agent uses to retrieve its configuration. Make sure to copy it.
sudo flowfuse-device-agent -o https://app.flowfuse.com
Once executed, you should see an output similar to the one below, indicating that the FlowFuse Device Agent has been successfully configured:
[AGENT] 3/21/2025 7:09:25 PM [info] Entering Device setup...
[AGENT] 3/21/2025 7:09:27 PM [info] Device setup was successful
[AGENT] 3/21/2025 7:09:27 PM [info] To start the Device Agent with the new configuration, run the following command:
[AGENT] 3/21/2025 7:09:27 PM [info] flowfuse-device-agent
Now, you can check the remote instance in the FlowFuse platform, where its status should be displayed as "running.".