Giter Site home page Giter Site logo

kattaliraees / flutter_esp32_ble_ota Goto Github PK

View Code? Open in Web Editor NEW
31.0 4.0 3.0 3.28 MB

ESP32 OTA via BLE Flutter App

Kotlin 0.22% Swift 1.98% Objective-C 0.06% Dart 17.02% HTML 6.59% CMake 0.70% Makefile 0.54% C 68.31% Ruby 4.58%
esp32 esp32-idf esp32-ota flutter flutter-ble-ota flutter-esp32-ota ota-firmware-updates

flutter_esp32_ble_ota's Introduction

Flutter App & esp-idf sample for performing ESP32 OTA via BLE

1MB OTA update time, iPhone SE 2, iOS 15 ---> 2 Minutes and 15 Seconds

How it works

  • One BLE Service with a Read, Write & Notify GATT Characteristic is created in ESP32 firmware.
  • Read of CHAR will return the current running firmware version
  • OTA update starts with a 5 bytes header packet
  • 5 Bytes [StartKey, OTASizeMSB, OTASizeByte, OTASizeByte, OTASizeLSB]
  • Following the header bytes, OTA bin file bytes will get written to ble characteristics as batches of 514 bytes
  • ESP32 firmware append this bytes to ota.bin file in SD Card
  • At the end send the OTA End Key to inform firmware OTA file sending finished
  • Firmware will verify the size with header bytes and total bytes received
  • If file size match, it will begin OTA process at firmware side

Tested on

boot: ESP-IDF v4.4-dev-2594-ga20df743f1 2nd stage bootloader
boot: compile time 21:09:21  
boot: chip revision: 3  
boot_comm: chip revision: 3, min. bootloader chip revision: 0  
boot.esp32: SPI Speed      : 40MHz  
boot.esp32: SPI Mode       : DIO  
boot.esp32: SPI Flash Size : 8MB  
 

flutter_esp32_ble_ota's People

Contributors

kattaliraees avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter_esp32_ble_ota's Issues

Not working

App not working app show button and do nothing on click

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.