Collecting IoT Core Data in GCP Pub/Sub

1 hour
  • 3 Learning Objectives

About this Hands-on Lab

Google Cloud IoT Core is a fully managed service used to manage and ingest data from millions of globally dispersed devices.

In this lab, you get hands-on with IoT Core to create a registry, add a device to the IoT Core Registry, and send sample data from a GCP VM instance configured with a simulator application.

By completing this lab, you will gain experience using IoT Core to collect data from a single device. However, you can use the same configuration to collect data from millions of devices.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an IoT Core Registry

Create an IoT core registry using the following specifications:

  • Registry Name: us-iot-hr-trial
  • Region: us-central1
  • Pub/Sub Topic Name: us-iot-hr-queue
  • Logging: disabled
  • CA certificate: Leave blank
Register a Device in IoT Core (VM Instance)

Register a device using the provided specifications:

  • Device ID: hrsensor007
  • Device Communication: allow
  • Cloud Logging: disabled
  • Authentication: ES256
  • Public key value: <paste public key value>
  • Expiration: Leave unchecked
Send Simulated Data to IoT Core

For our final objective:

  1. Send simulated data to the IoT Core using ssh and sign in to the hrsensor007 virtual machine instance.
  2. Run a simulation.
  3. Verify that the IoT core received the data.

Additional Resources

The Arkan group needs to test a new IoT device that's been giving them problems in the field.

The actual device in the field is a Raspberry Pi 3B+ with a heart rate sensor connected to the device by GPIO Pins.

They have sent us a copy of the scripts they use to generate the public/private keys for each device. We also received a python code file that simulates a sample of the heart rate data collected.

A VM instance named hrsensor007 is provided for us in the lab. The VM already contains the software in the root directory named iotcore-heartrate. Use this VM instance as the IoT device to send a message to IoT Core.

Now, have fun learning about IoT Core.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!