SlideShare a Scribd company logo
Developing a Complete Embedded IoT Solution Using
Mangoose OS
Mubeen Jukaku
Syed Adil
Emertxe, Bangalore
IoT Architecture
IoT - Definition
Source: Gartner
“The network of physical objects that contain
embedded technology to communicate and interact
with their internal states or the external
environment.”
IoT – Reference Architecture
Use Case
Lockers
●
Somethings to ponder on
– Is my bank locker safe?
– Is it possible that lockers are accessed without our knowledge?
●
Is it possible so how we come to know about it?
Smart Lockers
Smart Lockers
Device
Device
Device Device
Smart Lockers
Device
Device
Device Device
Access
Point
Smart Lockers
Device
Device
Device Device
Access
Point
Smart Lockers Device
Access
Point
Smart Lockers Device
Access
Point
Node
`
State : Open
State : Open
State :
Open
State
: ON
Bright
ness:
80%
Mode
: Auto
Smart Lockers - Actors
●
Customers :-
– Every time the locker is opened the user gets an SMS / E-Mail
●
Control Room :-
– Based on the access time the control room gets the SOS to take appropriate
access
●
Insurance Providers :-
– Upon subscribing to the required nodes the insurance providers get the
intimation of theft or closure of the locker facility
IoT Hardware / Software Selection
●
Security requirements
●
Ease of development
●
Data acquisition, processing and storage requirements
●
Connectivity requirements
●
Power requirements
●
Physical device design
●
Cost requirements
NodeMCU ESP32
NodeMCU ESP32 - Architecture
GPIOs
USB
Interface
LED
SWITCH
ESP32
●
Espressif Systems
●
32 Bit Core
●
520 Kbyte SRAM
●
Ultra Low Pwr SOC
BLE Wi-Fi
NodeMCU ESP32 - Peripherals
ESP32 Module
1
1
3
Power LED3
4
Serial-USB Converter Chip4
USB Interface
2
2
5
Reset Key5
6
Boot Key6
7
User LED7
8
GPIOs8
NodeMCU ESP32 – Development Support
Arduino
Espressif IoT Development Framework
NodeMCU Lua
Mongoose OS
MicroPython, etc.,
Introduction to Mongoose OS
Introduction to Mongoose OS (MOS)
●
An Open source OS for IoT
●
Started as embedded web server. Expanded to an IoT OS
●
Dual License, GPL or Commercial
●
Development in C / C++ / JS
●
Tool chain support on Windows, Linux, MacOS
MOS – Supported MCUs
●
STMicro : STM32 F4, L4, F7
●
TI : CC3200, CC3220
●
Espressif : ESP32, ESP8266
MOS – IoT Cloud Integration
●
Amazon AWS IoT
●
Microsoft Azure IoT
●
Google IoT Core
●
IBM Watson IoT
●
Private MQTT / Rest Backends
Device Logic (Application Code)
Mongoose OS Core
Timers, Events, etc.,
Mongoose OS Libraries
Network, Cloud Support, Drivers, RPC, OTA, etc.,
Native SDK
e.g, STM32 Cube, TI SDK, ESP-IDF, etc.,
STM32 L4, F4, F7 TI CC 3220, 3200 ESP32, ESP8266
Native OTA Support
Remote Management
TLS1.2, Mutual TLS
HTTP, MQTT, Websoket, CoAP
Wifi, Ethernet, BLE
Firmware code can use
Any functionality from
The native SDK
MOS – Architecture
AWS / Azure / Google etc.,
(Cloud Backend)
MOS – Development Setup
MOS – Development Setup
●
Download and Install MOS
●
Understanding MOS User Interface
●
Application (Blinky)
●
mos.yml
●
Building the firmware
●
Flashing the firmware
●
The output
MOS – Download
MOS – Application
mos clone https://github.com/mongoose-os-apps/demo-js app1
MOS – Application - Blinky
mos build
mos flash
AWS Overview
AWS
●
Amazon Web Services
●
Secure cloud services platform
●
Offers to
– Compute power
– Database storage
– Content delivery
and other functionality to help businesses scale and grow
AWS – Why?
AWS – Why?
AWS - Features
●
A Platform for Virtually Every Use Case
●
Deep Features and getting deeper by the day
●
Security Recognized as Stronger than On-premises
●
Deep Visibility into Compliance and Governance
AWS - Reason to Choose
●
Flexible, Scalable and Reliable
●
Good Pricing, and interesting free tiers!
●
Good presence, with atleast 25 geographic locations
●
Customization
●
Security
and many more ...
AWS – Major Services
Compute
Storage
&
Content
Delivery
Database
N
etworkin
g
Adminis
tration &
Security
Analytics
Internet
of AWS O
verviews
Appli
cation Ser
vices
Deploym
ent & Man
agement
MQTT Overview
MQTT – What​?
●
Machine-to-Machine(M2M) and IoT connectivity protocol
●
Lightweight messaging protocol which works with a
server-based publish subscribe mechanism
●
Runs on the top of TCP/IP protocol suite
●
Lighter than HTTP 1.1 and HTTP/2 protocols
●
Popular among IoT, M2M, Embedded Projects
MQTT – How?
Broker
(Gateway)
Thing1
(Station)
Thing2
(Station)
Thing3
(Station)
Publish
Subscribe
Publish
Subscribe
MQTT – Why?
●
One-to-many distribution
●
Ideal for constrained networks
●
Supports QoS (3 Levels)
●
For lower footprint and low power devices
●
Simple implementation with set of commands to
CONNECT, PUBLISH, SUBSCRIBE and DISCONNECT.
●
Supports “Will” on abnormal disconnection
Use Case Implementation
End to end IoT solution using Mongoose OS Device
Access
Point
Node
Router
Mongoose OS + AWS IoT Core: Steps
●
Create an AWS Account / User
●
Install AWS CLI and Setup credentials
●
Setup NODEMCU device for AWS using mos
●
Build an app using AWS IoT and AWS services
Application Architecture
Rules Engine
Invoke Rule
Trigger SNS
AWS SNS
Send Email
MQTT
IoT Device
Gateway
End to end IoT solution using Mongoose OS
R1R2
AD1_C0
GND
3.3V
VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN
D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23
ENEN
`
BOOT
PIR

