Search found 23 matches

by AndreaS73
Tue Feb 11, 2025 11:47 am
Forum: General Discussion
Topic: Unable to run TCP Slave Modbus example in v2.0
Replies: 5
Views: 2145

Re: Unable to run TCP Slave Modbus example in v2.0

I'm not sure to understand. I didn't change anything to the default example of v2.
Actually, I created an issue on github but it is not visibile (yet another flagged account issue...).

The messages I reported are the real ones I see in the output window of CSV using ESP Modbus 2.0.1~1 and ESP-IDF ...
by AndreaS73
Tue Feb 11, 2025 10:47 am
Forum: Documentation
Topic: Migration guide for ESP-Modbus
Replies: 4
Views: 14632

Re: Migration guide for ESP-Modbus

Thanks for your answer.
I guess the "latest" in the link of the documentation in my first post is misleading since it is not updated (yet?). Your link is correct, but harder to find.


The version of esp-modbus v2 is the recommended version for future projects and will include the latest updates ...
by AndreaS73
Mon Feb 10, 2025 9:07 pm
Forum: General Discussion
Topic: Unable to run TCP Slave Modbus example in v2.0
Replies: 5
Views: 2145

Re: Unable to run TCP Slave Modbus example in v2.0


If possible, try running the v2.0 example with an older ESP-IDF version. Sometimes, ESP-IDF updates introduce changes that affect component behavior.


I might give it a try but I need to use v5.4.
Anyway, both ESP-IDF and ESP Modbus come from espressif: it's odd their own code does not work ...
by AndreaS73
Mon Feb 10, 2025 9:39 am
Forum: General Discussion
Topic: Unable to run TCP Slave Modbus example in v2.0
Replies: 5
Views: 2145

Unable to run TCP Slave Modbus example in v2.0

When I've update my dependencies the ESP Modbus component was upgraded to v2.0.
I got errors in the code and looking at the source code I was able to fix them, but at run-time my modbus client did not work anymore (i.e. it does not process the incoming requests).

Hence I compiled the official ...
by AndreaS73
Mon Feb 10, 2025 5:21 am
Forum: Documentation
Topic: Migration guide for ESP-Modbus
Replies: 4
Views: 14632

Migration guide for ESP-Modbus

After upgrading the idf dependencies, the ESP-Modbus component was updated as well (to v2.0.1~1) and now I get dozen of build errors in my code.
Of course that means the functions are changed.

Is there a migration guide that would simplify the adjustment of the code?
If I'm not wrong it seems ...
by AndreaS73
Sun Feb 09, 2025 12:20 pm
Forum: General Discussion
Topic: What is the difference between release version and branch for esp-idf?
Replies: 1
Views: 813

What is the difference between release version and branch for esp-idf?

When downloading the ESP-IDF from VSC I have to select the desired branch:
esp-idf.jpg
esp-idf.jpg (63.26 KiB) Viewed 813 times
what is the difference between:

- v5.4 (release version)
- release/v5.4 (release branch)

why should I prefer one or the other?
by AndreaS73
Mon Dec 09, 2024 7:24 pm
Forum: ESP-ADF
Topic: Issues while trying to add a custom board
Replies: 2
Views: 17193

Issues while trying to add a custom board

Ubuntu 24.10, with ESP-IDF 5.3.0 and ESP-ADF from branch `master`.
Here are the steps I followed:

1. installed VSCode and ESP-IDF extension and ESP-ADF framework
2. created a new project based upon the example template `esp-adf/examples/player/pipeline_a2dp_source_stream`
3. compiled and check ...
by AndreaS73
Fri Dec 06, 2024 7:59 am
Forum: General Discussion
Topic: Time needed to A2DP connection
Replies: 1
Views: 1547

Time needed to A2DP connection

Using the Arduino framework with this library:

https://github.com/pschatzmann/ESP32-A2DP

it requires more than 21 seconds to connect to my Bluetooth speaker. Of course I won't compare the performances with a personal computer that requires less than 1 second, but I'm wondering if using ESP-IDF ...
by AndreaS73
Tue Nov 12, 2024 5:27 pm
Forum: General Discussion
Topic: vTaskDelay below 10 ms
Replies: 3
Views: 2054

vTaskDelay below 10 ms

In my ESP32-S3 code I noticed that in my main loop I have to add `vTaskDelay(1)` otherwise I get a wdt reset.
I guess this is because if I don't suspend for a while my thread, the others cannot run.

Since `CONFIG_FREERTOS_HZ` is defined as 100, a delay of just 1 tick is 10 ms, too much!
Is there a ...

Go to advanced search