More Related Content Similar to Amazon FreeRTOS: IoT Operating System for Microcontrollers (IOT208-R1) - AWS re:Invent 2018 (20) More from Amazon Web Services (20) Amazon FreeRTOS: IoT Operating System for Microcontrollers (IOT208-R1) - AWS re:Invent 20182. © 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.