Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
In file included from C:\Users\Bob\Documents\Arduino\libraries\FastLED\src/FastLED.h:67:0,
from C:\Users\Bob\AppData\Local\Temp\arduino_modified_sketch_735159\esp_blink_test_with_ws2812.ino:7:
C:\Users\Bob\Documents\Arduino\libraries\FastLED\src/fastspi.h:145:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^
Sketch uses 761010 bytes (58%) of program storage space. Maximum is 1310720 bytes.
Global variables use 42980 bytes (13%) of dynamic memory, leaving 284700 bytes for local variables. Maximum is 327680 bytes.
C:\Users\Bob\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/espota.exe -i 192.168.1.191 -p 3232 --auth= -f C:\Users\Bob\AppData\Local\Temp\arduino_build_167654/esp_blink_test_with_ws2812.ino.bin
Sending invitation to 192.168.1.191 .........An error occurred while uploading the sketch
.
17:59:24 [ERROR]: No response from the ESP
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I hope my Error message info comes across properly, and I know there is a reddit Esp forum. Please be patient with this noob.
Ultimately I want to wirelessly update FastLED sketches.
I can update sketches & the OTA sketch over the PC's usb port. But as the error message indicates I can't make headway OTA.
I have scoured the internet. There seem to be multiple solutions, most beyond my knowledge.
I have disabled the McAfee firewall.
I have a 10microF capacitor between EN & GND.
I have played with "allow interrupts" and "interrupt retry count".
I have reduced my NUM_LEDS to 2.
I do have a delay in my test FastLED sequence. And will have many more in my final set of sequences.
You see the error message I continually get.
Please help!
Oh, why? You don't need to upload entire sketches. Design a pattern description code that a single program can run and interpret. Then new codes can easily be uploaded via wifi through various network protocols that are available. Effects are usually just pattern sequences.
It may sound difficult, but in the end it might be easier than OTA firmware updates.
aarg -
I'm not quite following you. As I understand it, if I want to upload a new sketch (here a collection of new WS2812 functions) wirelessly,
I am to use the BasicOTA sketch and must include that with my new led sketch. Or I can do it via OTAWebUpdater, which BTW, I haven't been able to connect with.
"...Then new codes can easily be uploaded via wifi through various network protocols that are available...". OK. Can you give me some search terms
so I may start investigating this avenue. And would these require an Esp32? I'd rather stay away from Bluetooth, unless that may be the next easiest(?) route.
I'm digesting your reply, I can see you don't understand at all, but that's okay, perhaps what I am suggesting is a little different from what you are considering.
Suppose you define a sequence. Logically, not in code. What information should it contain? Let's try to make a simple one
{ effect-type = alternate, number-of-LEDs = all, interval = 500, colour1 = red, colour2 = green }
This specifies, "flash all the LEDs, alternately red and green, every 500 milliseconds"
If you have a permanent sketch in the Arduino that can decode a message like this, you can send it parameters to run various kinds of custom sequences in this "sequence description language". My example isn't real, I just cobbled it as an example but you could use JSON or XML format instead.
Then you don't need OTA, in fact the methods of uploading definitions are now many many more, you can use custom or IoT cloud communications, any comms really...
If it's a classic board like UNO, you can just send sequences by serial.
That is the normal approach. You can verify if you have done that successfully, but re-uploading BasicOTA Over the air.
There is one more thing that is required for OTA updates as far as i know and that is to have Python installed.
Of course you do need the ESP to be connected to the same LAN as the device running the IDE.
Basically if you can upload any sketch OTA then you can upload it to any ESP that has a sketch on it that has OTA updates implemented.
There are other methods, but this was what you were attempting to do, and you should keep trying until you are successful.