Supplier eBooks

Microchip - Concept to Creation

Issue link: https://resources.mouser.com/i/1442841

Contents of this Issue

Navigation

Page 21 of 31

22 / Concept to Creation: Practical Applications for Smart, Connected and Secure IoT Solutions Google Cloud Platform This step makes the board known to Google Cloud IoT and adds the digital key corresponding to the board's unique ATECC608A cryptographic coprocessor. Use your web browser to navigate to the Google Cloud console at https://console. cloud.google.com You'll need to establish a Google Cloud login account and create a new cloud project with billing support enabled at the project level. The rest of the steps below are performed within the newly created cloud project. Enable Pub/Sub API Navigate to the Pub/Sub service and enable the Pub/Sub API (Figure 4). Enable IoT Core API Navigate to the IoT Core page and enable the IoT Core API (Figure 5). Create Device Registry While still in the IoT Core service, click Create a device registry (Figure 6). You'll enter multiple fields using these settings: Registry ID: my-iot-registry Region: us-central1 Protocol: MQTT (checked) and HTTP (checked) Under "Default telemetry topic," click Select a Cloud Pub/ Sub topic, and select Create a topic. Type the word "events" (lowercase and without quotes) at the end of the topic string and click Create. This is the Google Cloud Pub/Sub topic to which incoming MQTT messages will be mapped to. Under "Default state topic," click Select a Cloud Pub/Sub topic, and select Create a topic. Type the word "state" (lowercase and without quotes) at the end of the topic string and click Create. Finally, apply the following setting: Stackdriver Logging: Leave as None Once you've applied all the settings, click Create. The settings should look like Figure 7, except you'll have a different project name: Obtain the Private Key from the Board's Cryptographic Coprocessor On the PC that's connected to the running AVR-IoT WG board, open a serial terminal program (such as Tera Term) and set the parameters to 9600bauds, 8-data bits, 1-stop bit, and no parity. Set line endings to CR+LF and turn on echo. Hit the Enter key Figure 6: Creating a Device Registry. (Source: Mouser Electronics) Figure 4: Enabling the Pub/Sub API. (Source: Mouser Electronics) Figure 5: Enabling the IoT Core API. (Source: Mouser Electronics)

Articles in this issue

Links on this page

view archives of Supplier eBooks - Microchip - Concept to Creation