SlideShare a Scribd company logo
1 of 53
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS
IoT Operating System for Microcontrollers
I O T 2 0 8 - R 1
Richard Barry
Principal Engineer
AWS IoT
Tanmoy Sen
Sr. Product Manager
AWS IoT
Amey Inamdar
Director- Technical
Marketing
Espressif Systems
Rama Budampati
Sr. Director
Pentair
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Amazon FreeRTOS Overview
Amazon FreeRTOS Features
Welcome- Espressif
Welcome- Pentair
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Data Sources
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IoT
Copyright 2018 Amazon Web Services
Fleet onboarding,
management and
SW updates
Fleet
audit and
protection
IoT data
analytics and
intelligence
Cloud
Storage & Compute
Intelligence
Insights & Logic → Action
Secure device
connectivity
and messaging
Endpoints
Gateway
Things
Sense & Act
Secure local
triggers, actions,
and data sync
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Code Space
Functionality
Communications Stack
Security Stack
Key Management
OTA
Bootloader
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
User (Application) Code
Vendor Supplied Libraries
Hardware
FreeRTOS
Kernel
MQTT Agent OTA AgentGreengrass Discovery
Amazon FreeRTOS Libraries
Amazon FreeRTOS Value Proposition
Improved developer experience, better outcomes:
Enables continued use of the open source FreeRTOS kernel
Augment with functionality to take care of undifferentiating work
Simplify application design when compared to the C SDK
Smaller development teams
Faster time to market
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS Value Proposition
Improved outcomes:
Device to cloud integration with incremental capabilities
Global software company with mature processes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MQTT I/O Port Key
Manage
-ment
MQTT
User (Application) Code
Amazon FreeRTOS Libraries
Secure
Storage
Vendor Supplied Libraries
Hardware
Wi-Fi TLS Library
TCP/IPFreeRTOS
Kernel
Amazon FreeRTOS Value Proposition
De-risk:
Rapid device evaluation
Open standards – minimize platform lock-in
Abstracted interfaces – minimize device lock-in
Wide tool support – minimize development ecosystem lock-in
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS Partners
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Qualifying an Amazon FreeRTOS Port
• AWS IoT Device Tester
• Production board bring up
• Development board qualification
• Test Automation
• Sets up cloud resources, automates compiling and
flashing
• Supports concurrent test execution
• Learn more in Amazon FreeRTOS website
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Gain
confidence
Make testing
easy
Drive new
business leads
• A successful pass gives you confidence that the device running AWS IoT
Greengrass or Amazon FreeRTOS can interoperate with AWS IoT services
• Automates cloud resource setup and test execution
• Concurrent testing on multiple devices to improve test throughput
• Submit Device Tester results to get listed in AWS Partner Device Catalog
Introducing AWS IoT Device Tester
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS Value Proposition
Improved outcomes:
Smaller development teams
Faster time to market
Global software company with mature processes
Device to cloud integration with incremental capabilities
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS Features
1. BLE Support in Amazon FreeRTOS
2. Amazon FreeRTOS OTA
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Bluetooth Low Energy
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
BLE Support in Amazon FreeRTOS
• GAP and GATT profiles in BLE
• Standardized BLE API
• Companion iOS and Android SDKs
• Custom profile for MQTT over BLE
• Custom profile for Wi-Fi provisioning over BLE
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS: Standardized BLE API
• User application portable across
qualified hardware platforms (BLE)
• Supports standard GAP advertising and
GATT profiles
• Create custom profiles for your own
services
• Supports BLE Secure Connections (BLE
4.2 and up)
• All qualification tests are public if you
want to create your own ports
Hardware
Vendor Supplied Libraries
Amazon FreeRTOS Internal Libraries
MQTT
Agent
FreeRT
OS
Kernel
Shadow
Library
Green-
grass
Discover
y
Wi-Fi
Mgmt
Library
Stdzd
BLE API
OTA
Agent
User (Application) Code
Device
Defend-
er Lib
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Custom profile: MQTT over BLE
• Connect BLE devices to AWS IoT via
mobile devices as proxy
• New MQTT Agent (Beta) supports both
BLE and TCP transport
• iOS and Android SDKs provide the proxy
libraries
• Demo applications to get started
• Amazon Cognito handles authentication
between proxy and AWS IoT
Amazon
Cognito
AWS IoT
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why MQTT over BLE?
• MQTT over BLE gives you access to
• AWS IoT Device Shadows over BLE
• AWS IoT Device Defender over BLE
• Amazon FreeRTOS OTA over BLE
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Custom profile: Wi-Fi Provisioning over BLE
• Provision Wi-Fi credentials over BLE
using mobile device
• Save multiple networks, reprioritize, add,
delete
• Supports BLE Secure Connections (BLE
4.2 and up)
• Demo examples to get started
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amey Inamdar
Director of Technical Marketing
Espressif Systems
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• A semiconductor company with focus on Wi-Fi and Bluetooth
connectivity for connected devices
• ESP32 - Microcontroller + Wi-Fi + BT/BLE
• Amazon FreeRTOS hardware partner with qualified ESP32 based
platforms
Espressif and ESP32
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security
• Awareness about security
• Secure cloud communication + Secure storage + Secure OTA
• Trusted Application
Good security policy implementation
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA
• Check availability - Fetch upgrade image - Program the flash
• Selective upgrade rollout
• Roll-back capability in case of failures
• Upgrade status monitoring
Hassle-free Upgrade with Amazon FreeRTOS OTA Service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Openness
Openness facilitates easy evaluation and
greater flexibility and maintainability
• Ease of evaluation
• Flexibility in development and maintenance
• Community benefits - contributions and security
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
BLE Demo
Two common use cases for
customers using BLE devices:
1. Connect BLE devices to AWS IoT using mobile
device as proxy
2. Provision Wi-Fi credentials using BLE
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Rama Budampati
Senior Director – Smart Products & IoT
Pentair
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pentair – Our Brand Promise
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pentair Solutions
Comprehensive Range of Smart, Sustainable Water Solutions
RESIDENTIAL
Energy efficient water treatment, filtration products, pumps and water systems for your home
COMMERCIAL
Water treatment and movement solutions with comprehensive support for high performing operations
INDUSTRIAL
Water and fluid management solutions to increase productivity and water efficiency
MUNICIPAL & INFRASTRUCTURE
Transporting, treating and reusing water for community health and vitality
AGRICULTURE
Precision spray crop protection and solutions to efficiently direct, move and treat water
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Impact of Our Solutions
The Applications of IoT will Enable Sustainable Access to Safe Water
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
IoT Solutions Using ESP32 with Amazon FreeRTOS
• Problem
• Need to securely connect and manage small, low-power edge devices
• How to do this with microcontrollers that have limited compute power and
memory capacity
• Need to develop fast but with limited resources
• Solution
• ESP32-WROOM-32D and 32U, with Amazon FreeRTOS
• Impact / Experience
• Ease-of-use due to team’s previous experience with FreeRTOS kernel
• Out of box support for features like OTA, BLE, Security, etc. meant team could
focus more on enabling end-user applications
• Support from both AWS and Espressif
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key Benefits / Impact
Amazon FreeRTOS
OTA over Wi-Fi
Used in-built OTA feature to quickly build prototypes, start testing
and remotely update firmware as more features got developed
BLE
BLE for initial provisioning and on-boarding of devices; also for on-
site device maintenance and service
Mobile App
Currently working on iOS version; BLE SDK very handy for mobile to
device comm.
Security
Piece of mind due to included security features (TLS, data encryption,
key management, code signing)
Device Management
Simple group management, easy to update group with trusted
firmware
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Three Steps to Getting Started
Choose supported hardware from AWS Partner Device Catalog
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Three Steps to Getting Started
ESP32-DevKitC, ESP-WROVER-KIT nRF52840-DK
Coming 2019
STM32WB (Dual Core SoC)
Coming 2019
STM32WB (Dual Core SoC)B-L475E-IOT01A1 + SPBTLE-1S
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Three Steps to Getting Started
• Amazon FreeRTOS GitHub Repository
• Android and iOS SDK GitHub
Download Source Code
Refer to User Guide
• Hardware-Specific Getting Started
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Over-the-Air (OTA) Updates
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA Updates
• Assign firmware update to groups using
AWS IoT Device Management
• Code sign new firmware images
• Validate signature on device
• Stream updates to your device over MQTT
• APIs to control installation and reboot
logic
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use Case - Vestel
• Smart Auto-dose Washing
Machine
• Connectivity to AWS IoT
over Wi-Fi for
command/control
• Download security updates
and new programs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Connected to Internet
• Scalable, Secure
• Small footprint
• Security, OTA
• Remote Management
Burak Savak
VP of IoT, Vestel
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA on Amazon FreeRTOS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA – Operator Actions
Developer
authors
update
Upload to cloud
Schedule an update
job
Notify device update
is available
AWS
Certificate
Manager
Security, Identity & Compliance
AWS Key
Management
Service (AWS KMS)
AWS Identity and
Access Management
(IAM)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA – Operator Actions
Developer
authors
update
Upload to
cloud
Schedule an update
job
Notify device update
is available
AWS
Certificate
Manager
Security, Identity & Compliance Storage
AWS Key
Management
Service (AWS KMS)
AWS Identity and
Access Management
(IAM)
Amazon Simple
Storage Service
(Amazon S3)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA – Operator Actions
Developer
authors
update
Upload to
cloud
Schedule an
update job
Notify device
update is
available
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA – OTA Agent Actions
Developer
authors
update
Upload to
cloud
Schedule an
update job
Notify device
update is
available
Device
downloads
image (over
MQTT)
Write image to
flash
Close file and
verify signature
Notify application
that new image is
ready
Application
activates when it
is ready (set boot
flags and reset)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA – OTA Agent Actions
Developer
authors
update
Upload to
cloud
Schedule an
update job
Notify device
update is
available
Device
downloads
image (over
MQTT)
Write image to
flash
Close file and
verify
signature
Notify
application
that new
image is ready
Application
activates when it
is ready (set boot
flags and reset)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA – Bootloader Actions
Developer
authors update
Upload to
cloud and sign
image
Schedule an
update job
Notify device
update is
available
Device
downloads
image (over
MQTT)
Write image to
flash
Close file and
verify
signature
Notify
application
that new
image is ready
Application
activates
when it is
ready
Verify image
at boot
Initialize OTA
agent and
confirm current
image is latest
Hand control
to application
for self test
On passing self
test, commit
new image
Update cloud
status to
completed.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OTA – Bootloader Actions
Developer
authors
update
Upload to
cloud and sign
image
Schedule an
update job
Notify device
update is
available
Device
downloads
image (over
MQTT)
Write image to
flash
Close file and
verify
signature
Notify
application
that new
image is ready
Application
activates
when it is
ready
Verify image
at boot
Initialize OTA
agent and
confirm current
image is latest
Hand control
to application
for self test
On passing
self test,
commit new
image
Update cloud
status to
completed
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Three Steps to Getting Started
• AWS Partner Device Catalog
• Windows Simulator
Choose supported hardware
• Amazon FreeRTOS Console
• Amazon FreeRTOS GitHub Repository
Download Source Code
Refer to User Guide
• Hardware-Specific Getting Started
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Richard Barry
Tanmoy Sen
https://aws.amazon.com/freertos/
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

