14
OTAXM Over The Air (OTA) Arduino firmware upgrade for ESP8266 via cloud platform (leshan/hawkbit) by Manolis Nikiforakis manolis @ weatherxm.com

lwM2M OTA for ESP8266

Embed Size (px)

Citation preview

Page 1: lwM2M OTA for ESP8266

OTAXMOver The Air (OTA)Arduino firmware upgrade for ESP8266via cloud platform (leshan/hawkbit)

by Manolis Nikiforakismanolis @ weatherxm.com

Page 2: lwM2M OTA for ESP8266

ESP8266 revolution

2014

● Arduino UNO + Wifi Shield ~50€● Arduino Yun ~50€● TI CC3200 launchpad ~ 30€● Spark Core ~ 30€● Econais WiSmart ~ 30€

..yet wifi dongles exist with 2€ (?)

2015

● Espressif ESP8266 (ESP-1) ~3€

Page 3: lwM2M OTA for ESP8266

ESP8266 Hardware Mutations

NodeMCU v0.9

NodeMCU v1.0

HUZZAH

ESP-3

ESP-12E

ESP-1deep sleepenabled

Page 4: lwM2M OTA for ESP8266

ESP8266 Firmwares

● AT+ commands○ with help libraries for arduino

● NodeMCU○ LUA scripts

● Espressif ESP8266 RTOS SDK● ESP open sdk ● Kaa IoT platform ● Smart.js - Cesanta● Sming, ESPduino, SLIP.. ● …● Arduino

Page 5: lwM2M OTA for ESP8266

Arduino OTA for ESP8266

OTA may be done using

● Arduino IDE

● Web Browser

● HTTP Server○ This is the only NAT friendly approach, through periodic server polling

Page 6: lwM2M OTA for ESP8266

Eclipse IoT

Page 7: lwM2M OTA for ESP8266

LightWeight M2M functional overview

Page 8: lwM2M OTA for ESP8266

LightWeight M2M functional overview

Page 9: lwM2M OTA for ESP8266

mbed example

MBED LPC1768

ARM Cortex M3

96MHz

32KB RAM

512KB FLASH

Page 10: lwM2M OTA for ESP8266

Eclipse Hawkbit

https://projects.eclipse.org/projects/iot.hawkbit

Page 11: lwM2M OTA for ESP8266

Eclipse IoT Challenge

Page 12: lwM2M OTA for ESP8266

OTAXM

1. Port Wakaama (lwM2M) to ESP8266○ some coap enpoints○ attempt merging with ArduinoOTA (?)

2. Make it an Arduino Library○ enrich coap endpoints○ improve ArduinoOTA - Wakaama merge

3. Control ESP8266 from Leshan○ and Hawkbit in the future

Alternative approach: enrich Arduino microcoap with wakaama enpoints and modify ArduinoOTA to include lwM2M compatibility

Page 13: lwM2M OTA for ESP8266

Let’s share the glory (and the $$$)

Deadline 26 February

Page 14: lwM2M OTA for ESP8266

Thank you!Manolis Nikiforakis

manolis @ weatherxm.com