Stef Weicks hello Apparently we exceed th elenght of you discussion thread :) How

no

[2152] Connecting to blynk-cloud.com:80
[2349] Ready (ping: 56ms).
djdj
Starting Artnet nbNeededUniverses:16
Ready to record…
Recording has started
Filename:/savedata_000.dat
Recording has started
Filename:/savedata_000.dat
Recording has started
Filename:/savedata_000.dat

i updated my gist

@Stef_Weicks put back my original code please.
Then you have
if(new_record)
{

new_record=false;

}
Add
Before the }
Serial.println(“we start a new recording”);

In the function showtask2
fastledshowtask2
Replace while(!new_record)
By while (1)

Then before delay(1)
Add if(!new_record) {

And before the end of the function add }

Task watchdog got triggered. The following tasks did not reset the watchdog in time:

  • IDLE (CPU 0)
    Tasks currently running:
    CPU 0: FastLEDshowTask
    CPU 1: loopTask

@Stef_Weicks normally when you send something different than 1 to record it will stop the while (record==1)
The the recording should not start before you send 1 to record

@Stef_Weicks ok I am at the gym now so not easy to look at stuff end debug.
I am pretty sure it’s a stupid thing that I can’t see here.

  1. the normal recording program works right ?
  2. I will have a look at home. I need my computer to fully test this

@Stef_Weicks one last trick get my original code
Put
static bool new_record;
And on the if(new_record)
{
new_record=false;
///add this
saveframes();
Serial.println(“start new recording”);
}

no don´t stop either. startet by itself

[2635] Connecting to blynk-cloud.com:80
[3126] Ready (ping: 88ms).
Starting Artnet nbNeededUniverses:16
Ready to record…
Recording stopped …
frames saved:0 frames lues:0 lost frames:0
time per frame nan
start new recording
Recording has started
Filename:/savedata_001.dat
Recording has started

all right… yes i did a recording today with this code… i hope its the latest version … I already saved so many fileversions and took the latest one. so i hope we did no later changes

I wish you much fun in there :wink:

by the way … what kind of training are you doing there?

@Stef_Weicks it can’t start by itself that is not normal.
You stated record=0
Unless you push it to 1 somehow
The test while(record==1) has to fail.
Just before the while
Add serial.printf(“record:%d”,record);

[2125] Connecting to blynk-cloud.com:80
[2439] Ready (ping: 61ms).
Starting Artnet nbNeededUniverses:16
Ready to record…
record:0Recording stopped …
frames saved:0 frames lues:0 lost frames:0
time per frame record:0record:0record:0record:0record:0record:0record:0record:0
record-in while:1
start new recording
Recording has started
Filename:/savedata_000.dat
record-in while:1Recording has started
Filename:/savedata_000.dat
record-in while:1Recording has started
Filename:/savedata_000.dat
record-in while:1Recording has started

but no stop
you are right… hm

@Stef_Weicks when you set the record back to 0 in Blynk it does not stop ?
Because it will stop only if send 0 again

no it set not back to 0!

@Stef_Weicks of course I am stupid !!!
In the while(record==1){
Add the following
Blynk.run();

@Stef_Weicks let also the other one

yes start stop is working now… but the filesize is 0kb

@Stef_Weicks could you do the following
Rerun It
Start
Wait 10s
Stop it
Wait
Restart it
And Restop it
Show me the serial putput

@Stef_Weicks can you publish the code

@Stef_Weicks in the function show fastledshowtask2
After the ‘}’ of the while(!new_record)
Add
userTaskHandle=0;