Esp32 - getting to the core of the task

"The Grumps"??? Do you mean @Grumpy_Mike ?
I have no problem with Grumpy Mike. if that's what you meant by Grumps.

Mike is fine in my books, as far as i'm concerned, Mike Saw my comment, he disagreed, he voiced his few, My point is, i was talking about , Look at the direction of the Arrows.
His point was the direction of the arrows indicates, Data.
I have no problem with mike
He blocked me, I still have no problem with mike
Absolutely None at all.
and if Mike (Hypothetically) was ever rude to me , the solution is simple, ... Just ignore it.
I have no issue with Mike. we had a difference in point of view.... so what ?
THAT'S THE PURPOSE OF THE SITE AND TO DISCUSS IT.

Thank you and i enjoyed yours

Correct, Because as i always told everyone, i don't stress, I learned to do it from when i was younger.
I'D LIKE TO LEAVE THIS WITH YOU GUYS

STRESS IS A DECISION Just like ESP32 over Arduino is a decision.
You decide what is best for you.
If i ask myself , Do i want to stress ? the answer is NO
therefore i don't
IT'S JUST A CHOICE
A lot of people believe it's not a choice and you can't avoid it.
Well if you believe that then you won't avoid it, I have learned it's a choice.

that's why negativity doesn't phase me , i just look at what the person is saying and i assess it . and if the person becomes rude, i ignore them.

LOL... Awww thanks mate :stuck_out_tongue:
See, this is why i like being here, I was appreciated and they liked me as well.
and i liked helping and then you have people like @gfvalvo who say to me in not so many words "No you idiot, that's wrong it's like this" Politely put, he would correct me and i'd be like... thanks, and it was cool to have his knowledge.
so , Everyone helps everyone where they can

I Agree
but when the powers that be are not fair, you leave.

I've been told this many times.
that applies if feelings were in effect here.
this is not about feelings, this is about ... I have seen what a moderator can do
and how that moderators attitude is, and i can't operate under those conditions here.

it's not about , take 2 weeks relax, blow off some steam
i have no steam to blow off, I've thought it through very carefully and without any hate or anger
it's best to leave and to avoid future conflict
but i do appreciate your comments,

I wish it was that way,
if it is.... someone show it to me and i'll consider not leaving.

Guys i don't want this to get too out of hand, ok
I'm off to bed,
In the spirit of letting things lie.
From this point on.... I wont reply here any more

I THANK EVERYONE FOR EVERYTHING THEY'VE DONE. TAKE CARE

If you want to say something to me, Happy to hear it,
PM ME ONLY...
Be Cool Guys

I absolutely do not... I was referring to grumpy people in general who fuel negativity...

Fair enough. You do what is right for you. All the best!

Oh, ok, my bad,
Honest word association mistake. :slight_smile:

Thank you.

As nobody responded I have a final suggestion:

The old Busy Beaver contest is a fine example for practical multitasking and inter-task communication. Such a project encourages teamwork as well. So let me ask:

Is there interest in such a project, in order to continue exploring the ESP32 in a new topic?

@DrDiettrich it is fine to continue the discussion here if you think the context of the previous posts are useful.

Even if @anon76350110 no longer chooses to participate, there is no need for that to put a halt to the discussion if others wish to continue.

2 Likes
  1. Who is interested in further discussion here?
  2. Elsewhere?
  3. Not at all?
1 Like

I AGREE

  1. I do not wish to continue responding here, as i feel it's counter productive.
    I do not wish to be rude to anyone or ignore them so if anyone has anything further
    PM ME, the account will likely be still open for a few more days, as a few people have responded
    and wanted to say a few things

  2. PLEASE CONTINUE WITH THE CURRENT TOPIC GUYS.. BY ALL MEANS

Here is where we left off

@GolamMostafa would like to discuss Harvard Architecture and has a few ideas on experimenting with Tasks

@DrDiettrich i think it was, wanted to test Multi tasking with an LCD Screen

@bobfather Had a light cannon that wanted to be built

Please, by all means, Pick one and move forward so the topic is still productive.
Don't worry about me, and don't let me leaving bring down the mood of the subject