More Related Content

DOCX
Tutorial voz ip packet tracer
PPTX
Php.ppt
PPTX
Embedded C workshop
PDF
Resume Preparation - Workshop
PDF
PDF
PPTX
Linux Device Tree
PDF
Demystifying IoT skills : What does it take to become a FullStack IoT engineer?
Tutorial voz ip packet tracer
Php.ppt
Embedded C workshop
Resume Preparation - Workshop
Linux Device Tree
Demystifying IoT skills : What does it take to become a FullStack IoT engineer?

What's hot (20)

PPSX
Quick Test Professional (QTP/UFT)
PDF
Linux Internals - Part II
PDF
CN project 713711699701-5.pdf
PPTX
用Raspberry Pi 學Linux I2C Driver
PDF
Programming Embedded linux
ODP
Introduction to Shell script
PDF
USB Drivers
PPT
Cisco Packet Tracer Overview
PDF
ECMA Script
PPT
Introduction to PHP
PDF
PPTX
dot net technology
PDF
Automated Testing for Embedded Software in C or C++
PPTX
CCNA ppt
ODP
Presentación tcp y udp
PDF
Embedded Android : System Development - Part II (Linux device drivers)
PPTX
IPv6 Addressing
PDF
Shell scripting
Quick Test Professional (QTP/UFT)
Linux Internals - Part II
CN project 713711699701-5.pdf
用Raspberry Pi 學Linux I2C Driver
Programming Embedded linux
Introduction to Shell script
USB Drivers
Cisco Packet Tracer Overview
ECMA Script
Introduction to PHP
dot net technology
Automated Testing for Embedded Software in C or C++
CCNA ppt
Presentación tcp y udp
Embedded Android : System Development - Part II (Linux device drivers)
IPv6 Addressing
Shell scripting
Ad

