Coder Social home page Coder Social logo

Comments (9)

fbiego avatar fbiego commented on June 7, 2024 1

check this implementation of your code

main-ota.zip

from esp32_ble_ota_arduino.

fbiego avatar fbiego commented on June 7, 2024 1

actually, I'm developing and testing a python script to enable uploads from a computer. I will post it when done

from esp32_ble_ota_arduino.

fbiego avatar fbiego commented on June 7, 2024

Looks like you have not created SERVICE_UUID2 on the pServer
or if you are adding all characteristic to one service, the changes won't show until you refresh. I use the nRF connect app to refresh the services

from esp32_ble_ota_arduino.

goosst avatar goosst commented on June 7, 2024

Yeah, no real luck with or without that 2nd one ... .
I can see both service_UUID's (for a while at least, then it just disappears again untill a reboot of the ESP).
But I can't connect with the phone to upload a .bin file.

In case you're interested to have a look, I believe to have a minimal example. It sends a value to some characteristics and still implements your OTA method: main.zip
(using platformio but in arduino style ... so you can normally just leave out the #include <Arduino.h>, and save it as an .ino)

thanks!

from esp32_ble_ota_arduino.

goosst avatar goosst commented on June 7, 2024

Great stuff, thanks.
Getting it connected with the app and phone was a bit finicky, but at least it works once I got it connected 👍

By the way did you always do this flashing by phone or were there any ways to upload from computer?

from esp32_ble_ota_arduino.

goosst avatar goosst commented on June 7, 2024

I've tried again to integrate this example in my own code.
The best I get is a few % in the upload process in the app, afterwards the ESP just reboots. I'm using the .bin file from your repo as test upload.

TX  AA 00 
.TX  F1 00 01 
TX  F1 00 02 
TX  F1 00 03 
E (124461) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (124461) task_wdt:  - IDLE0 (CPU 0)
E (124461) task_wdt: Tasks currently running:
E (124461) task_wdt: CPU 0: btController
E (124461) task_wdt: CPU 1: loopTask
E (124461) task_wdt: Aborting.
abort() was called at PC 0x4015d13c on core 0

ELF file SHA256: 0000000000000000

Backtrace: 0x4008ef34:0x3ffbf6d0 0x4008f1b1:0x3ffbf6f0 0x4015d13c:0x3ffbf710 0x4008be59:0x3ffbf730 0x40161689:0x3ffd3cf0 0x40161c4d:0x3ffd3d10 0x40090216:0x3ffd3d40

Is there any debug information that is useful for this?
I'm about to give up on BLE-OTA.

from esp32_ble_ota_arduino.

fbiego avatar fbiego commented on June 7, 2024

did you modify the main-ota code?

from esp32_ble_ota_arduino.

goosst avatar goosst commented on June 7, 2024

did you modify the main-ota code?

not the BLE parts: I've compared it a few times, I only changed the order of the function declaration. Latest code is here:
https://github.com/goosst/hoverboard-firmware-hack-FOC/blob/master/ESP32/src/main.cpp

from esp32_ble_ota_arduino.

fbiego avatar fbiego commented on June 7, 2024

you may want to call your Receive() function in the NORMAL_MODE

from esp32_ble_ota_arduino.

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.