What's hot (20)

AWS Control Tower
AWS Control TowerAWS Control Tower
AWS Control Tower
 
AWS solution Architect Associate study material
AWS solution Architect Associate study materialAWS solution Architect Associate study material
AWS solution Architect Associate study material
 
Introduction to AWS Organizations
Introduction to AWS OrganizationsIntroduction to AWS Organizations
Introduction to AWS Organizations
 
AWS Cloud Security
AWS Cloud SecurityAWS Cloud Security
AWS Cloud Security
 
Introduction to Serverless
Introduction to ServerlessIntroduction to Serverless
Introduction to Serverless
 
AWS Security Hub
AWS Security HubAWS Security Hub
AWS Security Hub
 
AWS Technical Essentials Day
AWS Technical Essentials DayAWS Technical Essentials Day
AWS Technical Essentials Day
 
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...
 
Getting Started with AWS Compute Services
Getting Started with AWS Compute ServicesGetting Started with AWS Compute Services
Getting Started with AWS Compute Services
 
AWS vs Azure vs Google (GCP) - Slides
AWS vs Azure vs Google (GCP) - SlidesAWS vs Azure vs Google (GCP) - Slides
AWS vs Azure vs Google (GCP) - Slides
 
Secure AWS with Fortinet Security Fabric.pptx
Secure AWS with Fortinet Security Fabric.pptxSecure AWS with Fortinet Security Fabric.pptx
Secure AWS with Fortinet Security Fabric.pptx
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Customer Presentation - Aruba Wi-Fi Overview (1).PPTX
Customer Presentation - Aruba Wi-Fi Overview (1).PPTXCustomer Presentation - Aruba Wi-Fi Overview (1).PPTX
Customer Presentation - Aruba Wi-Fi Overview (1).PPTX
 
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
 
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례
AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례
 
