Giter Site home page Giter Site logo

Comments (6)

vovagorodok avatar vovagorodok commented on July 30, 2024

Are you using latest ArduinoBleOTA version?
What size of bin file is?
Upload by python script or mobile application?
if python script, can you show me console logs?

from arduinobleota.

Gopijackson avatar Gopijackson commented on July 30, 2024

*ArduinoBleOTA version - v1
*bin file size - 487,696 bytes

  • python script

*OTA Device Found!
Connecting to ArduinoBleOTA
HW: Example ESP32, VER: [1, 0, 0], SW: Example SW, VER: [1, 0, 0]
Begin upload: attr size: 128, buffer size: 5080
Uploaded: 127/487696
:
Uploaded: 487696/487696
Incorrect firmware size

i print in serial monitor
487442 != 487696 (current len != Firmware len)

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

Thanks
From logs I see that you have outdated version. Please type git pull, will be easier work in same code base.
From bin size I see that default ArduinoBLE library is used.
Issue happens because of internal buffer to big and ESP32 wasn't able to handle fast incoming packages:
https://github.com/vovagorodok/ArduinoBleOTA/blob/main/doc/ADVANCED.md
I have tested mostly on NimBLE-Arduino library. Perhaps for ArduinoBLE library buffer size should be tuned better here:
https://github.com/vovagorodok/ArduinoBleOTA/blob/main/src/BleOtaSizes.h
I have decreased buffer for ArduinoBLE: a808aea. Please check if it helps

You can run uploader.py second time. ArduinoBleOTA disables buffer when first upload fails. It should upload successfully but slowly.

You can disable buffer at all by:

build_flags =
	-D BLE_OTA_NO_BUFFER

But for NimBLE-Arduino speed decreases from 12kB/s to 3kB/s.
For ArduinoBLE from 20kB/s to 3kB/s.

from arduinobleota.

Gopijackson avatar Gopijackson commented on July 30, 2024

I am trying but can't solve this problem

incorrect firmware size

Connecting to ArduinoBleOTA
HW: Example ESP32, VER:[1, 0, 0], SW: Example SW, VER:[1, 0, 0]
Begin upload: attr size: 256, buffer size:1020
org.bluez.Error.Failed: Failed to initiate write

from arduinobleota.

vovagorodok avatar vovagorodok commented on July 30, 2024

attr size: 256 for ArduinoBLE is to big.That why you can't write to this characteristic.
Fix is on never version of ArduinoBleOTA, please:

git reset --hard
git pull

Add your blinking example main.ino and check if it works

from arduinobleota.

Gopijackson avatar Gopijackson commented on July 30, 2024

espdev i tried this
attr size : 16
buffer size : 512 perfectly flashed.But, very slow.
Then i tried this esp32dev_nimble, its perfectly flashed and time also ok.

Thank you for replying.

from arduinobleota.

Related Issues (20)

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.