Comments (6)
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.
*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.
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.
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.
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.
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)
- uploader.py/sh info HOT 13
- Help w platformio build problem w OTA HOT 15
- Uploader doesn't see service HOT 25
- Create uploader.py based on bleak HOT 1
- Precised MTU/ATTR sizes HOT 5
- Remove advertising functionality from begin methods HOT 4
- dbus Module not found while using `uploader.py` HOT 3
- need help HOT 2
- send begin, write is not permitted error HOT 2
- enable/disable upload feature understanding HOT 2
- upload App says is wrote data, device counts don't match HOT 2
- which crc lib? HOT 5
- Support STM32 HOT 1
- Add script for automatic examples bin generation
- Security pin HOT 11
- Make as Arduino IDE library HOT 2
- Library ArduinoBleOTA on Arduino Nano 33 BLE with MBED HOT 1
- Example of combining this with lets say a BLE Serial application HOT 2
- Consider to use DIS service
- **Attention!** Add manufacture characteristic and regenerate uuids
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinobleota.