-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create simple ArduinoBleOTA library #19
Comments
If you take a look at: ESP32_BLE_OTA_Arduino/esp32_ble_ota_lib_compact/ota_updater.py Lines 26 to 175 in fa90638
Reading the above, you will have a rough idea of how the process works (I'm using a slightly different method compared to the main code). As you can see, no security mechanism has been implemented in the code. No pin code for the pairing, no checksum at the end of the upload, no version number hard-coded—sometimes, I had a version date and git version hash at compilation time, but not here —, etc. That could also be something to implement in your library. I do not have much time to help you at the moment, but I like your idea, even if there are still some mechanisms to be thought. Regards, |
Ok, just let me know if you find corner case or bug in my considerations. Will be nice to implement minimal working version and than extend it. For example checksum can be added in future by optional command:
before I am also interested in @fbiego's point of view |
Hi guys, Library can be simply added to any project like this: Next steps:
|
According to step 2. |
Step 1. Done. Added new (not Step 2. Done. Works fine with Step3. Still open |
I was referred to this URL on BLE performance.. |
Thanks for Your fullstack solution (from esp32 to android app)! I have forked this repository in order to create PlatformIO Arduino library:
https://github.com/vovagorodok/ArduinoBleOTA
At the and will be nice to move it to: https://github.com/arduino-libraries
I'm trying to make it as simple as possible with reusing of NimBLE-Arduino and ArduinoOTA(support only WIFI) libraries. Proposed interface will be similar to ArduinoOTA:
Or if bluetooth is used not only for OTA:
Additionally I have plan to add support of Atmel based boards using ArduinoBLE library.
I see that @Vincent-Stragier begin with that. Lets connect our forces and create easy library with simple/lightweight protocol.
Draft protocol proposal will have small number of commands (names and numbers can be another like 0x01 or 0xFE):
Designations for examples:
->
- recived from phone<-
- send to phoneSunny day scenario:
Size to big:
Connection terminated:
Unexpected package:
Instalation error:
I thing that most/all corner cases are covered or something is missed?
@fbiego can you describe scenarios(corner cases) that are currently covered with command names (because from code I see some magic numbers 0xFB, 0xFC, 0xFD, FE ..)?
What do you think generally about this idea?
Thanks!
The text was updated successfully, but these errors were encountered: