1-Integration Milesight Gateway

2-Integration Milesight Sensors

3-Integration Milesight via MQTT

4-Integration Milesight Gateway via ZTP



4-Integration Milesight Gateway via ZTP


TABLE OF CONTENTS


Description

AWS IoT Core is a managed service provided by Amazon designed to help users connect, manage, and process data from large-scale IoT devices. It supports efficient communication between devices and the cloud and integrates deeply with various AWS services such as data storage, computing, and machine learning. With AWS IoT Core, users can build automated response mechanisms, real-time monitoring systems, and intelligent control platforms to enhance device intelligence and operational efficiency. The service offers high scalability and security, making it suitable for IoT applications in industries such as manufacturing, agriculture, transportation, and energy.


This document provides a step-by-step guide on how to use simple configuration parameters to connect the UG65 gateway to the AWS IoT Core platform.


Requirement

  • Gateway Model: UG65 (UG56, UG67 also supported)
  • Gateway: Must be connected to the Internet

  • AWS Account: A valid and accessible AWS account


Configuration

Step 1: Create Temporary Access Keys

First, visit the AWS login page and enter your credentials:


Scroll down on the redirected page and locate the Access keys section. 

Click the Create access key button:

Then follow the instructions as shown to complete the creation:


Click the Show button:

Copy the Access key and Secret access key ,these will be used later:


Step 2: Check User Policy

Follow the steps shown in the image to find the basic information of the current user (you can skip this step if you are using an administrator account):


Click to enter, scroll down to Permissions policies, and make sure your current AWS account has the following two permissions at least as shown in the reference image:


Step 3: Obtain Region Information

Navigate to the AWS IoT Core interface as shown below:

You will see the currently used region for example, us-east-1 (N. Virginia)

Record this information, as it will be needed when configuring the gateway.


Step 4: Gateway Configuration

a) Disable Built-in Network Server

First, log in to the gateway management interface (refer to How to Login Web GUI of Milesight Gateway), then follow the steps in the screenshot below (if it’s already disabled, this step can be skipped):


As shown, the status displaysDisabled and Disconnected, which means the embedded NS has been successfully disabled:

b) Configure AWS IoT Core Parameters

Now create the AWS IoT Core parameters. 

Follow the steps shown in the figure:


In the pop-up window, check Enable, and select AWS IoT Core from the Type dropdown:

Next, input the Access Key, Secret Key, and Region information obtained earlier:

Click Save & Apply:

Wait 3–5 minutes, then refresh the page:

You should see Connect Status shows Connected for AWS IoT Core, which means the gateway has successfully established a data link with the AWS platform.Gateway configuration is now complete. 


Next, we verify the setup results.


Step 5: Check Gateway Status in AWS IoT Core

Follow the steps shown below to check whether the gateway appears automatically in AWS IoT Core (you can filter by the device's Serial Number):

You should see that AWS IoT Core has automatically created a gateway device, and the Connection status is Connected.


Step 6: Delete Temporary Access Keys (Optional)

If you are concerned about the security of the Access Keys, you can delete or deactivate them after all the above steps are complete. 


Refer to the figure below for details:


In the pop-up window, follow the instructions and complete the process step-by-step:


-END-