IOT Flashcards
What is AWS IOT?
The IoT device will be registered with the AWS IoT Cloud, which includes a Thing Registry for authentication and security. Communication between the IoT device and the cloud is facilitated through a device gateway, which sends messages to an IoT Message Broker. The message broker sends messages to multiple destinations using a rules engine that can integrate with Kinesis, SQS, Lambda, and other targets. Additionally, there is an IoT Device Shadow that acts as a shadow of the device, allowing for state changes even when the device is offline. Understanding the Thing Registry, IoT message broker, rules engine, and device shadow is crucial for IoT. AWS IoT Core offers a range of services for IoT and a tutorial in the console to learn more.
what is IOT thing registry?
The AWS IoT Thing Registry is a managed service that allows you to keep track of your IoT devices, also known as “things”. It provides a secure and scalable way to register, manage, and track metadata for your devices throughout their lifecycle. You can use the Thing Registry to create, update, and delete things, as well as to store and manage their attributes, including device configuration information, certificates, and policy settings. By using the Thing Registry, you can easily manage and monitor your IoT devices at scale, and ensure that they are securely connected to the AWS IoT platform.
It can be understood as IAM of IoT.
What is AWS IOT Message Broker?
AWS IoT Message Broker is a fully managed message broker service provided by AWS IoT that enables communication between IoT devices, applications, and AWS services securely and at scale. It uses the publish-subscribe messaging pattern, where IoT devices publish messages to topics, and applications subscribe to these topics to receive messages. The broker also supports advanced features such as Quality of Service (QoS) levels, Last Will and Testament (LWT), and retained messages. AWS IoT Message Broker is highly available and scalable, allowing it to handle millions of messages per second from thousands of devices. It can also integrate with other AWS services, such as AWS Lambda, AWS Kinesis, and Amazon S3, for further processing and storage of IoT data.
What is MQTT?
MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol designed for constrained devices and low-bandwidth, high-latency or unreliable networks, making it ideal for IoT communication. In AWS IoT, MQTT is used as the main protocol for communication between IoT devices and the AWS IoT message broker. It allows devices to publish messages to a topic and subscribe to messages from a topic, enabling communication between devices and AWS IoT services. The MQTT protocol is supported by most IoT devices and provides reliable, efficient, and secure communication.
What is Rule Engine?
The AWS IoT Rule Engine is a service that enables you to create rules that intercept and process messages sent to the AWS IoT message broker by connected devices. The rules allow you to process and act upon data coming from devices in real-time. You can use the rules engine to route messages to different AWS services, transform messages into a different format, filter messages based on specific criteria, and trigger actions such as sending notifications or updating a database. The rules engine is highly scalable and can handle millions of messages per second, making it suitable for IoT use cases that require processing large volumes of data in real-time.
What Rule Engine can do?
- Rules are defined on the MQTT topics
- Rules = when it’s triggered | Action = what is does
- Rules use cases:
- Augment or filter data received from a device
- Write data received from a device to a DynamoDB database
- Save a file to S3
- Send a push notification to all users using SNS
- Publish data to a SQS queue
- Invoke a Lambda function to extract data
- Process messages from a large number of devices using Amazon Kinesis
- Send data to the Amazon Elasticsearch Service
- Capture a CloudWatch metric and Change a CloudWatch alarm
- Send the data from an MQTT message to Amazon Machine Learning to make predictions based on an Amazon ML model & more
- Rules need IAM Roles to perform their actions
What is Shadow Device?
A shadow device is a virtual representation of a physical device in AWS IoT. It enables devices to communicate with the cloud and store data, even when the device is offline. The shadow device acts as a proxy for the physical device and allows you to perform actions such as updating device state, retrieving the last known state of the device, and sending commands to the device. The shadow device also maintains a history of state changes and allows you to set alerts and triggers based on certain conditions.
How do we get IoT devices to send data to Kinesis?
To get IoT devices to send data to Kinesis, you can use the AWS IoT Core service which allows you to connect your devices to the AWS Cloud securely and reliably.
To set up the data flow, you would typically follow these steps:
- Connect your IoT devices to AWS IoT Core using a supported protocol such as MQTT or HTTP.
- Use AWS IoT Rules Engine to define rules to route the device data to Kinesis Data Streams.
- Configure a Kinesis Data Streams application to consume the data from the Kinesis stream, process it, and take appropriate action based on your application logic.