PLEASE..... PROCEED TO PICK THE TOPIC UP AND MOVE FORWARD WITH IT,
I would love to see nothing more than that.

@GolamMostafa
I believe you had an idea that you wanted to test, why don't you do that now .

That idea of testing the Task Transitions Flow Diagram is still alive; but, I am afraid of its progression at the lack of receiveable criticisms/comments from readers who are now almost relaxed as the thread is not vibrarting owing to deep sleep mode of the TO who for sure needs some kind of interrupt which I would like to define as self triggered.

1 Like

1. From academic point of view, I have always desired to test the functionality of the Task States Flow Diagram (Fig-1) in order to convert my many ignorances on ESP32-based Multitasking issue and accordingly I will raise questions which (I belive) the experinecd veterans will consider with patience and kindness.

2. If I have a question and you know that thee are three components in the answer, please provide at least one component of the answer and refer me to a document from which I myself can learn the remaining two.

3. Here is the Task States Diagram (Fig-1 extracted from net):
TaskStates
Figure-1:

4. Three tasks based hardware setup for testing the events of Fig-1.
esp32-3led
Figure-2:

There are three tasks being executed concurrently. LED blinks at 4000 ms interval (2000 ms On-period and 2000-ms OFF-period), LED10 blinks at 2000 ms interval, and LED11 blinks at 1000 ms interval.

5. Sketch for Fig-2

//function declarations
TaskHandle_t  Task10Handle;
TaskHandle_t  Task11Handle;

//GPIO definitions
#define LED   2
#define LED10 21
#define LED11 22

//task creation using FreeRTOS.h Librray functions
void setup()
{
  Serial.begin(9600);
  pinMode(LED, OUTPUT);
  pinMode(LED10, OUTPUT);
  pinMode(LED11, OUTPUT);

  xTaskCreatePinnedToCore(Task10, "Task-10", 2048, NULL, 3, &Task10Handle, 1);
  xTaskCreatePinnedToCore(Task11, "Task-11", 2048, NULL, 2, &Task10Handle, 1);
}

//LED blinks at 2000 ms pause
void loop()
{
  digitalWrite(LED, HIGH);
  vTaskDelay(2000);
  digitalWrite(LED, LOW);
  vTaskDelay(2000);
}

//LED10 blins at 1000 ms interval
void Task10(void *pvParameters)
{
  while (true)
  {
    digitalWrite(LED10, HIGH);
    vTaskDelay(1000);
    digitalWrite(LED10, LOW);
    vTaskDelay(1000);
  }
}

//LED11 blinks at 500 ms interval
void Task11(void *pvParameters)
{
  while (true)
  {
    digitalWrite(LED11, HIGH);
    vTaskDelay(500);
    digitalWrite(LED11, LOW);
    vTaskDelay(500);
  }
}

6. Task States Diagram (Ready <-----> Running) for the process og Fig-2.


Figure-3:

7. Questions
(1) Refer to Fig-3, I have turned-on LED11 and have immediately executed this code: vTaskDela(500) to mark the Task11() unready (or blocked?) and to start a timer (software?) to count for 500 ms elapse time.

After one "Time Slice" period, Task10() will be executed, then loop() and then the CPU will execute IdelTask() as Task11() is unready or blocked?). If this is the case, then which one of the following is appropriate to write in Fig-3 (if this Fig-3 makes sense t all!)?

blocked (for) 500 ms

or

unreday (for) 500 ms

(2) How to put Task10() under suspension (during its On-period) for 15-sec giving command from Serial Monitor?
----- pending

Hi anon76350110, I´m sorry to read you´ll leave the forum or you have already left, but since I was on holidays I didn´t read anything.
We have a saying in my country: Always give a fool the feeling he´s right or you´re in big trouble. :crazy_face: I hope you didn´t decided to leave.

@anon76350110 did indeed finalize their decision to leave the forum.

The reason their posts are now under this somewhat cryptic username @anon76350110 is because they submitted a formal request to have their account anonymized.

2 Likes

@pert Yeah, I don´t like to see people leaving a forum when they´re helping people solving problems. But it´s their decision, so we have to respect it.

4 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.