RAK7248 AWS IoT GreengrassV2 Instructions
- October 30, 2023
- RAK
Table of Contents
- AWS IoT GreengrassV2
- Set Up Your Development Environment
- Additional Software References
- Set Up Your Hardware
- Setup Your AWS Account and Permissions
- Create Resources in AWS IoT
- Install the AWS Command Line Interface
- Install AWS IoT Greengrass
- Create a Hello World Component
- Debugging
- Troubleshooting
- References
- Read User Manual Online (PDF format)
- Download This Manual (PDF format)
RAK7248 AWS IoT GreengrassV2
AWS IoT GreengrassV2
To learn more about AWS IoT GreengrassV2, see how it works and what’s new .
Set Up Your Development Environment
Tools Installation (IDEs, Toolchains, SDKs)
- RAK7248 is based on Raspberry Pi 4 SBC. By default, the latest Raspbian OS based on Linux is used. More information and the available releases can be found here .
- RAKwireless provides ready to use image to be flashed on the SD card here .
- The main service is the LoRa packet forwarder. It can be found here .
Additional Software References
Our FAQ page
Our Community
Forum
Set Up Your Hardware
- A detailed description of components and interfaces can be found in the Datasheet here .
- The required power supply is a 5 V/3A USB C that is not included in the package. The device only comes with a USB cable and no adapter. There are no battery options.
- The device has only one LED indicator that flashes green when there is activity.
- The latest firmware version can be found here .
- Instructions on how to set up the new firmware can be found here .
Setup Your AWS Account and Permissions
Refer to the instructions found at the Set up your AWS
Account guide. Follow the steps outlined in these
sections to create your account and a user and get started:
- Sign up for an AWS account.
- Create a user and grant permissions.
- Open the AWS IoT console.
Pay special attention to the Notes.
Create Resources in AWS IoT
Refer to the instructions found at the Create AWS IoT Resources guide. Follow the steps outlined in these sections to provision resources for your device:
- Create an AWS IoT Policy.
- Create a thing object.
Pay special attention to the Notes.
Install the AWS Command Line Interface
To install the AWS CLI on your host machine, refer to the instructions found
at the Installing the AWS CLI v2
guide. Installing the CLI is needed to complete the instructions in this
guide.
Once you have installed AWS CLI, configure it as per the instructions in this
online guide . Set the appropriate values for Access key ID, Secret access
key, and AWS Region. You can set the output format to “json” if you prefer.
Install AWS IoT Greengrass
Flash Raspberry Image to SD Card
- Download the RAK7248-AWS-GreengrassV2 image.
- Download the balenaEtcher software. There are options for Windows, macOS, and Linux. Clicking the Download button will provide you with the software directly, no installation is required.
- Flash image to SD Card.
Download the AWS IoT Greengrass Core Software
-
Greengrass has already been included in the SD card image, its directory is ~/greengrass-nucleus.
You can also download the latest Greengrass core software and install it with commands as follows:
-
Verify the version of the AWS IoT Greengrass Core softwar.
-
You will see the Greengrass version displayed – similar to: AWS Greengrass v2.4.0.
Provide Your Credentials
Run the following commands to provide the credentials to the AWS IoT Greengrass Core software.
Run the Installer
-
Run the installer as shown below. Modify the values as per your region, install directory, and thing name.
-
Use the –provision true option to have the installer set up the “thing” and required policies for you. If you prefer to configure Greengrass manually, see the online guide.
-
if all goes well, you will see the following output on the device console:
-
The local development tools (specified by the –deploy-dev-tools option) take some time to deploy. The following command can be used to check the status of this deployment.
-
When the status is SUCCEEDED, run the following command to verify that the Greengrass CLI is installed and runs on your device. Replace /greengrass/v2 with the path to the base folder on your device as needed.
Create a Hello World Component
In Greengrass v2, components can be created on the edge device and uploaded to the cloud, or vice versa.
Create the Component on Your Edge Device
Follow the instructions online under the section To create a Hello World component to create, deploy, test, update and manage a simple component on your device.
Upload the Hello World Component
Follow the instructions online at Upload your component to upload your component to the cloud, where it can be deployed to other devices as needed.
Debugging
If you experience any issues, you can check the logs located in the /var/log/ directory.
Troubleshooting
If you are unable to ssh to the device:
- Check that your Wi-Fi is connected to RAKWireless_XXXX.
- Try ping 192.168.230.1
Last Updated: 11/29/2021, 5:12:23 AM
References
- Configure the AWS CLI - AWS Command Line Interface
- Installing or updating the latest version of the AWS CLI - AWS Command Line Interface
- Tutorial: Getting started with AWS IoT Greengrass V2 - AWS IoT Greengrass
- What's new in AWS IoT Greengrass Version 2 - AWS IoT Greengrass
- How AWS IoT Greengrass works - AWS IoT Greengrass
- Install AWS IoT Greengrass Core software with manual resource provisioning - AWS IoT Greengrass
- Create AWS IoT resources - AWS IoT Core
- Set up your AWS account - AWS IoT Core
- RAKwireless Documentation Center
- WisGate Developer Gateway Firmware Setup | RAKwireless Documentation Center
- RAK7248 WisGate Developer D4H Gateway Datasheet | RAKwireless Documentation Center
- RAKwireless Forum - IoT Made Easy
- GitHub - Lora-net/packet_forwarder: A LoRa packet forwarder is a program running on the host of a LoRa gateway that forwards RF packets receive by the concentrator to a server through a IP/UDP link, and emits RF packets that are sent by the server.
- balenaEtcher - Flash OS images to SD cards & USB drives
- Raspberry Pi OS – Raspberry Pi
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>