<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Muhammad Usman Ramzan on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Usman Ramzan on Medium]]></description>
        <link>https://medium.com/@usman.ramzan?source=rss-19a5aa5a1c46------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NcMtdS2dpViCoCNn.jpg</url>
            <title>Stories by Muhammad Usman Ramzan on Medium</title>
            <link>https://medium.com/@usman.ramzan?source=rss-19a5aa5a1c46------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:00:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@usman.ramzan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AWS IoT — Concepts and working]]></title>
            <link>https://medium.com/emumba/aws-iot-concepts-and-working-7958c7d335e4?source=rss-19a5aa5a1c46------2</link>
            <guid isPermaLink="false">https://medium.com/p/7958c7d335e4</guid>
            <dc:creator><![CDATA[Muhammad Usman Ramzan]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 16:42:18 GMT</pubDate>
            <atom:updated>2020-02-19T05:47:52.259Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS IoT — Concepts and working</h3><p>In today’s world with everything being connected to the internet and with the advent of more smart devices in our life. People and companies are looking for elegant solutions to deploy their own smart devices. But this desire to use different devices that can communicate with each other over the internet comes with their own set of challenges. Hardware is limited, network connection is unstable along with the latency as you want to see the data being sent by different devices in real time.</p><p>Amazon Internet of things or AWS IoT platform is a complex solution capable of collecting data from various IoT devices to connect them to the cloud apps.</p><p>Amazon has long known that a one-size-fits-all offering could hardly fulfill the contemporary IoT market. As the range of IoT devices continues to expand, a multi-service platform should be more applicable to the needs of different business sectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*qdr1RyTJP_UEK5Lh" /></figure><h3>AWS IoT Components</h3><p>AWS IoT consists of the following components:</p><h3>AWS IoT Core</h3><p>AWS IoT Core is probably the most significant service among the Amazon’s basic ones dedicated to the IoT. It provides a robust scaling of the physical IoT endpoints linked to a cloud. AWS IoT Core is responsible for creating a complete relationship between IoT devices and their remote applications.</p><h3>Device gateway</h3><p>A Device Gateway is like a passage that enables devices to securely and efficiently communicate with AWS IoT.</p><h3>Message broker</h3><p>Provides a secure mechanism for devices and AWS IoT applications for publishing and receiving messages from one another. To publish and subscribe you can use either the MQTT protocol directly or MQTT over WebSocket. or the HTTP REST interface.</p><h3>Rules engine</h3><p>Provides message processing and integration with other AWS services. To extract data from message payloads, you can use an SQL-based language and then process and send the data to other services, such as Amazon S3, Amazon DynamoDB, AWS Lambda or you can republish messages to other subscribers.</p><h3>Registry</h3><p>Organizes the resources associated with each device in the AWS Cloud. You register your devices and can assign three custom searchable attributes with each one. You can also associate certificates and MQTT client IDs with each device to improve your ability to manage and troubleshoot them.</p><h3>Device shadow</h3><p>A device shadow is basically a JSON document that is used to store and retrieve current state information for a device.</p><h3>Device Shadow service</h3><p>Provides persistent representations of your devices in the AWS Cloud. You can publish updated state information to a device’s shadow, and your device can synchronize its state when it connects. Your devices can also publish their current state to a shadow for use by applications or other devices.</p><p>In this blog we will try to implement a simple telemetric monitoring system on AWS IoT. We will have our raspberry pi that will be publishing the temperature value to a defined topic on the AWS IoT Core and another device which will be subscribed to the same topic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/0*zQsvh5GeQEWQJzJ9" /></figure><h3>Pre-requisites:</h3><p>Before jumping into we need the following:</p><ul><li>An AWS account</li><li>A Raspberry Pi or any device capable of publishing data to AWS IoT Core</li><li>A device capable of subscribing to AWS IoT Core</li></ul><h3>Registering a Device:</h3><p>In order for devices to communicate with each other they first need to be registered in AWS IoT Registry. This allows you to keep a consistent record of all the devices.</p><h3>To register the device</h3><p>After logging into your AWS account go to AWS IoT.<br>Go to <strong>Manage</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Z0vpsabjNupvLqt6" /></figure><p>If this is your first device you will see a page like below, choose <strong>Register a thing</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*V-7vMa5rh0ysxcpo" /></figure><p>Choose <strong>Create a single thing</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/0*dy-NFfGtOrFwjjsH" /></figure><p>Insert a name for your IoT Device</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/0*yE5JdNIVwzJn9b-U" /></figure><p>Now select the <strong>Create certificate</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*91i4trdtFmtKgk400lYthw.png" /></figure><p>Now download the respective certificate and the keys along with root CA.<br>When you’ll click on download button for the root CA. A new webpage will be displayed. Choose <strong>RSA 2048 bit key: Amazon Root CA 1</strong>. This opens another webpage, choose <strong>CA Certificates for Service Authentication</strong>. On the following web page, choose <strong>Amazon Root CA 1</strong> this will display a page with the text of the root CA certificate.</p><p>Copy this text and paste it into a file named <strong>Amazon_Root_CA_1.pem</strong>.</p><p>After that activate the certificate and choose <strong>Attach a policy</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*b5dboV4fFefaQanlSsg-iw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*xoFSg-yBBq23w6oZ1de3GQ.png" /></figure><p>Select <strong>Register Thing </strong>and create and attach a new policy to the certificate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*xoFSg-yBBq23w6oZ1de3GQ.png" /></figure><p>Go to AWS IoT Console. In the navigation pane, choose <strong>Secure-&gt;Policies.</strong></p><p>If this is your first policy then you will see the following page. Choose <strong>Create a new Policy</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*v_3fE8IkBMZFvUVQrZdFVg.png" /></figure><p>Enter the following details for creating a policy which will ensure allocating all the permissions for this policy. This is just for test purpose only you should ensure minimum access level for policy in production environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*QYYWkPDGgyzIS9TRAZqCYg.png" /></figure><p>Next we need to attach this policy to a device for which we will first attach the certificate to the device.<br>Go to <strong>Manage</strong>. The select your IoT Device and then <strong>Security </strong>and attach the certificate we just created to your device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xxt_KOsr6w4WEipQ9EhMtw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*rdrVDj_0JRSCo4v8TtJkPA.png" /></figure><p>Now select the certificate and choose <strong>Actions-&gt;Attach policy. </strong>Select the policy that we created and choose <strong>Attach</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*d9SyazFAwjDxyP8S5kZimg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*oHRKuKAsQD2ayIF8MVHblg.png" /></figure><p>Now that you have an active IoT device in the AWS registry use the code from this <a href="https://github.com/usmanramzan/grafana-aws-iot/tree/master"><em>repository</em></a> on Github to establish an end-to-end connection between an IoT device publishing data to the AWS IoT Core and a Grafana dashboard hosted on a separate device.<br>For a more comprehensive guide on how we built a End-to-End Internet of Things Project with Amazon IoT Core follow this <a href="https://medium.com/@hamza.imran_67775/46d6d697a9c0"><strong>Blog</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7958c7d335e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/emumba/aws-iot-concepts-and-working-7958c7d335e4">AWS IoT — Concepts and working</a> was originally published in <a href="https://medium.com/emumba">Emumba</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>