IOT with GCP…

Adhikansh Mittal
SIAM-VIT
Published in
4 min readNov 3, 2019

The Internet of things is the up and coming future of global technology. A field so vast and dynamic that it can cater to a variety of data from a plethora of places. With colossal amounts of data flowing from a whopping range of IOT devices, it becomes imperative to locate resources to store this data. And one of the stellar examples of such a resource is the clout IOT Core:

Cloud IoT Core is a fully managed service that allows you to easily and securely connect, manage, and ingest data from millions of globally dispersed devices. Cloud IoT Core, in combination with other services on Google Cloud IoT platform, provides a complete solution for collecting, processing, analyzing, and visualizing IoT data in real time to support improved operational efficiency.

Key concepts

To understand Cloud IoT Core, you should be familiar with the following concepts:

Internet of Things (IoT)

A collective term for the physical objects that are connected to the internet and can exchange data without user involvement.

Device

A “Thing” in the “Internet of Things”; a processing unit that is capable of connecting to the internet and exchanging data with the cloud. Devices are often called “smart devices” or “connected devices.” They communicate two types of data: telemetry and state.

Telemetry

All event data (for example, measurements about the environment) sent from devices to the cloud. Telemetry data sent from a device to the cloud is called “device telemetry event” data. You can use Google Cloud Big Data Solutions to analyze telemetry data.

Device state

An arbitrary, user-defined blob of data that describes the current status of the device. Device state data can be structured or unstructured, and flows only in the device-to-cloud direction.

Device configuration

An arbitrary, user-defined blob of data used to control or change a device’s state. Configuration data can be structured or unstructured, and flows only in the cloud-to-device direction.

Device registry

A container of devices with shared properties. You “register” a device with a service (like Cloud IoT Core) so that you can manage it (see the next item in this list).

Device manager

The service you use to monitor device health and activity, update device configurations, and manage credentials and authentication.

MQTT

An industry-standard IoT protocol (Message Queue Telemetry Transport). MQTT is a publish/subscribe (pub/sub) messaging protocol.

Components

The main components of Cloud IoT Core are the device manager and the protocol bridges:

  • A device manager for registering devices with the service, so you can then monitor and configure them.
  • Two protocol bridges (MQTT and HTTP) that devices can use to connect to Google Cloud Platform.

Device telemetry data is forwarded to a Cloud Pub/Sub topic, which can then be used to trigger Cloud Functions. You can also perform streaming analysis with Cloud Dataflow or custom analysis with your own subscribers.

The following diagram summarizes the service components and the flow of data:

Cloud IoT Core is a fully managed service that allows you to easily and securely connect, manage, and ingest data from millions of globally dispersed devices. Cloud IoT Core, in combination with other services on Google Cloud Platform, provides a complete solution for collecting, processing, analyzing, and visualizing IoT data in real time to support improved operational efficiency.

In this below diagram you’ll see a simple but complete IoT system using Cloud IoT Core. The devices in this system publish temperature data to their telemetry feeds, and a server consumes the telemetry data from a Cloud Pub/Sub topic. The server then decides whether to turn on or off the individual devices’ fans, via a Cloud IoT Core configuration update. The device will respond to configuration changes from a server based on real-time data.

With this new catalytic technology working alongside the Internet Of Things, you can be sure to create environments that offer safety, efficiency and flexibility of operations.

The new generation of IOT devices seeks something compatible to their impeccable usability and Cloud IoT core, provides just the right solutions!

I hope you enjoy this blog, stay tuned for more awesome blogs...

--

--