Connect your Red Lion Device to Google Cloud Platform

Keeping your devices connected is the best way to make sure that you have the information you need at your fingertips. The Crimson MQTT connectors allow you to use a variety of different platforms to access data from your devices anywhere on the web.

Currently the MQTT connectors are supported by the Data Acquisition stations, The CR3000 series and the Graphite series of HMIs and controllers.

The first thing you need to do is create a Google cloud platform account. You can do this at For testing purposes the free account should provide more than enough access, however there are paid accounts available if you wish t utilise the service commercially.

Once you have logged in, you should be greeted by your blank dashboard. On the right-hand side select the “Create” link to start creating a project. Next enter the name of the project and hit create.

Once you have created the project search IoT registries in the top search bar and enter it. If this is a new account you will be asked to enable the IoT API, select enable and then create a device registry.

You will then be greeted by the following screen.

The settings we want to change here are as follows:
  1. Set the Registry IDto registry.
  2. Select an option for Regionand make a note of it. I’ll be using Asia-east1
  3. Leave the Protocol settings at their defaults, checking that MQTT is enabled.
  4. Under Default Telemetry Topic, select Create a Topicand enter the name telemetry.
  5. Under Device State Topic, select Create a Topicand enter the name state.
  6. Leave the CA Certificate options hidden and unchanged.
  7. Press the Createbutton to commit the changes.
This concludes the first set up portion on the google side. Next we need to open Crimson 3.1 and configure the network settings.

Under the ethernet 1 tab, set the IP as either a manual address or DHCP, depending on your network configuration, however if you use manual you will have to configure the DNS mode and gateway to allow your device to reach the network.

Next, we need to ensure the device has the correct time settings to ensure proper timestamping and security management.

Select “Time Manager” under the services in the navigation pane of Crimson 3.1. All we need to do here is set the “Enable Time Manager” option to true and the “Enable SNTP” setting to Yes.

After that we can finally configure the Google connector. Select the Google MQTT option in the connectors section of the navigation pane. You should see the below screen.

The parameters we need to set here are as follows:
  1. In the Control section, set the Enable Agent property to Yes.
  2. In the MQTT Server section, check that the Host Name 1 property is set to com
  3. In the Identification section, set the Project Name property to the project name you previously created
  4. In the Identification section, set the Region Name property to the region selected at project creation
  5. In the Identification section, set the Registry Name property to the registry name used previously
  6. In the Identification section, set the Device Name property to device-01
  7. In the Authentication section, select Copy Public Key to place the device’s key on the clipboard.
We now move over to the Tag Data tab at the top of the screen. Here set the “Tag Writes” property to Enabled and then drag the tags that you want to to communicate with to the box at the bottom of the menu.

Here we jump back to the google cloud page and select the registry we previously created, then hit the “Create Device” button.
  1. In the Device ID field, enter device-01to specify the device name.
  2. Leave the Device Communications field set to Allow.
  3. Under Authentication, set the Input Method field to Enter Manually.
  4. Under Authentication, set the Public Key Format field to RS256.
  5. Under Authentication, paste the public key from Crimson into the Public Key Value field.
  6. Leave the other settings unchanged and press Create to create the device.

Now we can go back to Crimson 3.1 and generate a status tag to test our connection. Create a tag using the new button under data tag. Give this tag a useful name, such as status.

Go back to the Google MQTT options and down the bottom under diagnostics select the newly created tag.

Go to display pages and drag the tag on to the display, then go to the web server options and enable the web server under the Control tab.

Now you can download this project to your device.

Log in to the devices web server using the network settings you previously configured. You should see a “4” from the status tag that you configured.

Congratulations, you have connected your device to the cloud. What you do with that now is up to you.