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:
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.