Connecting to AWS IoT

Tutorial for sending Modbus or CAN bus data to AWS IoT with the FATBOX G3 LTE/3G/WIFI Industrial IoT Gateway 

Note: This tutorial assumes that user have already setup his FATBOX G3 IoT gateway to receive local device Modbus (see our sample tutorial) or CAN bus data and now wants to configure his gateway to connect and send data to an AWS IoT end-point using secure MQTT messaging.

At a Glance
  • Rugged IIoT Gateway for Modbus TCP/RTU (RS485), ZigBee and CAN Bus (ISO15765) device data to be collected and sent to an AWS IoT Service. 

  • Run Edge applications on the OpenWRT board supporting Python 2.7.15 & 3.6.5

  • Backhaul via WIFI, Wired Ethernet or cellular LTE/4G/3G

  • Configure hardware to site requirements (DIN Rail, high gain antenna, weather resistant options)

  • CE & FCC approved

What You Need

  • A FATBOX G3 IoT Gateway set

  • A working internet connection

  • An AWS IoT Account

 
 
 
 
1. Create a new AWS IoT Thing

First log into your AWS IoT Management Console and create a Thing:

AWS IoT > Manage > Thing > Create

Next go to:

Secure > Certificates

Then download the 'Certificate' & 'Private Key File'.

Ensure the Certificate is "Active", otherwise activate it under ACTIONS in 

Things > Your Certificate > Security

2. Update your G3 IoT Gateway
Create a new local folder and name it "AWS". 

Save the downloaded certificate files into this folder and rename them as the following:

"certificate.pem.crt"

"private.pem.key"
 

Next zip the folder (ensure that you zip the entire folder and not just the files inside).

Then log into your FATBOX G3 web console and go to the <Management> tab.

Patch the zipped folder to the gateway using the UPDATE FIRMWARE button.

3. Create a Security Policy for your Thing

In your AWS IoT Management Console go to:

Secure > Policies > Create

At <Things>, select your new Thing then click on

Security > Certificates > Policies

Under <Actions>, choose to Attach a Policy:

4. Configure your G3 IoT Gateway to send data to your AWS Account

Now, you are ready to configure your gateway to send AWS IoT endpoint to feed data to your AWS applications. In the FATBOX G3 web configuration menu, go to the <IoT Client> tab and configure your AWS client settings according as per your AWS end point and Thing settings. Then REBOOT your gateway.

Next go back to go your AWS IoT console and subscribe to the Topic to "Test" that data is being received.

Congratulations! You have succesfully sent your Modbus or CAN bus data to your AWS IoT endpoint and ready to, for example, push the data to a S3 bucket using a Rule in 'Act > Rules'.
The FATBOX G3 AWS IoT client side is built using AWS IoT Device SDK for Python and users are free to install, modify our device client codes for enhanced edge capabilities or other required functionalities.

Ask Us Your Questions

Get a prompt response to your query.

BUY A GATEWAY ROUTER

E-commerce Shop

HARDWARE-AS-A-SERVICE

Leasing Plans

FAQ on leasing

PRODUCT CUSTOMISATIONS

Custom the G3

CONTACT US

Sales Enquiries

Technical Enquiries

Amplified Engineering Pty Ltd  

Suite 4 Enterprise Unit 3,

9 De Laeter Way,

Bentley WA 6102, Australia

ABN 44127163035