Abstract:
This document explains how to get Crimson® 3.1 devices to talk to Amazon Web Services (AWS) using the MQTT Connector. It assumes a basic knowledge of Crimson and its operation, and the ability to read and manipulate JSON. For more details on the Crimson Cloud Connectors, please consult the Crimson User Manual.
Products:
CR3000 HMIs / Data Acquisition (DA10 & DA30) / Graphite® HMI / Graphite Controllers/FlexEdge
Use Case: AWS Connector
Transferring tag data from Redlion device to Amazon Web Services and write tag data from Amazon Web services to Redlion device using specified topics
Required Software:
Crimson 3.1 or Crimson 3.2
Optional:
For testing purposes, an outline database can be created as described in the Crimson Cloud Connectors: Creating an Outline Database Tech Note. The outline database will be referenced when configuring the connector.
Steps:
1. Go to Communications -> Connectors -> Amazon MQTT -> Service tab and select Message type to be Specified Topics. Provide a name for Publication and Subscription Topic.
Make sure the host name is correct.
Below is where the host name comes from in AWS once you have created a thing
2. Make sure load the certificates correctly
In Crimson 3.2, you need to go to hardware configuration ->Security -> Identity Certs as seen below.
In Crimson 3.1, go to Communications -> Connectors -> Amazon MQTT -> Service tab -> TLS security to load the certificates.
2. Create two tags for sending data from Redlion device to Cloud (AWS). I have placed them in Tag set 1 and set the transfer mode to be Periodic.
3. I have created a tag for writing from Cloud (AWS) to Redlion device. I have placed this tag in Tag set 2. Make sure to set the transfer mode to write only.
4. Launch MQTT Test Client in AWS by going to Test -> MQTT Test Client
5. AWS IOT reading Tag3 and Tag4 data from Red Lion device by subscribing to topic thing02
6. AWS IOT writing to Red Lion device by publishing to topic thing03
7. Webserver showing Tag 1 successfully getting the value of 86 published by AWS
Attached in this tech note is a sample database for Specified Topics.
Disclaimer
It is the customer's responsibility to review the advice provided herein and its applicability to the system. Red Lion makes no representation about specific knowledge of the customer's system or the specific performance of the system. Red Lion is not responsible for any damage to equipment or connected systems. The use of this document is at your own risk. Red Lion standard product warranty applies.
Red Lion Technical Support
If you have any questions or trouble contact Red Lion Technical Support by clicking here or calling 1-877-432-9908.
For more information: http://www.redlion.net/support/policies-statements/warranty-statement