Similar to End to end IoT Solution using Mongoose OS. (20)

PDF
Developing an Embedded IoT Solution using Mongoose OS.
PPTX
IOT Ecosystem
PPTX
Internet of Things Architecture / Topology
PDF
IoT and Its Application
PDF
Successful Industrial IoT Patterns
PDF
The Internet of Things and You - A Developers Guide to IoT
PDF
WSO2Con EU 2015: IoT in Finance
PDF
The Internet of Things and You
PPTX
Chapter_1.pptx
PPTX
Internet of things - architectureand Design principles.pptx
PDF
An Intro to AWS IoT
PPTX
Embedded systems are specialized computing systems that perform dedicated fun...
PPTX
Successful Industrial IoT patterns
PDF
iot unit1.pdf
PPTX
Gustavo Zastrow - Introduction to AWS IoT Core and MQTT
PDF
AWS IoT Services Overview- IoT Core, Monitoring, Analytics by Jake Scherrer
PDF
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
PPTX
Nodemcu and IOT.pptx
PPTX
Chapter-2 Internet of Things.pptx
PDF
IoT4Devs (1)
Developing an Embedded IoT Solution using Mongoose OS.
IOT Ecosystem
Internet of Things Architecture / Topology
IoT and Its Application
Successful Industrial IoT Patterns
The Internet of Things and You - A Developers Guide to IoT
WSO2Con EU 2015: IoT in Finance
The Internet of Things and You
Chapter_1.pptx
Internet of things - architectureand Design principles.pptx
An Intro to AWS IoT
Embedded systems are specialized computing systems that perform dedicated fun...
Successful Industrial IoT patterns
iot unit1.pdf
Gustavo Zastrow - Introduction to AWS IoT Core and MQTT
AWS IoT Services Overview- IoT Core, Monitoring, Analytics by Jake Scherrer
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
Nodemcu and IOT.pptx
Chapter-2 Internet of Things.pptx
IoT4Devs (1)
Ad

More from Emertxe Information Technologies Pvt Ltd (20)

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation theory and applications.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Cloud computing and distributed systems.
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Modernizing your data center with Dell and AMD
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Review of recent advances in non-invasive hemoglobin estimation
Cloud computing and distributed systems.
NewMind AI Monthly Chronicles - July 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Modernizing your data center with Dell and AMD
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)

