
Step-By–Step Guide to Register a New IoT Device in AWS
The Internet of Things (IoT), refers to physical objects that are equipped with sensors, embedded software and computing power. It can communicate with other devices via the Internet or other local networks. Devices may also communicate with each other on a local network or with cloud service providers to perform specific tasks.
When we think of IoT, the devices must connect to the cloud.
Amazon Web Services (AWS), is a well-known cloud services company. Many services are available in IoT, as well as other applications. AWS offers many services for IoT applications. These include AWS IoT Core and AWS IoT Device Management. AWS IoT Fleetwise provides control services. AWS IoT Analytics, AWS IoT Events and AWS IoT Sitewise provide analytics.
Here’s a blog that will help you learn more about AWS Internet of Things 1-Click.
After obtaining sensor data, the first step is to establish a connection between cloud and device for IoT. AWS’ IoT core allows communication between edge IoT devices as well as AWS services.
In this section, we will discuss how to register a new device to AWS IoT core.
If you don’t have an AWS account, create one as a free account. Then log in to your AWS free tire account. Next, type IoT Core into the search bar. Then click on the services blade and then click on IoT Core.
To register the device, click Connect on AWSIoT Blade. Click Get started. Next, click on the Get started section of the Onboard device section. AWS also offers onboard many device, which allows you to onboard multiple devices at once.
Click Get Started in the Connect to AWS IoT console.
AWS offers the SDK (Software Development Kit), which allows you to connect directly to AWS IoT. You can choose which OS (Operating System), platform and SDK you need based on your application. On my laptop, Windows OS is installed and python has been installed so I choose Windows and Python.
Click Next to see the Registered Thing name. Next, click Next Step.
AWS instantly creates a thing policy for a device when it registers it. This allows us to only access the SDK device we are downloading by using the SDK device. The Download kit includes the SDK and all Nassery certificates. To download the SDK kit for Windows click on the Windows option.
The steps to configure and test your device console are described.
First, unzip the connect_device_package. Open the Windows PowerShell and run the following command to ensure that python has been installed.
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process1Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope ProcessType yes to change the execution policy and then type .\start.ps1, and you can see the device started to publish the data to AWS IoT Core.
The console displays the device status as connected to your device, and the received data. This ensures that your IoT device has been securely connected to AWS IoT Core. Click Done.
The console will display the registered name.
Another way to observe the receiving data is to navigate to the AWS IoT Core interface and click Test. Then, select the Subscribe to topic option. Insert # in the topic filter section to enable wildcard listening to all topics relevant for this device. Select the Subscribe option.
Go to Windows PowerShell, and then run.start.ps1 once more.
The console can display data sent by the device.
Conclusion
We successfully registered the device in AWS Core and received data. We can then create Rules based upon our application, such as storing data.