AWS IoT Greengrass V2 Introduction & Tutorial
HTML-код
- Опубликовано: 16 сен 2023
- Timelines:
00:06 Introduction
01:10 Cloud Service
01:29 Core Device
02:01 Components
02:23 Client Device
05:32 Demo
AWS IoT Greengrass V2 Introduction & Tutorial
Industrial IoT | IIOT
#iot #iiot #industrialiot #aws #internetofthings
Configuration To Merge JSONs can be found here:
Auth Component - (16:30) :
docs.aws.amazon.com/greengras...
MQTT Bridge Component - (17:05):
docs.aws.amazon.com/greengras... Наука
Crisp and clear explanation for anyone to understand! Thanks a lot!
Can you please create part 2 of this video showing data storage from greengrass and visualization.
Once data reaches AWS IoT Core (on cloud), you can use IoT Core Rules to send data to a service that can store data in a database (DynamoDB, Timestream etc). From there it should be easy to visualize the data using QuickSight, Grafana etc
@ArchitectureBytes I was able to do the whole activity and worked well for me except the 'ggcoredevice' status changes to 'Unhealthy' because the component 'aws.greengrass.clientdevices.mqtt.Moquette' turns to 'Broken' status. Can you also suggest the cleanup or the ways to stop billing when not in use. Is there a way to detach/ unmount / disassociate the devices to stop the billing during testing phase? However the Pub/Sub works fine.
For the 'aws.greengrass.clientdevices.mqtt.Moquette' broken status, please check the Greengrass Logs for error messages:
/greengrass/v2/logs
AWS Greengrass pricing:
aws.amazon.com/greengrass/pricing/
Thank you for awesome video. I have one question, how are you connected with IOT Core device using bash?
Do you mean Greengrass Core Device or Client (IoT) device?
(IoT Core is an AWS Service on Cloud)
@@ArchitectureBytes Core Device. I was able to install the softwares but I couldn't navigate like you were doing in file system of Core device. Though in my case, Nucleas was insalled and setup as a service on its own. Thanks
Okay, so you are referring to Greengrass Core Device.
Since you have installed Greengrass Core software (nucleus) as a Service you can simply start and stop it like a normal linux service:
sudo systemctl greengrass.service
In the demo, it is not installed as a service - so I start and stop it manually.
So the steps for starting/stopping are slightly different.
Beyond that you should be able to navigate as usual.
invalid connect return code 4, disconnecting
Connection failed with exception AWS_ERROR_MQTT_PROTOCOL_ERROR: Protocol error occurred. I have a issue
At what step do you get this error?
Pls make sure that you have the necessary certificates/keys on the client device.
@@ArchitectureBytes after that , i have bug : awscrt.mqtt.SubscribeError
Please check if you have done the following:
Attach Policies: 13:47, Greengrass Service Role: 14:26, Associate Client Device to Core Device: 15:19, Setup Cloud Discovery & Configure Components: 15:58
WHERE TO GET JSON for device configuration?
Added the information to Video description. Pls take a look.
I am getting the error while executing the client device sample/discovery.py code which is
[ERROR] [2023-10-31T03:10:13Z] [000070000c38f000] [socket] - id=0x7f8795128e10 fd=21: timed out, shutting down.
[ERROR] [2023-10-31T03:10:13Z] [000070000c38f000] [channel-bootstrap] - id=0x600001780bd0: Connection failed with error_code 1048.
Connection failed with exception AWS_IO_SOCKET_TIMEOUT: socket operation timed out.
All connection attempts failed
[ERROR] [2023-10-31T03:10:13Z] [00007ff848fe0e80] [mqtt-client] - id=0x7f879490a400: Connection is not open, and may not be closed
The core device is unhealthy
Please make sure that you have the necessary certificates/keys on the client device.