End to end IoT Solution using Mongoose OS.

  • 1. Developing a Complete Embedded IoT Solution Using Mangoose OS Mubeen Jukaku Syed Adil Emertxe, Bangalore
  • 3. IoT - Definition Source: Gartner “The network of physical objects that contain embedded technology to communicate and interact with their internal states or the external environment.”
  • 4. IoT – Reference Architecture
  • 6. Lockers ● Somethings to ponder on – Is my bank locker safe? – Is it possible that lockers are accessed without our knowledge? ● Is it possible so how we come to know about it?
  • 12. Smart Lockers Device Access Point Node ` State : Open State : Open State : Open State : ON Bright ness: 80% Mode : Auto
  • 13. Smart Lockers - Actors ● Customers :- – Every time the locker is opened the user gets an SMS / E-Mail ● Control Room :- – Based on the access time the control room gets the SOS to take appropriate access ● Insurance Providers :- – Upon subscribing to the required nodes the insurance providers get the intimation of theft or closure of the locker facility
  • 14. IoT Hardware / Software Selection ● Security requirements ● Ease of development ● Data acquisition, processing and storage requirements ● Connectivity requirements ● Power requirements ● Physical device design ● Cost requirements
  • 16. NodeMCU ESP32 - Architecture GPIOs USB Interface LED SWITCH ESP32 ● Espressif Systems ● 32 Bit Core ● 520 Kbyte SRAM ● Ultra Low Pwr SOC BLE Wi-Fi
  • 17. NodeMCU ESP32 - Peripherals ESP32 Module 1 1 3 Power LED3 4 Serial-USB Converter Chip4 USB Interface 2 2 5 Reset Key5 6 Boot Key6 7 User LED7 8 GPIOs8
  • 18. NodeMCU ESP32 – Development Support Arduino Espressif IoT Development Framework NodeMCU Lua Mongoose OS MicroPython, etc.,
  • 20. Introduction to Mongoose OS (MOS) ● An Open source OS for IoT ● Started as embedded web server. Expanded to an IoT OS ● Dual License, GPL or Commercial ● Development in C / C++ / JS ● Tool chain support on Windows, Linux, MacOS
  • 21. MOS – Supported MCUs ● STMicro : STM32 F4, L4, F7 ● TI : CC3200, CC3220 ● Espressif : ESP32, ESP8266
  • 22. MOS – IoT Cloud Integration ● Amazon AWS IoT ● Microsoft Azure IoT ● Google IoT Core ● IBM Watson IoT ● Private MQTT / Rest Backends
  • 23. Device Logic (Application Code) Mongoose OS Core Timers, Events, etc., Mongoose OS Libraries Network, Cloud Support, Drivers, RPC, OTA, etc., Native SDK e.g, STM32 Cube, TI SDK, ESP-IDF, etc., STM32 L4, F4, F7 TI CC 3220, 3200 ESP32, ESP8266 Native OTA Support Remote Management TLS1.2, Mutual TLS HTTP, MQTT, Websoket, CoAP Wifi, Ethernet, BLE Firmware code can use Any functionality from The native SDK MOS – Architecture AWS / Azure / Google etc., (Cloud Backend)
  • 25. MOS – Development Setup ● Download and Install MOS ● Understanding MOS User Interface ● Application (Blinky) ● mos.yml ● Building the firmware ● Flashing the firmware ● The output
  • 27. MOS – Application mos clone https://github.com/mongoose-os-apps/demo-js app1
  • 28. MOS – Application - Blinky mos build mos flash
  • 30. AWS ● Amazon Web Services ● Secure cloud services platform ● Offers to – Compute power – Database storage – Content delivery and other functionality to help businesses scale and grow
  • 33. AWS - Features ● A Platform for Virtually Every Use Case ● Deep Features and getting deeper by the day ● Security Recognized as Stronger than On-premises ● Deep Visibility into Compliance and Governance
  • 34. AWS - Reason to Choose ● Flexible, Scalable and Reliable ● Good Pricing, and interesting free tiers! ● Good presence, with atleast 25 geographic locations ● Customization ● Security and many more ...
  • 35. AWS – Major Services Compute Storage & Content Delivery Database N etworkin g Adminis tration & Security Analytics Internet of AWS O verviews Appli cation Ser vices Deploym ent & Man agement
  • 37. MQTT – What​? ● Machine-to-Machine(M2M) and IoT connectivity protocol ● Lightweight messaging protocol which works with a server-based publish subscribe mechanism ● Runs on the top of TCP/IP protocol suite ● Lighter than HTTP 1.1 and HTTP/2 protocols ● Popular among IoT, M2M, Embedded Projects
  • 39. MQTT – Why? ● One-to-many distribution ● Ideal for constrained networks ● Supports QoS (3 Levels) ● For lower footprint and low power devices ● Simple implementation with set of commands to CONNECT, PUBLISH, SUBSCRIBE and DISCONNECT. ● Supports “Will” on abnormal disconnection
  • 41. End to end IoT solution using Mongoose OS Device Access Point Node Router
  • 42. Mongoose OS + AWS IoT Core: Steps ● Create an AWS Account / User ● Install AWS CLI and Setup credentials ● Setup NODEMCU device for AWS using mos ● Build an app using AWS IoT and AWS services
  • 43. Application Architecture Rules Engine Invoke Rule Trigger SNS AWS SNS Send Email MQTT IoT Device Gateway
  • 44. End to end IoT solution using Mongoose OS R1R2 AD1_C0 GND 3.3V VINGNDD13D12D14D27D26D25D33D32D35D34VNVPEN D15D2D4RX2TX2D5D18D19D21RX0TX0D223V3GNDD23 ENEN ` BOOT PIR