An infographic showing that the Robustel EG5120 industrial IoT edge gateway is qualified for AWS IoT Greengrass, connecting OT devices to the AWS cloud.

Getting Started with Robustel EG5120 and AWS IoT Greengrass

Written by: Robert Liao

|

Published on

|

Time to read 6 min

Author: Robert Liao, Technical Support Engineer

Robert Liao is an IoT Technical Support Engineer at Robustel with hands-on experience in industrial networking and edge connectivity. Certified as a Networking Engineer, he specializes in helping customers deploy, configure, and troubleshoot IIoT solutions in real-world environments. In addition to delivering expert training and support, Robert provides tailored solutions based on customer needs—ensuring reliable, scalable, and efficient system performance across a wide range of industrial applications.

Summary

This comprehensive guide is designed for developers and IT professionals looking to set up the Robustel EG5120 as a powerful AWS Greengrass Gateway. 

We'll walk you through the entire process, from initial hardware and development environment setup to configuring AWS resources and deploying your first "Hello World" Greengrass component. By leveraging the EG5120's powerful NPU and versatile Debian-based OS, you can harness the full potential of edge AI and remote monitoring. 

By the end, you'll have a production-ready foundation for your most demanding edge computing applications.

Introduction: Taking AWS to the Industrial Edge

So, you've decided to leverage the power of Intelligence at the IoT Edge – AWS IoT Greengrass – AWS to bring cloud intelligence to your edge devices. That's a smart move. Greengrass allows you to run Lambda functions, manage containerized applications, and perform machine learning inference directly on your hardware. But this raises a critical question: what hardware should you run it on?

I've seen many brilliant IoT projects, built on powerful cloud platforms like AWS, get stuck when it comes to hardware selection. You can't just run mission-critical industrial logic on a standard development board and hope for the best. You need a device that is as robust and reliable as the cloud services you're deploying. This is where a true AWS Greengrass Gateway comes in. In this guide, we'll show you how to get started with the Robustel EG5120 , an industrial-grade edge gateway officially qualified for AWS IoT Greengrass.

Phase 1: Preparation for Your Greengrass Deployment

Before we dive into the configuration, let's ensure all our foundational pieces are in place. A successful deployment starts with the right preparation.

Understanding the Core Technologies

The Robustel EG5120 Edge Gateway: Think of the EG5120 as the industrial-grade computer that will run your edge applications. It features a powerful Quad-core NXP i.MX 8M Plus CPU with a 2.3 TOPS NPU for machine learning, runs a Debian 11-based OS, and has all the industrial I/O and connectivity you'll need. This is the hardware that makes reliable edge AI possible.

AWS IoT Greengrass: This is the software from Amazon that extends AWS services to your edge devices. It allows you to build, deploy, and manage device software from the cloud. When paired with the EG5120, AWS IoT Greengrass enhances edge computing by enabling sophisticated workloads directly on your AWS Greengrass Gateway.

A central Industrial IoT Edge Gateway icon (representing the EG5120). From the left, show OT device icons (PLC, sensor) connecting to it. From the top, show the official logo for AWS IoT Greengrass connecting to it with a large, green "Qualified Device" checkmark, symbolizing seamless cloud integration.
An infographic showing that the Robustel EG5120 industrial IoT edge gateway is qualified for AWS IoT Greengrass, connecting OT devices to the AWS cloud.

Hardware Setup for the Robustel EG5120

The EG5120 is a next-generation industrial IoT edge gateway supporting global 5G/4G/3G/2G networks. Before you begin, get familiar with the hardware:

  •  Ports and Connectors: It features 2 x Ethernet, 2 x RS232/RS485, 2 x DI/DO, USB, and Dual SIM slots.
  • Power Requirements: It accepts a wide voltage input of 9-36V DC.
  • Initial Setup: Mount the device (e.g., on a DIN-rail), connect the antennas, insert an active SIM card, and connect the power supply. Observe the LED indicators to verify power and network status.

Development Environment Setup

Setting up your development environment is a critical first step. The EG5120 runs RobustOS Pro, a Debian 11-based OS. You can access it remotely via SSH. Your development PC should have the AWS CLI and Greengrass Development Kit (GDK) installed. The EG5120 firmware comes with essential compilers and runtimes pre-installed:

  •  GCC Compiler: For C/C++ development. 
A flowchart illustrating the AWS IoT Greengrass deployment workflow, from component development to cloud publishing and edge deployment.
  • Python: For scripting and AI applications. 
A flowchart illustrating the AWS IoT Greengrass deployment workflow, from component development to cloud publishing and edge deployment.
  •  OpenJDK: For Java applications. Always start by ensuring your gateway's OS is up to date with sudo apt update && sudo apt upgrade. 
A flowchart illustrating the AWS IoT Greengrass deployment workflow, from component development to cloud publishing and edge deployment.

Phase 2: Step-by-Step Configuration for EG5120 and Greengrass

With all preparations complete, let's begin the core configuration process.

(Note: This section's structure is preserved for easy screenshot insertion.)

Step 1: AWS Account and IoT Resource Setup

First, you need to create and configure the necessary resources in your AWS account.

1. Create AWS IAM User and Group: In the AWS IAM console, create a new user and a user group (e.g., AdminGroup_eg5120) with AdministratorAccess.

2. Create AWS IoT Policy: In the AWS IoT console, navigate to Secure > Policies and create a policy (e.g., IDTGreengrassIAMPermissions) with the necessary permissions like iot:Connect and greengrass:*.
A terminal screenshot showing the successful output of a
3. Create an AWS IoT Thing: Navigate to Manage > Things and create a "thing" to represent your EG5120 gateway (e.g., RobustelGGC).
4. Install and Configure AWS CLI: Download and install the AWS CLI on your development machine. Configure it with aws configure by entering your Access Key ID, Secret Access Key, and default region.

Step 2: Installing Greengrass on the EG5120

Now, let's install the Greengrass core software onto your AWS Greengrass Gateway.

1. Log in to your EG5120 via SSH.

2. Install the required dependencies:

Bash

sudo apt-get update sudo apt-get install python3 python3-pip curl -y 

3. Download and unpack the Greengrass installer:

Bash

curl -s https://d2s8p88vqu9w66.cloudfront.net/releases/greengrass-2.7.0.tar.gz | sudo tar xz -C / 

4. Run the setup script with the parameters from your AWS IoT setup. This command provisions the device as a core device and connects it to your AWS account. You'll get these values from the AWS console during the setup process.

Bash

sudo -E java -Droot="/greengrass/v2" -Dlog.store=FILE \ -jar ./GreengrassCore/lib/Greengrass.jar \ --aws-region your-aws-region \ --thing-name RobustelGGC \ --thing-group-name your-thing-group \ --component-default-user ggc_user:ggc_group \ --provision true \ --setup-system-service true 

Step 3: Creating a "Hello World" Component

Let's create and deploy a simple "Hello World" component from the cloud to the edge using the Greengrass Development Kit (GDK) CLI on your development machine.

1. Install GDK CLI:

Bash

python3 -m pip install -U git+https://github.com/aws-greengrass/aws-greengrass-gdk-cli.git 

2. Initialize Project: In an empty directory, initialize a new component.

Bash

gdk component init -l python -n HelloWorld 
3. Edit Component: Modify hello_world.py to print a custom message, like print("Hello from EG5120!"). Modify the gdk-config.json and recipe.yaml files as needed with your component's details.

4. Build Component:

Bash

gdk component build 

5. Publish Component: This uploads your component to the AWS IoT cloud.

Bash

gdk component publish 

6. Deploy Component: In the AWS IoT Greengrass console, create a new deployment, select your EG5120 core device, and add the HelloWorld component you just published. After a few moments, the component will be deployed and running on your gateway!

A terminal screenshot showing the successful output of a

Conclusion: About AWS IOT Greengrass

You have now successfully configured your Robustel EG5120 as a powerful AWS Greengrass Gateway and deployed your first custom component from the cloud to the edge. This powerful combination provides a scalable, secure, and robust foundation for developing sophisticated industrial IoT solutions. From here, you can explore more complex applications, leverage the EG5120’s NPU for AI-driven tasks, and manage your entire fleet of devices remotely. The potential for innovation is now in your hands.

Frequently Asked Questions (FAQ)

Q1: What is the main advantage of using an officially qualified AWS Greengrass Gateway?

A1: The main advantage is reduced risk and faster deployment. The qualification ensures that the hardware has been tested and verified by AWS to run Greengrass reliably. This saves you from the complex and time-consuming process of validating hardware compatibility yourself.

Q2: Can I deploy machine learning models with AWS Greengrass on the EG5120?

A2: Yes, absolutely. The EG5120's powerful NPU is designed for this. You can use AWS SageMaker to train your models and then deploy them as Greengrass components to the EG5120 for high-performance, local ML inference.

Q3: How do I manage a fleet of EG5120 Greengrass gateways?

A3: You have a powerful combination. You use the AWS IoT Greengrass console to manage the software components and deployments. For hardware-level management, like monitoring cellular connectivity, device health, and performing core firmware updates, you would use Robustel's RCMS . The two platforms work together to provide complete lifecycle management.