Copyright © 2017 Moxa Inc.
Released on August 31, 2017
About Moxa
Moxa is a leading provider of edge
connectivity, industrial computing, and network
infrastructure solutions for enabling connectivity for the Industrial Internet of Things. With
over 30 years of industry experience, Moxa has connected more than 50 million devices
worldwide and has a distribution and service network that reaches customers in more than
70 countries. Moxa delivers lasting business value by empowering industry with reliable
networks and sincere service for industrial communications infrastructures. Information
about Moxa’s solut
ions is available at www.moxa.com
. You may also contact Moxa by email
at
info@moxa.com.
How to Contact Moxa
Tel:
+886-2-8919-1230
Fax:
+886-2-8919-1231
How to Use ThingsPro Gateway to Publish Processed Edge
Data to the AWS IoT Cloud
Miles Wang
Application Engineer
miles.wang@moxa.com
Contents
1 Background ..................................................................................... 2
2 Requirements ................................................................................. 2
3 Overview ......................................................................................... 2
3.1 Creating Custom Tags/Registers ................................................................. 2
3.2 Setting Up a Modbus TCP Device ................................................................ 3
3.3 Running a Program to Read and Publish Data from the Device to the
AWS IoT Cloud ........................................................................................ 5
3.4 Enabling the AWS IoT Client in the ThingsPro Gateway .................................. 9
3.5 Checking the Data on AWS IoT ................................................................. 10
4 Additional Reading ........................................................................ 12
Moxa Tech Note
How to Use ThingsPro Gateway to Publish
Processed Edge Data to the AWS IoT Cloud
Copyright © 2017 Moxa Inc.
Page 2 of 12
1 Background
Moxa’s ThingsPro Gateway provides a convenient way to acquire device data through Modbus
RTU or Modbus/TCP protocol. In addition, you can create your own data tags and automatically
transmit processed data to a remote IoT cloud using the ThingsPro Gateway software.
2 Requirements
ThingsPro Gateway software installed on an eligible Moxa device (e.g., UC-8112-LX)
AWS IoT user account
3 Overview
In this tech note, we explain how you can take advantage of the Custom Equipment
Management function in ThingsPro Gateway to read temperature values from a device via
Modbus/TCP protocol and publish the current temperature, the highest temperature, and lowest
temperature values to the AWS IoT cloud using the following steps:
Creating Custom Tags/Registers
Setting Up a Modbus TCP Device
Running a Program to Read and Publish Data from the Device to the AWS IoT Cloud
Enabling the AWS IoT Client in the ThingsPro Gateway
Checking the Data on AWS IoT
3.1 Creating Custom Tags/Registers
To create the custom tags required for this project, do the following:
1. Connect to the ThingsPro Gateway homepage using the Chrome browser.
2. In the main menu, click MODBUS & Logging and select the EQUIPMENT
TEMPLATE tab.
3. In the Custom Equipment Management section, click to open the Edit
Custom Equipment page
4. Fill in a name of custom equipment (“ioLogik-temperature-sensor” in this
example)
5. Add three custom tagscurrent-temp, max-temp, and min-tempas shown in
Figure 1.