Search found 12 matches

by HitecSmartHome
Wed Mar 19, 2025 9:56 am
Forum: ESP-IDF
Topic: RS-485 half-duplex extra byte received.
Replies: 2
Views: 2594

Re: RS-485 half-duplex extra byte received.

We experience the same problem. We got `0x00` byte frames on every uart. In our case these are occasional and we observe them sometimes multiple times / minute but there are cases where it isn't there for several minutes. Increasing the RX symbol timeout seems to help but it slows down the ...
by HitecSmartHome
Mon May 27, 2024 9:51 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 7613

Re: Task usage understanding



For example the Time class ... just loops and checks and stores the uptime of the chip.

Why does it "store" the uptime? Can't it just "calculate"/provide the uptime when requested?


Hardware class ... pushes data to uart, waits for the response and it pushes the next packet as soon as it can ...
by HitecSmartHome
Mon May 27, 2024 7:02 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 7613

Re: Task usage understanding



But my tasks are independent from each other. How would you use blocking operations in this case?

task1 -> doing it's own things -> yielding so the OS can task switch
task2 -> doing it's own things -> yielding so the OS can task switch


In almost all cases, tasks don't do calculations all the ...
by HitecSmartHome
Fri May 24, 2024 1:50 pm
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 7613

Re: Task usage understanding

Do i need a main task which loops forever and controlls all the other tasks?
by HitecSmartHome
Fri May 24, 2024 11:22 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 7613

Re: Task usage understanding



Almost all of my tasks are higher priority than the IDLE task.
They do a vTaskDelay(1); in every iteration to feed the system but I expected them to run much more than the IDLE task.
This is a little bit strange to me.
I did not experience any performance bottleneck but how would I make my tasks ...
by HitecSmartHome
Fri May 24, 2024 9:08 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 7613

Re: Task usage understanding

Thank you very much for the explanations.
Almost all of my tasks are higher priority than the IDLE task.
They do a vTaskDelay(1); in every iteration to feed the system but I expected them to run much more than the IDLE task.
This is a little bit strange to me.
I did not experience any performance ...
by HitecSmartHome
Fri May 24, 2024 7:18 am
Forum: General Discussion
Topic: Task usage understanding
Replies: 10
Views: 7613

Task usage understanding

Hello guys!

Please help me understand IDF FreeRTOS task usages.

I have wrote a function which monitors all of the running tasks and saves their stats to an Arduino Json Document.
(I'm using Arduino as a component of IDF with PlatformIO)

Here is the method which tracks and retrives task ...
by HitecSmartHome
Tue May 07, 2024 9:57 am
Forum: ESP32 Arduino
Topic: Not able to Deocde Coredump but Can decode Backtrace
Replies: 3
Views: 3239

Re: Not able to Deocde Coredump but Can decode Backtrace

Can anybody confirm that they've successfully decoded a coredump?
Still trying
by HitecSmartHome
Fri Apr 26, 2024 11:14 am
Forum: ESP-IDF
Topic: Porting PIO Arduino,IDF project to VSCODE IDF
Replies: 0
Views: 1411

Porting PIO Arduino,IDF project to VSCODE IDF

Hello guys!

I have a massive project written with PlatformIO using arduino and idf.
Since I have read that PIO will not move to the latest sdk I started to port my project to VSCODE with IDF extension.
I have successfully setup a basic project with Arduino as a component of IDF and i could ...
by HitecSmartHome
Thu Apr 11, 2024 6:26 am
Forum: General Discussion
Topic: Efficient use of vTaskList and vTaskGetRunTimeStats
Replies: 2
Views: 2386

Re: Efficient use of vTaskList and vTaskGetRunTimeStats

I solved it eventually

void TaskInfo::get() {
UBaseType_t uxArraySize;
TaskStatus_t *taskStatusArray;
uint32_t ulTotalRunTime,ulStatsAsPercentage;
uxArraySize = uxTaskGetNumberOfTasks();
taskStatusArray = (TaskStatus_t *)pvPortMalloc(uxArraySize * sizeof(TaskStatus_t));
if (taskStatusArray ...

Go to advanced search