Open goosst opened 3 years ago
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
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
thanks!
check this implementation of your code
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 :+1:
By the way did you always do this flashing by phone or were there any ways to upload from computer?
actually, I'm developing and testing a python script to enable uploads from a computer. I will post it when done
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.
did you modify the main-ota
code?
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
you may want to call your Receive() function in the NORMAL_MODE
Hello
Thanks for this great implementation. Your test example works great, so I was trying to integrate your code into mine to have OTA_BLE functionality. I might be doing something I'm not fully understanding, so apologies in advance:
My goal is to post some values in a few BLE-characteristics. After integrating the BLE-OTA, I seem to fail at this. I might have butchered something in your initBLE() function (or didn't understand it).
It seems like the additional characteristics are just not available at all anymore (when scanning through my phone). And every time I called
pAdvertising->start();
in the loop() the ESP32 reboots.In case you have any suggestions, they are very welcome.
thanks!
I used to call in the loop repetitively ... but this has no effect anymore.