AWS 101: Introduction to AWS
AWS 101: Introduction to AWSAWS 101: Introduction to AWS
AWS 101: Introduction to AWS
 
Amazon EC2 Foundations
Amazon EC2 FoundationsAmazon EC2 Foundations
Amazon EC2 Foundations
 
Aws
AwsAws
Aws
 
Introduction to AWS VPC, Guidelines, and Best Practices
Introduction to AWS VPC, Guidelines, and Best PracticesIntroduction to AWS VPC, Guidelines, and Best Practices
Introduction to AWS VPC, Guidelines, and Best Practices
 
AWS Well Architected Framework - Walk Through
AWS Well Architected Framework - Walk ThroughAWS Well Architected Framework - Walk Through
AWS Well Architected Framework - Walk Through
 

Similar to Amazon FreeRTOS: IoT Operating System for Microcontrollers (IOT208-R1) - AWS re:Invent 2018

Similar to Amazon FreeRTOS: IoT Operating System for Microcontrollers (IOT208-R1) - AWS re:Invent 2018 (20)

Connected Product Development - Secure Cloud & Local Connectivity for Microco...
Connected Product Development - Secure Cloud & Local Connectivity for Microco...Connected Product Development - Secure Cloud & Local Connectivity for Microco...
Connected Product Development - Secure Cloud & Local Connectivity for Microco...
 
Connecting low-power devices to the cloud with Amazon FreeRTOS BLE - SVC206 -...
Connecting low-power devices to the cloud with Amazon FreeRTOS BLE - SVC206 -...Connecting low-power devices to the cloud with Amazon FreeRTOS BLE - SVC206 -...
Connecting low-power devices to the cloud with Amazon FreeRTOS BLE - SVC206 -...
 
AWS Learning Series: Harnessing the Power of Data | An Introduction to IoT
AWS Learning Series: Harnessing the Power of Data | An Introduction to IoTAWS Learning Series: Harnessing the Power of Data | An Introduction to IoT
AWS Learning Series: Harnessing the Power of Data | An Introduction to IoT
 
AWS Espressif Amazon FreeRTOS
AWS Espressif Amazon FreeRTOSAWS Espressif Amazon FreeRTOS
AWS Espressif Amazon FreeRTOS
 
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...
 
[NEW LAUNCH!] AWS IoT Device Tester: Enable Your Edge Devices for AWS IoT (IO...
[NEW LAUNCH!] AWS IoT Device Tester: Enable Your Edge Devices for AWS IoT (IO...[NEW LAUNCH!] AWS IoT Device Tester: Enable Your Edge Devices for AWS IoT (IO...
[NEW LAUNCH!] AWS IoT Device Tester: Enable Your Edge Devices for AWS IoT (IO...
 
ENT305 Compliance and Cloud Security for Regulated Industries
ENT305 Compliance and Cloud Security for Regulated IndustriesENT305 Compliance and Cloud Security for Regulated Industries
ENT305 Compliance and Cloud Security for Regulated Industries
 
Introducing the New Features of AWS Greengrass (IOT365) - AWS re:Invent 2018
Introducing the New Features of AWS Greengrass (IOT365) - AWS re:Invent 2018Introducing the New Features of AWS Greengrass (IOT365) - AWS re:Invent 2018
Introducing the New Features of AWS Greengrass (IOT365) - AWS re:Invent 2018
 
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
 
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
 
Implementing Multi-Region AWS IoT, ft. Analog Devices (IOT401) - AWS re:Inven...
Implementing Multi-Region AWS IoT, ft. Analog Devices (IOT401) - AWS re:Inven...Implementing Multi-Region AWS IoT, ft. Analog Devices (IOT401) - AWS re:Inven...
Implementing Multi-Region AWS IoT, ft. Analog Devices (IOT401) - AWS re:Inven...
 
Leadership Session: AWS IoT (IOT218-L) - AWS re:Invent 2018
Leadership Session: AWS IoT (IOT218-L) - AWS re:Invent 2018Leadership Session: AWS IoT (IOT218-L) - AWS re:Invent 2018
Leadership Session: AWS IoT (IOT218-L) - AWS re:Invent 2018
 
Securing the edge with AWS IoT services - FND330 - AWS re:Inforce 2019
Securing the edge with AWS IoT services - FND330 - AWS re:Inforce 2019 Securing the edge with AWS IoT services - FND330 - AWS re:Inforce 2019
Securing the edge with AWS IoT services - FND330 - AWS re:Inforce 2019
 
AWS IoT: servizi costruiti per migliorare le performance di business
AWS IoT: servizi costruiti per migliorare le performance di businessAWS IoT: servizi costruiti per migliorare le performance di business
AWS IoT: servizi costruiti per migliorare le performance di business
 
Anatomy of a Successful IoT Project, ft. Pentair (IOT202) - AWS re:Invent 2018
Anatomy of a Successful IoT Project, ft. Pentair (IOT202) - AWS re:Invent 2018Anatomy of a Successful IoT Project, ft. Pentair (IOT202) - AWS re:Invent 2018
Anatomy of a Successful IoT Project, ft. Pentair (IOT202) - AWS re:Invent 2018
 
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV204 - T...
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV204 - T...IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV204 - T...
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV204 - T...
 
Layered Perimeter Protection for Apps Running on AWS (CTD201-R1) - AWS re:Inv...
Layered Perimeter Protection for Apps Running on AWS (CTD201-R1) - AWS re:Inv...Layered Perimeter Protection for Apps Running on AWS (CTD201-R1) - AWS re:Inv...
Layered Perimeter Protection for Apps Running on AWS (CTD201-R1) - AWS re:Inv...
 
Moving 400 Engineers to AWS: Our Journey to Secure Adoption (SEC306-S) - AWS ...
Moving 400 Engineers to AWS: Our Journey to Secure Adoption (SEC306-S) - AWS ...Moving 400 Engineers to AWS: Our Journey to Secure Adoption (SEC306-S) - AWS ...
Moving 400 Engineers to AWS: Our Journey to Secure Adoption (SEC306-S) - AWS ...
 
Cloud DevSecOps Considerations Leveraging AWS Marketplace Software
Cloud DevSecOps Considerations Leveraging AWS Marketplace SoftwareCloud DevSecOps Considerations Leveraging AWS Marketplace Software
Cloud DevSecOps Considerations Leveraging AWS Marketplace Software
 
Building an AWS IoT-Enabled Drink Dispenser (IOT405) - AWS re:Invent 2018
Building an AWS IoT-Enabled Drink Dispenser (IOT405) - AWS re:Invent 2018Building an AWS IoT-Enabled Drink Dispenser (IOT405) - AWS re:Invent 2018
Building an AWS IoT-Enabled Drink Dispenser (IOT405) - AWS re:Invent 2018
 

More from Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Amazon FreeRTOS: IoT Operating System for Microcontrollers (IOT208-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS IoT Operating System for Microcontrollers I O T 2 0 8 - R 1 Richard Barry Principal Engineer AWS IoT Tanmoy Sen Sr. Product Manager AWS IoT Amey Inamdar Director- Technical Marketing Espressif Systems Rama Budampati Sr. Director Pentair
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Amazon FreeRTOS Overview Amazon FreeRTOS Features Welcome- Espressif Welcome- Pentair
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Data Sources
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IoT Copyright 2018 Amazon Web Services Fleet onboarding, management and SW updates Fleet audit and protection IoT data analytics and intelligence Cloud Storage & Compute Intelligence Insights & Logic → Action Secure device connectivity and messaging Endpoints Gateway Things Sense & Act Secure local triggers, actions, and data sync
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Code Space Functionality Communications Stack Security Stack Key Management OTA Bootloader
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. User (Application) Code Vendor Supplied Libraries Hardware FreeRTOS Kernel MQTT Agent OTA AgentGreengrass Discovery Amazon FreeRTOS Libraries Amazon FreeRTOS Value Proposition Improved developer experience, better outcomes: Enables continued use of the open source FreeRTOS kernel Augment with functionality to take care of undifferentiating work Simplify application design when compared to the C SDK Smaller development teams Faster time to market
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS Value Proposition Improved outcomes: Device to cloud integration with incremental capabilities Global software company with mature processes
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. MQTT I/O Port Key Manage -ment MQTT User (Application) Code Amazon FreeRTOS Libraries Secure Storage Vendor Supplied Libraries Hardware Wi-Fi TLS Library TCP/IPFreeRTOS Kernel Amazon FreeRTOS Value Proposition De-risk: Rapid device evaluation Open standards – minimize platform lock-in Abstracted interfaces – minimize device lock-in Wide tool support – minimize development ecosystem lock-in
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS Partners
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Qualifying an Amazon FreeRTOS Port • AWS IoT Device Tester • Production board bring up • Development board qualification • Test Automation • Sets up cloud resources, automates compiling and flashing • Supports concurrent test execution • Learn more in Amazon FreeRTOS website
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Gain confidence Make testing easy Drive new business leads • A successful pass gives you confidence that the device running AWS IoT Greengrass or Amazon FreeRTOS can interoperate with AWS IoT services • Automates cloud resource setup and test execution • Concurrent testing on multiple devices to improve test throughput • Submit Device Tester results to get listed in AWS Partner Device Catalog Introducing AWS IoT Device Tester
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS Value Proposition Improved outcomes: Smaller development teams Faster time to market Global software company with mature processes Device to cloud integration with incremental capabilities
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS Features 1. BLE Support in Amazon FreeRTOS 2. Amazon FreeRTOS OTA
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Bluetooth Low Energy
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. BLE Support in Amazon FreeRTOS • GAP and GATT profiles in BLE • Standardized BLE API • Companion iOS and Android SDKs • Custom profile for MQTT over BLE • Custom profile for Wi-Fi provisioning over BLE
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS: Standardized BLE API • User application portable across qualified hardware platforms (BLE) • Supports standard GAP advertising and GATT profiles • Create custom profiles for your own services • Supports BLE Secure Connections (BLE 4.2 and up) • All qualification tests are public if you want to create your own ports Hardware Vendor Supplied Libraries Amazon FreeRTOS Internal Libraries MQTT Agent FreeRT OS Kernel Shadow Library Green- grass Discover y Wi-Fi Mgmt Library Stdzd BLE API OTA Agent User (Application) Code Device Defend- er Lib
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Custom profile: MQTT over BLE • Connect BLE devices to AWS IoT via mobile devices as proxy • New MQTT Agent (Beta) supports both BLE and TCP transport • iOS and Android SDKs provide the proxy libraries • Demo applications to get started • Amazon Cognito handles authentication between proxy and AWS IoT Amazon Cognito AWS IoT
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why MQTT over BLE? • MQTT over BLE gives you access to • AWS IoT Device Shadows over BLE • AWS IoT Device Defender over BLE • Amazon FreeRTOS OTA over BLE
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Custom profile: Wi-Fi Provisioning over BLE • Provision Wi-Fi credentials over BLE using mobile device • Save multiple networks, reprioritize, add, delete • Supports BLE Secure Connections (BLE 4.2 and up) • Demo examples to get started
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amey Inamdar Director of Technical Marketing Espressif Systems
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • A semiconductor company with focus on Wi-Fi and Bluetooth connectivity for connected devices • ESP32 - Microcontroller + Wi-Fi + BT/BLE • Amazon FreeRTOS hardware partner with qualified ESP32 based platforms Espressif and ESP32
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Security • Awareness about security • Secure cloud communication + Secure storage + Secure OTA • Trusted Application Good security policy implementation
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA • Check availability - Fetch upgrade image - Program the flash • Selective upgrade rollout • Roll-back capability in case of failures • Upgrade status monitoring Hassle-free Upgrade with Amazon FreeRTOS OTA Service
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Openness Openness facilitates easy evaluation and greater flexibility and maintainability • Ease of evaluation • Flexibility in development and maintenance • Community benefits - contributions and security
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. BLE Demo Two common use cases for customers using BLE devices: 1. Connect BLE devices to AWS IoT using mobile device as proxy 2. Provision Wi-Fi credentials using BLE
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Rama Budampati Senior Director – Smart Products & IoT Pentair
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pentair – Our Brand Promise
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Pentair Solutions Comprehensive Range of Smart, Sustainable Water Solutions RESIDENTIAL Energy efficient water treatment, filtration products, pumps and water systems for your home COMMERCIAL Water treatment and movement solutions with comprehensive support for high performing operations INDUSTRIAL Water and fluid management solutions to increase productivity and water efficiency MUNICIPAL & INFRASTRUCTURE Transporting, treating and reusing water for community health and vitality AGRICULTURE Precision spray crop protection and solutions to efficiently direct, move and treat water
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Impact of Our Solutions The Applications of IoT will Enable Sustainable Access to Safe Water
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. IoT Solutions Using ESP32 with Amazon FreeRTOS • Problem • Need to securely connect and manage small, low-power edge devices • How to do this with microcontrollers that have limited compute power and memory capacity • Need to develop fast but with limited resources • Solution • ESP32-WROOM-32D and 32U, with Amazon FreeRTOS • Impact / Experience • Ease-of-use due to team’s previous experience with FreeRTOS kernel • Out of box support for features like OTA, BLE, Security, etc. meant team could focus more on enabling end-user applications • Support from both AWS and Espressif
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Key Benefits / Impact Amazon FreeRTOS OTA over Wi-Fi Used in-built OTA feature to quickly build prototypes, start testing and remotely update firmware as more features got developed BLE BLE for initial provisioning and on-boarding of devices; also for on- site device maintenance and service Mobile App Currently working on iOS version; BLE SDK very handy for mobile to device comm. Security Piece of mind due to included security features (TLS, data encryption, key management, code signing) Device Management Simple group management, easy to update group with trusted firmware
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Three Steps to Getting Started Choose supported hardware from AWS Partner Device Catalog
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Three Steps to Getting Started ESP32-DevKitC, ESP-WROVER-KIT nRF52840-DK Coming 2019 STM32WB (Dual Core SoC) Coming 2019 STM32WB (Dual Core SoC)B-L475E-IOT01A1 + SPBTLE-1S
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Three Steps to Getting Started • Amazon FreeRTOS GitHub Repository • Android and iOS SDK GitHub Download Source Code Refer to User Guide • Hardware-Specific Getting Started
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Over-the-Air (OTA) Updates
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA Updates • Assign firmware update to groups using AWS IoT Device Management • Code sign new firmware images • Validate signature on device • Stream updates to your device over MQTT • APIs to control installation and reboot logic
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use Case - Vestel • Smart Auto-dose Washing Machine • Connectivity to AWS IoT over Wi-Fi for command/control • Download security updates and new programs
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Connected to Internet • Scalable, Secure • Small footprint • Security, OTA • Remote Management Burak Savak VP of IoT, Vestel
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA on Amazon FreeRTOS
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA – Operator Actions Developer authors update Upload to cloud Schedule an update job Notify device update is available AWS Certificate Manager Security, Identity & Compliance AWS Key Management Service (AWS KMS) AWS Identity and Access Management (IAM)
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA – Operator Actions Developer authors update Upload to cloud Schedule an update job Notify device update is available AWS Certificate Manager Security, Identity & Compliance Storage AWS Key Management Service (AWS KMS) AWS Identity and Access Management (IAM) Amazon Simple Storage Service (Amazon S3)
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA – Operator Actions Developer authors update Upload to cloud Schedule an update job Notify device update is available
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA – OTA Agent Actions Developer authors update Upload to cloud Schedule an update job Notify device update is available Device downloads image (over MQTT) Write image to flash Close file and verify signature Notify application that new image is ready Application activates when it is ready (set boot flags and reset)
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA – OTA Agent Actions Developer authors update Upload to cloud Schedule an update job Notify device update is available Device downloads image (over MQTT) Write image to flash Close file and verify signature Notify application that new image is ready Application activates when it is ready (set boot flags and reset)
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA – Bootloader Actions Developer authors update Upload to cloud and sign image Schedule an update job Notify device update is available Device downloads image (over MQTT) Write image to flash Close file and verify signature Notify application that new image is ready Application activates when it is ready Verify image at boot Initialize OTA agent and confirm current image is latest Hand control to application for self test On passing self test, commit new image Update cloud status to completed.
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OTA – Bootloader Actions Developer authors update Upload to cloud and sign image Schedule an update job Notify device update is available Device downloads image (over MQTT) Write image to flash Close file and verify signature Notify application that new image is ready Application activates when it is ready Verify image at boot Initialize OTA agent and confirm current image is latest Hand control to application for self test On passing self test, commit new image Update cloud status to completed
  • 51. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Three Steps to Getting Started • AWS Partner Device Catalog • Windows Simulator Choose supported hardware • Amazon FreeRTOS Console • Amazon FreeRTOS GitHub Repository Download Source Code Refer to User Guide • Hardware-Specific Getting Started
  • 52. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Richard Barry Tanmoy Sen https://aws.amazon.com/freertos/
  • 53. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.